/* ==========================================================================
   The AI Race — design tokens
   Void #05060B · Hull #0C0F1C · Starlight #ECEFF7 · Dust #8B91A8
   Accretion #FFB86B · Redshift #FF5B3A · Blueshift #8AD8FF
   Archivo (variable width) for display + body, Martian Mono for telemetry.
   ========================================================================== */

:root {
  color-scheme: dark;
  --void: #05060b;
  --hull: #0c0f1c;
  --hull-glass: rgba(12, 15, 28, 0.66);
  --hull-solid: #0a0d18;
  --starlight: #eceff7;
  --starlight-2: rgba(236, 239, 247, 0.78);
  --dust: #8b91a8;
  --hairline: rgba(139, 145, 168, 0.16);
  --hairline-strong: rgba(139, 145, 168, 0.3);
  --accretion: #ffb86b;
  --accretion-hot: #fff3dd;
  --accretion-wash: rgba(255, 184, 107, 0.08);
  --redshift: #ff5b3a;
  --blueshift: #8ad8ff;

  --c-capability: #eceff7;
  --c-momentum: #ffb86b;
  --c-velocity: #8ad8ff;
  --c-capital: #6f7690;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 3vw, 32px);
  --max: 1320px;
  --radius: 10px;
  --radius-sm: 6px;
  --nav-h: 60px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--starlight);
  font-family: var(--font-display);
  font-stretch: 100%;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--blueshift); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--starlight); color: var(--void);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dust);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border: 1px solid var(--hairline-strong); border-radius: 999px;
  background: transparent; color: var(--starlight);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn:hover { border-color: var(--starlight); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--accretion); border-color: var(--accretion); color: #1a0f03; }
.btn-primary:hover:not([disabled]) { background: var(--accretion-hot); border-color: var(--accretion-hot); box-shadow: 0 0 32px -6px rgba(255, 184, 107, 0.7); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 11px; }
.btn-block { width: 100%; }
.btn-quiet { border-color: transparent; color: var(--dust); }
.btn-quiet:hover { color: var(--starlight); border-color: var(--hairline-strong); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(5, 6, 11, 0.85), rgba(5, 6, 11, 0));
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(5, 6, 11, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--hairline); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 28px; height: 28px; }
.brand-word {
  font-weight: 850; font-stretch: 125%; text-transform: uppercase;
  font-size: 15px; letter-spacing: 0.01em;
}
.status {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  font-family: var(--font-mono); font-size: 11px; color: var(--dust);
  white-space: nowrap; padding-left: 6px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dust); flex: none; }
.status-mode { color: var(--starlight); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.status[data-mode="live"] .status-dot { background: var(--redshift); box-shadow: 0 0 0 0 rgba(255, 91, 58, 0.6); animation: pulse 1.8s infinite; }
.status[data-mode="snapshot"] .status-dot, .status[data-mode="baseline"] .status-dot { background: var(--accretion); }
.status-detail { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 58, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(255, 91, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 58, 0); } }

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-links a { text-decoration: none; color: var(--dust); transition: color 0.2s; }
.nav-links a:hover { color: var(--starlight); }
.nav-links .nav-claim { color: var(--accretion); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 620px; max-height: 1100px;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 43% 48%, rgba(255, 140, 60, 0.07), transparent 70%),
    radial-gradient(120% 80% at 50% 0%, #0a0c18 0%, var(--void) 60%);
  isolation: isolate;
}
#race-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero-fallback { position: absolute; inset: 0; display: none; place-items: center; z-index: 0; }
.hero.no-webgl .hero-fallback { display: grid; }
.hero.no-webgl #race-canvas { display: none; }
.fallback-hole {
  width: min(52vmin, 520px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #000 34%, #fff3dd 36%, #ffb86b 40%, rgba(255, 91, 58, 0.35) 52%, transparent 70%);
  filter: blur(0.5px);
  transform: translateX(-8%);
}
.hero::after { /* legibility floor for the title and ticker */
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 11, 0.55) 55%, rgba(5, 6, 11, 0.92));
}

.label-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }

.body-label {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 9px 3px 3px;
  border: 1px solid color-mix(in srgb, var(--c, #fff) 38%, transparent);
  border-radius: 999px;
  background: rgba(5, 6, 11, 0.58);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; line-height: 1;
  color: var(--starlight);
  white-space: nowrap; cursor: pointer; pointer-events: auto;
  transition: opacity 0.35s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
  will-change: transform;
}
.body-label:hover, .body-label.is-focused { border-color: var(--c); background: rgba(5, 6, 11, 0.82); box-shadow: 0 0 22px -6px var(--c); }
.bl-rank {
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c); color: #05060b; font-size: 10px; font-weight: 700;
}
.bl-score { color: var(--dust); font-variant-numeric: tabular-nums; }
.body-label.is-behind { opacity: 0.32; }
.body-label.is-dim { opacity: 0.4; }
.body-label.is-overtake { animation: overtake-flash 2.5s var(--ease-out); }
@keyframes overtake-flash {
  0% { box-shadow: 0 0 0 0 var(--c); background: color-mix(in srgb, var(--c) 40%, #05060b); }
  30% { box-shadow: 0 0 0 10px transparent, 0 0 40px 0 var(--c); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.singularity-label {
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.32em;
  color: rgba(255, 214, 170, 0.75); white-space: nowrap; pointer-events: none;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
}

.hero-ui {
  position: absolute; z-index: 3;
  inset: calc(var(--nav-h) + 16px) var(--gutter) 64px var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-rows: auto 1fr auto;
  pointer-events: none;
}

/* Explore mode: get the overlays out of the galaxy's way */
.hero-title, .mini-standings, .clock { transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
.hero.is-exploring .hero-title { opacity: 0; transform: translateY(24px); }
.hero.is-exploring .mini-standings { opacity: 0; transform: translateX(24px); pointer-events: none; }
.hero.is-exploring .clock { opacity: 0.35; }
.hero.is-exploring::after { opacity: 0.35; }
.hero::after { transition: opacity 0.6s; }

.roam {
  position: absolute; z-index: 4; right: var(--gutter); bottom: 62px;
  display: flex; align-items: center; gap: 8px;
}
.roam .icon-btn { background: rgba(5, 6, 11, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.roam-toggle { background: rgba(5, 6, 11, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.roam-toggle[aria-pressed="true"] { border-color: var(--accretion); color: var(--accretion); }
.roam-hint { font-family: var(--font-mono); font-size: 10.5px; color: var(--dust); margin-right: 4px; }
.roam-hint .hint-touch { display: none; }
@media (pointer: coarse) { .roam-hint .hint-fine { display: none; } .roam-hint .hint-touch { display: inline; } }
.hero.is-exploring .roam-hint { opacity: 0; }

/* Singularity clock */
.clock { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 14px; pointer-events: auto; width: max-content; }
.clock-dial { width: 64px; height: 64px; flex: none; overflow: visible; }
.dial-face { fill: rgba(255, 184, 107, 0.06); stroke: rgba(255, 184, 107, 0.35); stroke-width: 1; }
.dial-ticks line { stroke: rgba(255, 184, 107, 0.45); stroke-width: 1; }
.dial-ticks line.major { stroke: var(--accretion); stroke-width: 2; }
.dial-hand { stroke: var(--accretion-hot); stroke-width: 2.5; stroke-linecap: round; transform-origin: 60px 60px; transition: transform 1.6s var(--ease-out); filter: drop-shadow(0 0 4px rgba(255, 184, 107, 0.8)); }
.dial-pin { fill: var(--accretion-hot); }
.clock-value { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
#clock-seconds {
  font-family: var(--font-mono); font-size: 34px; font-weight: 600; line-height: 1;
  color: var(--accretion); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(255, 184, 107, 0.45);
}
.clock-unit { font-family: var(--font-mono); font-size: 11px; color: var(--starlight-2); letter-spacing: 0.04em; }
.clock-change { font-family: var(--font-mono); font-size: 10.5px; color: var(--dust); margin-top: 4px; min-height: 1em; }
.clock-change .closer { color: var(--redshift); }
.clock-change .further { color: var(--blueshift); }

/* Title — tidal stretching: letters nearer the singularity are pulled wider */
.hero-title { grid-column: 1; grid-row: 3; align-self: end; max-width: 620px; pointer-events: none; }
#hero-h1 {
  font-weight: 900;
  font-size: clamp(56px, 8.6vw, 140px);
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--starlight);
  margin-left: -0.04em;
}
.h1-line { display: block; white-space: nowrap; }
.h1-char {
  display: inline-block;
  font-stretch: var(--s, 125%);
  transition: font-stretch 1.8s var(--ease-out), opacity 0.9s, filter 1.4s;
  transition-delay: calc(var(--i, 0) * 45ms + 250ms);
}
#hero-h1.is-collapsed .h1-char { font-stretch: 62%; opacity: 0; filter: blur(6px); }
.h1-char.is-hot { color: var(--accretion-hot); text-shadow: 0 0 40px rgba(255, 184, 107, 0.35); }
.lede { margin-top: 18px; max-width: 34ch; font-size: clamp(15px, 1.4vw, 18px); color: var(--starlight-2); text-wrap: pretty; }

/* Mini standings */
.mini-standings {
  grid-column: 2; grid-row: 1 / span 3; align-self: center;
  pointer-events: auto;
  padding: 14px 12px 10px;
  background: var(--hull-glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%);
}
.mini-standings { max-height: calc(100% - 70px); overflow: hidden; }
.mini-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 6px 10px; }
.mini-all { font-family: var(--font-mono); font-size: 10.5px; color: var(--blueshift); text-decoration: none; }
.mini-all:hover { text-decoration: underline; }
.mini-list { display: grid; gap: 2px; }
.mini-row {
  width: 100%;
  display: grid; grid-template-columns: 20px 8px minmax(0, 1fr) auto 38px; align-items: center; gap: 8px;
  padding: 7px 6px; border: 0; border-radius: var(--radius-sm); background: transparent;
  font-family: var(--font-mono); font-size: 12px; text-align: left; cursor: pointer;
  transition: background 0.2s;
}
.mini-row:hover, .mini-row:focus-visible { background: rgba(236, 239, 247, 0.06); }
.mini-rank { color: var(--dust); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px -1px var(--c); flex: none; }
.mini-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-score { font-variant-numeric: tabular-nums; }
.move { font-size: 10.5px; text-align: right; font-variant-numeric: tabular-nums; color: var(--dust); }
.move.up { color: var(--blueshift); }
.move.down { color: var(--redshift); }

/* Ticker */
.ticker {
  position: absolute; z-index: 4; inset: auto 0 0 0; height: 46px;
  display: flex; align-items: stretch;
  background: rgba(5, 6, 11, 0.74);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 12px;
}
.ticker-label {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 0 16px 0 var(--gutter);
  border-right: 1px solid var(--hairline);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accretion);
}
.ticker-label .t-sponsor { color: var(--dust); letter-spacing: 0.04em; text-transform: none; }
.ticker-label .t-sponsor strong { color: var(--starlight); font-weight: 600; }
.ticker-label button.t-claim {
  border: 1px dashed rgba(255, 184, 107, 0.45); border-radius: 999px; background: transparent;
  padding: 4px 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.02em; text-transform: none;
  color: var(--accretion); cursor: pointer;
}
.ticker-label button.t-claim:hover { border-style: solid; background: var(--accretion-wash); }
.ticker-viewport {
  flex: 1; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker var(--dur, 120s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translate3d(-50%, 0, 0); } }
.t-item { display: inline-flex; align-items: center; gap: 9px; padding: 0 22px; white-space: nowrap; text-decoration: none; color: var(--starlight-2); }
.t-item:hover { color: var(--starlight); }
.t-item .dot { width: 6px; height: 6px; }
.t-co { color: var(--starlight); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 10.5px; }
.t-src { color: var(--dust); }
.t-item.is-promoted .t-co { color: var(--accretion); }
.t-sep { color: var(--hairline-strong); }

/* ---------- Ad slots ---------- */
.orbit-band { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 0; }
.orbit-slot {
  --w: 300; --h: 250;
  position: relative;
  width: 100%;
  max-width: calc(var(--w) * 1px);
  margin-inline: auto;
}
.orbit-slot > .slot-open, .orbit-slot > .slot-filled { aspect-ratio: var(--w) / var(--h); }
.slot-open {
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px;
  padding: 18px 20px;
  border: 1px dashed rgba(255, 184, 107, 0.38);
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(135deg, rgba(255, 184, 107, 0.045) 0 1px, transparent 1px 11px),
    rgba(12, 15, 28, 0.55);
  color: var(--starlight);
  text-align: left; cursor: pointer; overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.slot-open::before, .slot-open::after { /* reticle corners */
  content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--accretion); opacity: 0.8;
}
.slot-open::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius-sm); }
.slot-open::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius-sm); }
.slot-open:hover, .slot-open:focus-visible { border-style: solid; border-color: var(--accretion); box-shadow: 0 0 46px -14px rgba(255, 184, 107, 0.55), inset 0 0 0 1px rgba(255, 184, 107, 0.4); }
.slot-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dust); }
.slot-name { font-size: 20px; font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.05; }
.slot-price { font-family: var(--font-mono); font-size: 13px; color: var(--dust); white-space: nowrap; }
.slot-price b { font-size: 22px; font-weight: 600; color: var(--accretion); font-variant-numeric: tabular-nums; }
.slot-cta { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--accretion); letter-spacing: 0.04em; white-space: nowrap; }
.slot-open:hover .slot-cta { text-decoration: underline; text-underline-offset: 3px; }
.slot-status { font-family: var(--font-mono); font-size: 10.5px; color: var(--blueshift); }

