/* home.css — the home page (index.html). The game itself lives in play.html with style.css. */
:root {
  --ink: #070b12;
  --ink-2: #0b121c;
  --ink-3: #111c2a;
  --ink-4: #172638;
  --line: rgba(170, 205, 230, .12);
  --line-2: rgba(170, 205, 230, .22);
  --text: #eef2f6;
  --muted: #a3b2c2;
  --dim: #7a8a9c;
  --gold: #ffcf4a;
  --gold-2: #ffb21f;
  --brass: #c9a35b;
  --sun: #ff8a4c;
  --teal: #3fe0c8;
  --teal-2: #14b8a6;
  --dusk: #444477;
  --violet: #9b8cff;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --pixel: "Jersey 10", ui-monospace, "Cascadia Mono", monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #1a1200; padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.pixel, .spr img, .ch-art img, .beat img, .logo img { image-rendering: pixelated; image-rendering: crisp-edges; }
.spr img, .ch-art > img, .beat img, .logo img { image-rendering: pixelated; }

/* ---------------------------------------------------------------- buttons */
.btn { --bg: transparent; display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 16px/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; border: 1px solid transparent; background: var(--bg); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s; }
.btn svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 18px; }
.btn-gold { --bg: linear-gradient(180deg, #ffe07a, var(--gold) 45%, var(--gold-2)); color: #241700; box-shadow: 0 10px 30px -10px rgba(255, 190, 40, .65), inset 0 -2px 0 rgba(120, 70, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-gold:hover { box-shadow: 0 16px 40px -10px rgba(255, 190, 40, .8), inset 0 -2px 0 rgba(120, 70, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-ghost { color: var(--text); background: rgba(8, 14, 26, .45); border-color: rgba(220, 235, 255, .34); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--teal); color: #fff; background: rgba(20, 60, 70, .55); }
.btn-teal { --bg: linear-gradient(180deg, #6ff0dc, var(--teal) 50%, var(--teal-2)); color: #032420; box-shadow: 0 10px 30px -12px rgba(63, 224, 200, .7), inset 0 1px 0 rgba(255, 255, 255, .55); }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(7, 11, 18, .82); border-bottom-color: var(--line); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; width: min(1320px, 100% - 32px); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(145deg, #ffe07a, var(--gold) 50%, var(--gold-2)); color: #241700; font: 400 22px/1 var(--pixel); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.brand-name { font-size: 15px; }
.brand-name em { font-style: normal; color: var(--gold); }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
@media (max-width: 900px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }
@media (max-width: 380px) { .nav .brand-name { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: max(640px, min(100svh, 1000px)); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; background: var(--ink); }
.hero-sky { position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(1200px 520px at 78% 70%, rgba(255, 138, 76, .16), transparent 60%),
    radial-gradient(900px 600px at 10% 10%, rgba(63, 224, 200, .10), transparent 60%),
    linear-gradient(180deg, #05070f 0%, #0d1025 34%, #262650 70%, var(--dusk) 100%); }
.hero-sky::after { content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 8%, #cfe 50%, transparent 51%), radial-gradient(1px 1px at 47% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 12%, #fec 50%, transparent 51%), radial-gradient(1px 1px at 82% 26%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 91% 6%, #cfe 50%, transparent 51%), radial-gradient(1px 1px at 6% 36%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 38% 33%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 40%, #fec 50%, transparent 51%); }
/* the drive: a canvas at arcade resolution, scaled by a whole number (home.js), pinned to the bottom */
.scene { position: absolute; left: 0; right: 0; bottom: 0; z-index: -2; height: calc(224px * var(--s, 3));
  background: url(assets/home/drive-road.png) repeat-x 0 calc(128px * var(--s, 3)) / calc(128px * var(--s, 3)) calc(96px * var(--s, 3)), url(assets/home/drive-sky.png) repeat-x 0 0 / calc(256px * var(--s, 3)) calc(160px * var(--s, 3)), var(--dusk);
  image-rendering: pixelated; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%); mask-image: linear-gradient(180deg, transparent 0, #000 24%); }
.scene canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 44px; z-index: -1; background: linear-gradient(180deg, transparent, var(--ink)); pointer-events: none; }
.hero-in { position: relative; padding: 112px 0 calc(100px * var(--s, 2)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-in::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 30px; transform: translateX(-50%); width: 980px; height: 640px; max-width: 100vw; background: radial-gradient(closest-side, rgba(5, 7, 16, .72), rgba(5, 7, 16, 0)); pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); color: #dfe8f1; font-size: 14px; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(63, 224, 200, .18), 0 0 12px var(--teal); }
.logo { margin: 22px 0 0; }
.logo img { width: calc(288px * var(--ls, 2)); height: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .55)); }
.lead { margin-top: 22px; max-width: 40ch; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: #dde6ee; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 22px; padding: 8px 18px; border-radius: 16px; background: rgba(6, 9, 20, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #d3dce6; font-size: 14px; font-weight: 500; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.resume { margin-top: 16px; font-size: 14px; color: var(--teal); font-weight: 600; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 28px; height: 44px; margin-left: -14px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 16px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 700px) {
  .hero { min-height: 0; }
  .hero-in { padding: 92px 0 calc(124px * var(--s, 1)); }
  .logo { margin: 18px 0 0; }
  .logo img { width: min(calc(288px * var(--ls, 1)), 100%); }
  .lead { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; }
  .facts { font-size: 13px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0 4px; gap: 6px 14px; text-shadow: 0 1px 8px #000; }
}

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding: clamp(64px, 8vw, 112px) 0; }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.kicker { display: inline-block; font: 700 13px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
h2 { font: 400 clamp(44px, 6.2vw, 80px)/.95 var(--pixel); letter-spacing: .01em; }
.sub { margin-top: 18px; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 62ch; }
.hl-gold { color: var(--gold); }
.hl-teal { color: var(--teal); }
.hl-sun { color: var(--sun); }
h3 { font: 700 20px/1.25 var(--sans); letter-spacing: -.01em; }

/* story */
.story { background: radial-gradient(900px 500px at 85% 0%, rgba(155, 140, 255, .08), transparent 70%), var(--ink); }
.beats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: beat; }
.beat { position: relative; padding: 14px 14px 26px; border-radius: var(--radius); background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); }
.beat figure { margin: 0 0 22px; border-radius: 10px; overflow: hidden; aspect-ratio: 224 / 96; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.beat figure img { width: 100%; height: 100%; object-fit: cover; }
.beat-no { position: absolute; top: 24px; left: 24px; font: 400 18px/1 var(--pixel); color: #fff; background: rgba(5, 8, 16, .72); padding: 6px 8px; border-radius: 6px; letter-spacing: .08em; }
.beat h3, .beat p { padding-inline: 10px; }
.beat p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.beat strong { color: var(--sun); }
@media (max-width: 900px) { .beats { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* chapters */
.chapters { background: linear-gradient(180deg, var(--ink), #08101a 40%, var(--ink)); }
.chapters::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 420px at 12% 20%, rgba(63, 224, 200, .07), transparent 70%); pointer-events: none; }
.ch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ch { --accent: var(--teal); position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.ch:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--accent) 70%, transparent); }
.ch-art { position: relative; aspect-ratio: 384 / 224; container-type: inline-size; overflow: hidden; background: #000; }
.ch-art > img { width: 100%; height: 100%; }
.ch-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(7, 11, 18, .55)); pointer-events: none; }
.ch-art .spr { --u: calc(100cqw / 384); }
.ch-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ch-no { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ch-no b { font: 400 28px/1 var(--pixel); color: var(--accent); letter-spacing: 0; }
.ch h3 { margin-top: 6px; font: 400 34px/1 var(--pixel); letter-spacing: .01em; }
.ch-goal { align-self: flex-start; margin-top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.ch-boss { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; font-weight: 700; font-size: 16px; }
.ch-boss i { font-style: normal; color: var(--sun); }
.ch-boss span:last-child:not(:first-child) { color: var(--sun); }
.ch-tip { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 1100px) { .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .ch-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; scrollbar-width: thin; }
  .ch { scroll-snap-align: start; }
}

/* heroes */
.heroes { background: radial-gradient(900px 480px at 50% 0%, rgba(255, 138, 76, .09), transparent 70%), var(--ink); }
.hero-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hcard { --c: var(--gold); display: flex; flex-direction: column; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .35s var(--ease); }
.hcard:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); transform: translateY(-4px); }
.hstage { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 300px; padding: 0 0 34px; border: 0; cursor: pointer; color: inherit; overflow: hidden;
  background: radial-gradient(60% 34% at 50% 88%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), linear-gradient(180deg, #0e1726, #131f31 70%, #0b131f); }
.hstage::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 30px; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, .5); filter: blur(3px); }
.hstage::after { content: "Tap for the special"; position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 600; color: var(--muted); opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; }
.hstage:hover::after, .hstage:focus-visible::after { opacity: 1; transform: none; }
.hstage .spr { position: relative; --u: 3px; }
.hbody { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.htag { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.hbody h3 { font: 400 32px/1 var(--pixel); letter-spacing: .01em; }
.hbody > p:not(.htag):not(.special) { color: var(--muted); font-size: 15px; }
.stats { margin: 8px 0 0; display: grid; gap: 8px; }
.stats div { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; }
.stats dt { font-size: 13px; color: var(--dim); font-weight: 600; }
.stats dd { margin: 0; }
meter { display: block; width: 100%; height: 8px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .08); -webkit-appearance: none; appearance: none; }
meter::-webkit-meter-bar { background: rgba(255, 255, 255, .08); border: 0; border-radius: 99px; height: 8px; }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value, meter::-webkit-meter-even-less-good-value { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, #fff 0%), var(--c)); border-radius: 99px; }
meter::-moz-meter-bar { background: var(--c); border-radius: 99px; }
.special { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 15px; }
.special span { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); vertical-align: 2px; }
@media (max-width: 1100px) { .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hstage { height: 240px; } .hstage .spr { --u: 2px; } }

/* co-op */
.coop { overflow: hidden; background: radial-gradient(800px 520px at 85% 50%, rgba(63, 224, 200, .10), transparent 70%), linear-gradient(180deg, var(--ink), #071419 50%, var(--ink)); }
.coop-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.steps { margin-top: 34px; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.steps b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(63, 224, 200, .12); border: 1px solid rgba(63, 224, 200, .35); color: var(--teal); font: 400 28px/1 var(--pixel); }
.steps p { margin-top: 4px; color: var(--muted); font-size: 16px; }
.ui { color: var(--text); font-weight: 600; white-space: nowrap; }
code { font: 400 1.25em/1 var(--pixel); color: var(--gold); background: rgba(255, 207, 74, .1); padding: 2px 6px; border-radius: 6px; letter-spacing: .04em; }
.note { margin-top: 20px; color: var(--dim); font-size: 14px; max-width: 58ch; }
.room { position: relative; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, #0f1c26, #0a131b); border: 1px solid rgba(63, 224, 200, .25); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 6px rgba(63, 224, 200, .04); }
.room::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px); pointer-events: none; }
.room-bar { font: 400 18px/1 var(--pixel); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); padding-bottom: 16px; border-bottom: 1px dashed rgba(63, 224, 200, .25); }
.room-label { margin-top: 20px; text-align: center; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.room-code { text-align: center; font: 400 clamp(52px, 7vw, 84px)/1 var(--pixel); color: var(--gold); letter-spacing: .06em; text-shadow: 0 0 24px rgba(255, 207, 74, .35); margin-top: 6px; }
.room-floor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.seat { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 230px; padding: 12px 6px 14px; border-radius: 14px; background: radial-gradient(70% 30% at 50% 82%, rgba(63, 224, 200, .2), transparent 70%), rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.seat .spr { position: relative; }
.seat p { margin-top: 10px; font-size: 13px; color: var(--muted); font-weight: 600; text-align: center; }
.seat p b { color: var(--teal); font: 400 18px/1 var(--pixel); margin-right: 4px; }
.seat.joining .spr { opacity: .45; animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .85; } }
.room-btns { display: flex; gap: 8px; margin-top: 16px; }
.room-btns span { flex: 1; text-align: center; padding: 10px 6px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--muted); border: 1px solid var(--line-2); }
.room-btns .go { color: #032420; background: var(--teal); border-color: transparent; }
@media (max-width: 900px) { .coop-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .seat { min-height: 190px; } .seat .spr { --u: 1.5px !important; } .room { padding: 16px; } }

/* features */
.features { background: var(--ink); }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat { padding: 26px; border-radius: var(--radius); background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); }
.feat h3 { margin-top: 18px; }
.feat p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 207, 74, .1); border: 1px solid rgba(255, 207, 74, .3); color: var(--gold); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat-wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; background: radial-gradient(70% 90% at 20% 80%, rgba(255, 138, 76, .14), transparent 70%), linear-gradient(180deg, var(--ink-3), var(--ink-2)); }
.feat-wide h3 { margin-top: 0; font: 400 38px/1 var(--pixel); letter-spacing: .01em; }
.feat-art { overflow: hidden; display: flex; align-items: flex-end; justify-content: center; gap: 28px; padding: 10px 12px 0; min-height: 250px; border-bottom: 2px solid rgba(255, 255, 255, .08); }
.feat-wide p { max-width: 60ch; }
.feat-art .spr { position: relative; }
@media (max-width: 1000px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feat-wide { grid-row: auto; } }
@media (max-width: 700px) { .feat-grid { grid-template-columns: minmax(0, 1fr); } .feat-wide { grid-column: auto; grid-row: auto; } .feat-art { justify-content: center; min-height: 0; } .feat-art .spr { --u: 2px !important; } .feat-art .spr + .spr { display: none; } }

/* controls */
.controls { background: linear-gradient(180deg, var(--ink), #0a0f1a); }
.ctl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ctl { padding: 26px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.ctl h3 { font: 400 30px/1 var(--pixel); color: var(--gold); margin-bottom: 18px; }
.ctl dl { margin: 0; display: grid; gap: 2px; }
.ctl dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ctl dl > div:last-child { border-bottom: 0; }
.ctl dt { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: var(--muted); }
.ctl dd { margin: 0; font-weight: 600; text-align: right; font-size: 15px; }
.ctl small { color: var(--dim); font-size: 12px; }
.ctl-note { margin-top: 14px; color: var(--dim); font-size: 14px; }
kbd { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; font: 600 13px/1 var(--sans); color: var(--text); background: linear-gradient(180deg, #223247, #172436); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 2px 0 #060a10; }
.pad { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--text); background: rgba(63, 224, 200, .12); border: 1px solid rgba(63, 224, 200, .35); }
.pad-r { background: rgba(255, 138, 76, .12); border-color: rgba(255, 138, 76, .4); }
.btn-face { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: 14px; color: #08101a; background: var(--gold); }
@media (max-width: 1000px) { .ctl-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* faq */
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq .head { position: sticky; top: 110px; }
.qa { display: grid; gap: 10px; }
.qa details { border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); transition: border-color .25s, background-color .25s; }
.qa details[open] { border-color: var(--line-2); background: var(--ink-3); }
.qa summary { position: relative; list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 600; font-size: 17px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .25s var(--ease); }
.qa details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa details p { padding: 0 22px 20px; color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .faq-in { grid-template-columns: minmax(0, 1fr); } .faq .head { position: static; } }

/* final call */
.final { position: relative; padding: clamp(90px, 12vw, 160px) 0 clamp(120px, 14vw, 180px); text-align: center; overflow: hidden; background: radial-gradient(70% 70% at 50% 100%, rgba(255, 138, 76, .22), transparent 70%), linear-gradient(180deg, var(--ink), #1b1a3a 70%, #2a2550); }
.final-in { position: relative; z-index: 1; }
.final h2 { font-size: clamp(48px, 8vw, 104px); }
.final .cta { justify-content: center; }
.final-road { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: linear-gradient(180deg, #3a2d43, #241c2c); border-top: 2px solid rgba(255, 207, 74, .25); }
.final-road::before { content: ""; position: absolute; left: 0; right: 0; top: 40px; height: 3px; background: repeating-linear-gradient(90deg, rgba(255, 207, 74, .55) 0 34px, transparent 34px 70px); animation: lane 1.1s linear infinite; }
@keyframes lane { to { background-position: -70px 0; } }
.final-road .spr { position: absolute; bottom: 14px; }
.final-road .spr:nth-child(1) { left: 14%; }
.final-road .spr:nth-child(2) { left: 30%; }
.final-road .spr:nth-child(3) { left: 58%; }
.final-road .spr:nth-child(4) { left: 74%; }
@media (max-width: 700px) { .final-road .spr { --u: 1px !important; } .final-road .spr:nth-child(1) { left: 4%; } .final-road .spr:nth-child(2) { left: 28%; } .final-road .spr:nth-child(3) { left: 52%; } .final-road .spr:nth-child(4) { left: 76%; } }

/* footer */
.foot { border-top: 1px solid var(--line); background: #05080d; padding: 48px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.foot-brand p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.foot-links a { display: block; padding: 6px 10px; color: var(--muted); text-decoration: none; font-size: 15px; border-radius: 8px; }
.foot-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.mostafa { font: 400 20px/1.2 var(--pixel); color: var(--gold); letter-spacing: .04em; }

/* ---------------------------------------------------------------- sprites (home.js) */
.spr { --u: 3px; --fx: 1; display: block; flex: none; width: calc(var(--w, 0) * var(--u)); height: calc(var(--h, 0) * var(--u)); overflow: hidden; pointer-events: none; transform: scaleX(var(--fx)); }
.spr img { width: calc(var(--n, 1) * 100%); max-width: none; height: 100%; transform: translateX(calc(var(--k, 0) * -100% / var(--n, 1))); }
.ch-art .spr { position: absolute; left: var(--x); top: var(--y); transform-origin: 0 0; transform: translate(calc(var(--ax, 0) * var(--u) * -1), calc(var(--ay, 0) * var(--u) * -1)); filter: drop-shadow(0 calc(var(--u) * 2) 0 rgba(0, 0, 0, .35)); }

/* ---------------------------------------------------------------- reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .ch, .hcard { transition: none; }
  .btn:hover, .ch:hover, .hcard:hover { transform: none; }
  .scroll-cue span, .final-road::before, .seat.joining .spr { animation: none; }
}
