:root {
  color-scheme: dark;
  --ink: #effcf9;
  --muted: #91a9aa;
  --dim: #526869;
  --bg: #071018;
  --panel: #0c1b23;
  --panel-2: #10242c;
  --line: rgba(170, 225, 218, 0.15);
  --line-bright: rgba(170, 225, 218, 0.32);
  --aqua: #7df4d5;
  --aqua-2: #27c9b7;
  --coral: #ff836f;
  --yellow: #f7d779;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  z-index: 5;
  background-image: radial-gradient(rgba(255,255,255,0.38) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
}

.site-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand, .topnav, .nav-live, .hero-actions, .game-actions, .status-readout, .live-chip, .watch-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  transform: skew(-12deg);
}

.brand-mark span { width: 4px; border-radius: 5px; background: var(--aqua); }
.brand-mark span:nth-child(1) { height: 9px; opacity: 0.52; }
.brand-mark span:nth-child(2) { height: 17px; }
.brand-mark span:nth-child(3) { height: 13px; opacity: 0.75; }

.topnav { gap: 28px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: 0.04em; }
.topnav a { transition: color 180ms ease; }
.topnav a:hover, .topnav a:focus-visible { color: var(--ink); }
.nav-live { gap: 8px; color: var(--ink) !important; }
.nav-live span, .live-pulse, .status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,131,111,0.12), 0 0 16px var(--coral); }

.hero { padding: 104px 0 96px; max-width: 770px; }
.eyebrow, .card-kicker, .side-label { color: var(--aqua); font-size: 10px; font-weight: 760; letter-spacing: 0.18em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 11px; }
.eyebrow-line { width: 33px; height: 1px; background: var(--aqua); opacity: 0.8; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -0.045em; }
h1 { margin-top: 23px; font-size: clamp(64px, 9vw, 120px); line-height: 0.88; }
h1 em, h2 em { color: var(--aqua); font-style: italic; }
.hero-copy { max-width: 485px; margin-top: 29px; color: var(--muted); font-size: 16px; line-height: 1.68; }
.hero-actions { gap: 12px; margin-top: 31px; flex-wrap: wrap; }
.button { min-height: 48px; border: 1px solid transparent; border-radius: 999px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: 12px; font-weight: 760; letter-spacing: 0.02em; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--aqua); color: #071018; box-shadow: 0 10px 26px rgba(125,244,213,0.17); }
.button-primary:hover, .button-primary:focus-visible { background: #b6ffeb; }
.button-ghost { border-color: var(--line-bright); color: var(--ink); background: rgba(255,255,255,0.02); }
.button-ghost:hover, .button-ghost:focus-visible { border-color: var(--aqua); background: rgba(125,244,213,0.08); }
.hero-metrics { display: flex; gap: 36px; margin-top: 70px; }
.hero-metrics div { display: grid; gap: 5px; }
.hero-metrics strong { color: var(--ink); font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.hero-metrics span { color: var(--dim); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 26px; align-items: start; }
.game-card { min-width: 0; padding: 23px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(17,38,46,0.93), rgba(8,20,28,0.95)); box-shadow: var(--shadow); }
.game-topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 18px; }
.card-kicker { color: var(--muted); font-size: 9px; letter-spacing: 0.17em; }
.game-topline h2 { margin-top: 7px; font-size: clamp(23px, 3vw, 33px); line-height: 1; }
.heading-slash { color: var(--aqua); font-family: "Segoe UI", sans-serif; font-size: 0.65em; font-weight: 400; }
.telemetry { display: flex; gap: 20px; text-align: right; }
.telemetry div { display: grid; gap: 3px; }
.telemetry span { color: var(--dim); font-size: 8px; font-weight: 750; letter-spacing: 0.15em; text-transform: uppercase; }
.telemetry strong { color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; }