/* Wide banners lay out in a row */
.orbit-slot.is-wide .slot-open { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 22px; }
.orbit-slot.is-wide .slot-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.orbit-slot.is-wide .slot-name { font-size: 17px; white-space: nowrap; }
.orbit-slot.is-wide .slot-buy { display: flex; align-items: center; gap: 18px; }
.orbit-slot.is-tall .slot-open { justify-content: space-between; padding: 24px 22px; }
.orbit-slot.is-tall .slot-name { font-size: 30px; }
.orbit-slot .slot-buy { display: flex; flex-direction: column; gap: 6px; }

.slot-filled { position: relative; display: block; width: 100%; border-radius: var(--radius-sm); overflow: hidden; background: var(--hull); border: 1px solid var(--hairline); }
.slot-filled img { width: 100%; height: 100%; object-fit: cover; }
.slot-tag {
  position: absolute; right: 6px; top: 6px;
  display: inline-flex; gap: 6px; align-items: center;
  padding: 3px 7px; border-radius: 999px; background: rgba(5, 6, 11, 0.72);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--starlight-2);
}
.slot-under { display: flex; justify-content: flex-end; margin-top: 6px; }
.slot-under button { border: 0; background: none; padding: 2px 0; font-family: var(--font-mono); font-size: 10px; color: var(--dust); cursor: pointer; }
.slot-under button:hover { color: var(--accretion); }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--gutter) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 860px; }
.section-head h2 {
  font-weight: 850; font-stretch: 125%;
  font-size: clamp(40px, 6.4vw, 88px); line-height: 0.88; letter-spacing: -0.03em;
  text-transform: uppercase;
}
.section-lede { max-width: 60ch; color: var(--starlight-2); font-size: clamp(15px, 1.3vw, 17px); text-wrap: pretty; }

