/* Stellar Refrain — website
   A cinematic night sky, layered artwork and light in motion. */

@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-semibold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Libre Caslon Display"; src: url("../fonts/libre-caslon-display.woff2") format("woff2"); font-weight: 400; font-display: swap; }

@property --c { syntax: "<color>"; inherits: true; initial-value: #f6b6d2; }

:root {
  color-scheme: dark;
  --bg: #080b16;
  --bg-deep: #050710;
  --bg-raise: #111626;
  --glass: rgba(19, 34, 55, .55);
  --glass-strong: rgba(14, 26, 45, .78);
  --line: rgba(212, 234, 255, .11);
  --line-strong: rgba(212, 234, 255, .2);
  --ink: #f5f4ff;
  --ink-2: #c3c6da;
  --muted: #9c9fb7;
  --gold: #e7cd99;
  --gold-2: #d3b77e;
  --ice: #a6e8ff;
  --serif: "Libre Caslon Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --max: 1320px;
  --gutter: clamp(20px, 4.6vw, 64px);
  --header-h: 76px;
  --section-y: clamp(76px, 9vw, 140px);
  --accent: #b8afff;
  --accent-hover: #d8d2ff;
  --violet: #8374df;
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; width: 1em; height: 1em; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
::selection { background: rgba(231, 205, 153, .32); color: #fff; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 100; padding: 10px 18px; border-radius: 10px; background: var(--gold); color: #1a1408; font-weight: 600; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-y); }

/* Type ---------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold);
  font: 600 12px/1.4 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
}
.eyebrow svg { width: 11px; height: 11px; }
.display, .display-sm, .display-md { font-family: var(--sans); font-weight: 600; line-height: 1.04; letter-spacing: -.055em; text-wrap: balance; }
.display { font-size: clamp(39px, 4.8vw, 68px); }
.display-sm { font-size: clamp(29px, 3.4vw, 45px); }
.display-md { font-size: clamp(52px, 7vw, 92px); }
.lede { color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; max-width: 56ch; text-wrap: pretty; }

.section-head { display: grid; gap: 22px; }
.section-head.center { justify-items: center; text-align: center; max-width: 860px; margin-inline: auto; }
.section-head.split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; column-gap: clamp(32px, 6vw, 96px); }
.section-head.split > div { display: grid; gap: 22px; }
.section-head.split .lede { padding-bottom: 10px; }

/* Buttons ------------------------------------------------------------------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--sans);
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s, border-color .25s, box-shadow .35s var(--ease), color .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; --h: 54px; }
.btn-primary {
  color: #161329; background: linear-gradient(135deg, #f4f0ff, #c2b8ff);
  border-color: #e7e1ff88;
  box-shadow: 0 0 30px -12px #b7a7ff9c, inset 0 1px #fff;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 48px -12px #b7a7ffd0; }
.btn-primary svg { transition: transform .3s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-secondary { color: var(--ink); background: #141a2b88; border-color: #c4baff38; backdrop-filter: blur(14px); }
.btn-secondary:hover { background: #36304c99; border-color: #d4c7ff88; transform: translateY(-3px); }
.btn-glass {
  color: var(--ink);
  background: rgba(14, 26, 45, .5);
  border-color: rgba(231, 205, 153, .42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn-glass:hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(20, 34, 58, .7); }
.btn-glass svg { transition: transform .35s var(--ease); }
.btn-glass:hover svg { transform: translateX(3px); }
.btn-disabled, .btn:disabled {
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
  border: 1px dashed var(--line-strong);
  cursor: not-allowed;
  box-shadow: none;
}
.link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line-strong);
  transition: color .2s, border-color .2s;
}
.link-btn svg { width: 15px; height: 15px; }
.link-btn:hover { color: var(--ink); border-color: var(--c, var(--gold)); }

/* Header -------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 18px 0 auto; z-index: 50;
  width: min(1240px, 100% - 48px); margin-inline: auto;
  border: 1px solid #bcb6ed26; border-radius: 16px;
  background: #0c1020ba; backdrop-filter: blur(24px) saturate(1.25);
  box-shadow: 0 8px 40px #0003, inset 0 1px #ffffff08;
  transition: background-color .35s, transform .35s var(--ease);
}
.site-header::after { content: ''; position: absolute; bottom: -1px; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg,transparent,#c4b6ff,transparent); transform: scaleX(var(--reading-progress, 0)); transform-origin: left; opacity: .7; }
.site-header.is-scrolled { background: #0c1020ed; transform: translateY(-8px); }
.header-inner { display: flex; align-items: center; gap: 24px; padding-inline: 22px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-crest { width: 32px; height: 32px; color: #d4cbff; filter: drop-shadow(0 0 12px #b6a4ff77); }
.brand-word { display: flex; gap: .23em; font: 500 19px/1 var(--sans); letter-spacing: -.045em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 3px; }
.site-nav a:not(.btn) { padding: 9px 13px; color: var(--ink-2); font-size: 13px; font-weight: 500; border-radius: 8px; transition: color .2s, background-color .2s; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="true"] { background: #b8afff12; color: #fff; }
.nav-cta { --h: 38px; padding-inline: 17px; margin-left: 12px; font-size: 13px; border-radius: 9px; }
.nav-cta svg { width: 15px; height: 15px; }
.menu-btn { display: none; }

/* Hero ---------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(840px, 100svh); display: flex; flex-direction: column;
  background: var(--bg);
}
.hero-panorama { position: absolute; inset: 0; z-index: -4; overflow: hidden; }
.hero-panorama img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; opacity: .55;
  transform: translate3d(calc(var(--drift-x, 0px) * -.3), calc(var(--scene-scroll, 0px) * .6), 0) scale(1.08);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background: linear-gradient(90deg, #080b16 0%, #080b16e8 28%, #080b1680 58%, #080b161a 85%),
    linear-gradient(0deg, #080b16 0%, #080b1640 32%, transparent 65%, #080b1680);
}
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, #080b16 0%,transparent 29%); }
.hero-aurora {
  position: absolute; left: 26%; top: -10%; width: 80%; height: 90%; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse at 60% 45%,#7859c94a,transparent 57%), radial-gradient(ellipse at 30% 70%,#3590ac27,transparent 50%);
  filter: blur(40px); animation: aurora 16s ease-in-out infinite alternate;
}
@keyframes aurora { from { transform: translate(-3%,-4%) rotate(-6deg); } to { transform: translate(6%,6%) rotate(7deg); } }
.hero-inner { position: relative; z-index: 3; padding-top: clamp(170px,19vh,230px); padding-bottom: 48px; pointer-events: none; }
.hero-intro { max-width: 600px; pointer-events: auto; }
.game-label { display: inline-flex; align-items: center; gap: 10px; font: 500 11px/1.4 var(--sans); color: #c4b9f4; letter-spacing: .14em; text-transform: uppercase; }
.game-label svg { width: 13px; filter: drop-shadow(0 0 8px #b4a3ff88); }
.hero h1 { margin: 22px 0; font: 600 clamp(72px,7.5vw,112px)/1.02 var(--sans); letter-spacing: -.075em; }
.hero-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-line > span { display: block; }
.hero h1 em { font-style: normal; color: #d8cfff; background: linear-gradient(110deg,#f6f0ff 10%,#b7a4fc 60%,#bde6fa); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-lede { max-width: 40ch; color: #c2c2d4; font-size: clamp(16px,1.3vw,19px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .btn { --h: 54px; padding-inline: 25px; border-radius: 11px; }
.hero-platforms { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 23px; color: #a7a7be; font-size: 11px; }
.hero-platforms li { display: inline-flex; align-items: center; gap: 7px; }
.hero-platforms svg { width: 13px; height: 13px; }
.hero-companion {
  position: absolute; z-index: 2; top: 108px; bottom: 146px; left: 48%; right: 1%;
  display: flex; align-items: flex-end; justify-content: center;
  transform: translate3d(var(--drift-x,0px), calc(var(--drift-y,0px) + var(--scene-scroll,0px) * -.35), 0);
  transition: transform .6s var(--ease);
}
.hero-portrait { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 12px 70px #0c0c2caa); }
.companion-caption {
  position: absolute; right: 10%; bottom: 50px; display: flex; align-items: center; gap: 32px; padding: 16px 18px;
  background: #0d11267a; border: 1px solid #d6c4ff38; border-radius: 12px; backdrop-filter: blur(20px);
  box-shadow: 0 12px 42px #0004; transition: border-color .3s, transform .4s var(--ease);
}
.companion-caption strong { display: block; font: 500 25px/1.1 var(--sans); letter-spacing: -.04em; }
.companion-caption small { display: block; margin-top: 5px; color: #c7bed9; font-size: 11px; }
.companion-arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #d4c6ff14; border: 1px solid #e4d4ff38; }
.companion-arrow svg { width: 15px; rotate: -35deg; }
.hero-companion:hover .companion-caption { transform: translateY(-4px); border-color: #d6c4ff88; }
.hero-orbits { position: absolute; z-index: 0; width: min(700px,56vw); aspect-ratio: 1; top: 47%; left: 73%; transform: translate(-50%,-50%) rotate(-22deg); pointer-events: none; }
.hero-orbits i { position: absolute; inset: 5%; border: 1px solid #cdb9ff29; border-radius: 50%; animation: orbit 50s linear infinite; box-shadow: inset 0 0 60px #b8afff06,0 0 60px #b8afff06; }
.hero-orbits i::after { content: ''; position: absolute; left: 50%; top: -3px; width: 5px; height: 5px; border-radius: 50%; background: #e7d8ff; box-shadow: 0 0 18px 4px #cdb9ff88; }
.hero-orbits i:nth-child(2) { inset: 13% -10%; transform: rotateX(62deg); animation: orbit-ellipse 38s linear infinite; border-color: #badcfa2e; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes orbit-ellipse { from { transform: rotate(-12deg) rotateX(62deg) rotateZ(0); } to { transform: rotate(-12deg) rotateX(62deg) rotateZ(360deg); } }
.explore-strip { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: auto; padding-block: 20px 36px; }
.portal { position: relative; isolation: isolate; display: flex; align-items: flex-end; gap: 16px; min-height: 118px; padding: 22px; border: 1px solid #b7b1dc29; border-radius: 14px; background: #111629; overflow: hidden; transition: transform .5s var(--ease),border-color .4s,box-shadow .4s; }
.portal-art { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; opacity: .42; transition: transform .8s var(--ease),opacity .5s; }
.portal::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg,#0c1025f0,#0c102533),linear-gradient(0deg,#0c1025b0,transparent); }
.portal::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(220px at var(--glow-x,50%) var(--glow-y,50%), #cab7ff26, transparent); opacity: 0; transition: opacity .3s; }
.portal small { display: block; color: #b6b0cb; font-size: 10px; margin-bottom: 5px; }
.portal strong { font: 500 clamp(15px,1.4vw,19px)/1.3 var(--sans); letter-spacing: -.025em; }
.portal > svg { margin-left: auto; width: 19px; rotate: -35deg; color: #c4baff; transition: transform .4s var(--ease); }
.portal:hover { transform: translateY(-6px); border-color: #b7a6f888; box-shadow: 0 15px 40px #0005; }
.portal:hover .portal-art { transform: scale(1.06); opacity: .6; }
.portal:hover::after { opacity: 1; }
.portal:hover > svg { transform: translateX(4px); }
.starfield { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.hero-stars { z-index: 1; opacity: .8; }
.js .hero-panorama { animation: panorama-enter 2s var(--ease) both; }
.js .hero-portrait { animation: portrait-enter 1.8s .15s var(--ease) both; }
.js .hero-line > span { animation: title-enter 1.2s .16s var(--ease) both; }
.js .hero-line:nth-of-type(3) > span { animation-delay: .3s; }
.js .game-label { animation: rise .9s .05s var(--ease) both; }
.js .hero-lede { animation: rise 1s .4s var(--ease) both; }
.js .hero-actions { animation: rise 1s .52s var(--ease) both; }
.js .hero-platforms { animation: rise 1s .64s var(--ease) both; }
.js .companion-caption { animation: rise 1s .8s var(--ease) backwards; }
.js .portal { animation: rise 1s .7s var(--ease) backwards; }
.js .portal:nth-child(2) { animation-delay: .8s; }
.js .portal:nth-child(3) { animation-delay: .9s; }
@keyframes title-enter { from { opacity: 0; transform: translateY(110%) rotate(3deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes portrait-enter { from { opacity: 0; transform: translateY(38px) scale(1.045); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes panorama-enter { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } }

/* Reveal -------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Story --------------------------------------------------------------------- */
.story { background: radial-gradient(ellipse at 10% 35%,#26234535,transparent 60%),var(--bg); }
.story-reader { margin-top: clamp(32px,4vw,56px); background: linear-gradient(135deg,#14192c,#0d1020); border: 1px solid #b9b2e42e; border-radius: 20px; overflow: hidden; box-shadow: 0 35px 90px -50px #000; }
.story-reader-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.story-caption { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: #d9d5ec; }
.story-caption svg { width: 16px; height: 16px; color: var(--accent); }
.story-skip { color: var(--muted); font-size: 12px; padding-block: 5px; }
.story-skip:hover { color: var(--accent); }
.story-tabs { position: relative; display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); padding-inline: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.story-tab { position: relative; display: grid; gap: 5px; justify-items: start; padding: 16px 10px; color: var(--muted); font: 500 12px/1.4 var(--sans); white-space: nowrap; transition: color .3s, background-color .3s; }
.story-tab span { color: #9292ac; font-size: 10px; font-variant-numeric: tabular-nums; }
.story-tab::after { content: ''; position: absolute; bottom: 0; left: 10px; right: 10px; height: 2px; background: linear-gradient(90deg,#b5a5f5,#b8e1ed); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); box-shadow: 0 0 14px #b8afff55; }
.story-tab:hover { color: #fff; }
.story-tab[aria-selected="true"] { color: #fff; background: linear-gradient(0deg,#b8afff10,transparent); }
.story-tab[aria-selected="true"] span { color: var(--accent); }
.story-tab[aria-selected="true"]::after { transform: scaleX(1); }
.story-tab:focus-visible { outline-offset: -4px; }
.story-scene { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); align-items: center; gap: clamp(24px,3vw,46px); padding: clamp(20px,3vw,42px); min-height: 450px; }
.story-scene + .story-scene { border-top: 1px solid var(--line); }
.is-enhanced .story-scene { border-top: 0; }
.scene-heading .eyebrow { font-size: 10px; letter-spacing: .14em; color: var(--accent); }
.scene-heading h3 { margin-top: 10px; font: 500 clamp(30px,3vw,43px)/1.08 var(--sans); letter-spacing: -.05em; text-wrap: balance; }
.story-art { overflow: hidden; border-radius: 12px; background: #151c30; border: 1px solid #e0d4ff1c; }
.story-art img { width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; }
.story-copy { display: grid; justify-items: start; gap: 17px; }
.story-copy p { color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.story-copy .link-btn { color: var(--accent); }
.is-enhanced .story-scene:not([hidden]) .story-art img { animation: scene-picture 1.2s var(--ease) both; }
.is-enhanced .story-scene:not([hidden]) .scene-heading { animation: scene-copy .7s .08s var(--ease) both; }
.is-enhanced .story-scene:not([hidden]) .story-copy > p { animation: scene-copy .7s .16s var(--ease) both; }
.is-enhanced .story-scene:not([hidden]) .story-copy > p:nth-of-type(2) { animation-delay: .25s; }
@keyframes scene-picture { from { opacity: 0; transform: scale(1.06); filter: blur(5px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes scene-copy { from { opacity: 0; transform: translateY(16px); filter: blur(3px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
.story-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 26px; border-top: 1px solid var(--line); background: #080b163d; }
.story-controls button { display: inline-flex; align-items: center; gap: 12px; padding: 11px 17px; min-height: 42px; border: 1px solid var(--line-strong); border-radius: 9px; font: 500 13px/1.2 var(--sans); transition: border-color .3s, background-color .3s; }
.story-controls .story-next { color: #1a1731; background: #d0c7fa; border-color: #d0c7fa; }
.story-controls button:hover:not(:disabled) { border-color: #d0c7fa; }
.story-controls button:disabled { opacity: .3; cursor: default; }
.story-position { color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.story-position-total { color: var(--muted); margin-left: 5px; }

.arc { margin-top: clamp(96px, 11vw, 160px); }
.arc-head { display: flex; align-items: end; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.arc-head > div { display: grid; gap: 14px; }
.arc-head > p { color: var(--muted); max-width: 46ch; }
.arc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.chapter { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-raise); transition: border-color .4s, transform .6s var(--ease); }
.chapter:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.chapter-media { aspect-ratio: 16 / 10; overflow: hidden; }
.chapter-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.chapter:hover .chapter-media img { transform: scale(1.05); }
.chapter-body { display: grid; gap: 8px; padding: 24px 26px 28px; }
.chapter-no { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.chapter h4 { font: 400 30px/1.1 var(--serif); }
.chapter-body > p:last-child { color: var(--muted); font-size: 15px; }

/* Stellans ------------------------------------------------------------------ */
.stellans { background: linear-gradient(180deg, var(--bg) 0%, #0b1527 50%, var(--bg) 100%); overflow: hidden; }
.spotlight-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: clamp(48px, 6vw, 80px); }

.roster { display: flex; align-items: center; gap: 10px; min-width: 0; }
html:not(.js) .roster, html:not(.js) .spotlight-arrows, html:not(.js) .pose-switch { display: none; }
.roster-list {
  display: flex; gap: 10px; min-width: 0;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 6px 4px; margin: -6px -4px;
}
.roster-list::-webkit-scrollbar { display: none; }
.roster-tab {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 6px 22px 6px 6px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  color: var(--muted); text-align: left; scroll-snap-align: start;
  transition: border-color .3s, background-color .3s, transform .35s var(--ease);
}
.roster-tab img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  filter: saturate(.55) brightness(.8);
  transition: filter .3s, box-shadow .35s var(--ease);
}
.roster-text { display: grid; gap: 3px; }
.roster-name { color: var(--ink-2); font: 400 20px/1.05 var(--serif); transition: color .3s; }
.roster-role { color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; transition: color .3s; }
.roster-tab:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.roster-tab:hover img { filter: none; }
.roster-tab[aria-selected="true"] { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.roster-tab[aria-selected="true"] img { filter: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--c), 0 6px 20px -6px var(--c); }
.roster-tab[aria-selected="true"] .roster-name { color: var(--ink); }
.roster-tab[aria-selected="true"] .roster-role { color: var(--c); }
.roster-more {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px;
  margin-left: auto; padding: 6px 22px 6px 6px;
  border-radius: 999px; border: 1px dashed rgba(231, 205, 153, .4);
  color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: border-color .3s, color .3s, background-color .3s;
}
.roster-more-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(231, 205, 153, .1); color: var(--gold); }
.roster-more-icon svg { width: 16px; height: 16px; animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.roster-more:hover { border-color: var(--gold); color: var(--ink); background: rgba(231, 205, 153, .06); }

.spotlight {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 30px; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 70% at 28% 62%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%),
    linear-gradient(160deg, #111d33 0%, #0b1426 60%, #0a1222 100%);
  transition: --c .8s var(--ease);
}
.spotlight-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.spotlight-backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: .3; transform: scale(1.1); transition: opacity .6s var(--ease); -webkit-mask-image: linear-gradient(90deg, #000 25%, rgba(0, 0, 0, .25) 75%); mask-image: linear-gradient(90deg, #000 25%, rgba(0, 0, 0, .25) 75%); }
.spotlight-backdrop img.is-swapping { opacity: 0; }
.spotlight::before {
  content: ""; position: absolute; z-index: -1; left: 28%; top: 54%; width: min(640px, 70vw); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  box-shadow: 0 0 0 46px color-mix(in srgb, var(--c) 4%, transparent), 0 0 0 47px color-mix(in srgb, var(--c) 14%, transparent);
  pointer-events: none;
}
.spotlight-panels { display: grid; }
.stellan {
  grid-area: 1 / 1;
  position: relative;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center;
  min-height: clamp(560px, 74vh, 720px);
}
.js .stellan { visibility: hidden; opacity: 0; transition: opacity .5s var(--ease), visibility 0s .5s; }
.js .stellan.is-active { visibility: visible; opacity: 1; transition: opacity .6s var(--ease), visibility 0s; }
.stellan-no { position: absolute; right: clamp(20px, 3vw, 44px); top: clamp(4px, 1vw, 16px); font: 400 clamp(120px, 15vw, 220px)/1 var(--serif); color: rgba(244, 238, 227, .035); pointer-events: none; user-select: none; }

.stellan-figure { position: relative; align-self: stretch; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: end; justify-items: center; gap: 14px; padding: 28px 0 24px; }
.stellan-poses { position: relative; height: clamp(460px, 62vh, 620px); aspect-ratio: 2 / 3; }
.stellan-pose { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; transition: opacity .35s var(--ease); }
.stellan-pose.is-leaving { opacity: 0; }
.js .stellan.is-active .stellan-poses { animation: figureIn 1s var(--ease) both; }
@keyframes figureIn { from { opacity: 0; transform: translateX(-28px) scale(.98); } to { opacity: 1; transform: none; } }
.js .stellan.is-active .stellan-poses .stellan-pose { animation: float 7s ease-in-out 1s infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

.pose-switch {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 2px;
  padding: 4px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(8, 14, 27, .66);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  white-space: nowrap;
}
.pose-label { padding: 0 10px 0 12px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.pose-switch button { height: 32px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); font-size: 13px; font-weight: 500; transition: background-color .2s, color .2s; }
.pose-switch button:hover { color: var(--ink); background: rgba(255, 255, 255, .07); }
.pose-switch button[aria-pressed="true"] { color: #121a2a; background: var(--c); }

.stellan-info { position: relative; display: grid; justify-items: start; gap: 0; padding: clamp(36px, 4vw, 56px) clamp(28px, 5vw, 80px) clamp(88px, 8vw, 100px) clamp(12px, 2vw, 24px); }
.js .stellan.is-active .stellan-info > * { animation: rise .9s var(--ease) both; }
.js .stellan.is-active .stellan-info > :nth-child(2) { animation-delay: .06s; }
.js .stellan.is-active .stellan-info > :nth-child(3) { animation-delay: .12s; }
.js .stellan.is-active .stellan-info > :nth-child(4) { animation-delay: .18s; }
.js .stellan.is-active .stellan-info > :nth-child(5) { animation-delay: .24s; }
.js .stellan.is-active .stellan-info > :nth-child(6) { animation-delay: .3s; }
.js .stellan.is-active .stellan-info > :nth-child(7) { animation-delay: .36s; }
.stellan-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.class-badge {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px 0 10px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--ink); font-size: 13px; font-weight: 500;
}
.class-badge svg { width: 15px; height: 15px; color: var(--c); }
.stellan-role { color: var(--c); font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.stellan-name { margin-top: 16px; font: 400 clamp(60px, 7vw, 108px)/.92 var(--serif); letter-spacing: -.02em; }
.stellan-epithet { margin-top: 10px; color: var(--c); font: 400 clamp(20px, 1.8vw, 26px)/1.3 var(--serif); }
.stellan-quote { position: relative; margin-top: 24px; padding-left: 22px; border-left: 2px solid color-mix(in srgb, var(--c) 70%, transparent); }
.stellan-quote p { color: var(--ink); font: 400 clamp(19px, 1.6vw, 23px)/1.45 var(--serif); max-width: 34ch; text-wrap: pretty; }
.stellan-bio { margin-top: 22px; color: var(--ink-2); font-size: 16px; line-height: 1.75; max-width: 52ch; }
.stellan-facts { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 28px; width: 100%; max-width: 560px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.stellan-facts dt { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.stellan-facts dd { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.stellan-facts dd strong { display: block; margin-bottom: 4px; color: var(--ink); font: 400 21px/1.2 var(--serif); }
.stellan-facts > div:last-child dd { color: var(--ink); font-size: 15px; font-weight: 500; }
.stellan-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; width: 100%; max-width: 560px; margin-top: 26px; }
.traits { display: flex; flex-wrap: wrap; gap: 8px; }
.traits li { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }

.spotlight-arrows { position: absolute; right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 32px); z-index: 3; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; letter-spacing: .14em; }
.spotlight-count b { color: var(--ink); font: 400 20px/1 var(--serif); letter-spacing: 0; }
.arrow-btn {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(8, 14, 27, .5); color: var(--ink);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color .2s, background-color .2s, transform .3s var(--ease);
}
.arrow-btn svg { width: 18px; height: 18px; }
.arrow-prev svg { transform: rotate(180deg); }
.arrow-btn:hover { border-color: var(--c); background: rgba(20, 34, 58, .8); transform: scale(1.06); }

html:not(.js) .stellan { border-bottom: 1px solid var(--line); }

.more-stellans {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 4vw, 52px) clamp(28px, 5vw, 72px) 0 clamp(20px, 3vw, 40px);
  border-radius: 30px; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 55% 75% at 32% 100%, rgba(120, 155, 225, .2), transparent 70%),
    linear-gradient(160deg, #101c32 0%, #0b1426 70%);
}
.more-art { position: relative; align-self: end; }
.more-art img { width: 100%; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
.more-art::before {
  content: ""; position: absolute; inset: -6% 0 30%; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 18%, #f3dfb4, transparent),
    radial-gradient(1.2px 1.2px at 22% 6%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 41% 14%, #f3dfb4, transparent),
    radial-gradient(1.2px 1.2px at 57% 2%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 73% 16%, #f3dfb4, transparent),
    radial-gradient(1.2px 1.2px at 90% 8%, #fff, transparent);
  animation: twinkle 3.6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
.more-copy { display: grid; justify-items: start; gap: 18px; padding-bottom: clamp(32px, 4vw, 52px); }
.more-copy > p:not(.eyebrow) { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; max-width: 44ch; }
.more-copy .link-btn svg { width: 16px; height: 16px; }

/* Worlds -------------------------------------------------------------------- */
.world { margin-top: clamp(56px, 7vw, 96px); }
.world + .world { margin-top: clamp(72px, 9vw, 128px); }
.world-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(540px, 76vh, 780px); border-radius: 30px; border: 1px solid var(--line); background: var(--bg-raise); }
.world-media { position: absolute; inset: -9% 0; z-index: -2; }
.world-media img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0), 0); will-change: transform; }
.world-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(6, 11, 22, .95) 0%, rgba(6, 11, 22, .55) 34%, rgba(6, 11, 22, 0) 62%), linear-gradient(90deg, rgba(6, 11, 22, .7) 0%, rgba(6, 11, 22, 0) 55%);
}
.world-alt .world-hero::before { background: linear-gradient(0deg, rgba(6, 11, 22, .95) 0%, rgba(6, 11, 22, .5) 34%, rgba(6, 11, 22, 0) 62%), linear-gradient(270deg, rgba(6, 11, 22, .72) 0%, rgba(6, 11, 22, 0) 55%); }
.world-copy { display: grid; justify-items: start; gap: 18px; max-width: 640px; padding: clamp(28px, 5vw, 64px); }
.world-alt .world-copy { margin-left: auto; }
.world-copy > p:not(.eyebrow) { color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; max-width: 50ch; }
.world-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; justify-self: stretch; }
.world-facts li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(8, 14, 27, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink-2); font-size: 13px; }
.postcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 14px; }
.postcard { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-raise); text-align: left; }
.postcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .4s; filter: brightness(.85); }
.postcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 11, 22, .85), rgba(6, 11, 22, 0) 55%); pointer-events: none; }
.postcard span { position: absolute; left: 18px; bottom: 14px; z-index: 1; font: 400 20px/1.2 var(--serif); }
.postcard svg { position: absolute; top: 12px; right: 12px; z-index: 1; width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: rgba(8, 14, 27, .6); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease); }
.postcard:hover img, .postcard:focus-visible img { transform: scale(1.06); filter: none; }
.postcard:hover svg, .postcard:focus-visible svg { opacity: 1; transform: none; }

/* Gameplay ------------------------------------------------------------------ */
.gameplay { background: radial-gradient(ellipse 70% 50% at 70% 55%, rgba(120, 150, 220, .12), transparent 70%), var(--bg); }
.features { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(56px, 7vw, 88px); }
.feature-tabs { display: grid; gap: 6px; }
.feature-tab {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px;
  padding: 20px 22px 22px 18px;
  border-radius: 18px; border: 1px solid transparent;
  text-align: left; color: var(--muted);
  transition: background-color .35s, border-color .35s, color .35s;
}
.feature-tab:hover { background: rgba(255, 255, 255, .03); color: var(--ink-2); }
.feature-tab[aria-selected="true"] { background: var(--glass); border-color: var(--line); color: var(--ink-2); }
.feature-no { padding-top: 4px; color: var(--gold-2); font: 400 17px/1 var(--serif); opacity: .6; }
.feature-tab[aria-selected="true"] .feature-no { opacity: 1; }
.feature-text strong { display: block; color: var(--ink); font: 400 clamp(22px, 1.9vw, 27px)/1.2 var(--serif); opacity: .7; transition: opacity .3s; }
.feature-tab[aria-selected="true"] .feature-text strong, .feature-tab:hover .feature-text strong { opacity: 1; }
.feature-text > span { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 15px; line-height: 1.65; transition: max-height .6s var(--ease), opacity .4s, margin .5s var(--ease); }
.feature-tab[aria-selected="true"] .feature-text > span { max-height: 12em; opacity: 1; margin-top: 10px; }
.feature-progress { position: absolute; left: 70px; right: 22px; bottom: 0; height: 2px; overflow: hidden; border-radius: 2px; opacity: 0; }
.feature-tab[aria-selected="true"] .feature-progress { opacity: 1; }
.feature-progress i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform: scaleX(0); transform-origin: left; }
.features.is-auto .feature-tab[aria-selected="true"] .feature-progress i { animation: progress 7s linear forwards; }
.features.is-paused .feature-tab[aria-selected="true"] .feature-progress i { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

.feature-panels { position: relative; display: grid; }
.feature-panels::before { content: ""; position: absolute; inset: 8% 6%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(166, 200, 255, .2), transparent); filter: blur(40px); }
.screen { grid-area: 1 / 1; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-strong); background: #0b1424; box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9), 0 30px 60px -40px rgba(80, 110, 170, .4); }
.js .screen:not([hidden]) { animation: screenIn .8s var(--ease) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.screen-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.screen-bar span { margin-left: 12px; color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.screen img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); }
.stats li { display: grid; gap: 8px; align-content: start; padding: 32px 24px 0 0; }
.stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.stats strong { color: var(--gold); font: 400 clamp(48px, 5vw, 72px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 15px; max-width: 22ch; }
.stats-note { margin-top: 20px; color: var(--muted); font-size: 13px; }

/* Promise ------------------------------------------------------------------- */
.promise { background: radial-gradient(ellipse 60% 55% at 50% 40%, rgba(231, 205, 153, .08), transparent 70%), var(--bg); }
.pledges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(56px, 7vw, 88px); }
.pledge {
  position: relative; overflow: hidden;
  display: grid; justify-items: start; align-content: start; gap: 14px;
  padding: 36px 32px 40px;
  border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(25, 40, 66, .55), rgba(14, 24, 42, .35));
}
.pledge::before { content: ""; position: absolute; top: -40%; left: -20%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(231, 205, 153, .12), transparent); pointer-events: none; }
.pledge img { width: 92px; height: 92px; margin: -6px 0 8px -8px; filter: drop-shadow(0 10px 24px rgba(166, 200, 255, .28)); animation: bob 6s ease-in-out infinite; }
.pledge:nth-child(2) img { animation-delay: -2s; }
.pledge:nth-child(3) img { animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
.pledge h3 { font: 400 28px/1.15 var(--serif); }
.pledge p { color: var(--ink-2); font-size: 16px; line-height: 1.7; }

/* Download ------------------------------------------------------------------ */
.download { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(120px, 14vw, 200px); background: var(--bg-deep); }
.download-media { position: absolute; inset: 0; z-index: -3; }
.download-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%); }
.download::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 60% 60% at 50% 55%, rgba(7, 12, 24, .82), rgba(7, 12, 24, .35) 70%, rgba(7, 12, 24, .1)); }
.download-inner { position: relative; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin: clamp(48px, 6vw, 72px) auto 0; }
.platform {
  display: grid; gap: 0;
  padding: 28px 28px 30px;
  border-radius: 24px; border: 1px solid var(--line-strong);
  background: rgba(10, 19, 35, .68);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.platform-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.platform-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.platform-icon svg { width: 26px; height: 26px; }
.platform h3 { font: 400 28px/1.1 var(--serif); }
.platform-head p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.release-state { align-self: start; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(166, 232, 255, .3); color: var(--ice); font-size: 12px; font-weight: 500; white-space: nowrap; }
.platform-reqs { display: grid; gap: 8px; margin: 24px 0 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.platform-reqs li { display: flex; align-items: center; gap: 10px; }
.platform-reqs li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-2); flex-shrink: 0; }
.download-actions { display: flex; justify-content: center; margin-top: 28px; }
.download-actions .btn { white-space: normal; text-align: center; padding-block: 14px; }
.download-note { margin-top: 30px; text-align: center; color: var(--muted); font-size: 14px; letter-spacing: .04em; }

/* FAQ ----------------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  list-style: none; cursor: pointer;
  font: 400 clamp(21px, 1.9vw, 26px)/1.3 var(--serif);
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--gold); }
.faq-icon { position: relative; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .45s var(--ease), border-color .3s, background-color .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.faq-icon::after { rotate: 90deg; }
.faq-list details[open] .faq-icon { transform: rotate(45deg); border-color: var(--gold); background: rgba(231, 205, 153, .1); color: var(--gold); }
.faq-answer { padding: 0 64px 28px 0; }
.faq-answer p { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; max-width: 62ch; }
.faq-list details[open] .faq-answer { animation: rise .6s var(--ease); }

/* Footer -------------------------------------------------------------------- */
.site-footer { position: relative; padding-top: clamp(72px, 8vw, 104px); border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), var(--bg-deep)); }
.site-footer { overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px 64px; }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.brand-lg .brand-crest { width: 40px; height: 40px; }
.brand-lg .brand-word { font-size: 15px; }
.footer-brand > p { color: var(--muted); font: 400 22px/1.3 var(--serif); }
.footer-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 32px clamp(40px, 6vw, 88px); }
.footer-nav div { display: grid; gap: 10px; align-content: start; }
.footer-nav p { margin-bottom: 6px; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.footer-nav a { color: var(--ink-2); font-size: 15px; transition: color .2s; }
.footer-nav a:hover { color: var(--ink); }
.footer-mark {
  margin-top: clamp(48px, 6vw, 80px);
  font: 400 clamp(28px, 8.9vw, 132px)/.8 var(--serif);
  letter-spacing: .04em; text-transform: uppercase; text-align: center; white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(231, 205, 153, .2), rgba(231, 205, 153, 0) 85%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none; pointer-events: none;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 0; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-bottom a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.footer-bottom a svg { width: 14px; height: 14px; rotate: -90deg; transition: translate .3s var(--ease); }
.footer-bottom a:hover { color: var(--ink); }
.footer-bottom a:hover svg { translate: 0 -3px; }

/* Lightbox ------------------------------------------------------------------ */
.lightbox { width: min(1440px, 94vw); max-width: none; max-height: 92vh; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.lightbox::backdrop { background: rgba(4, 8, 16, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox[open] { animation: zoomIn .5s var(--ease); }
.lightbox[open]::backdrop { animation: fade .4s ease; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } }
.lightbox figure { display: grid; gap: 14px; justify-items: center; }
.lightbox img { max-height: calc(92vh - 48px); width: auto; border-radius: 14px; box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
.lightbox figcaption { color: var(--ink-2); font: 400 18px/1.3 var(--serif); }
.lightbox-close { position: fixed; top: 20px; right: 20px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(8, 14, 27, .7); transition: border-color .2s, transform .3s var(--ease); }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-close:hover { border-color: var(--gold); transform: rotate(90deg); }

/* Section depth ------------------------------------------------------------ */
.eyebrow { letter-spacing: .16em; font-size: 11px; color: var(--accent); }
.section-head { gap: 18px; }
.section-head.split > div { gap: 18px; }
.arc { margin-top: clamp(60px,7vw,100px); }
.chapter { box-shadow: 0 18px 45px -30px #000; }
.chapter h4, .feature-text strong, .pledge h3, .platform h3 { font: 500 clamp(21px,2vw,28px)/1.15 var(--sans); letter-spacing: -.04em; }
.chapter-no { font-size: 10px; letter-spacing: .15em; }
.stellans { background: radial-gradient(ellipse at 15% 30%,#25203f65,transparent 60%),#0b0e1b; border-block: 1px solid var(--line); }
.worlds { background: var(--bg); }
.world-hero { min-height: clamp(420px,46vw,620px); }
.gameplay { background: radial-gradient(ellipse at 65% 45%,#32295045,transparent 65%),#0b0e1b; border-block: 1px solid var(--line); }
.feature-tab[aria-selected="true"] { box-shadow: 0 5px 24px -12px #000; background: #b8afff0c; border-color: #b8afff25; }
.feature-no { font: 500 12px/1.5 var(--sans); color: var(--accent); }
.feature-progress i { background: linear-gradient(90deg,#9e8cef,#beeaff); }
.screen { box-shadow: 0 40px 90px -40px #000, 0 0 80px -45px #9984ed88; }
.screen-bar span { color: #bdc3d5; }
.stats strong { font-family: var(--sans); font-weight: 500; letter-spacing: -.07em; color: #cbc0f2; }
.promise { background: radial-gradient(ellipse at 50% 50%,#2e23472b,transparent 70%),var(--bg); }
.pledge { border-radius: 19px; background: linear-gradient(160deg,#191c30,#101320); }
.pledge img { animation: none; }
.download { padding-block: var(--section-y); }
.faq { background: #0b0e1b; }
.faq-list summary { font: 500 clamp(18px,1.6vw,22px)/1.35 var(--sans); letter-spacing: -.035em; }
.site-footer { background: linear-gradient(180deg,#0b0e1b,#070913); }
.brand-lg .brand-word { font-size: 22px; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(72px,8.4vw,95px); }
  .hero-intro { max-width: 54%; }
  .hero-companion { left: 49%; right: -8%; }
  .companion-caption { right: 18%; }
  .portal { padding: 18px; }
}
@media (max-width: 760px) {
  .site-header { inset: 12px 0 auto; width: calc(100% - 24px); border-radius: 13px; }
  .header-inner { padding-inline: 14px; }
  .hero { min-height: 0; }
  .hero-inner { padding-top: 136px; padding-bottom: 12px; }
  .hero-intro { max-width: 100%; }
  .hero h1 { font-size: clamp(58px,10.5vw,80px); }
  .hero-lede { max-width: 39ch; font-size: 16px; }
  .hero-panorama { top: 220px; }
  .hero-panorama img { object-position: 65% 60%; opacity: .55; }
  .hero::before { background: linear-gradient(180deg,#080b16 2%,#080b16e8 30%,#080b161a 70%,#080b16); }
  .hero-aurora { left: -20%; top: 25%; width: 140%; height: 55%; }
  .hero-companion { position: relative; top: auto; bottom: auto; left: auto; right: auto; height: clamp(380px,70vw,540px); width: 100%; margin-top: 8px; }
  .hero-portrait { height: 100%; }
  .companion-caption { right: 8%; bottom: 40px; padding: 13px 15px; gap: 30px; }
  .companion-caption strong { font-size: 22px; }
  .hero-orbits { top: auto; bottom: 130px; left: 50%; width: 100%; max-width: 570px; transform: translate(-50%,0) rotate(-22deg); }
  .hero-stars { opacity: .6; }
  .explore-strip { gap: 10px; padding-block: 16px 22px; }
  .portal { min-height: 116px; padding: 14px 12px; }
  .portal strong { font-size: 14px; }
  .portal small { display: none; }
  .portal > svg { display: none; }
}
@media (max-width: 430px) {
  .brand-word { font-size: 17px; }
  .game-label { font-size: 9px; letter-spacing: .12em; }
  .hero-inner { padding-top: 125px; }
  .hero h1 { font-size: clamp(54px,13vw,65px); margin-block: 20px; }
  .hero-actions .btn { --h: 48px; font-size: 13px; padding-inline: 18px; }
  .hero-platforms { gap: 8px 16px; font-size: 10px; }
  .hero-companion { height: 390px; margin-top: 20px; }
  .explore-strip { gap: 7px; }
  .portal { min-height: 100px; padding: 12px 9px; border-radius: 10px; }
  .portal strong { font-size: 12px; }
}
@media (max-width: 1180px) {
  .site-nav a:not(.btn) { padding-inline: 11px; }
  .stellan { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .stellan-info { padding-right: clamp(24px, 4vw, 48px); }
  .features { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 860px; margin-inline: auto; }
  .feature-tabs { order: 2; }
  .feature-panels { order: 1; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; margin-left: auto; border-radius: 10px; background: #c5baff0c; border: 1px solid var(--line-strong); }
  .menu-icon { display: grid; gap: 5px; width: 17px; }
  .menu-icon i { height: 2px; border-radius: 2px; background: var(--ink); }
  .menu-btn[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { display: none; }
  .site-nav.is-open { position: absolute; display: grid; top: calc(100% + 6px); right: var(--gutter); width: min(320px,100% - 2 * var(--gutter)); max-height: calc(100dvh - var(--header-h) - 20px); overflow: auto; padding: 10px; background: #101526; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 20px 40px -12px #22224340; }
  .site-nav.is-open a { padding: 12px 14px; }
  .site-nav .nav-cta { margin: 4px 0 0; }
  html:not(.js) .menu-btn { display: none; }

  .section-head.split { grid-template-columns: minmax(0, 1fr); }
  .br-wide { display: none; }

  .story-tabs { grid-template-columns: repeat(8,minmax(108px,1fr)); padding-inline: 8px; }
  .story-tab { min-height: 58px; }
  .story-scene { grid-template-columns: minmax(0,1fr); min-height: 0; gap: 26px; }
  .story-copy { max-width: 70ch; }
  .arc-grid { grid-template-columns: minmax(0, 1fr); }
  .chapter { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .chapter-media { aspect-ratio: auto; min-height: 100%; }
  .chapter-body { align-content: center; }

  .stellan { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; }
  .stellan-figure { padding-top: 16px; }
  .stellan-poses { height: min(58vh, 520px); }
  .stellan-info { padding: 32px clamp(20px, 5vw, 40px) 104px; }
  .spotlight::before { left: 50%; top: 30%; width: min(520px, 110vw); }
  .spotlight { background: radial-gradient(ellipse 80% 40% at 50% 26%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), linear-gradient(170deg, #111d33 0%, #0b1426 60%, #0a1222 100%); }
  .spotlight-backdrop img { -webkit-mask-image: linear-gradient(180deg, #000 20%, rgba(0, 0, 0, .15) 55%); mask-image: linear-gradient(180deg, #000 20%, rgba(0, 0, 0, .15) 55%); }
  .stellan-no { font-size: 140px; }
  .spotlight-arrows { left: clamp(20px, 5vw, 40px); right: clamp(20px, 5vw, 40px); justify-content: space-between; }
  .spotlight-arrows .arrow-prev { order: -1; }
  .roster { flex-direction: column; align-items: stretch; }
  .roster-more { display: none; }
  .more-stellans { grid-template-columns: minmax(0, 1fr); padding: 32px clamp(20px, 5vw, 40px) 0; }
  .more-copy { order: -1; padding-bottom: 0; }
  .more-art { margin-inline: -22%; }

  .world-hero { min-height: 0; flex-direction: column; align-items: stretch; background: var(--bg-raise); }
  .world-media { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .world-media img { transform: none; }
  .world-hero::before { display: none; }
  .world-alt .world-copy { margin-left: 0; }
  .world-copy { max-width: none; padding: 28px clamp(20px, 5vw, 40px) 36px; }
  .postcards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .postcards::-webkit-scrollbar { display: none; }
  .postcards li { flex: 0 0 min(72vw, 300px); scroll-snap-align: start; }

  .pledges { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats li { padding-bottom: 28px; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .section-head { position: static; }
}

@media (max-width: 720px) {
  .story-reader-head { padding-inline: 14px; }
  .story-caption { font-size: 12px; }
  .story-scene { gap: 24px; padding: 20px; }
  .scene-heading h3 { font-size: 28px; }
  .story-controls { padding-inline: 14px; }
  .platform-head { grid-template-columns: auto minmax(0, 1fr); }
  .release-state { grid-column: 2; justify-self: start; margin-top: -4px; }
  .feature-tab { grid-template-columns: 32px minmax(0, 1fr); padding: 16px 16px 18px 14px; }
  .feature-progress { left: 60px; right: 16px; }
  .screen-bar { height: 30px; }
  .screen-bar span { font-size: 11px; }
  .platform-grid { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
  .chapter { grid-template-columns: minmax(0, 1fr); }
  .chapter-media { aspect-ratio: 16 / 9; }
  .stellan-facts { grid-template-columns: minmax(0, 1fr); }
  .faq-answer { padding-right: 0; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .roster-tab { padding-right: 16px; gap: 10px; }
  .roster-tab img { width: 42px; height: 42px; }
  .roster-name { font-size: 18px; }
  .pose-label { display: none; }
  .pose-switch button { padding: 0 9px; font-size: 12px; }
  .stats strong { font-size: 44px; }
}

@media (hover: none) {
  .postcard svg { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-companion, .hero-panorama img, .world-media img { transform: none; }
  .hero-orbits i { animation: none; }

}
