/* Driva.tv shared styles */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  /* Stake-style slate palette */
  --page:   #0f212e;
  --deep:   #0a1822;
  --panel:  #1a2c38;
  --raised: #213743;
  --line:   #2f4553;
  --hover:  #3d5564;
  --text:   #ffffff;
  --muted:  #b1bad3;
  --dim:    #7f93a7;
  --green:  #00e701;
  --green-hi: #1fff20;
  --on-green: #05080a;
  --blue:   #1475e1;
  --violet: #8b5cf6;
  --gold:   #ffc800;
  --silver: #c3cbe0;
  --bronze: #d7864b;
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: 'Figtree', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--page);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
::selection { background: rgba(0,231,1,.3); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: var(--r-sm); }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

/* ═══════════ AMBIENT BACKGROUND ═══════════ */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  animation: drift 26s ease-in-out infinite;
}
.blob-a { width: 620px; height: 620px; top: -220px; left: -160px; background: rgba(20,117,225,.28); }
.blob-b { width: 520px; height: 520px; top: 8%; right: -180px; background: rgba(0,231,1,.12); animation-duration: 32s; animation-delay: -9s; }
.blob-c { width: 460px; height: 460px; top: 55%; left: 30%; background: rgba(139,92,246,.14); animation-duration: 38s; animation-delay: -17s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(60px, 40px) scale(1.08); }
  66%  { transform: translate(-40px, 70px) scale(.94); }
}
.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(177,186,211,.13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 10%, transparent 75%);
}
.page { position: relative; z-index: 1; }

/* ═══════════ HEADER + TICKER ═══════════ */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,44,56,.86);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.bar {
  max-width: 1240px; margin: 0 auto;
  height: 60px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.brand-name { font-size: 20px; font-weight: 900; letter-spacing: -.3px; }
.brand-name span { color: var(--dim); font-weight: 700; }
.bar-right { display: flex; align-items: center; gap: 8px; }

.ticker {
  display: flex; align-items: center;
  border-top: 1px solid rgba(255,255,255,.05);
  background: rgba(10,24,34,.7);
  height: 34px;
}
.ticker-label {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  height: 100%; padding: 0 14px 0 16px;
  font-size: 12px; font-weight: 800; color: var(--text);
  background: rgba(0,231,1,.08);
  border-right: 1px solid rgba(0,231,1,.2);
}
.ticker-view {
  flex: 1; min-width: 0; height: 100%; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker-track {
  display: flex; width: max-content; height: 100%; align-items: center;
  animation: marquee 60s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tick {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 22px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.06);
}
.tick b { color: var(--text); font-weight: 800; }
.tick .amt { color: var(--green); font-weight: 800; }
.tick .pl { color: var(--dim); font-weight: 700; }

/* ═══════════ BUTTONS ═══════════ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border: none; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 800;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-green {
  background: var(--green); color: var(--on-green);
  box-shadow: 0 4px 18px rgba(0,231,1,.28), inset 0 -3px 0 rgba(0,0,0,.14);
}
.btn-green:hover { background: var(--green-hi); box-shadow: 0 8px 30px rgba(0,231,1,.45), inset 0 -3px 0 rgba(0,0,0,.14); }
.btn-green::after {
  content: ''; position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 160%; } }
.btn-grey { background: var(--line); color: var(--text); }
.btn-grey:hover { background: var(--hover); }
.btn-icon { width: 46px; padding: 0; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }

/* ═══════════ LAYOUT ═══════════ */
main { max-width: 1240px; margin: 0 auto; padding: 28px 16px 72px; }
section { margin-top: 56px; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.sec-head h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 900; letter-spacing: -.6px; }
.sec-head p { font-size: 14px; color: var(--dim); font-weight: 600; }

/* scroll reveal */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ═══════════ HERO ═══════════ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 20px;
  align-items: stretch;
}
.hero-copy {
  display: flex; flex-direction: column; gap: 24px;
  padding: 12px 4px;
}
.live-tag {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font-size: 13px; font-weight: 700; color: var(--muted);
  background: rgba(33,55,67,.8);
  border: 1px solid rgba(255,255,255,.06);
  padding: 7px 14px 7px 12px; border-radius: 999px;
}
.pulse { position: relative; width: 8px; height: 8px; }
.pulse::before, .pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--green);
}
.pulse::after { animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }

.noscript { background: var(--panel); border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: 20px; color: var(--muted); }
.noscript h2 { color: var(--text); margin-bottom: 10px; }
.noscript ol { padding-left: 22px; line-height: 1.8; }
h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900; line-height: .98; letter-spacing: -2.4px;
}
h1 .w {
  display: inline-block;
  opacity: 0; transform: translateY(40%) rotate(4deg); filter: blur(8px);
  animation: word-in .9s var(--ease) forwards;
  animation-delay: calc(.08s * var(--i) + .1s);
}
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }
h1 .pool {
  background: linear-gradient(100deg, var(--green) 0%, #9dff7a 40%, var(--green) 60%, #00b3ff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: word-in .9s var(--ease) forwards, sheen 5s linear 1.2s infinite;
  animation-delay: calc(.08s * var(--i) + .1s), 1.2s;
}
@keyframes sheen { to { background-position: -220% center; } }

.lede { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 44ch; font-weight: 500; }
.lede b { color: var(--text); font-weight: 800; }

.fade-in { opacity: 0; animation: fade-up .8s var(--ease) forwards; animation-delay: var(--d, .5s); }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.code-field { max-width: 460px; }
.field-label {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  margin-bottom: 7px;
}
.field-label span + span { color: var(--dim); font-weight: 600; }
.field {
  position: relative;
  display: flex; align-items: stretch;
  background: var(--deep);
  border-radius: var(--r-sm);
  height: 56px;
}
.field::before {
  /* running border light */
  content: ''; position: absolute; inset: -2px; border-radius: 6px; padding: 2px;
  background: conic-gradient(from var(--ang), var(--line) 0deg, var(--line) 250deg, var(--green) 300deg, #9dff7a 330deg, var(--line) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-ang 3.2s linear infinite;
  pointer-events: none;
}
@keyframes spin-ang { to { --ang: 360deg; } }
.field-value {
  flex: 1; display: flex; align-items: center;
  padding: 0 16px;
  font-size: 22px; font-weight: 900; letter-spacing: 1px;
}
.field-copy {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 0 18px; margin: 6px;
  background: var(--line); border: none; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 800; cursor: pointer;
  transition: background .15s, transform .15s;
}
.field-copy:hover { background: var(--hover); }
.field-copy:active { transform: scale(.95); }
.field-copy.copied { background: var(--green); color: var(--on-green); }
.confetti {
  position: fixed; z-index: 400; pointer-events: none;
  width: 7px; height: 11px; border-radius: 1px;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.clock { display: flex; flex-direction: column; gap: 10px; }
.clock-title { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.clock-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 76px)); gap: 8px; }
.clock-cell {
  background: linear-gradient(180deg, var(--raised), var(--panel));
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r);
  padding: 12px 4px 9px;
  text-align: center;
  overflow: hidden;
}
.clock-num { display: inline-block; font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.clock-num.roll { animation: roll .45s var(--ease); }
@keyframes roll { from { transform: translateY(-70%); opacity: 0; filter: blur(3px); } to { transform: none; opacity: 1; filter: none; } }
.clock-unit { font-size: 11px; font-weight: 700; color: var(--dim); margin-top: 5px; }

/* ═══════════ PONG ═══════════ */
.board {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(20,117,225,.16), transparent 70%),
    linear-gradient(180deg, var(--panel), #152631);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  overflow: hidden;
}
.board-top {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.scoreline { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.scoreline b { font-size: 22px; font-weight: 900; color: var(--text); min-width: 1ch; text-align: center; }
.scoreline b.you { color: var(--green); }
.scoreline b.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.5); } }
.court {
  position: relative;
  border-radius: var(--r);
  background:
    linear-gradient(180deg, rgba(10,24,34,.85), rgba(10,24,34,.6));
  border: 1px solid rgba(255,255,255,.05);
  overflow: hidden;
}
#pong { display: block; width: 100%; cursor: none; touch-action: pan-y; }
#pong.idle { cursor: pointer; }
.court-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 16px;
  background: radial-gradient(ellipse at center, rgba(10,24,34,.55), rgba(10,24,34,.15) 70%);
  transition: opacity .35s var(--ease), visibility .35s;
}
.court-overlay.hide { opacity: 0; visibility: hidden; }
.court-overlay .big { font-size: clamp(20px, 3vw, 28px); font-weight: 900; letter-spacing: -.5px; }
.court-overlay .small { font-size: 14px; font-weight: 600; color: var(--muted); max-width: 34ch; }
.court-overlay .record { font-size: 12.5px; font-weight: 700; color: var(--dim); }
.diff { display: inline-flex; gap: 4px; padding: 4px; background: rgba(10,24,34,.85); border-radius: 999px; border: 1px solid rgba(255,255,255,.06); }
.diff button {
  border: none; background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 800; padding: 7px 16px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s;
}
.diff button:hover { color: var(--text); }
.diff button[aria-pressed="true"] { background: var(--line); color: var(--text); }
.diff button[data-diff="hard"][aria-pressed="true"] { background: rgba(255,59,92,.2); color: #ff8aa0; }
.diff button[data-diff="easy"][aria-pressed="true"] { background: rgba(0,231,1,.15); color: var(--green); }
.board-meta { display: inline-flex; align-items: center; gap: 12px; }
.rally { font-size: 12.5px; font-weight: 700; color: var(--dim); }
.rally b { color: var(--text); font-weight: 900; }
.level { font-size: 11.5px; font-weight: 800; color: var(--muted); background: var(--raised); padding: 3px 9px; border-radius: 999px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border: none; border-radius: var(--r-sm); background: var(--raised); color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--line); color: var(--text); }
@media (max-width: 480px) { .rally:nth-child(2) { display: none; } }

