/* ═══════════════════════════════════════════════════════════════
   FINAL FANTASY IX — Remastered · concept landing page
   Palette: night blues, parchment, antique gold, crystal cyan
   ═══════════════════════════════════════════════════════════════ */

@import url("../fonts/fonts.css");

:root {
  --night-0: #060a16;
  --night-1: #0a1122;
  --night-2: #101b33;
  --night-3: #1a2a4a;
  --ink: #121a2e;
  --parchment: #f0e6cc;
  --parchment-2: #e6d7b4;
  --parchment-dim: #cfc09b;
  --gold: #c9a227;
  --gold-bright: #e8c35a;
  --gold-soft: #a8862e;
  --crystal: #8fd8e8;
  --crystal-deep: #4f9fb8;
  --rose: #c4708c;
  --text-body: #d8d2be;
  --text-dim: #9a97ae;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "EB Garamond", Georgia, serif;
  --ease-out: cubic-bezier(.22,.9,.28,1);
  --shadow-deep: 0 24px 60px rgba(3, 6, 14, .55);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-body);
  background:
    radial-gradient(1200px 600px at 80% -100px, rgba(79, 159, 184, .12), transparent 60%),
    radial-gradient(900px 500px at 10% 30%, rgba(201, 162, 39, .05), transparent 60%),
    var(--night-1);
  overflow-x: hidden;
}

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

::selection { background: rgba(201, 162, 39, .35); color: #fff; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

/* ── accessibility helpers ─────────────────────────────────── */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 300;
  background: var(--gold); color: var(--night-1);
  font-family: var(--font-display); font-weight: 700;
  padding: .6rem 1rem; border-radius: 4px; text-decoration: none;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

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

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

/* ── shared section chrome ─────────────────────────────────── */
.section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.section-head { max-width: 780px; margin: 0 auto 3.2rem; text-align: center; }
.section-head-center { margin-inline: auto; }

.kicker {
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-bright); margin: 0 0 .9rem;
}

.section-head h2, .section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .5);
}

.lede { font-size: 1.22rem; font-style: italic; color: var(--text-dim); margin: 0; }

.section-ornament, .footer-ornament {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  width: min(1180px, 92vw); margin: 0 auto 3rem;
}
.section-ornament span, .footer-ornament span {
  height: 1px; flex: 0 1 180px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .55));
}
.section-ornament span:last-child, .footer-ornament span:last-child {
  background: linear-gradient(90deg, rgba(201, 162, 39, .55), transparent);
}
.section-ornament svg, .footer-ornament svg {
  width: 14px; height: 14px; fill: var(--gold); filter: drop-shadow(0 0 8px rgba(232, 195, 90, .6));
}

/* ── buttons ───────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 1rem 2.1rem; border-radius: 3px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out),
    border-color .25s, background .25s;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, #8f711f);
  color: #241b04;
  box-shadow: 0 10px 30px rgba(201, 162, 39, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-gold:hover, .btn-gold:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(201, 162, 39, .5), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-glyph { width: 1em; height: 1em; fill: currentColor; }
.btn::after {  /* shine sweep */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(120%); }

.btn-ghost {
  background: rgba(10, 17, 34, .55);
  color: var(--parchment);
  border-color: rgba(240, 230, 204, .4);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--gold-bright); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.btn-play {
  display: inline-flex; width: 1.5em; height: 1.5em; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(232, 195, 90, .18); border: 1px solid rgba(232, 195, 90, .6);
}
.btn-play svg { width: .8em; height: .8em; fill: var(--gold-bright); }

/* ═════════════════ NAV ═════════════════ */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--nav-h);
  transition: background .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(6, 10, 22, .86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgba(201, 162, 39, .25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}
.nav-glow {
  position: absolute; inset: auto 0 -70px; height: 70px; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 10, 22, .55), transparent);
  opacity: 0; transition: opacity .35s;
}
.site-nav.scrolled .nav-glow { opacity: 1; }

.nav-inner {
  width: min(1320px, 96vw); margin-inline: auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-crystal {
  width: 22px; height: 22px; fill: var(--gold);
  filter: drop-shadow(0 0 6px rgba(232, 195, 90, .7));
  animation: crystal-pulse 4s ease-in-out infinite;
}
@keyframes crystal-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(232, 195, 90, .5)); }
  50% { filter: drop-shadow(0 0 12px rgba(232, 195, 90, .95)); }
}
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .22em; color: #fff; white-space: nowrap;
}
.brand-name em { font-style: normal; color: var(--gold-bright); }

