/* Fonts served from this site (no requests to Google): SIL Open Font License, see fonts/OFL-*.txt */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cinzel-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Almendra"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/almendra-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/alegreya-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/alegreya-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/alegreya-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/alegreya-latin-700-normal.woff2") format("woff2"); }

/* Layout: a night at the tavern. Painted hero, then sections on dark wood; screenshots hang in the game's own
   wooden frames and buttons are the game's planks. One deliberate dark look (the game's world is lantern-lit). */
:root {
  --night: #120c08;        /* tavern dark, warm brown-black */
  --wood: #23170e;         /* section ground */
  --wood-line: #3b2817;    /* dividers */
  --parchment: #ecd8ac;    /* headline / plank text */
  --text: #dccdb0;         /* running text on wood */
  --muted: #a8977a;        /* captions */
  --lantern: #f2b65a;      /* the one accent: lantern gold */
  --sea: #8fc9c0;          /* quiet secondary for small labels */
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-board: "Almendra", "Alegreya", Georgia, serif;
  --font-body: "Alegreya", Georgia, "Times New Roman", serif;
  --measure: 64ch;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--font-body); font-size: 1.125rem; line-height: 1.6;
  font-feature-settings: "lnum"; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lantern); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* top bar */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(18,12,8,0.92); }
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: rgba(18,12,8,0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--wood-line); }
.bar .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.55rem; }
.bar .brand img { height: 38px; width: auto; }
.bar nav { display: flex; gap: 1.25rem; margin-left: auto; flex-wrap: wrap; }
.bar nav a { color: var(--text); text-decoration: none; font-family: var(--font-board); font-size: 1rem; }
.bar nav a:hover { color: var(--lantern); }
@media (max-width: 720px) { .bar nav { display: none; } .bar .wrap { justify-content: space-between; } }

/* plank buttons: the game's wooden plank as a 3-slice */
.plank { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: 0 1.1rem;
  border-style: solid; border-color: transparent; border-width: 0 1.45rem;
  border-image: url("img/phase_label_wood.png") 0 62 0 62 fill / 0 1.45rem 0 1.45rem stretch;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; font-size: 1rem; color: var(--parchment);
  text-decoration: none; text-shadow: 0 2px 3px rgba(0,0,0,0.85); white-space: nowrap; cursor: pointer; background: none;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5)); transition: transform 0.15s ease, filter 0.15s ease; }
a.plank:hover, button.plank:hover { transform: translateY(-2px); filter: drop-shadow(0 9px 14px rgba(0,0,0,0.6)) brightness(1.08); }
.plank.small { min-height: 2.4rem; font-size: 0.85rem; border-width: 0 1.1rem; border-image-width: 0 1.1rem 0 1.1rem; padding: 0 0.6rem; }
.plank.soon { cursor: default; color: var(--lantern); }
.plank.quiet { color: var(--text); }

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("img/hero.jpg") center 40% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18,12,8,0.25) 0%, rgba(18,12,8,0.35) 45%, rgba(18,12,8,0.96) 100%),
              radial-gradient(ellipse at 50% 35%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.45) 100%); }
.hero .wrap { display: grid; justify-items: center; text-align: center; gap: 1.25rem; padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4rem); }
.hero .logo { width: min(560px, 86%); filter: drop-shadow(0 10px 18px rgba(0,0,0,0.7)); }
.hero h1 { margin: 0; font-family: var(--font-board); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.2; color: var(--parchment);
  text-wrap: balance; max-width: 26ch; text-shadow: 0 2px 8px rgba(0,0,0,0.9); }
.hero p.lede { margin: 0; max-width: 52ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text); text-shadow: 0 1px 6px rgba(0,0,0,0.95); }
.cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }
.facts { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.6rem;
  font-family: var(--font-board); font-size: 1.05rem; color: var(--parchment); }
.facts li { display: flex; align-items: baseline; gap: 0.45rem; }
.facts b { font-family: var(--font-display); color: var(--lantern); font-size: 1.15rem; }

/* sections */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
section.wood { background: linear-gradient(180deg, var(--wood) 0%, #1c120b 100%); border-top: 1px solid var(--wood-line); border-bottom: 1px solid var(--wood-line); }
.eyebrow { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sea); }
h2 { margin: 0 0 1rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.15; color: var(--parchment); text-wrap: balance; }
h3 { margin: 0 0 0.5rem; font-family: var(--font-board); font-weight: 700; font-size: clamp(1.35rem, 2.4vw, 1.75rem); color: var(--parchment); line-height: 1.2; }
p { margin: 0 0 1rem; max-width: var(--measure); }
.section-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); max-width: 60ch; }