.board-info {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px;
  background: rgba(10,24,34,.75);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.board-info b { color: var(--text); }
.board-info > span { animation: fade-up .35s var(--ease); }

/* ═══════════ MILESTONES ═══════════ */
.ms { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.ms-card {
  background: rgba(26,44,56,.85);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r-lg);
  padding: 22px;
}
.ms-look { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 16px; }
.ms-look h3 { font-size: 17px; font-weight: 900; }
.ms-look p { font-size: 14px; color: var(--muted); line-height: 1.55; font-weight: 500; }
.ms-form { display: flex; gap: 8px; }
.ms-input {
  flex: 1; min-width: 0; height: 46px;
  background: var(--deep); color: var(--text);
  border: 2px solid var(--line); border-radius: var(--r-sm);
  padding: 0 14px; font: inherit; font-size: 15px; font-weight: 700;
  transition: border-color .15s;
}
.ms-input:hover { border-color: var(--hover); }
.ms-input:focus { outline: none; border-color: var(--green); }
.ms-result { display: flex; flex-direction: column; gap: 12px; animation: fade-up .4s var(--ease); }
.ms-result:empty { display: none; }
.ms-who { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ms-who b { font-size: 18px; font-weight: 900; }
.ms-who span { font-size: 13px; color: var(--dim); font-weight: 700; }
.ms-big { font-size: 30px; font-weight: 900; letter-spacing: -.8px; }
.ms-track { height: 10px; border-radius: 5px; background: var(--deep); overflow: hidden; }
.ms-track i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #9dff7a);
  box-shadow: 0 0 14px rgba(0,231,1,.5);
  transition: width 1.2s var(--ease);
}
.ms-next { font-size: 14px; color: var(--muted); font-weight: 600; }
.ms-next b { color: var(--text); }
.ms-next .g { color: var(--green); }
.ms-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ms-pill { background: var(--deep); border-radius: var(--r-sm); padding: 10px 12px; }
.ms-pill dt { font-size: 12px; color: var(--dim); font-weight: 700; }
.ms-pill dd { font-size: 17px; font-weight: 900; margin-top: 2px; }
.ms-pill dd.green { color: var(--green); }
.ms-msg { font-size: 14px; color: var(--muted); font-weight: 600; background: var(--deep); border-radius: var(--r-sm); padding: 12px 14px; }

.ms-ladder { display: flex; flex-direction: column; gap: 8px; }
.ms-row {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center;
  background: rgba(26,44,56,.85);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r);
  padding: 10px 12px;
}
.ms-band { font-size: 13px; font-weight: 800; color: var(--muted); }
.ms-band small { display: block; font-size: 11.5px; color: var(--dim); font-weight: 700; margin-top: 2px; }
.ms-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.ms-chip {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 54px; padding: 6px 4px;
  background: var(--deep);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r-sm);
  transition: background .3s, border-color .3s, transform .2s var(--ease);
}
.ms-chip:hover { transform: translateY(-2px); border-color: var(--line); }
.ms-chip .t { font-size: 14px; font-weight: 900; }
.ms-chip .r { font-size: 13px; font-weight: 800; color: var(--green); }
.ms-chip.got { background: rgba(0,231,1,.12); border-color: rgba(0,231,1,.45); }
.ms-chip.got::after {
  content: '✓'; position: absolute; top: 3px; right: 6px;
  font-size: 11px; font-weight: 900; color: var(--green);
}
.ms-chip.nextup { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.ms-chip.nextup .r { color: var(--gold); }

/* ═══════════ STAT STRIP ═══════════ */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.stat {
  position: relative; overflow: hidden;
  background: rgba(26,44,56,.8);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r);
  padding: 18px 20px;
}
.stat::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--line)), transparent);
  opacity: .8;
}
.stat dt { font-size: 13px; font-weight: 700; color: var(--dim); margin-bottom: 6px; }
.stat dd { font-size: 24px; font-weight: 900; letter-spacing: -.6px; }
.stat dd.green { color: var(--green); }
.stat-sub { font-size: 12.5px; font-weight: 600; color: var(--dim); margin-top: 4px; }
.clock-note { font-weight: 600; color: var(--dim); }
.clock-note::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--dim); margin: 0 8px 3px 0; vertical-align: middle; }

/* ═══════════ SPOTLIGHT / TILT CARDS ═══════════ */
.spot { position: relative; }
.spot::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.07), transparent 65%);
  opacity: 0; transition: opacity .25s;
  z-index: 0;
}
.spot:hover::before { opacity: 1; }
.tilt { transition: transform .6s var(--ease) var(--d, 0s), opacity .8s var(--ease) var(--d, 0s); will-change: transform; }

/* ═══════════ PODIUM ═══════════ */
.podium {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  align-items: end; margin-bottom: 16px;
  perspective: 1200px;
}
.pod {
  background: linear-gradient(180deg, rgba(33,55,67,.95), rgba(26,44,56,.95));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-lg);
  padding: 24px 20px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  overflow: hidden;
}
.pod > * { position: relative; z-index: 1; }
.pod::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 120px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, color-mix(in srgb, var(--m) 22%, transparent), transparent 75%);
  pointer-events: none;
}
.pod.first { padding-top: 40px; padding-bottom: 26px; }
.pod.first .ring {
  /* rotating gold rim */
  position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: 2;
  background: conic-gradient(from var(--ang), transparent 0deg, var(--gold) 50deg, #fff3b0 80deg, transparent 130deg, transparent 200deg, var(--gold) 250deg, transparent 300deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-ang 4s linear infinite;
  pointer-events: none;
}
.crown {
  position: absolute !important; top: 8px; left: 50%;
  transform: translateX(-50%);
  animation: bob 2.6s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(255,200,0,.5));
}
@keyframes bob { 50% { transform: translateX(-50%) translateY(-5px) rotate(-4deg); } }

