/* Echelon-6: Second Sun, the marketing site. The game's Ink & Neon kit (docs/style/FINAL.md, final/tokens.json):
   one dark look by design. Layout: a single "transmission" column of full-bleed media bands and glass panels, with HUD
   corner brackets on anything that shows the game. Mobile first (390 wide), scaling up from 900 and 1200. */

@font-face { font-family: 'Orbitron'; font-weight: 600; font-display: swap; src: url('../fonts/orbitron-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-weight: 800; font-display: swap; src: url('../fonts/orbitron-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-weight: 500; font-display: swap; src: url('../fonts/rajdhani-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-weight: 600; font-display: swap; src: url('../fonts/rajdhani-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-weight: 700; font-display: swap; src: url('../fonts/rajdhani-latin-700-normal.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  /* colour */
  --bg: #07050b;
  --bg-lift: #0d0a16;
  --text: #e6f2ff;
  --text-soft: #b9c9dc;
  --muted: #8ea3bd;
  --title: #9fe8ff;
  --aqua: #3ef0e4;
  --aqua-pale: #c4fff8;
  --sky: #5fd3ff;
  --sun: #ff9a4a;
  --sun-soft: #ffb070;
  --gold: #ffd25a;
  --alert: #ff4d5e;
  --edge: rgba(140, 200, 255, .22);
  --glass: linear-gradient(160deg, rgba(28, 38, 66, .78), rgba(10, 12, 24, .9));
  --c-commando: #4a78ff;
  --c-telekinetic: #c79bff;
  --c-xeno: #c6ff3d;
  --c-shade: #7a7cff;
  --c-reaver: #ff6a7a;
  /* type */
  --display: 'Orbitron', 'Rajdhani', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Rajdhani', 'Arial Narrow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* shape */
  --radius: 12px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 18px/1.5 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--aqua); color: #03151a; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.section { position: relative; padding-block: clamp(76px, 13vw, 150px); }

/* ---------- type ---------- */
.kicker {
  display: flex; align-items: center; gap: 10px;
  font: 600 10.5px/1.3 var(--display); letter-spacing: .15em; text-transform: uppercase; color: var(--aqua);
}
.kicker::before { content: ''; flex: none; width: 7px; height: 7px; background: var(--aqua); box-shadow: 0 0 10px var(--aqua); }
.kicker::after { content: ''; flex: 0 1 64px; height: 1px; background: linear-gradient(90deg, rgba(62, 240, 228, .7), transparent); }
h2 {
  margin-top: 14px;
  font: 800 clamp(30px, 7.4vw, 62px)/1.04 var(--display);
  letter-spacing: .01em; text-transform: uppercase; text-wrap: balance;
}
h2 em, .big-line em, .beat-line em { font-style: normal; color: var(--sun-soft); text-shadow: 0 0 22px rgba(255, 154, 74, .55); }
.lede { margin-top: 18px; max-width: 62ch; color: var(--text-soft); font-size: clamp(18px, 2.3vw, 21px); line-height: 1.5; }
.section-head { margin-bottom: clamp(32px, 6vw, 56px); }
.section-head.center { text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center .kicker::after { display: none; }
.selectable { user-select: all; }

/* ---------- HUD corner brackets: anything that shows the game ---------- */
.hud { position: relative; }
.hud::after {
  content: ''; position: absolute; inset: -6px; pointer-events: none; z-index: 3;
  --b: rgba(62, 240, 228, .75);
  background:
    linear-gradient(var(--b), var(--b)) top left / 18px 2px no-repeat,
    linear-gradient(var(--b), var(--b)) top left / 2px 18px no-repeat,
    linear-gradient(var(--b), var(--b)) top right / 18px 2px no-repeat,
    linear-gradient(var(--b), var(--b)) top right / 2px 18px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / 18px 2px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / 2px 18px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / 18px 2px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / 2px 18px no-repeat;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius);
  font: 700 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-play {
  position: relative; overflow: hidden; isolation: isolate;
  color: #03151a;
  background: linear-gradient(180deg, #7ffcf3, #27d3c7);
  border-color: rgba(196, 255, 248, .9);
  box-shadow: 0 10px 30px rgba(62, 240, 228, .3), 0 0 36px rgba(62, 240, 228, .22);
}
.btn-play::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0;
  animation: sheen 5.5s ease-in-out 1.2s infinite;
}
.btn-play:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(62, 240, 228, .42), 0 0 48px rgba(62, 240, 228, .3); }
.btn-ghost { color: var(--text); background: rgba(10, 14, 28, .55); border-color: var(--edge); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgba(62, 240, 228, .6); }
.btn-lg { min-height: 56px; padding: 0 24px; font-size: 14px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 11px; }
@keyframes sheen { 0%, 55% { background-position: 160% 0; } 100% { background-position: -60% 0; } }

/* ---------- top bar ---------- */
body::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--bg); }
.topbar {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 40;
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.topbar.solid { background: rgba(7, 5, 11, .82); border-bottom-color: rgba(140, 200, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 60px; max-width: 1200px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.brand {
  font: 800 15px/1 var(--display); letter-spacing: .16em; text-decoration: none;
  background: linear-gradient(180deg, #fff, #9fe8ff 60%, #ff9a4a); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { display: none; gap: 26px; margin-left: auto; }
.nav a { font: 700 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--text-soft); }
.nav a:hover { color: var(--aqua); }
.signal { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.signal i { width: 3px; background: var(--aqua); opacity: .35; animation: bars 2.4s ease-in-out infinite; }
.signal i:nth-child(1) { height: 25%; } .signal i:nth-child(2) { height: 50%; animation-delay: .2s; }
.signal i:nth-child(3) { height: 75%; animation-delay: .4s; } .signal i:nth-child(4) { height: 100%; animation-delay: .6s; }
.signal b { margin-left: 6px; font: 600 10px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
@keyframes bars { 0%, 100% { opacity: .3; } 40% { opacity: 1; } }
.topbar .btn-play { margin-left: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100vh, 1000px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
@supports (min-height: 100svh) { .hero { min-height: min(100svh, 1000px); } }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -2; }
.hero-art img { object-fit: cover; object-position: 50% 42%; animation: drift 38s ease-in-out infinite alternate, wake 1.6s ease-out both; transform-origin: 50% 40%; }
@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.13) translateY(-1.5%); } }
@keyframes wake { from { filter: brightness(.25) saturate(.6); } to { filter: none; } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 5, 11, .78) 0%, rgba(7, 5, 11, .35) 22%, rgba(7, 5, 11, 0) 40%, rgba(7, 5, 11, 0) 58%, rgba(7, 5, 11, .78) 76%, rgba(7, 5, 11, .96) 92%, var(--bg) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px);
}
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-top { position: relative; text-align: center; padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
.hero-bottom { position: relative; text-align: center; padding-bottom: clamp(28px, 5vh, 64px); }
.transmission {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  font: 600 10.5px/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--aqua-pale);
  background: rgba(7, 5, 11, .6); border: 1px solid rgba(62, 240, 228, .35);
}
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--alert); box-shadow: 0 0 10px var(--alert); animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.logo { margin: 18px 0 0; line-height: 1; }
.logo-name {
  display: block; padding-left: .12em;
  font: 800 clamp(30px, 10.9vw, 128px)/1.06 var(--display); letter-spacing: .12em; white-space: nowrap;
  background:
    linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .95) 50%, transparent 58%) no-repeat,
    linear-gradient(180deg, #ffffff, #e9fbff 22%, #5fd3ff 62%, #ff9a4a);
  background-size: 300% 100%, 100% 100%;
  background-position: 160% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(95, 211, 255, .6)) drop-shadow(0 4px 16px rgba(0, 0, 0, .9));
  animation: logo-sheen 8s ease-in-out 2s infinite;
}
@keyframes logo-sheen { 0%, 70% { background-position: 160% 0, 0 0; } 100% { background-position: -60% 0, 0 0; } }
.logo-sub {
  display: block; margin-top: .5em; padding-left: .34em;
  font: 800 clamp(13px, 4vw, 44px)/1 var(--display); letter-spacing: .34em; color: var(--sun-soft); white-space: nowrap;
  text-shadow: 0 0 18px rgba(255, 154, 74, .8), 0 4px 16px rgba(0, 0, 0, .9);
}
.pitch { max-width: 30ch; margin: 18px auto 0; font: 600 clamp(19px, 4.6vw, 27px)/1.3 var(--body); text-shadow: 0 2px 6px rgba(0, 0, 0, .95), 0 0 24px rgba(0, 0, 0, .8); text-wrap: balance; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-row .btn { flex: 1 1 260px; max-width: 340px; }
.hero-note { margin-top: 14px; font: 600 12px/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.preview-note { max-width: 46ch; margin: 10px auto 0; font-size: 14px; color: var(--aqua-pale); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; min-width: 168px; height: 50px; padding: 0 16px 0 12px;
  border-radius: 10px; text-decoration: none; text-align: left;
  background: rgba(5, 6, 12, .78); border: 1px solid rgba(230, 242, 255, .28);
}
.badge svg { width: 26px; height: 26px; color: var(--text-soft); flex: none; }
.badge span { display: flex; flex-direction: column; font: 700 18px/1.05 var(--body); letter-spacing: .02em; }
.badge small { font: 600 9px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.badge:hover { border-color: rgba(62, 240, 228, .6); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2;
  display: none; flex-direction: column; align-items: center; gap: 8px;
  font: 600 9px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--aqua), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* decode effect: the scrambled letters keep their width */
[data-decode] { font-variant-numeric: tabular-nums; }

/* ---------- story: three beats that stack as you scroll ---------- */
.story { position: relative; background: var(--bg); }
.beat {
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; display: grid; align-items: center; justify-items: center;
  background: var(--bg);
}
.beat-blur { display: none; }
.beat-frame { position: absolute; inset: 0; }
.beat-frame img, .beat-frame video { width: 100%; height: 100%; object-fit: cover; }
.beat-frame.hud::after { display: none; }
.beat::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 50%, rgba(3, 5, 14, .25), rgba(3, 5, 14, .72) 70%), linear-gradient(180deg, rgba(7, 5, 11, .5), transparent 25%, transparent 70%, rgba(7, 5, 11, .85));
}
.beat-copy { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter-r) 0 var(--gutter); text-align: center; }
.beat-copy .kicker { justify-content: center; margin-bottom: 18px; }
.beat-copy .kicker::after { display: none; }
.beat-line {
  font: 600 clamp(46px, 13vw, 128px)/.98 var(--body); letter-spacing: .05em; text-transform: uppercase; color: #eefbff;
  --glow: 0 0 18px rgba(95, 211, 255, .75), 0 0 46px rgba(95, 211, 255, .35), 0 4px 18px rgba(0, 0, 0, .95);
  text-shadow: var(--glow);
  text-wrap: balance;
}
.beat-3 .beat-line { font-size: clamp(38px, 10.5vw, 104px); }
.beat-cap {
  display: inline-flex; flex-direction: column; gap: 4px; margin-top: 26px; padding: 10px 16px;
  background: rgba(5, 6, 12, .62); border-left: 2px solid var(--aqua);
  font-size: 16px; color: var(--text-soft); text-align: left;
}
.beat-cap b { font: 600 10px/1.2 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--aqua); }
.story-close { position: relative; z-index: 2; padding-block: clamp(90px, 16vw, 170px); background: var(--bg); text-align: center; }
.story-close .lede { margin-inline: auto; }
.big-line { font: 800 clamp(40px, 11vw, 96px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.chips li { padding: 7px 12px; border-radius: 999px; font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--title); background: rgba(95, 211, 255, .07); border: 1px solid rgba(95, 211, 255, .3); }

/* ---------- the story's glitch (site.js adds .story-glitch): the three beats share one pinned screen, and each
   hand-over is a short burst of corrupted transmission instead of a wipe: slices of the outgoing frame jump sideways,
   the headline's channels split in aqua and magenta, scanlines, noise and interference bars flicker, then the next
   beat resolves out of it into a clean fade. Transforms, clip-path and opacity only. Reduced motion: a crossfade. */
.story-glitch .story-track { position: relative; height: 300vh; height: 300svh; }
.story-glitch .story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; background: var(--bg); }
.story-glitch .beat { position: absolute; inset: 0; height: auto; min-height: 0; opacity: 0; visibility: hidden; }
.story-glitch .beat.is-on { opacity: 1; visibility: visible; }
.story-glitch.calm .beat { visibility: visible; transition: opacity .45s ease; pointer-events: none; }
.story-glitch.calm .beat.is-on { pointer-events: auto; }
.story-glitch .glitch-band {
  z-index: 4; opacity: 1; visibility: visible; pointer-events: none;
  clip-path: inset(var(--t, 40%) 0 var(--b, 50%) 0);
  animation: band-jump var(--dur, 240ms) steps(1, end) both;
}
.glitch-band::before { content: ''; position: absolute; inset: 0; z-index: 3; background: var(--tint, transparent); }
@keyframes band-jump {
  0% { transform: translate3d(var(--dx1, 20px), 0, 0); }
  22% { transform: translate3d(calc(var(--dx1, 20px) * -.55), 0, 0); }
  45% { transform: translate3d(var(--dx2, -12px), 0, 0); }
  70% { transform: translate3d(calc(var(--dx2, -12px) * -.4), 1px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.story-glitch .beat.glitch-out { animation: glitch-out 220ms steps(1, end) both; }
.story-glitch .beat.glitch-in { animation: glitch-in 340ms ease-out both; }
.story-glitch .beat.glitch-out .beat-line, .story-glitch .beat.glitch-in .beat-line, .story-glitch .glitch-band .beat-line { animation: rgb-split 320ms steps(1, end) both; }
.story-glitch .beat.glitch-out .beat-frame, .story-glitch .beat.glitch-in .beat-frame, .story-glitch .beat.glitch-in .beat-copy { animation: jitter 300ms steps(1, end) both; }
@keyframes glitch-out { 0% { opacity: 1; } 25% { opacity: .6; } 45% { opacity: 1; } 70% { opacity: .35; } 100% { opacity: 0; } }
@keyframes glitch-in { 0% { opacity: .12; } 18% { opacity: .6; } 32% { opacity: .28; } 100% { opacity: 1; } }
@keyframes rgb-split {
  0% { text-shadow: -7px 0 rgba(62, 240, 228, .9), 7px 0 rgba(255, 60, 172, .85), var(--glow); transform: translateX(4px); }
  20% { text-shadow: 6px 0 rgba(62, 240, 228, .9), -6px 0 rgba(255, 154, 74, .85), var(--glow); transform: translateX(-3px); }
  42% { text-shadow: -4px 0 rgba(62, 240, 228, .8), 4px 0 rgba(255, 60, 172, .75), var(--glow); transform: translateX(1px); }
  66% { text-shadow: 2px 0 rgba(62, 240, 228, .55), -2px 0 rgba(255, 60, 172, .45), var(--glow); transform: none; }
  100% { text-shadow: var(--glow); transform: none; }
}
@keyframes jitter { 0% { transform: translate(3px, -1px); } 25% { transform: translate(-4px, 1px); } 50% { transform: translate(2px, 0); } 75% { transform: translate(-1px, 1px); } 100% { transform: none; } }
.story-fx { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; display: none; }
.story-glitch .story-fx { display: block; }
.story-fx::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(196, 255, 248, .13) 0 1px, transparent 1px 3px); }
.story-fx::after { content: ''; position: absolute; inset: 0; background-image: var(--noise, none); background-size: 192px 192px; }
.story-fx i { position: absolute; left: -6%; right: -6%; top: var(--y, 30%); height: var(--h, 1.5%); background: var(--c, rgba(62, 240, 228, .6)); opacity: 0; }
.story-stage.glitching .story-fx { animation: fx-flicker 480ms steps(1, end) both; }
.story-stage.glitching .story-fx::after { animation: noise-shift 480ms steps(1, end) both; }
@keyframes noise-shift { 0% { background-position: 0 0; } 25% { background-position: 37px 61px; } 50% { background-position: 83px 19px; } 75% { background-position: 11px 97px; } 100% { background-position: 0 0; } }
.story-stage.glitching .story-fx i { animation: bar-flash 420ms steps(1, end) both; }
.story-stage.glitching .story-fx i:nth-child(2) { animation-delay: 70ms; }
.story-stage.glitching .story-fx i:nth-child(3) { animation-delay: 150ms; }
@keyframes fx-flicker { 0% { opacity: 0; } 6% { opacity: .85; } 22% { opacity: .45; } 38% { opacity: .7; } 56% { opacity: .25; } 74% { opacity: .1; } 100% { opacity: 0; } }
@keyframes bar-flash { 0% { opacity: 0; } 8% { opacity: 1; transform: translateX(var(--x, 12px)); } 30% { opacity: .25; } 46% { opacity: .9; transform: translateX(calc(var(--x, 12px) * -1)); } 66% { opacity: 0; } 100% { opacity: 0; } }
/* a rare, faint blip on a settled headline (site.js: every 15 to 25 s while the story is on screen) */
.story-glitch .beat-line.blip { animation: blip 170ms steps(1, end) both; }
@keyframes blip { 0% { text-shadow: -2px 0 rgba(62, 240, 228, .7), 2px 0 rgba(255, 60, 172, .6), var(--glow); } 50% { text-shadow: 1px 0 rgba(62, 240, 228, .55), -1px 0 rgba(255, 154, 74, .45), var(--glow); } 100% { text-shadow: var(--glow); } }

/* ---------- footage ---------- */
.footage { background: radial-gradient(90% 60% at 50% 0%, rgba(122, 60, 220, .16), transparent 70%), var(--bg); }
.teaser {
  position: relative; overflow: hidden; border-radius: 16px; background: #05040a;
  aspect-ratio: 9 / 16; max-height: 82svh; margin-inline: auto; width: min(100%, 460px);
  border: 1px solid var(--edge);
}
.teaser-poster img, .teaser video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teaser-poster img { filter: blur(5px) brightness(.32) saturate(.5) hue-rotate(-12deg); transform: scale(1.06); }
.teaser::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(196, 255, 248, .06) 0 1px, transparent 1px 4px);
  animation: roll 7s linear infinite;
}
@keyframes roll { from { background-position: 0 0; } to { background-position: 0 120px; } }
.teaser.playing::before { display: none; }
.teaser-ui { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; z-index: 2; }
.teaser-ui .kicker::after { display: none; }
.teaser-play {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(62, 240, 228, .14); border: 1px solid rgba(62, 240, 228, .7); color: var(--aqua);
  box-shadow: 0 0 0 0 rgba(62, 240, 228, .5); animation: ring 2.4s ease-out infinite;
}
.teaser-play svg { width: 34px; height: 34px; margin-left: 4px; }
.teaser-play:disabled { cursor: default; color: var(--muted); border-color: rgba(142, 163, 189, .5); background: rgba(142, 163, 189, .08); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(62, 240, 228, .45); } 100% { box-shadow: 0 0 0 26px rgba(62, 240, 228, 0); } }
.teaser-state { display: grid; gap: 6px; max-width: 30ch; color: var(--text-soft); font-size: 17px; }
.teaser-state b { font: 800 14px/1.2 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--sun-soft); }
.teaser.playing .teaser-ui, .teaser.playing .teaser-poster { display: none; }