/* framed screenshots: the game's wooden panel frame (9-slice, slice 75) */
.frame { display: block; padding: 0; margin: 0; background: none; cursor: zoom-in; width: 100%;
  border-style: solid; border-color: transparent; border-width: clamp(18px, 2.4vw, 30px);
  border-image: url("img/panel_frame_wood.png") 75 / clamp(18px, 2.4vw, 30px) stretch;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.6)); }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.caption { margin-top: 0.6rem; font-size: 0.95rem; color: var(--muted); }

/* phases: a real sequence, so they are numbered the way the game names them */
.phases { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.phase { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.phase:nth-child(even) .phase-art { order: 2; }
.phase-text { min-width: 0; }
.phase .num { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lantern); margin: 0 0 0.3rem; }
.phase .cost { margin-top: 0.75rem; font-family: var(--font-board); color: var(--sea); font-size: 1rem; }
@media (max-width: 820px) { .phase { grid-template-columns: 1fr; } .phase:nth-child(even) .phase-art { order: 0; } }

/* phones */
.phones-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe2a0, var(--lantern) 55%, #8a5a1c 100%); box-shadow: 0 0 8px rgba(242,182,90,0.55); }
.ticks b { color: var(--parchment); font-weight: 700; }
@media (max-width: 820px) { .phones-grid { grid-template-columns: 1fr; } }

/* what you need + modes */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); margin-top: 1.5rem; }
.mode { padding: 1.25rem 1.4rem 1.1rem; background: rgba(0,0,0,0.25); border: 1px solid var(--wood-line); border-radius: 6px; }
.mode h3 { font-size: 1.35rem; }
.mode .tag { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lantern); margin: 0 0 0.35rem; }
.mode p { font-size: 1.02rem; margin-bottom: 0.6rem; }
@media (max-width: 640px) { .modes { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; gap: 0.6rem; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--wood-line); padding-block: 0.4rem 0.6rem; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--font-board); font-size: 1.2rem; color: var(--parchment); padding: 0.5rem 2rem 0.5rem 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.35rem; font-family: var(--font-display); color: var(--lantern); font-size: 1.4rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0.2rem 0 0.5rem; }