.medal {
  position: relative; overflow: hidden;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff8, transparent 45%), var(--m);
  color: var(--on-green);
  font-weight: 900; font-size: 26px;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.2), 0 10px 30px color-mix(in srgb, var(--m) 35%, transparent);
}
.pod.first .medal { width: 78px; height: 78px; font-size: 32px; }
.medal::after {
  content: ''; position: absolute; top: -50%; left: -90%;
  width: 50%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  transform: rotate(25deg);
  animation: medal-shine 3.8s ease-in-out infinite;
  animation-delay: var(--sd, 0s);
}
@keyframes medal-shine { 0%, 70% { left: -90%; } 100% { left: 160%; } }

.pod-name { font-size: 19px; font-weight: 900; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod.first .pod-name { font-size: 22px; }
.pod-place { font-size: 13px; color: var(--dim); font-weight: 700; margin-top: 2px; }
.pod-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.pod-row {
  background: rgba(10,24,34,.7); border-radius: var(--r-sm);
  padding: 10px 8px;
}
.pod-row dt { font-size: 12px; color: var(--dim); font-weight: 700; }
.pod-row dd { font-size: 16px; font-weight: 900; margin-top: 2px; }
.pod-row dd.green { color: var(--green); }

/* ═══════════ TABLE ═══════════ */
.table {
  background: rgba(26,44,56,.85);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r-lg);
  padding: 8px;
}
.t-head, .t-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 150px) 96px;
  align-items: center; gap: 14px;
  padding: 0 16px;
}
.t-head { height: 42px; font-size: 13px; font-weight: 700; color: var(--dim); }
.t-row {
  min-height: 60px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  transition: background .2s, transform .6s var(--ease) var(--d, 0s), opacity .7s var(--ease) var(--d, 0s);
}
.t-row:nth-child(odd) { background: rgba(33,55,67,.75); }
.t-row:hover { background: var(--line); transform: translateX(4px); }
.t-row.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 35% { background: var(--hover); box-shadow: 0 0 0 2px var(--green) inset; } }
.t-right { text-align: right; }
.t-rank { color: var(--muted); font-weight: 800; }
.t-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.t-name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-name.open { color: var(--dim); font-weight: 600; }
.t-wager { color: var(--muted); font-weight: 700; }
.t-sub { display: none; font-size: 12.5px; color: var(--dim); font-weight: 700; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 58px; height: 28px; padding: 0 9px;
  border-radius: var(--r-sm);
  background: var(--c); color: var(--on-green);
  font-size: 13px; font-weight: 900; white-space: nowrap;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 60%, #000);
}

.gap-note {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background:
    linear-gradient(100deg, rgba(0,231,1,.1), transparent 60%),
    rgba(26,44,56,.85);
  border: 1px solid rgba(0,231,1,.18);
  border-radius: var(--r-lg);
  padding: 20px 22px;
}
.gap-note p { font-size: 16px; color: var(--muted); font-weight: 600; line-height: 1.5; }
.gap-note b { color: var(--text); }

/* ═══════════ HOW TO JOIN ═══════════ */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; perspective: 1200px; }
.step {
  background: rgba(26,44,56,.85);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r-lg);
  padding: 24px;
  overflow: hidden;
}
.step > * { position: relative; z-index: 1; }
.step-n {
  width: 44px; height: 44px; border-radius: var(--r);
  display: grid; place-items: center;
  background: rgba(0,231,1,.1); color: var(--green);
  border: 1px solid rgba(0,231,1,.25);
  font-weight: 900; font-size: 18px;
  margin-bottom: 16px;
  transition: transform .4s var(--ease), background .3s;
}
.step:hover .step-n { transform: rotate(-8deg) scale(1.08); background: rgba(0,231,1,.18); }
.step h3 { font-size: 17px; font-weight: 900; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); line-height: 1.6; font-weight: 500; }
.step p b { color: var(--text); }

/* ═══════════ LOADING / ERROR ═══════════ */
.skeleton { background: var(--panel); border-radius: var(--r-lg); height: 360px; position: relative; overflow: hidden; }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
  animation: sweep 1.2s infinite;
}
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.error {
  background: var(--panel); border-radius: var(--r-lg);
  padding: 28px; text-align: center;
  color: var(--muted); font-weight: 600;
}
.error .btn { margin-top: 14px; }