.panel {
  background: linear-gradient(180deg, rgba(12, 15, 28, 0.8), rgba(12, 15, 28, 0.5));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}
.panel-head { display: grid; gap: 4px; margin-bottom: 18px; }
.panel-head h3 { font-size: 15px; font-weight: 750; font-stretch: 115%; text-transform: uppercase; letter-spacing: 0.02em; }
.panel-head p { font-family: var(--font-mono); font-size: 10.5px; color: var(--dust); }

/* Standings */
.standings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.monolith-rail { position: sticky; top: calc(var(--nav-h) + 20px); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--dust); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend .sw { width: 14px; height: 8px; border-radius: 2px; background: var(--sw); }
.legend b { color: var(--starlight); font-weight: 500; }
.table-wrap { border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: rgba(12, 15, 28, 0.45); }
.standings-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; }
.standings-table th {
  text-align: left; font-weight: 500; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dust);
  padding: 12px 14px; border-bottom: 1px solid var(--hairline);
}
.standings-table td { padding: 14px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.standings-table tbody tr:last-child td { border-bottom: 0; }
.standings-table tbody tr { cursor: pointer; transition: background 0.2s; }
.standings-table tbody tr:hover, .standings-table tbody tr:focus-visible { background: rgba(236, 239, 247, 0.04); outline: none; }
.standings-table tbody tr:focus-visible td:first-child { box-shadow: inset 2px 0 0 var(--blueshift); }
.c-rank { width: 64px; }
.rank-cell { display: flex; align-items: center; gap: 8px; }
.rank-num { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; width: 22px; }
.lab-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lab-cell .dot { width: 10px; height: 10px; }
.lab-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; white-space: nowrap; }
.lab-sub { color: var(--dust); font-size: 10.5px; margin-top: 2px; white-space: nowrap; }
.c-index { width: 34%; }
.index-cell { display: flex; align-items: center; gap: 12px; }
.index-num { font-size: 15px; font-weight: 600; width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.stack { flex: 1; display: flex; gap: 2px; height: 10px; min-width: 80px; }
.stack span { height: 100%; background: var(--sw); border-radius: 0; }
.stack span:first-child { border-radius: 2px 0 0 2px; }
.stack span:last-child { border-radius: 0 4px 4px 0; }
.delta { font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta.up { color: var(--blueshift); }
.delta.down { color: var(--redshift); }
.delta.flat { color: var(--dust); }
.c-trend { width: 120px; }
.spark { width: 110px; height: 30px; display: block; overflow: visible; }
.c-buzz { width: 96px; text-align: right !important; }
.buzz-cell { text-align: right; font-variant-numeric: tabular-nums; color: var(--starlight-2); }

/* Signals */
.signals-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 20px; }
.panel-radar { grid-column: 1; grid-row: 1; }
.panel-buzz { grid-column: 1; grid-row: 2; }
.panel-feed { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; max-height: 1160px; }
.radar svg, .buzz svg { width: 100%; height: auto; display: block; overflow: visible; }
.axis-text { font-family: var(--font-mono); font-size: 10px; fill: var(--dust); }
.row-text { font-family: var(--font-mono); font-size: 11px; fill: var(--starlight-2); }
.val-text { font-family: var(--font-mono); font-size: 11px; fill: var(--starlight); }
.grid-line { stroke: var(--hairline); stroke-width: 1; }
.today-line { stroke: var(--accretion); stroke-width: 1; opacity: 0.6; }
.radar-dot { cursor: pointer; }
.radar-dot circle.hit { fill: transparent; }
.empty-note { font-family: var(--font-mono); font-size: 12px; color: var(--dust); padding: 18px 0; }

.feed-orbit { padding: 4px 0 16px; }
.feed-orbit:last-child { padding: 16px 0 0; }
.feed { flex: 1; overflow-y: auto; margin: 0 -8px; padding: 0 8px; scrollbar-width: thin; scrollbar-color: var(--hairline-strong) transparent; min-height: 240px; }
.feed li { border-top: 1px solid var(--hairline); }
.feed li:first-child { border-top: 0; }
.feed a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 12px 4px; text-decoration: none; border-radius: 4px; transition: background 0.2s; }
.feed a:hover { background: rgba(236, 239, 247, 0.04); }
.f-time { grid-row: span 2; font-family: var(--font-mono); font-size: 10.5px; color: var(--dust); padding-top: 3px; font-variant-numeric: tabular-nums; }
.f-title { font-size: 14px; line-height: 1.35; color: var(--starlight); text-wrap: pretty; }
.f-meta { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--dust); flex-wrap: wrap; }
.f-meta .dot { width: 6px; height: 6px; }
.f-kind { padding: 1px 6px; border: 1px solid var(--hairline-strong); border-radius: 999px; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
.f-kind.release { color: var(--accretion); border-color: rgba(255, 184, 107, 0.4); }
.f-kind.hn { color: var(--blueshift); border-color: rgba(138, 216, 255, 0.35); }
.feed li.is-new a { animation: new-item 3s var(--ease-out); }
@keyframes new-item { from { background: rgba(255, 184, 107, 0.14); } to { background: transparent; } }

/* ---------- Million Pixel Galaxy ---------- */
.galaxy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.galaxy-stage {
  position: relative; width: 100%; max-width: 1000px; aspect-ratio: 1;
  border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: #020308;
}
#pixel-canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: pan-y pinch-zoom; }
#pixel-canvas.is-over-block { cursor: pointer; }
#pixel-canvas.is-hand { cursor: grab; }
#pixel-canvas.is-panning { cursor: grabbing; }
.g-zoom {
  position: absolute; right: 12px; top: 12px;
  display: flex; align-items: center; gap: 6px; padding: 5px;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: rgba(5, 6, 11, 0.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.g-zoom .icon-btn { width: 32px; height: 32px; }
.g-zoom .btn-sm { height: 32px; padding: 0 12px; }
.g-zoom output { min-width: 34px; text-align: center; font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.g-zoom [aria-pressed="true"] { border-color: var(--accretion); color: var(--accretion); }
@media (pointer: coarse) { .g-hand { display: none; } }
.galaxy-side { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 22px; }
.g-stat-value { font-family: var(--font-mono); margin-top: 6px; }
#g-claimed { font-size: 26px; font-weight: 600; color: var(--accretion); font-variant-numeric: tabular-nums; }
.g-of { font-size: 11px; color: var(--dust); }
.g-progress { margin-top: 10px; height: 4px; border-radius: 4px; background: rgba(139, 145, 168, 0.18); overflow: hidden; }
.g-progress span { display: block; height: 100%; width: 0; min-width: 2px; background: var(--accretion); border-radius: 4px; transition: width 1s var(--ease-out); }
.zone-list { display: grid; gap: 8px; }
.zone-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; }
.zone-sw { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--z); background: color-mix(in srgb, var(--z) 18%, transparent); }
.zone-price { color: var(--accretion); font-variant-numeric: tabular-nums; }
.zone-price small { color: var(--dust); font-size: 10px; }
.g-select { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--hairline); border-radius: var(--radius); background: rgba(12, 15, 28, 0.6); }
.g-hint { font-size: 13.5px; color: var(--starlight-2); }
.g-size { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stepper { display: grid; grid-template-columns: 32px 1fr 32px; grid-template-rows: auto 32px; align-items: center; gap: 4px 6px; }
.stepper-label { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 10px; color: var(--dust); letter-spacing: 0.1em; text-transform: uppercase; }
.stepper output { text-align: center; font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.step { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hairline-strong); background: transparent; cursor: pointer; font-family: var(--font-mono); }
.step:hover:not([disabled]) { border-color: var(--starlight); }
.step[disabled] { opacity: 0.3; cursor: not-allowed; }
.g-breakdown { display: grid; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--dust); }
.g-breakdown div { display: flex; justify-content: space-between; gap: 8px; }
.g-breakdown dd { color: var(--starlight-2); font-variant-numeric: tabular-nums; }
.g-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--hairline); padding-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--dust); }
.g-total strong { font-size: 24px; color: var(--accretion); font-weight: 600; font-variant-numeric: tabular-nums; }
.g-error { font-family: var(--font-mono); font-size: 11px; color: var(--redshift); min-height: 1em; }
.g-error:empty { display: none; }