.nav-links { display: flex; gap: .4rem; }
.nav-link {
  position: relative;
  font-family: var(--font-display); font-size: .85rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--parchment-dim); text-decoration: none;
  padding: .55rem .85rem; border-radius: 3px;
  transition: color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: .28rem; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: left .3s var(--ease-out), right .3s var(--ease-out), box-shadow .3s;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: var(--gold-bright); }
.nav-link.active::after, .nav-link:hover::after { left: .6rem; right: .6rem; box-shadow: 0 0 10px rgba(232, 195, 90, .8); }

.nav-actions { display: flex; align-items: center; gap: .9rem; }

.sound-toggle {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(16, 27, 51, .55); color: var(--parchment-dim);
  border: 1px solid rgba(240, 230, 204, .22); border-radius: 999px;
  padding: .45rem .95rem .45rem .8rem; cursor: pointer;
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  transition: border-color .25s, color .25s, box-shadow .25s;
}
.sound-toggle:hover { border-color: rgba(232, 195, 90, .55); color: #fff; }
.sound-toggle[aria-pressed="true"] { color: var(--gold-bright); border-color: rgba(232, 195, 90, .6); box-shadow: 0 0 18px rgba(232, 195, 90, .25); }
.sound-icon { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-icon .bar {
  width: 2.5px; height: 30%; border-radius: 2px; background: currentColor;
  transition: height .3s;
}
.sound-toggle:hover .sound-icon .bar { animation: eq 1s ease-in-out infinite; }
.sound-toggle[aria-pressed="true"] .sound-icon .bar { animation: eq 1.1s ease-in-out infinite; }
.sound-toggle[aria-pressed="true"] .sound-icon .bar:nth-child(2) { animation-delay: .18s; }
.sound-toggle[aria-pressed="true"] .sound-icon .bar:nth-child(3) { animation-delay: .36s; }
.sound-toggle[aria-pressed="true"] .sound-icon .bar:nth-child(4) { animation-delay: .54s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

.nav-cta {
  font-family: var(--font-display); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: #241b04; padding: .6rem 1.25rem; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, #8f711f);
  box-shadow: 0 6px 20px rgba(201, 162, 39, .35);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(201, 162, 39, .5); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(240, 230, 204, .25); border-radius: 4px;
  cursor: pointer;
}
.nav-burger span {
  width: 20px; height: 2px; background: var(--parchment);
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--crystal));
  box-shadow: 0 0 12px rgba(232, 195, 90, .8);
  z-index: 1;
}

/* ═════════════════ HERO ═════════════════ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-parallax, .hero-layer { position: absolute; inset: -6% -3%; }
.hero-parallax { pointer-events: none; z-index: -1; will-change: transform; }

.hero-sky {
  background:
    radial-gradient(1100px 700px at 78% 8%, #1c2c52 0%, transparent 55%),
    radial-gradient(900px 620px at 18% 82%, #14213f 0%, transparent 60%),
    linear-gradient(180deg, #0a1122 0%, #0d1730 45%, #101b33 100%);
}
.stars { position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.9), transparent 100%),
    radial-gradient(1px 1px at 28% 12%, rgba(255,255,255,.7), transparent 100%),
    radial-gradient(2px 2px at 45% 28%, rgba(232,195,90,.8), transparent 100%),
    radial-gradient(1px 1px at 62% 10%, rgba(255,255,255,.75), transparent 100%),
    radial-gradient(1.6px 1.6px at 75% 32%, rgba(143,216,232,.85), transparent 100%),
    radial-gradient(1.2px 1.2px at 88% 18%, rgba(255,255,255,.8), transparent 100%),
    radial-gradient(1px 1px at 8% 45%, rgba(255,255,255,.6), transparent 100%),
    radial-gradient(1.8px 1.8px at 35% 52%, rgba(255,255,255,.65), transparent 100%),
    radial-gradient(1.2px 1.2px at 55% 60%, rgba(232,195,90,.55), transparent 100%),
    radial-gradient(1.4px 1.4px at 82% 55%, rgba(255,255,255,.6), transparent 100%),
    radial-gradient(1px 1px at 22% 68%, rgba(143,216,232,.6), transparent 100%),
    radial-gradient(1.6px 1.6px at 68% 75%, rgba(255,255,255,.55), transparent 100%);
  animation: stars-drift 90s linear infinite alternate;
  opacity: .9;
}
@keyframes stars-drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-24px, 18px, 0); } }

.moon {
  position: absolute; border-radius: 50%;
  box-shadow: inset -8px -10px 24px rgba(6, 10, 22, .35);
}
.moon-large {
  width: 150px; height: 150px; right: 16%; top: 14%;
  background: radial-gradient(circle at 38% 34%, #fdf6de 0%, #efe0b0 45%, #cbb47e 100%);
  box-shadow: 0 0 60px rgba(240, 224, 176, .45), 0 0 160px rgba(240, 224, 176, .18),
    inset -10px -12px 28px rgba(6, 10, 22, .3);
}
.moon-small {
  width: 64px; height: 64px; right: 26%; top: 30%;
  background: radial-gradient(circle at 40% 36%, #cfeef4 0%, #9fd3e2 50%, #6fa9bf 100%);
  box-shadow: 0 0 40px rgba(159, 211, 226, .5), 0 0 120px rgba(159, 211, 226, .2);
}

.hero-art { display: grid; place-items: center; }
.hero-art-img {
  width: 118%; max-width: none; object-fit: cover; object-position: 50% 30%;
  opacity: .85;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 58%, transparent 88%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 58%, transparent 88%);
}

.hero-mist {
  background-repeat: repeat;
  opacity: .5; mix-blend-mode: screen;
  will-change: transform;
}
.hero-mist-a {
  background-image: url("../img/bg/mist-soft.webp");
  background-size: 1300px;
  animation: mist-drift-a 120s linear infinite;
}
.hero-mist-b {
  background-image: url("../img/bg/mist-streaks.webp");
  background-size: 900px; opacity: .3;
  animation: mist-drift-b 80s linear infinite;
}
@keyframes mist-drift-a { from { background-position: 0 0; } to { background-position: 1300px -260px; } }
@keyframes mist-drift-b { from { background-position: 0 0; } to { background-position: -900px 180px; } }

.hero-particles { width: 100%; height: 100%; }

.hero-content {
  position: relative; z-index: 2;
  width: min(1180px, 92vw); margin-inline: auto;
  padding: calc(var(--nav-h) + 3rem) 0 6rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-kicker {
  font-family: var(--font-display); font-size: clamp(.72rem, 1.6vw, .88rem);
  font-weight: 600; letter-spacing: .38em; text-transform: uppercase;
  color: var(--crystal); margin: 0 0 1.6rem;
  text-shadow: 0 0 24px rgba(143, 216, 232, .5);
}
.hero-title { margin: 0 0 1.4rem; }
.hero-logo {
  width: clamp(300px, 58vw, 620px);
  filter: drop-shadow(0 6px 40px rgba(0, 0, 0, .65)) drop-shadow(0 0 90px rgba(232, 195, 90, .18));
}
.hero-tagline {
  max-width: 620px; margin: 0 0 2.4rem;
  font-size: clamp(1.1rem, 2.4vw, 1.32rem); font-style: italic;
  color: var(--parchment-2);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .7);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2.6rem; }
.hero-platforms {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem;
  margin: 0; padding: 1rem 0 0; border-top: 1px solid rgba(240, 230, 204, .14);
  width: min(640px, 100%);
}
.hero-platforms li {
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim);
}

.hero-bottom {
  position: absolute; bottom: 1.6rem; left: 0; right: 0;
  display: flex; justify-content: center; z-index: 2;
}
.hero-scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-size: .68rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: var(--parchment-dim);
  opacity: .85;
}
.cue-line {
  width: 1px; height: 44px; overflow: hidden; position: relative;
  background: rgba(240, 230, 204, .18);
}
.cue-line::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: linear-gradient(180deg, transparent, var(--gold-bright));
  animation: cue-fall 2.2s var(--ease-out) infinite;
}
@keyframes cue-fall { 0% { top: -50%; } 70%, 100% { top: 110%; } }

/* load-in choreography */
.reveal-load { opacity: 0; transform: translateY(18px); animation: rise-in 1s var(--ease-out) forwards; }
.hero-title.reveal-load, .hero-title .reveal-load { animation-delay: .15s; }
.hero-kicker.reveal-load { animation-delay: .05s; }
.hero-tagline.reveal-load { animation-delay: .3s; }
.hero-actions.reveal-load { animation-delay: .45s; }
.hero-platforms.reveal-load { animation-delay: .6s; }
@keyframes rise-in { to { opacity: 1; transform: none; } }

/* ═════════════════ STORY ═════════════════ */
.section-story {
  background:
    linear-gradient(180deg, var(--night-1) 0%, #0d1428 30%, var(--night-1) 100%);
}
.section-story::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 400px at 100% 10%, rgba(79, 159, 184, .07), transparent 60%),
    radial-gradient(700px 400px at 0% 90%, rgba(201, 162, 39, .06), transparent 60%);
}
.story-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start; margin-bottom: 4rem;
}
.story-copy p { margin: 0 0 1.4rem; }
.drop-cap::first-letter {
  font-family: var(--font-display); font-weight: 700;
  font-size: 3.6em; line-height: .85; float: left;
  padding: .08em .12em 0 0; color: var(--gold-bright);
  text-shadow: 0 0 24px rgba(232, 195, 90, .35);
}
.story-quote {
  margin: 2rem 0; padding: 1.4rem 1.8rem; position: relative;
  border-left: 2px solid var(--gold); border-radius: 0 6px 6px 0;
  background: linear-gradient(90deg, rgba(201, 162, 39, .08), transparent 80%);
}
.story-quote p {
  margin: 0 0 .4rem; font-size: 1.5rem; font-style: italic; color: #fff;
  font-family: var(--font-body);
}
.story-quote cite { color: var(--gold-bright); font-style: normal; font-family: var(--font-display); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }

.story-media { display: grid; gap: 1.6rem; }
.story-fig {
  margin: 0; position: relative; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(201, 162, 39, .22);
  box-shadow: var(--shadow-deep);
  transform: translateY(0);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.story-fig img { transition: transform 6s var(--ease-out); }
.story-fig:hover { transform: translateY(-6px); box-shadow: 0 34px 80px rgba(3, 6, 14, .7); }
.story-fig:hover img { transform: scale(1.06); }
.story-fig-a { transform: rotate(-1.1deg); }
.story-fig-b { transform: rotate(1.2deg); margin-left: 8%; width: 92%; }
.story-fig-a:hover { transform: rotate(-1.1deg) translateY(-6px); }
.story-fig-b:hover { transform: rotate(1.2deg) translateY(-6px); }
.story-fig figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.2rem .8rem;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 22, .85));
  font-style: italic; font-size: .98rem; color: var(--parchment-2);
}

.story-beats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  counter-reset: none;
}
.beat {
  position: relative; padding: 1.8rem 1.6rem;
  background: linear-gradient(160deg, rgba(16, 27, 51, .9), rgba(10, 17, 34, .92));
  border: 1px solid rgba(201, 162, 39, .18); border-radius: 8px;
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
}
.beat:hover {
  transform: translateY(-5px); border-color: rgba(232, 195, 90, .5);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(232, 195, 90, .2);
}
.beat-num {
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  color: transparent; -webkit-text-stroke: 1px var(--gold);
  display: block; margin-bottom: .6rem;
}
.beat h3 {
  font-family: var(--font-display); font-size: 1.12rem; letter-spacing: .06em;
  color: #fff; margin: 0 0 .6rem;
}
.beat p { margin: 0; font-size: 1rem; color: var(--text-dim); }