/* ═══════════ MODAL ═══════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(5,12,18,.75);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-lg);
  width: 100%; max-width: 500px;
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: translateY(20px) scale(.97);
  transition: transform .35s var(--ease);
}
.modal-overlay.open .modal { transform: none; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 14px 20px;
}
.modal-head h2 { font-size: 18px; font-weight: 900; }
.modal-body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.rule {
  background: var(--deep); border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 14px; color: var(--muted); line-height: 1.55; font-weight: 500;
}
.rule b { color: var(--text); }
.rule-n { display: flex; gap: 12px; align-items: flex-start; }
.rule-n > div { flex: 1; min-width: 0; }
.rule-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(0,231,1,.1); color: var(--green); font-weight: 900; font-size: 13px;
}
.payout.rtp td { font-weight: 600; vertical-align: top; }
.payout.rtp td:last-child { color: var(--text); padding-left: 12px; }
.payout { width: 100%; border-collapse: collapse; margin-top: 10px; }
.payout td { padding: 7px 0; font-weight: 700; }
.payout td:last-child { text-align: right; }
.payout tr + tr td { border-top: 1px solid var(--panel); }

/* ═══════════ FOOTER ═══════════ */
footer { position: relative; z-index: 1; background: rgba(26,44,56,.9); border-top: 1px solid rgba(255,255,255,.05); }
.foot {
  max-width: 1240px; margin: 0 auto;
  padding: 28px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--dim); font-weight: 600;
}
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 28px; height: 28px; border-radius: 50%; }
.foot-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* ═══════════ STREAM PLAYER ═══════════ */
.stream-player {
  position: fixed; bottom: 16px; right: 16px; z-index: 150;
  width: 360px; max-width: calc(100vw - 24px);
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  overflow: hidden;
  transition: width .25s var(--ease);
  animation: slide-in .7s 1.4s var(--ease) both;
}
@keyframes slide-in { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
.stream-player.large { width: 560px; }
.stream-player.dragging { transition: none; }
.stream-player.hidden { display: none; }
.stream-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 42px; padding: 0 6px 0 12px;
  cursor: grab; user-select: none; touch-action: none;
}
.stream-header:active { cursor: grabbing; }
.stream-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.stream-brand { font-weight: 900; letter-spacing: .3px; }
.stream-brand span { color: var(--green); }
.on-kick { font-size: 11px; font-weight: 800; color: #53fc18; background: rgba(83,252,24,.1); padding: 2px 7px; border-radius: var(--r-sm); }
.stream-actions { display: flex; gap: 2px; }
.stream-btn {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border: none; border-radius: var(--r-sm);
  background: transparent; color: var(--muted);
  cursor: pointer; text-decoration: none;
}
.stream-btn:hover { background: var(--line); color: var(--text); }
.stream-body { position: relative; aspect-ratio: 16 / 9; background: #000; }
.stream-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.stream-reopen {
  position: fixed; bottom: 16px; right: 16px; z-index: 150;
  display: none; align-items: center; gap: 8px;
  height: 46px; padding: 0 18px;
  border: 1px solid rgba(255,59,92,.35); border-radius: 999px;
  background: rgba(26,44,56,.95); color: var(--text);
  font-size: 14px; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 24px rgba(255,59,92,.15);
  transition: transform .2s var(--ease);
}
.stream-reopen:hover { transform: translateY(-2px); }
.stream-reopen.visible { display: inline-flex; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .ms { grid-template-columns: 1fr; }
  .ms-look { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  main { padding-top: 20px; }
  .ms-row { grid-template-columns: 1fr; gap: 8px; }
  .ms-chips { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  section { margin-top: 44px; }
  h1 { letter-spacing: -1.6px; }
  .lede { font-size: 16px; }
  .board { padding: 14px 10px 12px; }
  .board-top .hint { display: none; }
  .stat { padding: 14px 16px; }
  .stat dd { font-size: 20px; }
  .podium { grid-template-columns: 1fr; gap: 12px; }
  .pod.first { order: -1; }
  .t-head, .t-row { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 0 10px; gap: 10px; }
  .t-head .t-wager, .t-row .t-wager { display: none; }
  .t-row { padding-top: 10px; padding-bottom: 10px; }
  .t-sub { display: block; }
  .bar-cta-text { display: none; }
  .hero-actions .btn { flex: 1; }
  .field-label span + span { display: none; }
  .clock-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stream-player { width: min(320px, calc(100vw - 24px)); bottom: 12px; right: 12px; }
  .stream-player.large { width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  [data-reveal], .fade-in, h1 .w, .stream-player { opacity: 1; transform: none; filter: none; animation: none !important; }
}
  

/* ═══════════════════════════════════════════
   MULTI-PAGE LAYOUT (nav, page heroes, teasers,
   info cards, FAQ, footer, mobile tab bar)
   ═══════════════════════════════════════════ */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--green); color: var(--on-green); font-weight: 800;
  padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }
.green { color: var(--green); }

/* Header + nav */
.site-header { transition: background .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(20,36,47,.94); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.bar { gap: 20px; }
.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; margin-left: 12px; }
.nav a {
  position: relative;
  padding: 9px 14px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 700; color: var(--muted); text-decoration: none;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -11px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--green);
  box-shadow: 0 0 12px rgba(0,231,1,.6);
}
.ticker-label { text-decoration: none; }
.ticker-label:hover { background: rgba(0,231,1,.14); }

/* Section heading with a link on the right */
.sec-head > div { display: flex; flex-direction: column; gap: 4px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 800; color: var(--green); text-decoration: none;
}
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.skeleton.short { height: 260px; }

/* Inner page hero */
.page-hero {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px; align-items: center;
  padding: 12px 0 8px;
}
.page-hero-copy { display: flex; flex-direction: column; gap: 20px; }
.page-title { font-size: clamp(36px, 5vw, 64px); font-weight: 900; line-height: 1; letter-spacing: -2px; }
.page-hero .ms-look { position: static; }
.clock-card {
  background: linear-gradient(180deg, rgba(33,55,67,.9), rgba(26,44,56,.9));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.clock-card .clock-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.clock-card .clock-num { font-size: 38px; }
.clock-foot { font-size: 13px; font-weight: 600; color: var(--dim); margin-top: 4px; }
section.tight-top { margin-top: 32px; }

/* Past races switcher */
.month-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 24px; }
.month-tabs[hidden] { display: none; }
.month-tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border: 1px solid rgba(255,255,255,.06); border-radius: 999px;
  background: rgba(26,44,56,.85); color: var(--muted);
  font-size: 14px; font-weight: 800; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.month-tab:hover { color: var(--text); border-color: var(--line); }
.month-tab.on { background: var(--line); color: var(--text); border-color: var(--hover); }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 900; color: var(--green);
  background: rgba(0,231,1,.1); padding: 2px 8px 2px 7px; border-radius: 999px;
}
body.viewing-past .live-only { display: none; }

/* Milestones teaser (home) */
.teaser {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 32px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(0,231,1,.16);
  background:
    radial-gradient(ellipse 70% 90% at 100% 50%, rgba(0,231,1,.09), transparent 70%),
    linear-gradient(120deg, rgba(33,55,67,.95), rgba(26,44,56,.95));
  overflow: hidden;
}
.teaser > * { position: relative; z-index: 1; }
.teaser-copy { display: flex; flex-direction: column; gap: 14px; }
.teaser h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; letter-spacing: -.8px; line-height: 1.1; }
.teaser p { font-size: 15.5px; color: var(--muted); line-height: 1.6; max-width: 48ch; font-weight: 500; }
.teaser-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.teaser-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.teaser-chips .ms-chip { min-height: 72px; }
.teaser-chips .ms-chip .t { font-size: 18px; }
.teaser-chips .ms-chip .r { font-size: 15px; }
.eyebrow-pill {
  align-self: flex-start;
  font-size: 12.5px; font-weight: 800; color: var(--green);
  background: rgba(0,231,1,.1); border: 1px solid rgba(0,231,1,.22);
  padding: 5px 12px; border-radius: 999px;
}