.canvas-wrap { position: relative; overflow: hidden; border: 1px solid rgba(125,244,213,0.2); background: #061017; box-shadow: inset 0 0 60px rgba(0,0,0,0.45); }
canvas { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; touch-action: none; }
.canvas-corner { position: absolute; width: 17px; height: 17px; pointer-events: none; border-color: var(--aqua); border-style: solid; opacity: 0.75; }
.corner-tl { left: 10px; top: 10px; border-width: 1px 0 0 1px; }
.corner-br { right: 10px; bottom: 10px; border-width: 0 1px 1px 0; }
.game-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 50%, rgba(7,16,24,0.25), rgba(7,16,24,0.85)); transition: opacity 220ms ease, visibility 220ms ease; }
.game-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.overlay-orbit { width: 85px; height: 85px; position: absolute; border: 1px solid rgba(125,244,213,0.2); border-radius: 50%; animation: orbit 12s linear infinite; }
.overlay-orbit::before { content: ""; width: 7px; height: 7px; position: absolute; top: -4px; left: 39px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 18px var(--aqua); }
.overlay-kicker { position: relative; color: var(--aqua); font-size: 9px; font-weight: 760; letter-spacing: 0.18em; text-transform: uppercase; }
.game-overlay h3 { position: relative; margin-top: 12px; font-size: clamp(31px, 5vw, 48px); }
.game-overlay p { position: relative; max-width: 370px; margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.overlay-button { position: relative; margin-top: 21px; }
.overlay-hint { position: relative; margin-top: 14px; color: var(--dim); font-size: 10px; }
@keyframes orbit { to { transform: rotate(360deg); } }

.game-bottomline { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.status-readout { gap: 9px; color: var(--muted); font-size: 11px; }
.status-dot { width: 6px; height: 6px; background: var(--aqua); box-shadow: 0 0 0 4px rgba(125,244,213,0.1), 0 0 14px var(--aqua); }
.status-dot.alert { background: var(--coral); box-shadow: 0 0 0 4px rgba(255,131,111,0.1), 0 0 14px var(--coral); }
.game-actions { gap: 20px; }
.text-button { border: 0; padding: 8px 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: color 180ms ease; }
.text-button:hover, .text-button:focus-visible { color: var(--aqua); }
.text-button span { margin-left: 5px; color: var(--aqua); }
.mobile-controls { display: none; align-items: center; justify-content: center; gap: 17px; padding-top: 16px; color: var(--dim); font-size: 9px; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase; }
.control-button { width: 54px; height: 40px; border: 1px solid var(--line-bright); border-radius: 6px; background: rgba(125,244,213,0.04); color: var(--aqua); font-size: 20px; }
.control-button:active { background: rgba(125,244,213,0.18); transform: translateY(1px); }

.side-panel { padding: 18px 0 0 7px; }
.side-intro { margin-top: 20px; color: var(--muted); font-family: Georgia, serif; font-size: 19px; line-height: 1.38; }
.protocol-list { margin: 35px 0 0; padding: 0; list-style: none; }
.protocol-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 17px 0; border-top: 1px solid var(--line); }
.protocol-list li > span { color: var(--aqua); font-size: 10px; font-weight: 760; letter-spacing: 0.1em; }
.protocol-list strong { display: block; font-size: 12px; }
.protocol-list p { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.48; }
.side-callout { margin-top: 30px; padding: 15px 13px; display: grid; grid-template-columns: 15px 1fr 18px; gap: 10px; align-items: start; border: 1px solid rgba(125,244,213,0.18); background: rgba(125,244,213,0.045); }
.callout-orb { width: 9px; height: 9px; margin-top: 4px; border: 1px solid var(--aqua); border-radius: 50%; box-shadow: 0 0 12px var(--aqua); }
.side-callout strong { font-size: 11px; }
.side-callout p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.side-callout a { color: var(--aqua); font-size: 16px; text-align: right; }

.lower-band, .watch-footer-band { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; padding: 138px 0 130px; }
.lower-band h2, .watch-footer-band h2 { margin-top: 20px; font-size: clamp(46px, 6vw, 72px); line-height: 0.92; }
.lower-copy { max-width: 390px; justify-self: end; }
.lower-copy p, .watch-footer-band p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.inline-link { display: inline-flex; gap: 9px; margin-top: 23px; padding-bottom: 5px; border-bottom: 1px solid var(--aqua); color: var(--aqua); font-size: 11px; font-weight: 760; }
.footer { min-height: 80px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border-top: 1px solid var(--line); color: var(--dim); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

.watch-hero { display: grid; grid-template-columns: minmax(245px, 0.68fr) minmax(0, 1.32fr); gap: 44px; align-items: center; padding: 82px 0 42px; }
.watch-copy h1 { font-size: clamp(58px, 7vw, 95px); }
.watch-copy .hero-copy { max-width: 390px; font-size: 14px; }
.live-chip { width: fit-content; gap: 9px; margin-top: 25px; padding: 9px 12px; border: 1px solid rgba(255,131,111,0.22); background: rgba(255,131,111,0.06); color: var(--muted); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
.live-chip strong { color: var(--coral); font-size: 9px; }
.watch-links { gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.watch-card { padding: 18px; }
.watch-card .game-topline { padding-bottom: 14px; }
.watch-card .game-bottomline { min-height: 50px; }
.watch-note { display: flex; gap: 9px; padding-top: 14px; color: var(--dim); font-size: 10px; line-height: 1.4; }
.watch-note > span:first-child { color: var(--aqua); }
.watch-footer-band { padding-top: 80px; padding-bottom: 110px; }
.watch-footer-band > div:last-child { max-width: 360px; justify-self: end; }

.sr-only { width: 1px; height: 1px; position: absolute; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .site-shell { width: min(100% - 32px, 700px); }
  .game-layout, .watch-hero { grid-template-columns: 1fr; }
  .side-panel { padding: 34px 0 0; }
  .protocol-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .protocol-list li { display: block; }
  .protocol-list li > span { display: block; margin-bottom: 10px; }
  .side-callout { margin-top: 15px; }
  .watch-hero { padding-top: 55px; }
  .watch-copy { display: grid; justify-items: start; }
  .watch-copy h1 { margin-top: 17px; }
  .watch-copy .hero-copy { margin-top: 19px; }
  .watch-links { margin-top: 20px; }
}

@media (max-width: 600px) {
  .site-shell { width: min(100% - 24px, 520px); }
  .topbar { min-height: 72px; }
  .topnav { gap: 13px; font-size: 10px; }
  .topnav a:first-child { display: none; }
  .hero { padding: 70px 0 65px; }
  h1 { font-size: clamp(58px, 18vw, 88px); }
  .hero-copy { font-size: 14px; }
  .hero-metrics { gap: 18px; margin-top: 50px; }
  .hero-metrics span { font-size: 8px; }
  .game-card { padding: 13px; }
  .game-topline { align-items: flex-start; flex-direction: column; gap: 13px; }
  .telemetry { width: 100%; justify-content: space-between; text-align: left; }
  .telemetry strong { font-size: 14px; }
  .game-bottomline { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 0; }
  .game-actions { width: 100%; justify-content: space-between; }
  .mobile-controls { display: flex; }
  .protocol-list { display: block; margin-top: 24px; }
  .protocol-list li { display: grid; }
  .side-callout { margin-top: 24px; }
  .lower-band, .watch-footer-band { grid-template-columns: 1fr; gap: 30px; padding: 95px 0 85px; }
  .lower-copy, .watch-footer-band > div:last-child { justify-self: start; }
  .footer { min-height: 90px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
  .watch-hero { gap: 38px; padding: 52px 0 20px; }
  .watch-copy h1 { font-size: clamp(56px, 17vw, 80px); }
  .watch-card { padding: 11px; }
  .watch-note { font-size: 9px; }
}

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