/* ═════════════════ CHARACTERS ═════════════════ */
.section-characters {
  background:
    radial-gradient(1000px 500px at 50% 0%, rgba(26, 42, 74, .8), transparent 70%),
    var(--night-0);
}
.roster-featured {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
  margin-bottom: 3.4rem;
}
.char-card {
  position: relative; cursor: pointer;
  background: linear-gradient(175deg, #16223f 0%, #0d1526 70%);
  border: 1px solid rgba(201, 162, 39, .2); border-radius: 10px;
  overflow: hidden; text-align: center;
  transition: transform .45s var(--ease-out), border-color .45s, box-shadow .45s;
}
.char-card:hover, .char-card:focus-visible {
  transform: translateY(-10px);
  border-color: rgba(232, 195, 90, .55);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 40px rgba(232, 195, 90, .12);
}
.char-card-featured { display: flex; flex-direction: column; padding: 2.2rem 1.3rem 1.6rem; }
.char-frame {
  position: absolute; inset: 10px; border-radius: 6px; pointer-events: none;
  border: 1px solid rgba(240, 230, 204, .07);
  transition: border-color .45s;
}
.char-card:hover .char-frame, .char-card:focus-visible .char-frame { border-color: rgba(232, 195, 90, .35); }
.char-render {
  margin: 0 auto; height: 300px; width: auto; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .55));
  transition: transform .55s var(--ease-out), filter .55s;
}
.char-card:hover .char-render, .char-card:focus-visible .char-render {
  transform: translateY(-10px) scale(1.05);
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .6)) drop-shadow(0 0 26px rgba(232, 195, 90, .22));
}
.char-info { margin-top: auto; padding-top: 1.4rem; position: relative; }
.char-role {
  font-family: var(--font-display); font-size: .66rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--crystal);
  margin: 0 0 .45rem;
}
.char-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.18rem; color: #fff; margin: 0 0 .7rem;
}
.char-card-featured .char-name::after {
  content: ""; display: block; width: 44px; height: 2px; margin: .6rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width .45s var(--ease-out);
}
.char-card-featured:hover .char-name::after { width: 90px; }
.char-bio {
  font-size: .95rem; color: var(--text-dim); margin: 0; text-align: left;
  display: none;
}
.char-card-featured .char-bio { display: block; }

