:root {
  color-scheme: dark;
  --bg: #05060c;
  --panel: #0d1222;
  --panel-deep: #090d19;
  --cream: #fffbe0;
  --text: #dce6fb;
  --muted: #b9c7e2;
  --muted-2: #9fb2d8;
  --cyan: #5de1ff;
  --yellow: #ffd34d;
  --green: #7dff8a;
  --red: #ff5a5a;
  --border: rgba(255,255,255,.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  min-width: 280px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: rgba(93,225,255,.28); color: white; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 12%, rgba(255,233,138,.07), transparent 24rem),
    radial-gradient(circle at 82% 24%, rgba(93,225,255,.08), transparent 28rem),
    linear-gradient(rgba(93,225,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,225,255,.025) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 72%, transparent 100%);
}

.cinematic-backdrop {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: min(1040px, 112svh);
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(5,6,12,.24) 0%, rgba(5,6,12,.28) 42%, #05060c 94%),
    linear-gradient(90deg, rgba(5,6,12,.42) 0%, rgba(5,6,12,.08) 48%, rgba(5,6,12,.18) 100%),
    url('/assets/cinematic-hero-green.webp?v=3');
  background-position: center top, center top, 74% top;
  background-size: cover;
  filter: saturate(1.08) contrast(1.04);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(5,6,12,.94), rgba(5,6,12,.68));
  backdrop-filter: blur(18px);
}
.topbar-inner {
  width: min(100% - 32px, 1440px);
  height: 60px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand-lens {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,233,138,.55);
  border-radius: 50%;
  background: rgba(255,233,138,.1);
  box-shadow: 0 0 26px rgba(255,233,138,.2), inset 0 0 18px rgba(255,233,138,.08);
}
.brand-lens svg { width: 17px; fill: #ffe98a; }
.brand-copy { min-width: 0; line-height: 1; }
.brand-copy > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 900; letter-spacing: .12em; }
.brand-copy small { display: block; margin-top: 6px; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
nav { display: flex; align-items: center; gap: 12px; }
.how-link { padding: 10px 8px; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.how-link:hover { color: white; }
.outline-button, .play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(93,225,255,.7);
  border-radius: 999px;
  background: rgba(16,23,43,.8);
  color: white;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(93,225,255,.16);
}
.outline-button:hover { background: #182848; }

.cinematic-landing {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #03040a;
}
.cinematic-reel,
.cinematic-slide,
.cinematic-fill,
.cinematic-art,
.cinematic-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cinematic-reel {
  z-index: 0;
  overflow: hidden;
  background: #03040a;
}
.cinematic-slide {
  margin: 0;
}
.cinematic-art {
  z-index: 1;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.08) contrast(1.03) brightness(.9);
}
.cinematic-shade {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,4,10,.72) 0%, rgba(3,4,10,.08) 23%, rgba(3,4,10,.06) 63%, rgba(3,4,10,.88) 100%),
    linear-gradient(90deg, rgba(3,4,10,.42) 0%, transparent 38%, transparent 76%, rgba(3,4,10,.12) 100%);
}
.reel-curtain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: #03040a;
  opacity: 0;
  transition: opacity .16s ease-in;
}
.reel-curtain.is-changing {
  opacity: .97;
  transition-duration: .12s;
}
.landing-inner {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 48px), 1640px);
  min-height: 100svh;
  margin: auto;
}
.title-lockup {
  position: absolute;
  top: clamp(76px, 8.5svh, 104px);
  left: clamp(0px, 2vw, 32px);
  width: clamp(480px, 38vw, 720px);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.82)) drop-shadow(0 0 22px rgba(255,102,24,.16));
}
.reel-controls {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}
.reel-toggle,
.reel-dot {
  padding: 0;
  border: 1px solid rgba(255,226,154,.38);
  background: rgba(7,8,12,.62);
  color: #fff1c2;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.reel-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.reel-dots { display: flex; align-items: center; gap: 0; }
.reel-dot {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.reel-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255,226,154,.38);
  border-radius: 50%;
  background: rgba(7,8,12,.62);
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  transition: width .2s ease, border-radius .2s ease, background .2s ease, box-shadow .2s ease;
}
.reel-dot.is-active::before {
  width: 24px;
  border-radius: 999px;
  background: #ffd375;
  box-shadow: 0 0 14px rgba(255,179,66,.7);
}
.reel-toggle:hover,
.reel-dot:hover::before { border-color: #fff0b0; background-color: rgba(68,44,19,.86); }
.launch-panel {
  position: absolute;
  left: 50%;
  bottom: clamp(52px, 7svh, 84px);
  width: min(92%, 680px);
  transform: translateX(-50%);
  text-align: center;
}
.mythic-play {
  position: relative;
  min-width: 278px;
  min-height: 66px;
  padding: 0 42px 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  overflow: hidden;
  border: 1px solid rgba(255,220,142,.78);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(66,48,27,.96), rgba(12,13,16,.98) 52%, rgba(25,15,12,.98)),
    #0b0c10;
  color: #fff3cf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000, 0 0 16px rgba(255,199,91,.35);
  box-shadow:
    0 14px 38px rgba(0,0,0,.58),
    0 0 34px rgba(255,93,32,.2),
    inset 0 1px rgba(255,244,205,.22),
    inset 0 -8px 18px rgba(0,0,0,.42);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.mythic-play::before,
.mythic-play::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.mythic-play::before {
  inset: 5px;
  border: 1px solid rgba(255,132,47,.25);
  border-radius: 4px;
}
.mythic-play::after {
  top: -80%;
  left: -26%;
  width: 24%;
  height: 260%;
  background: linear-gradient(90deg, transparent, rgba(255,249,215,.42), transparent);
  transform: rotate(16deg);
  transition: left .42s ease;
}
.mythic-play:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: #fff0b0;
  color: white;
  box-shadow: 0 18px 50px rgba(0,0,0,.62), 0 0 46px rgba(255,116,45,.34), inset 0 1px rgba(255,255,255,.28);
}
.mythic-play:hover::after { left: 114%; }
.play-lens {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,226,154,.86);
  border-radius: 50%;
  background: radial-gradient(circle, #fffbd9 0 15%, #ffc55f 26%, #9c3d1e 48%, #11141b 53%);
  box-shadow: 0 0 20px rgba(255,197,94,.58), inset 0 0 8px #fff2af;
}
.play-lens svg { width: 16px; fill: #100b08; transform: translateX(1px); }
.mythic-play > i {
  position: absolute;
  right: 12px;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, #ffd375, transparent);
  box-shadow: 0 0 8px #ffd375;
}
.launch-line {
  margin: 16px 0 0;
  color: #fff6d8;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: .025em;
  text-shadow: 0 2px 14px #000, 0 1px 2px #000;
}
.launch-facts {
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  color: #cad5ec;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  list-style: none;
  text-transform: uppercase;
  text-shadow: 0 2px 10px #000;
}
.briefing-cue {
  position: absolute;
  right: 28px;
  bottom: 22px;
  z-index: 4;
  color: #d8e1f3;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 2px 10px #000;
}
.briefing-cue:hover { color: white; }
.below-fold { padding-top: 0; }

.page { position: relative; z-index: 10; width: min(100% - 48px, 1440px); margin: auto; padding: 12px 0 64px; }
.hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); align-items: center; gap: 16px; min-height: clamp(110px,10vw,150px); margin-bottom: 6px; }
.eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.live { display: flex; align-items: center; gap: 8px; color: var(--cyan); }
.eyebrow.live > span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.eyebrow.gold { color: var(--yellow); }
h1 { margin: 0; font-weight: 950; line-height: .92; letter-spacing: -.045em; text-wrap: balance; }
h1 > span { display: block; white-space: nowrap; font-size: clamp(1.9rem,3.1vw,3.25rem); text-shadow: 0 3px 28px rgba(0,0,0,.9), 0 1px 2px #000; }
h1 > small { display: block; margin-top: 6px; color: var(--red); font-size: clamp(1rem,1.5vw,1.35rem); letter-spacing: .08em; text-shadow: 0 0 20px rgba(255,43,43,.34); }
.hero-copy { max-width: 560px; padding-bottom: 4px; }
.hero-copy > p { margin: 0; color: #f1f5ff; font-size: 14px; font-weight: 750; line-height: 1.4; text-shadow: 0 2px 16px #000, 0 1px 2px #000; }
.hero-copy ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 8px 0 0; padding: 0; color: var(--muted-2); font-size: 12px; font-weight: 750; list-style: none; }

.play { scroll-margin-top: 80px; }
.play-note { min-height: 24px; padding: 0 4px 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 650; }
.play-note p { margin: 0; }
.play-note p:first-child { display: flex; align-items: center; gap: 8px; }
.play-note p:last-child { color: var(--yellow); text-align: right; }
.play-note svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.touch-help { display: none; }
.game-shell { overflow: hidden; border: 1px solid rgba(93,225,255,.45); border-radius: 24px; background: #03040a; box-shadow: 0 24px 90px rgba(0,0,0,.62), 0 0 45px rgba(93,225,255,.11); isolation: isolate; }
.game-bar { height: 36px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); background: #0b1020; }
.game-bar > span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.game-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.game-bar a { color: var(--cyan); font-size: 12px; font-weight: 900; text-decoration: none; }
.game-bar a:hover { color: white; }
iframe { display: block; width: 100%; height: clamp(360px,calc(100svh - 300px),720px); border: 0; background: #03040a; }

.field-notes { padding: 76px 0; }
h2 { margin: 0; color: white; font-size: clamp(30px,3vw,40px); line-height: 1.08; letter-spacing: -.025em; }
.note-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 30px; }
.note-grid article { padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: rgba(13,18,34,.88); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.note-icon { display: block; margin-bottom: 20px; color: var(--cyan); font-size: 28px; line-height: 1; }
.note-grid h3 { margin: 0; font-size: 18px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.note-grid p { margin: 9px 0 0; color: var(--muted); font-size: 14px; font-weight: 550; line-height: 1.65; }

.controls { scroll-margin-top: 80px; padding: 28px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 32px; border: 1px solid var(--border); border-radius: 24px; background: rgba(9,13,25,.92); }
.keyboard-icon { display: block; margin-bottom: 18px; color: var(--yellow); font-size: 30px; }
.controls-intro > p:last-child { max-width: 540px; margin: 13px 0 0; color: var(--muted); font-size: 14px; font-weight: 550; line-height: 1.65; }
.control-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px 20px; margin: 0; align-content: center; }
.control-grid div { min-width: 0; padding-left: 12px; border-left: 2px solid rgba(93,225,255,.45); }
.control-grid dt { color: var(--muted-2); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.control-grid dd { margin: 5px 0 0; color: white; font-size: 14px; font-weight: 900; }
.accessibility { grid-column: 1 / -1; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--border); }
.accessibility p { max-width: 980px; margin: 0; color: var(--text); font-size: 14px; font-weight: 550; line-height: 1.65; }
.accessibility p > span { margin-right: 8px; color: var(--green); }
.accessibility strong { color: white; font-weight: 900; }
.play-button { min-height: 44px; flex: 0 0 auto; padding-inline: 22px; border: 0; background: var(--cyan); color: #051018; box-shadow: 0 0 24px rgba(93,225,255,.24); }
.play-button:hover { background: #9aecff; }
footer { padding: 32px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #8091b5; font-size: 12px; font-weight: 650; }
footer p { margin: 0; }

:focus-visible { outline: 3px solid rgba(93,225,255,.9); outline-offset: 3px; }

@media (max-width: 900px) {
  .page { width: min(100% - 28px, 1440px); padding-top: 24px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .cinematic-backdrop { background-position: 54% top; opacity: .88; }
  iframe { height: max(420px,calc(100svh - 180px)); }
  .controls { grid-template-columns: 1fr; }
  .control-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .accessibility { grid-column: auto; }
  .cinematic-landing,
  .landing-inner { min-height: max(720px, 100svh); }
  .cinematic-art { object-fit: cover; object-position: var(--scene-position, 58%) center; opacity: .9; }
  .title-lockup {
    top: 84px;
    left: 50%;
    width: min(92vw, 620px);
    transform: translateX(-50%);
  }
  .launch-panel { bottom: 58px; }
  .briefing-cue { display: none; }
}

@media (max-width: 680px) {
  .topbar-inner { width: calc(100% - 24px); }
  .brand-copy > span { font-size: 11px; }
  .brand-lens { width: 34px; height: 34px; }
  .how-link { display: none; }
  .outline-button { padding-inline: 12px; font-size: 12px; }
  .page { width: calc(100% - 20px); }
  h1 > span { white-space: normal; }
  .play-note { align-items: flex-start; flex-direction: column; }
  .play-note p:last-child { display: none; }
  .desktop-help { display: none; }
  .touch-help { display: inline; }
  .game-shell { border-radius: 18px; }
  .game-bar { padding-inline: 12px; }
  .game-bar > span { max-width: 58%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cinematic-backdrop {
    height: 760px;
    background-position: 55% top;
    background-size: auto 760px;
    opacity: .72;
  }
  .hero { min-height: 310px; }
  iframe { height: max(360px,calc(100svh - 150px)); }
  .field-notes { padding: 56px 0; }
  .note-grid { grid-template-columns: 1fr; }
  .controls { padding: 20px; }
  .control-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .accessibility { align-items: stretch; flex-direction: column; }
  .play-button { width: 100%; }
  footer { align-items: flex-start; flex-direction: column; line-height: 1.5; }
  .cinematic-landing,
  .landing-inner { min-height: max(680px, 100svh); }
  .cinematic-art { object-position: var(--scene-mobile-position, var(--scene-position, 31%)) center; filter: saturate(1.05) contrast(1.02) brightness(.7); }
  .cinematic-shade {
    background: linear-gradient(180deg, rgba(3,4,10,.74), rgba(3,4,10,.08) 38%, rgba(3,4,10,.36) 62%, rgba(3,4,10,.95));
  }
  .title-lockup { top: 78px; width: calc(100vw - 20px); }
  .launch-panel { bottom: 34px; width: calc(100% - 24px); }
  .reel-controls { left: 12px; bottom: 10px; transform: scale(.9); transform-origin: left bottom; }
  .mythic-play { width: min(100%, 330px); min-width: 0; min-height: 62px; font-size: 19px; }
  .launch-facts { gap: 5px 14px; font-size: 9px; }
}

@media (max-width: 390px) {
  .brand-lens { display: none; }
  .brand-copy > span { max-width: 168px; }
}

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