.feed { display: grid; gap: 22px; margin-top: clamp(48px, 8vw, 80px); }
.feed-screen {
  position: relative; overflow: hidden; border-radius: 16px; background: #05040a; border: 1px solid var(--edge);
  aspect-ratio: 9 / 16; width: min(100%, 420px); max-height: 80svh; margin-inline: auto;
}
.feed-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feed-static {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .12) 0 1px, rgba(0, 0, 0, .3) 1px 3px), linear-gradient(90deg, rgba(62, 240, 228, .25), rgba(255, 106, 122, .2));
  mix-blend-mode: screen;
}
.feed-static.on { animation: static .42s steps(6) both; }
@keyframes static { 0% { opacity: 1; transform: translateY(0); } 50% { opacity: .8; transform: translateY(-6px); } 100% { opacity: 0; transform: translateY(4px); } }
.feed-top, .feed-bottom { position: absolute; left: 0; right: 0; z-index: 3; padding: 12px 14px; }
.feed-top { top: 0; display: flex; justify-content: space-between; background: linear-gradient(180deg, rgba(5, 4, 10, .8), transparent); font: 600 10px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--aqua-pale); }
.rec { display: inline-flex; align-items: center; gap: 7px; }
.rec::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--alert); box-shadow: 0 0 8px var(--alert); animation: blink 1.4s steps(2, start) infinite; }
.feed-bottom { bottom: 0; padding-top: 48px; background: linear-gradient(0deg, rgba(5, 4, 10, .92), rgba(5, 4, 10, .55) 65%, transparent); }
.feed-title { font: 800 18px/1.15 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.feed-desc { margin-top: 4px; font-size: 16px; line-height: 1.35; color: var(--text-soft); }
.feed-bar { height: 3px; margin-top: 12px; background: rgba(230, 242, 255, .16); border-radius: 2px; overflow: hidden; }
.feed-bar i { display: block; height: 100%; width: 0; background: var(--aqua); box-shadow: 0 0 10px var(--aqua); }
.feed-list { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; }
.feed-list::-webkit-scrollbar { display: none; }
.feed-list li { flex: none; scroll-snap-align: start; }
.feed-list button {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; cursor: pointer;
  border-radius: 999px; background: rgba(13, 10, 22, .9); border: 1px solid var(--edge); white-space: nowrap;
  font: 700 15px/1 var(--body); letter-spacing: .06em; text-transform: uppercase;
}
.feed-list b { font: 800 11px/1 var(--display); color: var(--muted); letter-spacing: .1em; }
.feed-list small { display: none; }
.feed-list button[aria-pressed='true'] { border-color: var(--aqua); background: rgba(62, 240, 228, .1); box-shadow: 0 0 18px rgba(62, 240, 228, .18); }
.feed-list button[aria-pressed='true'] b { color: var(--aqua); }

/* ---------- play anywhere: the same fight on a laptop, a tablet and a phone ----------
   Generic devices drawn in CSS (no product images): every size is a share of the trio's width, so the group scales
   as one picture. Each screen holds a real capture at that device's own size (tools/dev/shots/marketing-devices.py). */
.devices { background: radial-gradient(70% 55% at 50% 45%, rgba(62, 240, 228, .07), transparent 70%), var(--bg); overflow: hidden; }
.devices .lede { margin-inline: auto; }
.trio { position: relative; width: min(100%, 1080px); margin: 0 auto; aspect-ratio: 100 / 66; }
.trio::after {
  content: ''; position: absolute; left: 4%; right: 4%; bottom: -3%; height: 9%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); filter: blur(6px);
}
.dev { position: absolute; z-index: 1; margin: 0; }
.dev-screen { position: relative; overflow: hidden; background: #020205; }
.dev-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dev-screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .03) 22%, transparent 38%, transparent 72%, rgba(255, 255, 255, .04) 100%);
}
.dev-cam { position: absolute; left: 50%; z-index: 2; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 35%, #2a3550, #05060a 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }

/* laptop: a 16:10 screen in a slim lid, then the keyboard deck seen edge-on */
.dev-laptop { left: 17%; width: 66%; top: 0; }
.dev-lid {
  position: relative; padding: 2.1% 2.1% 3.2%;
  border-radius: 2.4% 2.4% .9% .9% / 3.8% 3.8% 1.4% 1.4%;
  background: linear-gradient(180deg, #2b303c, #12141b 80%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 0 70px rgba(95, 211, 255, .14);
}
.dev-laptop .dev-cam { top: .7%; width: .75%; }
.dev-laptop .dev-screen { aspect-ratio: 16 / 10; border-radius: .5%; }
.dev-base {
  position: relative; left: -7%; width: 114%; height: 0; padding-bottom: 3.6%;
  background: linear-gradient(180deg, #4a5061 0%, #2c303b 38%, #171a22 100%);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 26px 36px -14px rgba(0, 0, 0, .8);
}
.dev-base::before { content: ''; position: absolute; top: 0; left: 50%; width: 15%; height: 38%; transform: translateX(-50%); border-radius: 0 0 12px 12px / 0 0 8px 8px; background: linear-gradient(180deg, #1b1e27, #2a2e39); }

/* tablet: portrait, an even bezel, the camera in the top bezel */
.dev-tablet { left: 1%; bottom: 0; width: 28%; animation: float 9s ease-in-out infinite; }
.dev-tablet .dev-body, .dev-phone .dev-body { position: relative; }
.dev-tablet .dev-body {
  padding: 5.2%; border-radius: 8.5% / 6%;
  background: linear-gradient(155deg, #2e3340, #0f1118 70%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .11), 0 26px 50px rgba(0, 0, 0, .65), 0 0 60px rgba(199, 155, 255, .12);
}
.dev-tablet .dev-cam { top: 1.6%; width: 2.2%; }
.dev-tablet .dev-screen { aspect-ratio: 820 / 1180; border-radius: 3.4% / 2.4%; }

/* phone: tall rounded body, a punch-hole camera in the screen, side keys */
.dev-phone { right: 6%; bottom: 0; width: 15.5%; animation: float 8s ease-in-out -3s infinite; }
.dev-phone .dev-body {
  padding: 8.5% 3.8% 5%; border-radius: 17% / 8%;
  background: linear-gradient(155deg, #343946, #0d0f15 70%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .13), 0 22px 44px rgba(0, 0, 0, .7), 0 0 50px rgba(62, 240, 228, .12);
}
.dev-phone .dev-body::after { content: ''; position: absolute; right: -1.6%; top: 21%; width: 1.8%; height: 13%; border-radius: 0 3px 3px 0; background: #2b2f39; }
.dev-phone .dev-body::before { content: ''; position: absolute; left: -1.6%; top: 17%; width: 1.8%; height: 7%; border-radius: 3px 0 0 3px; background: #2b2f39; }
.dev-phone .dev-screen { aspect-ratio: 390 / 844; border-radius: 6% / 2.8%; }
.dev-phone .dev-cam { top: 1.25%; width: 3.2%; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2%); } }

.dev-notes { display: grid; gap: 12px; max-width: 980px; margin: clamp(36px, 6vw, 60px) auto 0; }
.dev-notes li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; align-items: start; padding: 16px 18px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--edge); color: var(--text-soft); font-size: 17px; line-height: 1.4; }
.dev-notes svg { grid-row: span 2; width: 30px; height: 30px; color: var(--aqua); }
.dev-notes b { font: 800 13px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--title); }
.devices .cta-row { margin-top: clamp(28px, 5vw, 44px); }

/* ---------- squad ---------- */
.squad { padding-top: 0; }
.squad-banner { position: relative; max-width: 1400px; margin: 0 auto clamp(28px, 5vw, 56px); }
.squad-banner img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.squad-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg), transparent 18%, transparent 60%, var(--bg)), linear-gradient(90deg, var(--bg), transparent 10%, transparent 90%, var(--bg)); }
.cards {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)) calc(-1 * var(--gutter-r)); padding: 6px var(--gutter-r) 18px var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.cards::-webkit-scrollbar { display: none; }
.card {
  --c: var(--aqua);
  position: relative; flex: none; width: min(80vw, 330px); scroll-snap-align: start;
  display: flex; flex-direction: column; overflow: hidden; border-radius: 16px;
  background: radial-gradient(90% 55% at 50% 38%, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%), var(--glass);
  border: 1px solid color-mix(in srgb, var(--c) 42%, transparent);
}
.c-commando { --c: var(--c-commando); } .c-telekinetic { --c: var(--c-telekinetic); } .c-xeno { --c: var(--c-xeno); }
.c-shade { --c: var(--c-shade); } .c-reaver { --c: var(--c-reaver); }
.card-art { position: relative; height: 270px; display: flex; align-items: flex-end; justify-content: center; padding-top: 18px; }
.card-art::before { content: ''; position: absolute; left: 18%; right: 18%; bottom: 6px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 70%, transparent), transparent); filter: blur(2px); }
.card-art img { position: relative; max-height: 100%; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; flex: 1; border-top: 1px solid color-mix(in srgb, var(--c) 30%, transparent); background: rgba(5, 6, 12, .45); }
.card-file { font: 600 10px/1.2 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.c-commando .card-file { color: var(--aqua); }
.card-name { font: 800 24px/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--c); text-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent); }
.card-role { font: 700 13px/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.card-line { font-size: 17px; line-height: 1.4; color: var(--text-soft); }
.powers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.powers li { padding: 5px 9px; border-radius: 6px; font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--aqua-pale); background: rgba(62, 240, 228, .08); border: 1px solid rgba(62, 240, 228, .35); }
.card-watch { margin-top: 10px; align-self: flex-start; font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); text-decoration: none; border-bottom: 1px solid rgba(62, 240, 228, .5); padding-bottom: 3px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.pager i { width: 22px; height: 4px; border-radius: 2px; background: var(--c); opacity: .3; transition: opacity .2s ease, width .2s ease; }
.pager i.on { opacity: 1; width: 34px; box-shadow: 0 0 10px var(--c); }
.mechanics { display: grid; gap: 12px; margin-top: clamp(28px, 5vw, 48px); }
.mechanics li { padding: 16px 18px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--edge); color: var(--text-soft); font-size: 17px; line-height: 1.4; }
.mechanics b { display: block; margin-bottom: 4px; font: 800 13px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--title); }