.roster-subhead {
  font-family: var(--font-display); font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; font-size: .85rem; color: var(--parchment-dim);
  text-align: center; margin: 0 0 1.8rem;
}
.roster-secondary {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem;
}
.char-card-small { padding: 1.3rem .8rem 1.1rem; }
.char-card-small .char-render { height: 170px; }
.char-card-small .char-name { font-size: .95rem; margin: .8rem 0 .2rem; }
.char-card-small .char-role { font-size: .58rem; letter-spacing: .16em; }
.char-card-rival { border-style: dashed; border-color: rgba(196, 112, 140, .4); }
.char-card-rival .char-role { color: var(--rose); }

/* ═════════════════ FEATURES ═════════════════ */
.section-features {
  background:
    radial-gradient(900px 480px at 15% 12%, rgba(201, 162, 39, .07), transparent 60%),
    radial-gradient(800px 420px at 90% 85%, rgba(79, 159, 184, .08), transparent 60%),
    var(--night-1);
}
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem;
}
.feature-card {
  padding: 1.9rem 1.6rem;
  background: linear-gradient(165deg, rgba(22, 34, 63, .75), rgba(13, 21, 38, .9));
  border: 1px solid rgba(240, 230, 204, .1); border-radius: 10px;
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 195, 90, .45);
  box-shadow: 0 24px 55px rgba(0, 0, 0, .5);
}
.feature-card-wide { grid-column: span 2; background: linear-gradient(150deg, rgba(26, 42, 74, .9), rgba(13, 21, 38, .95)); }
.feature-card-score { grid-column: span 2; }
.feature-icon {
  width: 44px; height: 44px; fill: none; stroke: var(--gold-bright); stroke-width: 1.4;
  stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 12px rgba(232, 195, 90, .35));
  margin-bottom: 1.1rem; transition: filter .4s, transform .4s var(--ease-out);
}
.feature-card:hover .feature-icon { filter: drop-shadow(0 0 20px rgba(232, 195, 90, .7)); transform: scale(1.08); }
.feature-card h3 {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .04em;
  color: #fff; margin: 0 0 .6rem;
}
.feature-card p { margin: 0; font-size: .98rem; color: var(--text-dim); }
.feature-subhead {
  font-family: var(--font-display); font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; font-size: .85rem; color: var(--parchment-dim);
  text-align: center; margin: 3rem 0 1.6rem;
}
.feature-grid-classic .feature-card { background: linear-gradient(165deg, rgba(16, 27, 51, .6), rgba(10, 17, 34, .8)); }

/* ═════════════════ WORLD ═════════════════ */
.section-world {
  background:
    linear-gradient(180deg, var(--night-0), #0b1326 40%, var(--night-0));
  overflow: hidden;
}
.section-world::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(1200px 300px at 50% 100%, rgba(79, 159, 184, .09), transparent 70%);
}
.world-path {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 1.2rem;
  position: relative;
}
.world-stop {
  position: relative; padding: 1.5rem 1.3rem 1.3rem;
  border: 1px solid rgba(143, 216, 232, .16); border-radius: 8px;
  background: linear-gradient(170deg, rgba(13, 23, 44, .85), rgba(8, 13, 26, .9));
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
}
.world-stop::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--crystal); border-radius: 2px;
  box-shadow: 0 0 14px rgba(143, 216, 232, .8);
  transition: box-shadow .4s, transform .4s var(--ease-out);
}
.world-stop:hover { transform: translateY(-6px); border-color: rgba(143, 216, 232, .5); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.world-stop:hover::before { box-shadow: 0 0 26px rgba(143, 216, 232, 1); transform: translateX(-50%) rotate(45deg) scale(1.25); }
.world-stop h3 {
  font-family: var(--font-display); font-size: 1.02rem; letter-spacing: .05em;
  color: var(--crystal); margin: 0 0 .5rem;
}
.world-stop p { margin: 0; font-size: .95rem; color: var(--text-dim); }

/* ═════════════════ MEDIA GALLERY ═════════════════ */
.section-media { background: var(--night-1); }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.gallery-item {
  position: relative; padding: 0; border: 1px solid rgba(240, 230, 204, .12);
  border-radius: 8px; overflow: hidden; cursor: pointer;
  background: #0c1428; aspect-ratio: 16 / 9;
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out), filter .6s;
}
.gallery-item::after {  /* hover shine */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(240, 230, 204, .18) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform .8s var(--ease-out);
  pointer-events: none;
}
.gallery-item:hover, .gallery-item:focus-visible {
  transform: translateY(-5px); border-color: rgba(232, 195, 90, .55);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .55);
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { transform: translateX(130%); }
.gallery-item:hover img { transform: scale(1.07); filter: saturate(1.1); }