/* ---------- Market (all ad spaces) ---------- */
.market { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.m-card {
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px;
  padding: 18px; border: 1px solid var(--hairline); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(12, 15, 28, 0.85), rgba(12, 15, 28, 0.45));
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.m-card:hover { border-color: rgba(255, 184, 107, 0.45); transform: translateY(-2px); box-shadow: 0 18px 50px -24px rgba(255, 184, 107, 0.35); }
.m-card.is-feature { grid-column: span 2; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 22px; }
.m-card.is-feature .m-map { grid-row: 1 / span 3; }
.m-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.m-map { width: 100%; max-width: 150px; }
.m-map svg { width: 100%; height: auto; display: block; }
:is(.m-map, .page-map) .pg { fill: rgba(139, 145, 168, 0.12); }
:is(.m-map, .page-map) .pg-hero { fill: rgba(139, 145, 168, 0.18); }
:is(.m-map, .page-map) .hl { fill: var(--accretion); filter: drop-shadow(0 0 4px rgba(255, 184, 107, 0.9)); }
.m-name { font-size: 20px; font-weight: 800; font-stretch: 118%; text-transform: uppercase; line-height: 1.05; }
.m-locate { margin-top: 10px; padding: 0; border: 0; background: none; font-family: var(--font-mono); font-size: 11px; color: var(--blueshift); cursor: pointer; }
.m-locate:hover { text-decoration: underline; text-underline-offset: 3px; }
.is-located { animation: located 2.4s var(--ease-out); border-radius: var(--radius-sm); }
@keyframes located {
  0%, 40% { box-shadow: 0 0 0 3px var(--accretion), 0 0 60px 6px rgba(255, 184, 107, 0.55); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.m-specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-family: var(--font-mono); font-size: 11px; align-content: start; }
.m-specs dt { color: var(--dust); }
.m-specs dd { color: var(--starlight-2); }
.vis { display: inline-flex; gap: 3px; vertical-align: middle; }
.vis i { width: 10px; height: 6px; border-radius: 1px; background: rgba(139, 145, 168, 0.25); }
.vis i.on { background: var(--accretion); }
.m-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.m-price { font-family: var(--font-mono); font-size: 12px; color: var(--dust); }
.m-price b { font-size: 24px; color: var(--accretion); font-weight: 600; font-variant-numeric: tabular-nums; }
.m-state { font-family: var(--font-mono); font-size: 10.5px; margin-top: 4px; }
.m-state.available { color: var(--blueshift); }
.m-state.booked { color: var(--dust); }

/* ---------- Methodology ---------- */
.method-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
.w-bar { display: flex; gap: 2px; height: 14px; margin-bottom: 26px; }
.w-bar span { background: var(--sw); }
.w-bar span:first-child { border-radius: 3px 0 0 3px; }
.w-bar span:last-child { border-radius: 0 4px 4px 0; }
.w-item { display: grid; grid-template-columns: 14px 64px minmax(0, 1fr); gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--hairline); }
.w-item .sw { width: 14px; height: 14px; border-radius: 3px; background: var(--sw); margin-top: 3px; }
.w-pct { font-family: var(--font-mono); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.w-name { font-weight: 700; font-size: 16px; }
.w-desc { grid-column: 3; color: var(--starlight-2); font-size: 14px; text-wrap: pretty; }
.method-notes h3 { font-size: 14px; font-weight: 750; font-stretch: 115%; text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 8px; }
.method-notes p { color: var(--starlight-2); font-size: 14.5px; margin-bottom: 26px; text-wrap: pretty; }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(80px, 12vw, 140px); border-top: 1px solid var(--hairline); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) calc(36px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-brand { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 18px; }
.footer-note { font-family: var(--font-mono); font-size: 11px; color: var(--dust); }
.footer-links { margin-left: auto; display: flex; gap: 22px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-links a { color: var(--dust); text-decoration: none; }
.footer-links a:hover { color: var(--starlight); }

/* ---------- Drawer (lab dossier) ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(2, 3, 8, 0.35); }
.drawer {
  position: fixed; z-index: 61; top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  background: rgba(8, 10, 20, 0.9);
  backdrop-filter: blur(22px) saturate(120%); -webkit-backdrop-filter: blur(22px) saturate(120%);
  border-left: 1px solid var(--hairline);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform 0.5s var(--ease-out);
}
.drawer.is-open { transform: none; }
.drawer-inner { padding: 22px 24px 40px; display: grid; gap: 26px; }
.d-top { display: flex; justify-content: space-between; align-items: center; }
.d-nav { display: flex; gap: 6px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hairline-strong); background: transparent; cursor: pointer; font-family: var(--font-mono); font-size: 14px; }
.icon-btn:hover { border-color: var(--starlight); }
.d-hero { position: relative; padding-top: 6px; }
.d-hero::before { content: ""; position: absolute; left: -24px; top: 0; bottom: 0; width: 3px; background: var(--c); box-shadow: 0 0 18px var(--c); }
.d-rank { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--dust); text-transform: uppercase; }
.d-name { font-size: 38px; font-weight: 850; font-stretch: 122%; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.02em; margin-top: 8px; }
.d-blurb { margin-top: 12px; color: var(--starlight-2); font-size: 15px; text-wrap: pretty; }
.d-score { display: flex; align-items: baseline; gap: 14px; }
.d-score-num { font-family: var(--font-mono); font-size: 48px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.d-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-family: var(--font-mono); font-size: 11.5px; }
.d-facts dt { color: var(--dust); }
.d-facts dd { color: var(--starlight-2); }
.d-section h4 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dust); }
.comp-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin-bottom: 12px; font-family: var(--font-mono); font-size: 11.5px; }
.comp-row .cr-name { color: var(--starlight-2); }
.comp-row .cr-name small { color: var(--dust); }
.comp-row .cr-val { font-variant-numeric: tabular-nums; }
.comp-track { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: rgba(139, 145, 168, 0.14); overflow: hidden; }
.comp-track span { display: block; height: 100%; background: var(--sw); border-radius: 0 4px 4px 0; }
.d-chart { position: relative; }
.d-chart svg { width: 100%; height: 140px; display: block; overflow: visible; }
.d-list { display: grid; }
.d-list li { border-top: 1px solid var(--hairline); }
.d-list a, .d-list .d-li { display: grid; gap: 3px; padding: 10px 0; text-decoration: none; }
.d-list a:hover .d-li-title { text-decoration: underline; text-underline-offset: 3px; }
.d-li-title { font-size: 14px; line-height: 1.35; }
.d-li-meta { font-family: var(--font-mono); font-size: 10px; color: var(--dust); }

/* ---------- Modals ---------- */
.modal {
  width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid var(--hairline-strong); border-radius: 14px;
  background: #080a14; color: var(--starlight);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 184, 107, 0.06);
  overflow: hidden;
}
.modal::backdrop { background: rgba(2, 3, 8, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.45s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
.modal-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); max-height: calc(100dvh - 26px); overflow-y: auto; overscroll-behavior: contain; }
.share-shell { max-height: calc(100dvh - 26px); overflow-y: auto; overscroll-behavior: contain; }
html:has(dialog[open]), html:has(.drawer.is-open) { overflow: hidden; }
.modal-aside { padding: 26px 24px; border-right: 1px solid var(--hairline); background: radial-gradient(120% 60% at 0% 0%, rgba(255, 184, 107, 0.08), transparent 60%); display: grid; gap: 20px; align-content: start; }
.modal-main { padding: 26px 28px; display: grid; gap: 20px; align-content: start; }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 3; background: rgba(8, 10, 20, 0.92); }
.modal-title { padding-right: 44px; }
.modal-title { font-size: 30px; font-weight: 850; font-stretch: 120%; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.015em; }
.modal-sub { color: var(--starlight-2); font-size: 14px; margin-top: 8px; }

.field { display: grid; gap: 7px; }
.field label, .field .label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dust); display: flex; justify-content: space-between; }
.field input[type="text"], .field input[type="url"], .field input[type="email"] {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm);
  background: rgba(12, 15, 28, 0.8); color: var(--starlight);
  font-family: var(--font-display); font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { outline: none; border-color: var(--blueshift); box-shadow: 0 0 0 3px rgba(138, 216, 255, 0.15); }
