/* Wordbound Games / The Last Lexicon — site styles.
   Mobile-first. Ink-and-gold, matching the game's Cinzel + EB Garamond type. */

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0b0f1c;
  --ink-2: #10162a;
  --ink-3: #172039;
  --ink-4: #1f2a4a;
  --gold: #e8b33c;
  --gold-2: #f4d186;
  --gold-3: #b9842a;
  --parch: #f3e9d2;
  --text: #e9e2d0;
  --muted: #bdb5a3;
  --line: rgba(232, 179, 60, 0.24);
  --line-soft: rgba(243, 233, 210, 0.1);
  --radius: 14px;
  --header-h: 60px;
  --gutter: 16px;
  --display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --serif: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--gold-2); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #fff1cf; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--parch);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- small type helpers ---------- */

.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--parch);
}
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }

.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 132px;
  margin: 0 0 1.4rem;
  color: var(--gold);
}
.ornament::before, .ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.ornament span {
  width: 9px; height: 9px;
  background: currentColor;
  transform: rotate(45deg);
}
.center .ornament { margin-inline: auto; }
.center { text-align: center; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font: 600 0.95rem/1.1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold {
  background: linear-gradient(180deg, #f3cd73, var(--gold) 55%, #cf9628);
  color: #160f02;
  box-shadow: 0 8px 24px rgba(232, 179, 60, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-gold:hover { color: #000; transform: translateY(-1px); }
.btn-ghost {
  background: rgba(11, 15, 28, 0.55);
  color: var(--parch);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: #fff; }

/* store buttons: plain text, not official badges, until the app is live */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  min-width: 0;
  flex: 1 1 200px;
  max-width: 260px;
  padding: 9px 18px 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(243, 233, 210, 0.28);
  background: rgba(11, 15, 28, 0.7);
  color: var(--parch);
  text-decoration: none;
  line-height: 1.15;
}
.store-btn svg { width: 26px; height: 26px; flex: none; color: var(--gold); }
.store-btn small {
  display: block;
  font: 500 0.72rem/1.2 var(--sans);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.store-btn strong {
  display: block;
  font: 600 1.05rem/1.2 var(--sans);
  letter-spacing: 0.01em;
}
a.store-btn { border-color: var(--gold); }
a.store-btn:hover { background: rgba(232, 179, 60, 0.12); color: #fff; }
.store-btn.is-soon { cursor: default; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(8, 11, 21, 0.92), rgba(8, 11, 21, 0.78));
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--parch);
  text-decoration: none;
  font: 600 0.95rem/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand:hover { color: #fff; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  background: transparent;
  color: var(--parch);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 600 0.8rem/1 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle .bars { width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 5px; }
.nav-toggle .bars::after { bottom: 0; }

.site-nav {
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(8, 11, 21, 0.98);
  border-bottom: 1px solid var(--line);
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
.site-nav a {
  display: block;
  padding: 12px 4px;
  color: var(--parch);
  text-decoration: none;
  font: 600 0.9rem/1.2 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-2); }
.no-js .nav-toggle { display: none; }
.no-js .site-nav { position: static; display: block; background: none; border: 0; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav {
    position: static;
    display: block;
    background: none;
    border: 0;
  }
  .site-nav ul { display: flex; gap: 4px; padding: 0; }
  .site-nav a {
    border: 0;
    padding: 10px 10px;
    font-size: 0.78rem;
  }
}

/* ---------- hero ----------
   Phones (<700px): the tall key art sits on top at its natural ratio and the title starts
   below the characters, over the art's fade. Portrait tablets: the wide art on top.
   Landscape >=700px: full-bleed art, text on the left. */

.hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  padding: 0 0 44px;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: -2;
  height: calc(100vw * 1280 / 720);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(11, 15, 28, 0.55) 0, rgba(11, 15, 28, 0) 24vw,
    rgba(11, 15, 28, 0) 70vw, rgba(11, 15, 28, 0.82) 104vw,
    var(--ink) 128vw);
}
.hero-inner { position: relative; padding-top: 96vw; }
.hero .eyebrow { color: var(--gold-2); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.2rem + 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0.04em;
  margin: 0 0 0.25em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff0bf 0%, #f0c25a 48%, #b97f26 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.6));
}
.logo span { display: block; font-size: 1.22em; }
.tagline {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.3;
  color: var(--parch);
  margin: 0 0 0.4em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.hero-sub { color: var(--text); max-width: 34rem; margin-bottom: 1.3rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.hero .stores .store-btn { flex: 1 1 150px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.hero-actions .btn { flex: 1 1 140px; }

@media (max-width: 420px) {
  .hero .store-btn { padding: 8px 12px; gap: 0; }
  .hero .store-btn svg { display: none; }
  .hero-actions .btn { padding-inline: 12px; font-size: 0.82rem; letter-spacing: 0.06em; }
  .hero-actions .btn svg { display: none; }
}

/* portrait tablets */
@media (min-width: 700px) {
  .hero-art { height: calc(100vw * 1080 / 1920); }
  .hero-art img { object-position: 50% 50%; }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(11, 15, 28, 0.55) 0, rgba(11, 15, 28, 0) 12vw,
      rgba(11, 15, 28, 0) 30vw, rgba(11, 15, 28, 0.85) 50vw, var(--ink) 58vw);
  }
  .hero-inner { padding-top: 44vw; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero .stores .store-btn { flex: 0 1 240px; }
}

/* landscape: full bleed */
@media (min-width: 700px) and (min-aspect-ratio: 4/5) {
  .hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 48px) 0 72px;
  }
  .hero-art { height: 100%; bottom: 0; }
  .hero-art img { object-position: 62% 50%; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(11, 15, 28, 0.6) 0%, rgba(11, 15, 28, 0) 18%),
      linear-gradient(90deg, rgba(8, 11, 21, 0.94) 0%, rgba(8, 11, 21, 0.8) 30%, rgba(8, 11, 21, 0.2) 52%, rgba(8, 11, 21, 0) 64%),
      linear-gradient(0deg, var(--ink) 0%, rgba(11, 15, 28, 0) 26%);
  }
  .hero-inner { padding-top: 0; }
  .hero-inner > * { max-width: 560px; }
}

/* ---------- sections ---------- */

.section { padding: 72px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.section-head { margin-bottom: 36px; }
.section-head p { color: var(--muted); max-width: 40rem; }
.center.section-head p { margin-inline: auto; }

@media (min-width: 768px) {
  :root { --gutter: 28px; --header-h: 64px; }
  .section { padding: 104px 0; }
}
@media (min-width: 1200px) {
  :root { --gutter: 36px; }
}

/* trailer */
.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.trailer-note { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }

/* story */
.story {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(232, 179, 60, 0.08), transparent 60%),
    var(--ink);
}
.story-grid { display: grid; gap: 36px; align-items: center; }
.story-copy p { color: var(--text); }
.story-copy .lede { color: var(--parch); }
.story-figure { margin: 0; position: relative; }
.story-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.quote {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-left: 2px solid var(--gold);
  background: rgba(23, 32, 57, 0.6);
  border-radius: 0 10px 10px 0;
}
.quote p {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--parch);
  margin: 0 0 0.4em;
}
.quote cite {
  font: 600 0.75rem/1.3 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
  .story-figure { position: sticky; top: calc(var(--header-h) + 32px); margin-top: 48px; }
}

/* how it plays */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 40px;
  counter-reset: step;
}
.step { text-align: center; }
.step h3 { margin: 22px 0 8px; }
.step h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  margin-right: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.85rem;
  vertical-align: 3px;
}
.step p { color: var(--muted); max-width: 22rem; margin-inline: auto; }
.phone {
  width: min(250px, 70vw);
  margin-inline: auto;
  padding: 7px;
  border-radius: 34px;
  background: linear-gradient(160deg, #23232b, #0c0c10);
  border: 1.5px solid rgba(214, 170, 82, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.phone img {
  width: 100%;
  aspect-ratio: 1290 / 2796;
  object-fit: cover;
  border-radius: 27px;
  background: #000;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .phone { width: min(250px, 100%); }
}
@media (min-width: 1000px) { .steps { gap: 40px; } }

.schools-wrap { margin-top: 72px; }
.schools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.school {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(23, 32, 57, 0.55);
  border: 1px solid var(--line-soft);
}
.school img { width: 48px; height: 48px; grid-row: span 2; }
.school strong {
  font: 600 0.9rem/1.2 var(--display);
  letter-spacing: 0.08em;
  color: var(--parch);
}
.school span { font-size: 0.8rem; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
@media (min-width: 520px) { .schools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 800px) { .schools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .schools { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* realms */
.realms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.realm {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line-soft);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.realm img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.realm-body { padding: 16px 18px 20px; }
.realm-num {
  font: 600 0.72rem/1 var(--display);
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.realm h3 { margin: 8px 0 2px; font-size: 1.2rem; }
.realm .sub { font-family: var(--serif); font-size: 1.08rem; color: var(--gold-2); margin: 0 0 8px; }
.realm p:last-child { margin: 0; color: var(--muted); font-size: 0.95rem; }
.badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11, 15, 28, 0.82);
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font: 600 0.7rem/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (min-width: 640px) { .realms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .realms { grid-template-columns: repeat(6, 1fr); }
  .realm { grid-column: span 2; }
  .realm:nth-child(-n+2), .realm:nth-last-child(-n+2) { grid-column: span 3; }
}
.realms-note { margin-top: 22px; color: var(--muted); text-align: center; font-size: 0.95rem; }

/* characters */
.cast { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.char {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: end;
  padding: 18px 18px 0;
  border-radius: var(--radius);
  background:
    radial-gradient(160px 220px at 56px 70%, rgba(232, 179, 60, 0.18), transparent 70%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.char-art { align-self: end; height: 190px; display: flex; align-items: flex-end; justify-content: center; }
.char-art img { max-height: 190px; width: auto; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45)); }
.char-art.flying img { max-height: none; width: 112px; margin-bottom: 40px; }
.char-art.floating img { max-height: 150px; margin-bottom: 26px; }
.char-body { padding-bottom: 18px; align-self: center; }
.char h3 { margin: 0 0 2px; }
.char .role { font-family: var(--serif); font-size: 1.05rem; color: var(--gold-2); margin: 0 0 8px; }
.char p:last-child { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 760px) {
  .cast { grid-template-columns: repeat(2, 1fr); }
  .char { grid-template-columns: 150px 1fr; gap: 22px; padding: 22px 24px 0; }
  .char-art { height: 230px; }
  .char-art img { max-height: 230px; }
  .char-art.flying img { width: 150px; margin-bottom: 56px; }
  .char-art.floating img { max-height: 170px; margin-bottom: 34px; }
  .foe .char-art img { max-height: 236px; }
}

.foes { margin-top: 64px; }
.foe-grid { display: grid; gap: 18px; }
.foe { grid-template-columns: 112px 1fr; }
.foe .char-art img { max-height: 200px; }
@media (min-width: 760px) { .foe-grid { grid-template-columns: repeat(2, 1fr); } }

.rulers {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ruler { text-align: center; }
.ruler img {
  width: 88px; height: 88px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #2a3560, #121a33);
  border: 1.5px solid rgba(232, 179, 60, 0.6);
  object-fit: cover;
}
.ruler strong { display: block; font: 600 0.82rem/1.25 var(--display); letter-spacing: 0.04em; color: var(--parch); }
.ruler span { display: block; font-family: var(--serif); font-size: 0.98rem; color: var(--muted); line-height: 1.25; }
@media (min-width: 560px) { .rulers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .rulers { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* features */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(23, 32, 57, 0.5);
  border: 1px solid var(--line-soft);
}
.feature svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 12px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; letter-spacing: 0.04em; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }

/* FAQ */
.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
  font: 600 1.02rem/1.35 var(--display);
  letter-spacing: 0.03em;
  color: var(--parch);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 18px; color: var(--text); }
.faq details > div p:last-child { margin-bottom: 0; }

/* coming soon band */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 88px 0;
  border-block: 1px solid var(--line);
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/story/lumenfall-road-1280.webp") center 40% / cover no-repeat;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(11, 15, 28, 0.78), rgba(11, 15, 28, 0.94) 70%);
}
.band .stores { justify-content: center; margin: 26px 0 18px; }
.band h2 { margin-bottom: 0.2em; }
.band .lede { margin: 0; }
.band p { color: var(--text); }

/* studio */
.studio { text-align: center; }
.studio p { color: var(--muted); max-width: 40rem; margin-inline: auto; }

/* footer */
.site-footer {
  padding: 48px 0 40px;
  background: #080b15;
  border-top: 1px solid var(--line-soft);
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-grid { display: grid; gap: 24px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--parch); text-decoration: none; }
.footer-links a:hover { color: var(--gold-2); text-decoration: underline; }
.legal { font-size: 0.8rem; line-height: 1.55; color: #9c968a; margin: 0; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
}

/* ---------- inner pages (support, privacy, terms, press) ---------- */

.page-hero {
  padding: 56px 0 28px;
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(232, 179, 60, 0.1), transparent 70%),
    var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); margin-bottom: 0.3em; }
.page-hero p { color: var(--muted); margin: 0; }
.prose { padding-block: 40px 72px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.01em; margin-top: 1.6em; margin-bottom: 0.4em; color: var(--gold-2); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0.4em 0; }
.prose .summary {
  background: rgba(23, 32, 57, 0.6);
  border-left: 3px solid var(--gold);
  padding: 16px 18px;
  border-radius: 0 10px 10px 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-soft); }
.prose th { color: var(--gold-2); font-weight: 600; width: min(38%, 220px); }
.table-scroll { overflow-x: auto; }

.dl-grid { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dl-grid li { margin: 0; }
.dl-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line-soft);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
}
.dl-card img { width: 100%; background: #000; }
.dl-card .meta { display: block; padding: 10px 12px; line-height: 1.4; }
.dl-card .meta a { display: inline-block; margin-right: 10px; }
.dl-card .thumb {
  display: flex; align-items: flex-end; justify-content: center;
  height: 170px; padding-top: 12px;
  background: radial-gradient(120px 140px at 50% 70%, rgba(232, 179, 60, 0.18), transparent 70%), var(--ink-2);
}
.dl-card .thumb img { width: auto; max-width: 90%; max-height: 158px; background: none; object-fit: contain; }
.dl-grid.shots img { aspect-ratio: 1290 / 2796; object-fit: cover; }
.dl-grid.wide img { aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 640px) {
  .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dl-grid.shots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1000px) { .dl-grid.shots { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

.notfound {
  min-height: 70svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 64px;
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