.gallery-video { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.video-veil {
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(6, 10, 22, .1), rgba(6, 10, 22, .55));
  transition: background .4s;
}
.gallery-video:hover .video-veil { background: radial-gradient(60% 60% at 50% 50%, rgba(6, 10, 22, 0), rgba(6, 10, 22, .3)); }
.video-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--parchment);
  pointer-events: none; text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.video-badge svg {
  width: 74px; height: 74px; padding: 1.3rem; fill: var(--gold-bright);
  background: rgba(6, 10, 22, .72); border: 1px solid rgba(232, 195, 90, .65); border-radius: 50%;
  box-shadow: 0 0 40px rgba(232, 195, 90, .35);
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.gallery-video:hover .video-badge svg {
  transform: scale(1.12); box-shadow: 0 0 60px rgba(232, 195, 90, .55);
}

/* ═════════════════ BUY ═════════════════ */
.section-buy { background: var(--night-0); padding-top: 0; overflow: hidden; }
.buy-banner {
  height: clamp(220px, 34vw, 380px);
  background-image: linear-gradient(180deg, var(--night-0) 0%, rgba(6, 10, 22, .25) 30%, rgba(6, 10, 22, .55) 75%, var(--night-0) 100%), url("../img/hero-banner.jpg");
  background-size: cover; background-position: 50% 38%;
  border-top: 1px solid rgba(201, 162, 39, .14);
  border-bottom: 1px solid rgba(201, 162, 39, .14);
  box-shadow: inset 0 30px 80px rgba(6, 10, 22, .8), inset 0 -30px 80px rgba(6, 10, 22, .8);
}
.section-buy .container { padding-top: 4.5rem; }
.platform-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem;
  margin-bottom: 3.6rem;
}
.platform-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2rem 1.5rem 1.7rem; text-decoration: none;
  background: linear-gradient(168deg, rgba(22, 34, 63, .8), rgba(10, 17, 34, .92));
  border: 1px solid rgba(240, 230, 204, .12); border-radius: 10px;
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
}
.platform-card:hover, .platform-card:focus-visible {
  transform: translateY(-7px);
  border-color: rgba(232, 195, 90, .55);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55), 0 0 34px rgba(232, 195, 90, .08);
}
.platform-icon {
  width: 52px; height: 52px; margin-bottom: 1.1rem;
  fill: rgba(240, 230, 204, .85); stroke: rgba(240, 230, 204, .85);
  transition: fill .4s, stroke .4s, transform .4s var(--ease-out), filter .4s;
}
.platform-card:hover .platform-icon {
  fill: var(--gold-bright); stroke: var(--gold-bright); transform: scale(1.1);
  filter: drop-shadow(0 0 16px rgba(232, 195, 90, .5));
}
.platform-card h3 {
  font-family: var(--font-display); font-size: 1.08rem; color: #fff;
  margin: 0 0 .35rem; letter-spacing: .04em;
}
.platform-card p { margin: 0 0 1.1rem; font-size: .92rem; color: var(--text-dim); }
.platform-cta {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-bright);
}
.platform-cta svg { width: .85em; height: .85em; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .3s var(--ease-out); }
.platform-card:hover .platform-cta svg { transform: translate(3px, -3px); }

.release-timeline {
  display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between;
  gap: 1rem; padding: 1.8rem 2rem;
  background: linear-gradient(90deg, rgba(16, 27, 51, .55), rgba(10, 17, 34, .75));
  border: 1px solid rgba(201, 162, 39, .18); border-radius: 10px;
  position: relative;
}
.release-timeline::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .5), rgba(201, 162, 39, .5), transparent);
}
.tl-item { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; position: relative; }
.tl-item::before {
  content: ""; width: 9px; height: 9px; transform: rotate(45deg); margin-bottom: .5rem;
  background: var(--gold); border-radius: 2px; box-shadow: 0 0 14px rgba(232, 195, 90, .7);
}
.tl-date {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .08em; color: var(--gold-bright);
}
.tl-event { font-size: .85rem; color: var(--text-dim); max-width: 150px; }