/* ---------- day / dusk / night ---------- */
.cycle { background: radial-gradient(70% 50% at 20% 50%, rgba(255, 154, 74, .07), transparent 70%), var(--bg-lift); }
.cycle-in { display: grid; gap: 34px; }
.cycle-screen { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 9 / 16; width: min(100%, 400px); max-height: 78svh; margin-inline: auto; border: 1px solid var(--edge); background: #05040a; order: 2; }
.cycle-copy { order: 1; }
.cycle-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cycle-tag { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 6px 10px; border-radius: 6px; font: 800 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; background: rgba(5, 4, 10, .7); color: var(--gold); border: 1px solid currentColor; }
.cycle-screen[data-tod='dusk'] .cycle-tag { color: var(--sun); }
.cycle-screen[data-tod='night'] .cycle-tag { color: #9aa8ff; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(5, 6, 12, .7); border: 1px solid var(--edge); max-width: 440px; }
.tabs button {
  flex: 1; min-height: 46px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  font: 800 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.tabs button[aria-selected='true'] { color: #07050b; background: var(--gold); box-shadow: 0 0 22px rgba(255, 210, 90, .3); }
.tabs button[data-tod='dusk'][aria-selected='true'] { background: var(--sun); box-shadow: 0 0 22px rgba(255, 154, 74, .35); }
.tabs button[data-tod='night'][aria-selected='true'] { background: #9aa8ff; box-shadow: 0 0 22px rgba(154, 168, 255, .35); }
.tod-panel { margin-top: 18px; min-height: 3.2em; }
.tod-text { font: 600 21px/1.4 var(--body); color: var(--text); max-width: 40ch; }

/* ---------- regions ---------- */
.route { display: flex; align-items: center; justify-content: space-between; max-width: 560px; margin: 0 0 26px; position: relative; }
.route::before { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; border-top: 1px dashed rgba(142, 163, 189, .45); }
.route li { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); }
.route .ok { border-color: var(--aqua); background: var(--aqua); box-shadow: 0 0 10px var(--aqua); }
.route .weak { border-color: var(--sun); animation: flicker 2.2s steps(1) infinite; }
.route .lost { border-color: var(--alert); animation: flicker 1.3s steps(1) infinite; }
.route .none { border-color: rgba(142, 163, 189, .35); }
@keyframes flicker { 0%, 100% { opacity: 1; } 12% { opacity: .2; } 18% { opacity: 1; } 56% { opacity: .5; } 60% { opacity: 1; } }
.region-list {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)) calc(-1 * var(--gutter-r)); padding: 4px var(--gutter-r) 14px var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.region-list::-webkit-scrollbar { display: none; }
.region {
  position: relative; flex: none; width: min(66vw, 260px); aspect-ratio: 9 / 15; overflow: hidden; scroll-snap-align: start;
  border-radius: 14px; background: #05040a; border: 1px solid var(--edge); isolation: isolate;
}
.region img, .region canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.region canvas { image-rendering: pixelated; opacity: .55; }
.region::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 4, 10, .2), transparent 30%, rgba(5, 4, 10, .55) 58%, rgba(5, 4, 10, .95)); }
.region-copy { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.region-no { font: 600 10px/1.2 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--aqua); }
.region h3 { font: 800 19px/1.15 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.region-foe { font: 700 13px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.region-line { font-size: 16px; line-height: 1.35; color: var(--text-soft); }
.status { align-self: flex-start; margin-top: 8px; padding: 4px 8px; border-radius: 5px; font: 800 10px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--aqua); border: 1px solid currentColor; }
.r-weak .status, .r-weak .region-no { color: var(--sun); }
.r-lost .status, .r-lost .region-no { color: var(--alert); }
.r-none .status, .r-none .region-no { color: var(--muted); }
.r-weak img { animation: tear 5s steps(1) infinite; }
@keyframes tear { 0%, 100% { transform: none; } 31% { transform: translateX(3px) skewX(-1deg); } 33% { transform: none; } 71% { transform: translateX(-4px); } 72% { transform: none; } }
.redact { background: currentColor; color: rgba(142, 163, 189, .55); border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; user-select: none; }
.decrypt {
  position: absolute; top: 12px; right: 12px; min-height: 34px; padding: 0 12px; border-radius: 8px; cursor: pointer;
  font: 700 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--text); background: rgba(5, 4, 10, .7); border: 1px solid var(--edge);
}
.region.denied { animation: denied .5s steps(5); }
.region.denied .decrypt { color: var(--alert); border-color: var(--alert); }
@keyframes denied { 0%, 100% { transform: none; } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); filter: hue-rotate(60deg) contrast(1.3); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.decrypt-msg { min-height: 1.6em; margin-top: 14px; font: 600 12px/1.4 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--alert); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 30px; border-radius: var(--radius); overflow: hidden; background: rgba(140, 200, 255, .14); border: 1px solid rgba(140, 200, 255, .14); }
.stats li { padding: 18px 16px; background: var(--bg-lift); font: 700 13px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stats b { display: block; font: 800 clamp(26px, 6vw, 40px)/1.1 var(--display); letter-spacing: .02em; color: var(--title); text-transform: none; }

/* ---------- key art strip ---------- */
.strip {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter-r) 10px var(--gutter); scroll-padding-inline: var(--gutter);
  max-width: 1400px; margin-inline: auto;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: none; scroll-snap-align: start; }