.field input[aria-invalid="true"] { border-color: var(--redshift); }
.field .hint { font-size: 12px; color: var(--dust); }
.field .err { font-family: var(--font-mono); font-size: 11px; color: var(--redshift); }
.field .err:empty { display: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.durations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dur {
  position: relative; display: grid; gap: 2px; padding: 12px; text-align: left;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm); background: transparent; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.dur:hover { border-color: var(--starlight-2); }
.dur[aria-checked="true"] { border-color: var(--accretion); background: var(--accretion-wash); box-shadow: inset 0 0 0 1px var(--accretion); }
.dur-label { font-family: var(--font-mono); font-size: 11px; color: var(--starlight-2); }
.dur-price { font-family: var(--font-mono); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dur-save { font-family: var(--font-mono); font-size: 10px; color: var(--blueshift); min-height: 1.2em; }

.drop {
  position: relative; display: grid; place-items: center; gap: 6px;
  min-height: 120px; padding: 16px;
  border: 1px dashed var(--hairline-strong); border-radius: var(--radius-sm);
  background: rgba(12, 15, 28, 0.5); text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.drop:hover, .drop.is-over { border-color: var(--accretion); background: var(--accretion-wash); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-title { font-weight: 600; font-size: 14px; }
.drop-hint { font-family: var(--font-mono); font-size: 10.5px; color: var(--dust); }
.preview-frame {
  width: 100%; max-width: 100%; margin: 0 auto;
  border: 1px solid var(--hairline); border-radius: 4px; overflow: hidden;
  background: repeating-linear-gradient(45deg, rgba(139, 145, 168, 0.06) 0 8px, transparent 8px 16px);
  display: grid; place-items: center;
}
.preview-frame img { width: 100%; height: 100%; object-fit: cover; }
.preview-frame .pf-empty { font-family: var(--font-mono); font-size: 10.5px; color: var(--dust); padding: 8px; text-align: center; }
.ticker-preview { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: rgba(5, 6, 11, 0.8); font-family: var(--font-mono); font-size: 12px; overflow: hidden; white-space: nowrap; }
.ticker-preview .t-co { color: var(--accretion); }

.summary { display: grid; gap: 10px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 11.5px; }
.summary-row span:first-child { color: var(--dust); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--hairline); }
.summary-total span { font-family: var(--font-mono); font-size: 11px; color: var(--dust); letter-spacing: 0.1em; text-transform: uppercase; }
.summary-total strong { font-family: var(--font-mono); font-size: 30px; color: var(--accretion); font-weight: 600; font-variant-numeric: tabular-nums; }
.fine { font-size: 12px; color: var(--dust); line-height: 1.5; text-wrap: pretty; }
.demo-note { padding: 10px 12px; border: 1px solid rgba(138, 216, 255, 0.3); border-radius: var(--radius-sm); background: rgba(138, 216, 255, 0.06); font-size: 12.5px; color: var(--starlight-2); }
.form-error { font-family: var(--font-mono); font-size: 12px; color: var(--redshift); }
.form-error:empty { display: none; }
.page-map svg { width: 100%; max-width: 150px; height: auto; display: block; }
@media (max-width: 900px) { .page-map svg { max-width: 96px; } }

/* Share */
.share-shell { padding: 26px 28px; display: grid; gap: 18px; }
.share-preview { width: 100%; aspect-ratio: 1200 / 630; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--hairline); background: var(--hull); }
.share-preview canvas { width: 100%; height: 100%; display: block; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Overtake banner, toasts, tooltip ---------- */
.overtake {
  position: fixed; z-index: 50; left: 50%; top: calc(var(--nav-h) + 18px);
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px; border-radius: 999px;
  background: rgba(5, 6, 11, 0.86); border: 1px solid var(--c, var(--accretion));
  box-shadow: 0 0 60px -10px var(--c, var(--accretion));
  font-family: var(--font-mono); font-size: 12px; white-space: nowrap;
  transition: opacity 0.4s, transform 0.6s var(--ease-out);
}
.overtake.is-on { opacity: 1; transform: translate(-50%, 0); }
.overtake .o-kicker { color: var(--c, var(--accretion)); letter-spacing: 0.18em; font-weight: 600; }
.overtake strong { font-family: var(--font-display); font-size: 15px; font-weight: 800; font-stretch: 115%; text-transform: uppercase; }

.toasts { position: fixed; z-index: 90; right: 16px; bottom: 16px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast {
  padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--hairline-strong);
  background: rgba(8, 10, 20, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 14px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  animation: toast-in 0.45s var(--ease-out);
}
.toast.good { border-color: rgba(138, 216, 255, 0.45); }
.toast.bad { border-color: rgba(255, 91, 58, 0.5); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.tip {
  position: fixed; z-index: 95; left: 0; top: 0; pointer-events: none;
  max-width: 260px; padding: 8px 10px; border-radius: var(--radius-sm);
  background: rgba(8, 10, 20, 0.96); border: 1px solid var(--hairline-strong);
  font-family: var(--font-mono); font-size: 11px; line-height: 1.45; color: var(--starlight);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}
.tip .tip-k { color: var(--dust); }
.tip .tip-v { color: var(--starlight); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links a:not(.nav-claim) { display: none; }
  .hero-ui { grid-template-columns: minmax(0, 1fr) 260px; }
  .standings-layout { grid-template-columns: 1fr; }
  .monolith-rail { position: static; display: flex; justify-content: center; }
  .c-trend { display: none; }
  .galaxy-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 900px) {
  .hero-ui { grid-template-columns: 1fr; }
  .mini-standings { display: none; }
  .signals-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .panel-radar, .panel-buzz, .panel-feed { grid-column: auto; grid-row: auto; }
  .panel-feed { max-height: none; }
  .feed { max-height: 640px; }
  .galaxy-layout { grid-template-columns: 1fr; }
  .galaxy-side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .g-select { grid-column: 1 / -1; }
  .method-grid { grid-template-columns: 1fr; }
  .m-card.is-feature { grid-column: auto; grid-template-columns: 1fr; }
  .m-card.is-feature .m-map { grid-row: auto; }
  .modal-shell { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-aside { border-right: 0; border-bottom: 1px solid var(--hairline); overflow: visible; }
  .modal-main { overflow: visible; }
}
@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .status-detail { display: none; }
  .status { flex: none; }
  .hide-sm { display: none; }
  .nav { gap: 12px; }
  .brand-word { font-size: 13px; }
  .nav-links { gap: 10px; }
  .hero { min-height: 560px; }
  .hero-ui { inset: calc(var(--nav-h) + 10px) var(--gutter) 60px var(--gutter); }
  .clock-dial { width: 48px; height: 48px; }
  #clock-seconds { font-size: 26px; }
  .clock-unit { font-size: 10px; }
  #hero-h1 { font-size: clamp(48px, 15vw, 96px); }
  .roam { bottom: 56px; gap: 6px; }
  .roam-hint { display: none; }
  .roam .icon-btn { width: 32px; height: 32px; }
  .lede { font-size: 14px; margin-top: 12px; }
  .bl-score { display: none; }
  .body-label { font-size: 10px; padding-right: 7px; }
  .ticker-label { padding-left: 16px; }
  .ticker-label .t-sponsor, .ticker-label .t-claim-price { display: none; }
  .orbit-slot.is-wide .slot-open { min-height: 74px; padding: 10px 14px; }
  .orbit-slot.is-wide > .slot-open { aspect-ratio: auto; }
  .orbit-slot.is-wide .slot-kicker { display: none; }
  .orbit-slot.is-wide .slot-buy { flex-direction: column; align-items: flex-end; gap: 2px; }
  .orbit-slot.is-wide .slot-price b { font-size: 17px; }
  .standings-table th, .standings-table td { padding: 12px 10px; }
  .c-buzz, .standings-table td.buzz-cell { display: none; }
  .c-index { width: auto; }
  .stack { display: none; }
  .lab-sub { display: none; }
  .galaxy-side { grid-template-columns: 1fr; }
  .durations { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .modal-main, .modal-aside, .share-shell { padding: 22px 18px; }
  .drawer-inner { padding: 18px 18px 40px; }
  .d-hero::before { left: -18px; }
  .footer-links { margin-left: 0; }
}

@media (max-width: 420px) {
  .status-mode { display: none; }
  .brand-word { font-size: 11px; }
  .brand-mark { display: none; }
  .nav { gap: 8px; }
  .nav-links { gap: 8px; }
  #share-btn { padding: 0 12px; }
}

@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; transition-delay: 0ms !important; }
  .ticker-viewport { overflow-x: auto; }
  .ticker-track { animation: none; }
}
@media (forced-colors: active) {
  .slot-open, .panel, .m-card { border: 1px solid CanvasText; }
  .dot, .bl-rank { forced-color-adjust: none; }
}