/* ═════════════════ FOOTER ═════════════════ */
.site-footer {
  position: relative; padding: 4rem 0 2.6rem;
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(26, 42, 74, .5), transparent 70%),
    #05080f;
  border-top: 1px solid rgba(201, 162, 39, .22);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr .9fr; gap: 2.5rem;
  padding-bottom: 2.6rem;
}
.footer-logo { width: 210px; margin-bottom: 1.1rem; opacity: .92; }
.footer-brand p { font-size: .98rem; color: var(--text-dim); margin: 0; }
.footer-col h3 {
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold-bright);
  margin: .4rem 0 1rem;
}
.footer-col a {
  display: block; color: var(--text-dim); text-decoration: none;
  font-size: .98rem; padding: .28rem 0; transition: color .25s, transform .25s var(--ease-out);
}
.footer-col a:hover, .footer-col a:focus-visible { color: #fff; transform: translateX(4px); }
.esrb { display: flex; gap: .9rem; align-items: center; }
.esrb-mark {
  display: grid; place-items: center; width: 52px; height: 66px;
  background: #e8e4da; color: #1a1a1a; border: 2px solid #1a1a1a; border-radius: 3px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.7rem;
}
.esrb-text { display: flex; flex-direction: column; font-size: .85rem; color: var(--text-dim); }
.esrb-text strong { color: var(--parchment); font-size: .92rem; }
.footer-legal { border-top: 1px solid rgba(240, 230, 204, .08); padding-top: 1.6rem; }
.footer-legal p { font-size: .8rem; color: #6d7186; margin: 0 0 .6rem; line-height: 1.55; }
.footer-disclaimer { font-style: italic; }

/* ═════════════════ LIGHTBOX ═════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute; inset: 0; background: rgba(4, 6, 13, .92);
  backdrop-filter: blur(8px);
  animation: fade-in .3s var(--ease-out);
}
@keyframes fade-in { from { opacity: 0; } }
.lightbox-stage {
  position: relative; margin: 0; max-width: min(1280px, 92vw);
  animation: lb-pop .35s var(--ease-out);
}
@keyframes lb-pop { from { opacity: 0; transform: scale(.94) translateY(12px); } }
.lightbox-image, .lightbox-video {
  max-width: min(1280px, 92vw); max-height: 78vh;
  border-radius: 6px; border: 1px solid rgba(201, 162, 39, .3);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .8);
  display: block; margin-inline: auto;
}
.lightbox-video { background: #000; }
.lightbox-caption {
  margin-top: 1rem; text-align: center;
  font-style: italic; color: var(--parchment-2); font-size: 1rem;
}
.lightbox-btn {
  position: absolute; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(10, 17, 34, .8); border: 1px solid rgba(240, 230, 204, .25);
  cursor: pointer; transition: border-color .25s, transform .25s var(--ease-out), background .25s;
}
.lightbox-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--parchment); stroke-width: 2.2; stroke-linecap: round; }
.lightbox-btn:hover, .lightbox-btn:focus-visible { border-color: var(--gold-bright); background: rgba(16, 27, 51, .95); transform: scale(1.08); }
.lightbox-prev { left: clamp(8px, 3vw, 40px); top: 50%; margin-top: -26px; }
.lightbox-next { right: clamp(8px, 3vw, 40px); top: 50%; margin-top: -26px; }
.lightbox-close { top: clamp(10px, 3vh, 34px); right: clamp(8px, 3vw, 40px); }

/* ═════════════════ CHARACTER SHEET ═══════════════ */
.char-sheet { position: fixed; inset: 0; z-index: 380; display: grid; place-items: center; padding: 1.2rem; }
.char-sheet[hidden] { display: none; }
.char-sheet-backdrop {
  position: absolute; inset: 0; background: rgba(4, 6, 13, .88); backdrop-filter: blur(8px);
  animation: fade-in .3s var(--ease-out);
}
.char-sheet-card {
  position: relative; display: grid; grid-template-columns: 340px 1fr;
  width: min(860px, 96vw); max-height: 88vh;
  background: linear-gradient(160deg, #16223f, #0c1428);
  border: 1px solid rgba(201, 162, 39, .4); border-radius: 12px;
  box-shadow: var(--shadow-deep), 0 0 60px rgba(201, 162, 39, .1);
  overflow: auto;
  animation: lb-pop .35s var(--ease-out);
}
.char-sheet-art {
  background:
    radial-gradient(300px 400px at 50% 20%, rgba(143, 216, 232, .12), transparent 70%),
    linear-gradient(180deg, #0e1830, #0a1122);
  display: grid; place-items: center; padding: 2rem 1rem;
  border-right: 1px solid rgba(201, 162, 39, .18);
}
.char-sheet-art img { max-height: 460px; width: auto; object-fit: contain;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .6)); }
.char-sheet-body { padding: 2.4rem 2.2rem; }
.char-sheet-body h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem;
  color: #fff; margin: .3rem 0 1rem;
}
.char-sheet-body .char-role { color: var(--crystal); font-size: .72rem; }
.char-sheet-body p { font-size: 1.04rem; }
#sheetFacts {
  display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem;
  margin: 1.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(240, 230, 204, .12);
}
#sheetFacts dt {
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-bright);
  align-self: center;
}
#sheetFacts dd { margin: 0; font-size: .95rem; color: var(--text-dim); }
.char-sheet-close {
  position: absolute; top: .9rem; right: .9rem; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(6, 10, 22, .7); border: 1px solid rgba(240, 230, 204, .25);
  cursor: pointer; display: grid; place-items: center;
  transition: border-color .25s, transform .25s var(--ease-out);
}
.char-sheet-close svg { width: 16px; height: 16px; fill: none; stroke: var(--parchment); stroke-width: 2.4; stroke-linecap: round; }
.char-sheet-close:hover { border-color: var(--gold-bright); transform: rotate(90deg); }