.shot { display: block; width: min(62vw, 270px); padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.shot img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; border: 1px solid var(--edge); transition: transform .3s ease, border-color .3s ease; }
.shot:hover img { transform: translateY(-3px); border-color: rgba(62, 240, 228, .5); }
.shot span { display: block; margin-top: 10px; font: 700 13px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }

/* ---------- fair ---------- */
.fair-panel {
  position: relative; overflow: hidden; padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 64px);
  border-radius: 18px; background: radial-gradient(80% 90% at 100% 0%, rgba(255, 210, 90, .1), transparent 60%), var(--glass); border: 1px solid var(--edge);
}
.fair-panel .kicker { color: var(--gold); }
.fair-panel .kicker::before { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.fair-panel .kicker::after { background: linear-gradient(90deg, rgba(255, 210, 90, .7), transparent); }
.fair-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; }
.fair-list li {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 14px; border-radius: 10px;
  font: 800 13px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase;
  background: rgba(5, 6, 12, .55); border: 1px solid var(--edge);
}
.fair-list li::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; }
.fair-list .no { color: var(--text-soft); }
.fair-list .no::before { border-color: var(--alert); background: linear-gradient(45deg, transparent 45%, var(--alert) 45% 55%, transparent 55%); }
.fair-list .yes { color: var(--gold); border-color: rgba(255, 210, 90, .45); }
.fair-list .yes::before { background: radial-gradient(circle, var(--gold) 0 4px, transparent 5px); }