/* Info cards (leaderboard prizes + rules) */
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info-card {
  background: rgba(26,44,56,.85);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r-lg);
  padding: 22px;
  overflow: hidden;
}
.info-card > * { position: relative; z-index: 1; }
.info-card h3 { font-size: 16px; font-weight: 900; margin-bottom: 8px; }
.info-card .payout td { color: var(--muted); font-size: 14px; }
.info-card .payout.rtp td:last-child { color: var(--text); }
.info-note { margin-top: 12px; font-size: 13.5px; color: var(--dim); line-height: 1.55; font-weight: 600; }
.facts { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.facts li { position: relative; padding-left: 18px; font-size: 14px; color: var(--muted); line-height: 1.55; font-weight: 500; }
.facts li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--green); }
.facts a, .step a { color: var(--green); font-weight: 700; }

/* Milestones page */
.ms-look-title { font-size: 18px; font-weight: 900; }
.mini-steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.mini-steps li {
  counter-increment: s;
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--muted); font-weight: 500;
}
.mini-steps li::before {
  content: counter(s);
  display: grid; place-items: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: var(--r);
  background: rgba(0,231,1,.1); border: 1px solid rgba(0,231,1,.25);
  color: var(--green); font-weight: 900; font-size: 14px;
}
.mini-steps b { color: var(--text); }
.ms-row.done { border-color: rgba(0,231,1,.3); }
.ms-row.done .ms-band { color: var(--green); }

.faq { display: flex; flex-direction: column; gap: 8px; max-width: 820px; }
.faq details {
  background: rgba(26,44,56,.85);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r);
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px;
  font-size: 15.5px; font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex-shrink: 0;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-sm);
  background: var(--raised); color: var(--green); font-size: 18px; font-weight: 800;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; font-size: 14.5px; color: var(--muted); line-height: 1.65; font-weight: 500; max-width: 70ch; }