/* ═════════════════ TO TOP ═════════════════ */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 150;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(10, 17, 34, .85); border: 1px solid rgba(201, 162, 39, .4);
  cursor: pointer; opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease-out), border-color .25s, box-shadow .25s;
  backdrop-filter: blur(6px);
}
.to-top svg { width: 20px; height: 20px; fill: var(--gold-bright); }
.to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--gold-bright); box-shadow: 0 0 26px rgba(232, 195, 90, .4); }

/* ═════════════════ SCROLL REVEAL ═════════════════ */
/* image loading states (fade-in on decode) */
img[loading="lazy"]:not([data-loaded="true"]):not([data-error="true"]) {
  opacity: 0;
  transition: opacity .55s ease;
}
img[loading="lazy"][data-loaded="true"] { opacity: 1; }
img[data-error="true"] { opacity: .35; outline: 1px dashed rgba(196, 112, 140, .5); }

.lightbox-image { opacity: 0; transition: opacity .45s ease; }
.lightbox-image.is-loaded { opacity: 1; }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-mist, .stars, .cue-line::after, .brand-crystal { animation: none !important; }
  .hero-art-img { width: 112%; }
  *, *::before, *::after { transition-duration: .001s !important; animation-duration: .001s !important; }
}

/* ═════════════════ RESPONSIVE ═════════════════ */
@media (max-width: 1100px) {
  .roster-secondary { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-wide, .feature-card-score { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .release-timeline { grid-template-columns: repeat(3, 1fr); row-gap: 1.8rem; }
  .release-timeline::before { display: none; }
}

@media (max-width: 920px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(6, 10, 22, .97); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 162, 39, .25);
    padding: .6rem 1.4rem 1.2rem;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease-out), opacity .3s, visibility .3s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { padding: .85rem .4rem; font-size: .95rem; border-bottom: 1px solid rgba(240, 230, 204, .07); }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--gold-bright); }
  .nav-burger { display: flex; }
  .sound-label { display: none; }
  .nav-cta { display: none; }

  .story-grid { grid-template-columns: 1fr; }
  .story-media { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .story-fig-b { margin-left: 0; width: 100%; }
  .story-beats { grid-template-columns: 1fr; }
  .roster-featured { grid-template-columns: repeat(2, 1fr); }
  .world-path { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .char-sheet-card { grid-template-columns: 1fr; max-width: 560px; }
  .char-sheet-art { border-right: 0; border-bottom: 1px solid rgba(201, 162, 39, .18); padding: 1.4rem; }
  .char-sheet-art img { max-height: 300px; }
}

@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .roster-featured { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .char-card-featured { padding: 1.4rem .8rem 1.1rem; }
  .char-render { height: 200px; }
  .char-bio { display: none; }
  .char-card-featured .char-bio { display: none; }  /* compact cards on phones — details in sheet */
  .roster-secondary { grid-template-columns: repeat(2, 1fr); }
  .char-card-small .char-render { height: 140px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-wide, .feature-card-score { grid-column: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-video { grid-column: span 2; }
  .platform-grid { grid-template-columns: 1fr; }
  .release-timeline { grid-template-columns: 1fr 1fr; }
  .world-path { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-platforms li:nth-child(n+5) { display: none; }
  .story-media { grid-template-columns: 1fr; }
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; margin-top: -22px; }
}