/* ---------- join ---------- */
.join { background: radial-gradient(60% 50% at 50% 0%, rgba(62, 240, 228, .09), transparent 70%), var(--bg); }
.countdown { display: grid; justify-items: center; gap: 12px; margin-bottom: clamp(36px, 7vw, 64px); text-align: center; }
.cd-label { font: 600 11px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.cd-digits { display: flex; gap: clamp(8px, 2.5vw, 18px); }
.cd-digits span { display: grid; justify-items: center; min-width: clamp(64px, 19vw, 120px); padding: 14px 6px 10px; border-radius: 12px; background: var(--glass); border: 1px solid var(--edge); }
.cd-digits b { font: 800 clamp(30px, 9vw, 64px)/1 var(--display); font-variant-numeric: tabular-nums; color: var(--title); text-shadow: 0 0 20px rgba(95, 211, 255, .45); }
.cd-digits small { margin-top: 6px; font: 600 9px/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.countdown.classified .cd-digits b { color: rgba(142, 163, 189, .55); text-shadow: none; animation: flicker 3s steps(1) infinite; }
.cd-classified { font-size: 17px; color: var(--text-soft); }
.countdown:not(.classified) .cd-classified { display: none; }
.join-grid { display: grid; gap: 22px; }
.signup { padding: clamp(20px, 4vw, 34px); border-radius: 16px; background: var(--glass); border: 1px solid var(--edge); }
.signup label { display: block; font: 800 15px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--title); }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.signup input {
  flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: var(--radius);
  font: 600 18px/1 var(--body); color: var(--text); background: rgba(3, 4, 9, .8); border: 1px solid var(--edge);
}
.signup input::placeholder { color: rgba(142, 163, 189, .7); }
.signup input:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(62, 240, 228, .2); }
.signup input[aria-invalid='true'] { border-color: var(--alert); }
.signup .btn { min-height: 52px; flex: 1 1 150px; }
.signup-help { margin-top: 12px; font-size: 15px; color: var(--muted); }
.signup-msg { min-height: 1.4em; margin-top: 8px; font: 600 16px/1.4 var(--body); color: var(--aqua-pale); }
.signup-msg.err { color: #ff8a96; }
.join-side { display: grid; gap: 16px; align-content: start; }
.join-discord {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; text-decoration: none;
  background: linear-gradient(160deg, rgba(88, 101, 242, .22), rgba(10, 12, 24, .9)); border: 1px solid rgba(122, 124, 255, .45);
}
.join-discord svg { width: 34px; height: 34px; color: #b9bcff; flex: none; }
.join-discord span { display: flex; flex-direction: column; gap: 4px; }
.join-discord b { font: 800 15px/1.1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.join-discord small { font-size: 15px; color: var(--text-soft); }
.join-play { width: 100%; }
.join-side .stores { justify-content: flex-start; margin-top: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.socials a { font: 700 14px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.socials a:hover { color: var(--aqua); }

/* ---------- press ---------- */
.press { background: var(--bg-lift); border-top: 1px solid rgba(140, 200, 255, .1); }
.press-grid { display: grid; gap: 28px; }
.facts { display: grid; gap: 1px; border-radius: var(--radius); overflow: hidden; background: rgba(140, 200, 255, .14); border: 1px solid rgba(140, 200, 255, .14); align-self: start; }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 14px; background: var(--bg); }
.facts dt { font: 600 10px/1.6 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 17px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.blurbs { display: grid; gap: 12px; max-width: 68ch; color: var(--text-soft); font-size: 17px; }
.blurbs h3 { margin-top: 10px; font: 800 13px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.blurbs h3:first-child { margin-top: 0; }
.feature-list { display: grid; gap: 6px; }
.feature-list li { padding-left: 18px; position: relative; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--aqua); }
.downloads-title { margin-top: clamp(36px, 6vw, 56px); font: 800 15px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.press-note { margin-top: 10px; font-size: 15px; color: var(--aqua-pale); }
.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.downloads li:nth-child(odd):last-child { grid-column: span 2; }
.downloads a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 10px 10px 14px; border-radius: 12px; text-decoration: none; background: var(--bg); border: 1px solid var(--edge); }
.downloads a:hover { border-color: rgba(62, 240, 228, .55); }
.downloads img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; margin-bottom: 8px; background: #05040a; }
.downloads img.dl-logo, .downloads img.dl-char, .downloads img.dl-icon { object-fit: contain; padding: 10px; }
.downloads b { font: 700 15px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.downloads small { font-size: 13px; color: var(--muted); line-height: 1.3; }
.downloads a.off { pointer-events: none; opacity: .7; }
.zip-row { margin-top: 18px; }

/* ---------- footer ---------- */
.footer { padding-block: 48px calc(96px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(140, 200, 255, .1); background: var(--bg); }
.footer-in { display: grid; gap: 22px; }
.footer-logo { font: 800 18px/1 var(--display); letter-spacing: .14em; color: var(--title); }
.footer-logo span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .34em; color: var(--sun-soft); }
.footer-by { margin-top: 12px; color: var(--muted); font-size: 15px; }
.qr { display: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-nav a { font: 700 14px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--aqua); }
.footer-fine { font-size: 13px; color: rgba(142, 163, 189, .75); }

/* ---------- phone dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 10px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(0deg, rgba(7, 5, 11, .96), rgba(7, 5, 11, .85)); border-top: 1px solid rgba(140, 200, 255, .14);
  transform: translateY(110%); transition: transform .3s ease;
}
.dock .btn { flex: 1; min-height: 48px; font-size: 12px; }
.dock.on { transform: none; }

/* ---------- lightbox ---------- */
.lightbox { width: min(92vw, 560px); max-height: 92vh; padding: 0; border: 1px solid var(--edge); border-radius: 16px; background: #05040a; color: var(--text); overflow: hidden; }
.lightbox::backdrop { background: rgba(3, 2, 6, .88); backdrop-filter: blur(4px); }
.lb-img { width: 100%; max-height: calc(92vh - 56px); object-fit: contain; background: #05040a; }
.lb-cap { padding: 14px 18px; font: 700 14px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.lb-close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--edge); background: rgba(5, 4, 10, .75); font-size: 26px; line-height: 1; cursor: pointer; }

/* ---------- small pages (404, support, privacy, terms) ---------- */
.page-main { padding-top: calc(110px + env(safe-area-inset-top, 0px)); min-height: 70vh; }
.page-wrap { max-width: 820px; }
.page-title { margin-top: 14px; font: 800 clamp(32px, 8vw, 60px)/1.05 var(--display); text-transform: uppercase; }
.page-title em { font-style: normal; color: var(--sun-soft); text-shadow: 0 0 22px rgba(255, 154, 74, .55); }
.page-cta { justify-content: flex-start; }
.page-stores { justify-content: flex-start; }
.faq { display: grid; gap: 12px; margin-top: 36px; color: var(--text-soft); }
.faq h2 { margin-top: 18px; font: 800 16px/1.3 var(--display); letter-spacing: .1em; color: var(--title); text-transform: uppercase; }
.todo { margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px dashed rgba(255, 210, 90, .55); color: var(--gold); background: rgba(255, 210, 90, .06); }

@media (max-width: 639px) {
  .trio { aspect-ratio: 100 / 74; }
  .dev-laptop { left: 10%; width: 80%; }
  .dev-tablet { width: 34%; left: 0; }
  .dev-phone { width: 20%; right: 2%; }
}

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .fair-list { grid-template-columns: repeat(4, 1fr); }
  .mechanics { grid-template-columns: repeat(3, 1fr); }
  .downloads { grid-template-columns: repeat(3, 1fr); }
  .downloads li:nth-child(odd):last-child { grid-column: auto; }
}
@media (min-width: 900px) {
  .nav, .signal { display: flex; }
  .kicker { font-size: 11px; letter-spacing: .22em; }
  .topbar .btn-play { margin-left: 0; }
  .scroll-cue { display: flex; }
  .hero-top, .hero-bottom { text-align: left; }
  .hero-top { padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
  .hero-bottom { padding-bottom: clamp(56px, 9vh, 100px); }
  .logo-name { font-size: clamp(40px, 6.4vw, 104px); padding-left: 0; }
  .logo-sub { font-size: clamp(14px, 2.2vw, 36px); padding-left: 0; }
  .pitch { margin-left: 0; max-width: 26ch; }
  .cta-row, .stores { justify-content: flex-start; }
  .cta-row .btn { flex: 0 1 auto; }
  .hero-art img { object-position: 50% 40%; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(7, 5, 11, .72) 0%, rgba(7, 5, 11, .35) 30%, rgba(7, 5, 11, 0) 48%),
      linear-gradient(180deg, rgba(7, 5, 11, .6) 0%, rgba(7, 5, 11, 0) 18%, rgba(7, 5, 11, 0) 62%, rgba(7, 5, 11, .8) 84%, var(--bg) 100%),
      repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px);
  }

  .beat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 0 max(40px, 5vw); gap: 4vw; }
  .beat-blur { display: block; position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(.38) saturate(1.1); transform: scale(1.05); }
  .beat-frame { position: relative; inset: auto; z-index: 2; height: 84vh; height: 84svh; aspect-ratio: 9 / 16; justify-self: center; border-radius: 14px; }
  .beat-frame img, .beat-frame video { border-radius: 14px; border: 1px solid var(--edge); }
  .beat-frame.hud::after { display: block; }
  .beat::after { background: radial-gradient(100% 80% at 50% 50%, transparent, rgba(3, 5, 14, .6)); }
  .beat-copy { text-align: left; padding: 0; }
  .beat-copy .kicker { justify-content: flex-start; }
  .beat-2 .beat-frame { order: 2; }
  .beat-2 .beat-copy { order: 1; text-align: right; }
  .beat-2 .beat-cap { text-align: left; }
  .beat-line { font-size: clamp(52px, 6.4vw, 108px); }
  .beat-3 .beat-line { font-size: clamp(44px, 5.2vw, 90px); }

  .teaser { aspect-ratio: 16 / 9; width: 100%; max-height: none; }
  .feed { grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: 48px; align-items: center; }
  .feed-screen { width: 100%; }
  .feed-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 10px; padding: 0; }
  .feed-list button { width: 100%; height: 100%; border-radius: 12px; min-height: 64px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: 10px; row-gap: 6px; text-align: left; white-space: normal; }
  .feed-list button b { grid-row: span 2; padding-top: 2px; }
  .feed-list small { display: block; font: 500 15px/1.35 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
  .feed-list button[aria-pressed='true'] small { color: var(--text-soft); }

  .dev-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding: 0; }
  .card { width: auto; }
  .card-art { height: 250px; }
  .card-name { font-size: clamp(16px, 1.6vw, 22px); }
  .pager { display: none; }

  .cycle-in { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
  .cycle-screen { order: 0; width: 100%; }
  .cycle-copy { order: 0; }

  .region-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; overflow: visible; margin-inline: 0; padding: 0; }
  .region { width: auto; aspect-ratio: 4 / 5; }
  .region-copy { padding: 22px; }
  .region h3 { font-size: 24px; }

  .strip { justify-content: flex-start; }
  .join-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 28px; }
  .press-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; }
  .footer-in { grid-template-columns: 1fr auto; align-items: start; }
  .qr { display: grid; place-items: center; gap: 6px; width: 104px; padding: 10px; border-radius: 10px; border: 1px dashed rgba(142, 163, 189, .45); color: var(--muted); text-align: center; grid-row: span 2; }
  .qr span { font: 800 22px/1 var(--display); }
  .qr small { font-size: 11px; line-height: 1.2; }
  .dock { display: none; }
  .footer { padding-bottom: 48px; }
}
@media (min-width: 1200px) {
  .strip { padding-left: max(var(--gutter), calc((100vw - 1200px) / 2 + 16px)); scroll-padding-left: max(var(--gutter), calc((100vw - 1200px) / 2 + 16px)); }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .beat { position: relative; }
  .story-glitch .beat { position: absolute; }
  .story-glitch.calm .beat { transition-duration: .45s !important; }
}