/* Call-to-action band above the footer */
.cta-band { max-width: 1240px; margin: 0 auto; padding: 0 16px 72px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 32px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 60% 120% at 0% 0%, rgba(20,117,225,.25), transparent 70%),
    radial-gradient(ellipse 50% 120% at 100% 100%, rgba(0,231,1,.14), transparent 70%),
    var(--panel);
  border: 1px solid rgba(255,255,255,.06);
}
.cta-inner h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -.6px; margin-bottom: 6px; }
.cta-inner p { font-size: 15.5px; color: var(--muted); font-weight: 500; }
.cta-inner p b { color: var(--text); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.site-footer { position: relative; z-index: 1; background: rgba(20,36,47,.92); border-top: 1px solid rgba(255,255,255,.05); }
.site-footer .foot {
  display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start;
  padding: 44px 16px 28px;
}
.foot-about { display: flex; flex-direction: column; gap: 12px; }
.foot-about p { font-size: 14px; color: var(--dim); line-height: 1.6; max-width: 40ch; font-weight: 500; }
.foot-about p b { color: var(--muted); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h3 { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.foot-col a { font-size: 14px; color: var(--dim); text-decoration: none; font-weight: 600; transition: color .15s; }
.foot-col a:hover { color: var(--text); }
.foot-legal {
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 16px 28px;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: 12.5px; color: var(--dim); font-weight: 600;
}
.foot-legal a { color: var(--muted); }

/* 404 */
.not-found { min-height: 56vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.nf-code {
  font-size: clamp(90px, 16vw, 180px); font-weight: 900; line-height: .9; letter-spacing: -6px;
  background: linear-gradient(100deg, var(--green), #9dff7a 45%, #00b3ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.not-found .lede { margin: 0 auto; }
.not-found .hero-actions { justify-content: center; }

/* Mobile tab bar */
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
    display: grid; grid-template-columns: repeat(3, 1fr);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(20,36,47,.96);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,.07);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 4px; border-radius: var(--r);
    font-size: 11.5px; font-weight: 800; color: var(--dim); text-decoration: none;
  }
  .tabbar a[aria-current="page"] { color: var(--green); background: rgba(0,231,1,.08); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .stream-reopen { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .stream-player { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 1000px) {
  .page-hero { grid-template-columns: minmax(0, 1fr); }
  .teaser { grid-template-columns: 1fr; padding: 24px; }
  .info-grid { grid-template-columns: 1fr; }
  .site-footer .foot { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .cta-inner { padding: 24px 20px; }
  .cta-actions .btn { flex: 1; }
  .teaser-actions .btn { flex: 1; }
  .clock-card .clock-num { font-size: 28px; }
  .page-title { letter-spacing: -1.4px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-title, .not-found .nf-code { animation: none !important; opacity: 1; transform: none; }
}

/* ═══════════ RESPONSIVE POLISH ═══════════ */
/* Pong board hugs its content next to the hero copy instead of stretching. */
.hero > .board { align-self: center; }

/* Tablets: keep the three steps side by side. */
@media (min-width: 701px) and (max-width: 1000px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .step { padding: 18px; }
  .step h3 { font-size: 15.5px; }
}

/* Phones */
@media (max-width: 700px) {
  .ms-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .ms-chip { min-height: 50px; }
  .ms-chip .t { font-size: 13px; }
  .ms-chip .r { font-size: 12px; }
  .teaser-chips .ms-chip .t { font-size: 16px; }
  .sec-head { margin-bottom: 14px; }
  .pod-row dd { font-size: 15px; }
}
@media (max-width: 360px) {
  .ms-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Small courts: a compact start screen that fits a phone-sized board. */
@media (max-width: 520px) {
  .court-overlay { gap: 8px; padding: 10px; }
  .court-overlay .big { font-size: 19px; }
  .court-overlay .small, .court-overlay .record { display: none; }
  .diff button { padding: 6px 12px; font-size: 12.5px; }
  #pong-start { height: 38px; padding: 0 18px; font-size: 13px; }
  .board { padding: 12px; gap: 10px; }
  .board-info { font-size: 13px; min-height: 0; }
}

/* Narrow phones: button pairs stack full-width instead of squeezing. */
@media (max-width: 440px) {
  .hero-actions, .teaser-actions, .cta-actions { flex-direction: column; }
  /* flex: none, or the row's flex: 1 would squash their height once stacked. */
  .hero-actions .btn, .teaser-actions .btn, .cta-actions .btn { width: 100%; flex: none; }
  .page-title { font-size: 34px; }
  h1 { font-size: 36px; }
  .clock-num, .clock-card .clock-num { font-size: 26px; }
  .stat dd { font-size: 18px; }
}

/* Large screens: a little more room. */
@media (min-width: 1600px) {
  main, .bar, .foot, .foot-legal, .cta-band { max-width: 1360px; }
}
/* Mobile: the stream opens from a "Live" tab instead of a floating pill. */
.tab-watch { display: none; }
@media (max-width: 760px) {
  .tabbar { grid-template-columns: repeat(4, 1fr); }
  .tab-watch {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 4px; border: none; border-radius: var(--r); background: none;
    font-size: 11.5px; font-weight: 800; color: var(--dim); cursor: pointer;
  }
  .tab-watch.on { color: #ff5a78; background: rgba(255,59,92,.1); }
  .tab-dot { position: absolute; top: 6px; right: calc(50% - 16px); width: 7px; height: 7px; border-radius: 50%; background: #ff3b5c; animation: blink 1.6s ease-in-out infinite; }
  .stream-reopen, .stream-reopen.visible { display: none; }
  .stream-player { left: 8px; right: 8px; width: auto; max-width: none; }
  .stream-player.large { width: auto; }
}
/* Milestone ladder on wide screens: bands in two columns, chips fill the card. */
@media (min-width: 1001px) {
  .page-milestones .ms-ladder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .page-milestones .ms-row { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .page-milestones .ms-row .ms-band { display: flex; justify-content: space-between; align-items: baseline; }
  .page-milestones .ms-row .ms-band small { margin-top: 0; }
  .page-milestones .ms-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .page-milestones .ms-row:first-child { grid-column: 1 / -1; }
  .page-milestones .ms-row:first-child .ms-chips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .page-milestones .ms-chip { min-height: 60px; }
  .page-milestones .ms-chip .t { font-size: 16px; }
  .page-milestones .ms-chip .r { font-size: 14px; }
}
/* Touch targets: buttons never shrink below a comfortable tap height. */
.btn { min-height: 46px; }
.btn-sm { min-height: 40px; }
.btn-icon { min-width: 46px; }
@media (max-width: 700px) { .btn { min-height: 48px; } #pong-start { min-height: 40px; } }

/* ═══════════ HOME: PERKS + THREE WAYS TO WIN ═══════════ */
.perks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.perks a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 7px; border-radius: 999px;
  background: rgba(26,44,56,.85); border: 1px solid rgba(255,255,255,.07);
  font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease), background .2s;
}
.perks a:hover { border-color: var(--line); transform: translateY(-2px); background: rgba(33,55,67,.95); }
.perks b { color: var(--text); font-weight: 900; }
.perk-ic {
  flex-shrink: 0; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
}
.perk-ic.race { background: rgba(20,117,225,.18); color: #5aa9ff; }
.perk-ic.miles { background: rgba(0,231,1,.14); color: var(--green); }
.perk-ic.live { background: rgba(255,59,92,.16); color: #ff6a86; }

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.way {
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(33,55,67,.92), rgba(26,44,56,.92));
  overflow: hidden;
  position: relative;
}
.way::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}
.way > * { position: relative; z-index: 1; }
.way-race { --accent: #1475e1; }
.way-ms { --accent: var(--green); }
.way-live { --accent: #ff3b5c; }
.way-head { display: flex; align-items: center; gap: 12px; }
.way-head .perk-ic { width: 42px; height: 42px; border-radius: var(--r); }
.way-head h3 { font-size: 18px; font-weight: 900; letter-spacing: -.3px; }
.way-head p { font-size: 13.5px; color: var(--dim); font-weight: 600; margin-top: 2px; }
.way-head p b { color: var(--text); }
.way-note { font-size: 13.5px; color: var(--dim); font-weight: 600; line-height: 1.5; }
.way-cta { margin-top: auto; width: 100%; }
.way-cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.way .facts li { font-size: 13.5px; }

.mini-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mini-clock div { background: var(--deep); border-radius: var(--r-sm); padding: 8px 4px 6px; text-align: center; overflow: hidden; }
.mini-clock b { display: inline-block; font-size: 20px; font-weight: 900; line-height: 1; }
.mini-clock b.roll { animation: roll .45s var(--ease); }
.mini-clock span { display: block; font-size: 10.5px; font-weight: 700; color: var(--dim); margin-top: 3px; }

.mini-top { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mini-top li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  background: var(--deep); border-radius: var(--r-sm); padding: 9px 10px;
  font-size: 14px; font-weight: 700;
}
.mini-top li.mini-empty { display: block; color: var(--dim); font-weight: 600; }
.mt-rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--m); color: var(--on-green); font-weight: 900; font-size: 13px; }
.mt-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-wager { color: var(--muted); font-size: 13px; }
.mt-prize { color: var(--green); font-weight: 900; min-width: 44px; text-align: right; }
.link-btn { background: none; border: none; color: var(--green); font-weight: 800; cursor: pointer; padding: 0; }

.way-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.way-chips .ms-chip { min-height: 58px; }
.way-chips .ms-chip .t { font-size: 15px; }

.way-screen {
  position: relative; display: grid; place-items: center; gap: 10px;
  min-height: 132px; padding: 16px;
  border: 1px solid rgba(255,255,255,.06); border-radius: var(--r);
  background:
    radial-gradient(ellipse at center, rgba(255,59,92,.16), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 2px, transparent 2px 4px),
    var(--deep);
  cursor: pointer; color: var(--text);
  transition: border-color .2s, transform .2s var(--ease);
}
.way-screen:hover { border-color: rgba(255,59,92,.45); transform: translateY(-2px); }
.way-screen img { border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,59,92,.25), 0 10px 30px rgba(0,0,0,.4); }
.way-screen-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; }

@media (max-width: 1000px) {
  .ways { grid-template-columns: 1fr; }
  .way { padding: 18px; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .way-live { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .perks a { font-size: 13px; padding-right: 12px; }
  .perk-ic { width: 28px; height: 28px; }
}

/* Perks as three equal tiles; balanced headline lines. */
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.perks a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 12px; border-radius: var(--r); height: 100%;
  font-size: 13px; line-height: 1.3;
}
.perks a > span:last-child { display: flex; flex-direction: column; }
.perks b { font-size: 17px; letter-spacing: -.3px; }
h1, .page-title, .teaser h2, .cta-inner h2 { text-wrap: balance; }
@media (max-width: 440px) { .perks a { padding: 10px; font-size: 12px; } .perks b { font-size: 15px; } }