/* footer */
footer { padding-block: 3rem 2.5rem; border-top: 1px solid var(--wood-line); background: #0d0906; font-size: 0.95rem; color: var(--muted); }
footer .wrap { display: grid; gap: 1.5rem; }
.foot-top { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.foot-top img { height: 54px; width: auto; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.contact .addr { font-family: var(--font-body); color: var(--parchment); user-select: all; }
.copy-btn { font: inherit; font-size: 0.85rem; color: var(--lantern); background: none; border: 1px solid var(--wood-line); border-radius: 4px; padding: 0.2rem 0.6rem; cursor: pointer; }
.fine { max-width: 80ch; margin: 0; font-size: 0.88rem; line-height: 1.5; }

/* image viewer */
dialog.viewer { padding: 0; border: 0; background: transparent; max-width: min(1600px, 94vw); width: 94vw; }
dialog.viewer::backdrop { background: rgba(8,5,3,0.88); }
dialog.viewer img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; }
dialog.viewer form { display: flex; justify-content: center; margin-top: 0.75rem; }

/* work-in-progress note */
.wip-note { font-size: 0.98rem; color: var(--muted); font-style: italic; }
.star { color: var(--lantern); text-decoration: none; font-style: normal; font-weight: 700; padding-left: 0.1em; }

/* ── More pages (session 121): footer links, inner-page header, rules, press kit ── */
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; font-family: var(--font-board); font-size: 1rem; }
.foot-links a { color: var(--text); text-decoration: none; }
.foot-links a:hover { color: var(--lantern); }
.page-head { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--wood-line); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("img/hero.jpg") center 45% / cover no-repeat; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,12,8,0.55), rgba(18,12,8,0.95)); }
.page-head .wrap { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3rem); }
.page-head h1 { margin: 0 0 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; color: var(--parchment); text-shadow: 0 2px 8px rgba(0,0,0,0.9); }
.page-head p { color: var(--text); font-size: clamp(1.05rem, 1.6vw, 1.2rem); text-shadow: 0 1px 6px rgba(0,0,0,0.95); }
.page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page .wrap { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.toc { position: sticky; top: 5rem; display: grid; gap: 0.45rem; font-family: var(--font-board); font-size: 1rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--lantern); }
.toc .eyebrow { margin-bottom: 0.2rem; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } .toc { position: static; grid-auto-flow: row; } }
.rules { min-width: 0; }
.rules > section { padding-block: 0 clamp(2rem, 5vw, 3rem); scroll-margin-top: 5rem; }
.rules > section + section { border-top: 1px solid var(--wood-line); padding-top: clamp(2rem, 5vw, 3rem); }
.rules h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.rules h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin-top: 1.4rem; }
.rules ol, .rules ul { margin: 0 0 1rem; padding-left: 1.4rem; max-width: var(--measure); }
.rules li { margin-bottom: 0.45rem; }
.rules li::marker { color: var(--lantern); font-family: var(--font-display); }
.rules b { color: var(--parchment); }
.table-wrap { overflow-x: auto; margin: 0 0 1.2rem; max-width: 100%; }
table.plain { border-collapse: collapse; font-size: 1rem; min-width: 22rem; }
table.plain th, table.plain td { text-align: left; padding: 0.5rem 1rem 0.5rem 0; border-bottom: 1px solid var(--wood-line); vertical-align: top; }
table.plain th { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sea); font-weight: 600; }
table.plain td.n { font-family: var(--font-display); color: var(--lantern); white-space: nowrap; }
.tip { margin: 0 0 1.2rem; padding: 0.9rem 1.1rem; max-width: var(--measure); background: rgba(0,0,0,0.25); border-left: 3px solid var(--lantern); border-radius: 0 6px 6px 0; font-size: 1.02rem; }
.tip b { color: var(--lantern); }
.factsheet { display: grid; grid-template-columns: max-content 1fr; gap: 0.55rem 1.5rem; margin: 0; }
.factsheet dt { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sea); padding-top: 0.2rem; }
.factsheet dd { margin: 0; color: var(--parchment); }
@media (max-width: 520px) { .factsheet { grid-template-columns: 1fr; gap: 0.15rem; } .factsheet dd { margin-bottom: 0.6rem; } }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(1rem, 3vw, 1.75rem); }
.shot { margin: 0; display: grid; gap: 0.5rem; }
.shot a.dl, .assets a.dl { font-size: 0.95rem; }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.asset { display: grid; gap: 0.5rem; align-content: start; padding: 1rem; background: rgba(0,0,0,0.25); border: 1px solid var(--wood-line); border-radius: 6px; }
.asset .thumb { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #0b0705; border-radius: 4px; overflow: hidden; }
.asset .thumb img { max-height: 100%; width: auto; object-fit: contain; }
.asset h3 { font-size: 1.1rem; margin: 0.2rem 0 0; }
.asset p { font-size: 0.95rem; margin: 0; color: var(--muted); }
.big-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.big-dl p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.two-col > * { min-width: 0; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.lost { text-align: center; display: grid; justify-items: center; gap: 1rem; padding-block: clamp(4rem, 12vw, 8rem); }
.lost p { margin-inline: auto; }
.full { min-height: 100vh; min-height: 100dvh; }
.page .wrap > section, .page .two-col > section { padding-block: 0; }
/* Social links (session 121): parchment outline buttons; faded and inert until a link is set in site.js */
.social-slot { display: grid; gap: 0.5rem; }
.social-label { margin: 0; font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sea); }
.social-row { display: flex; gap: 0.75rem; }
.social { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--parchment); background: rgba(0,0,0,0.3); border: 1px solid var(--wood-line); transition: color .15s, border-color .15s, transform .15s; }
.social svg { width: 22px; height: 22px; }
a.social:hover, a.social:focus-visible { color: var(--lantern); border-color: var(--lantern); transform: translateY(-2px); }
.social.soon { opacity: 0.4; cursor: default; }

/* ── Meet the crew: coming soon (session 122) ── */
.crew-soon { display: grid; justify-items: center; text-align: center; gap: 1rem; padding-block: clamp(1rem, 4vw, 2.5rem); }
.crew-soon h2 { margin: 0.5rem 0 0; font-size: clamp(2rem, 5vw, 3rem); }
.crew-soon p { margin: 0 auto; }
.crew-soon .social-slot { justify-items: center; }
.crew-cards { display: flex; justify-content: center; margin-bottom: 0.5rem; }
.crew-cards img { width: clamp(84px, 16vw, 170px); height: auto; filter: drop-shadow(0 10px 16px rgba(0,0,0,0.6)); margin-inline: clamp(-28px, -3vw, -14px); }
.crew-cards img:nth-child(1) { transform: rotate(-12deg) translateY(14px); }
.crew-cards img:nth-child(2) { transform: rotate(-4deg); }
.crew-cards img:nth-child(3) { transform: rotate(4deg); }
.crew-cards img:nth-child(4) { transform: rotate(12deg) translateY(14px); }
