:root {
  --blue: #2f6bff;
  --blue-lit: #5b91ff;
  --blue-deep: #0a1b4d;
  --red: #ff2d55;
  --red-lit: #ff5c7a;
  --red-deep: #4d0a1b;
  --gold: #ffc93c;
  --bg: #05070f;
  --panel: #0c1224;
  --panel-lit: #131c36;
  --line: rgba(120, 150, 255, 0.16);
  --text: #eaf0ff;
  --muted: #8fa0c9;
  --font-display: 'Chakra Petch', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Ambient blue/red bloom behind the page */
.glow {
  position: fixed;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}
.glow--blue { top: -18vw; left: -14vw; background: var(--blue); }
.glow--red { top: 42vw; right: -18vw; background: var(--red); }

main, .topbar, .footer { position: relative; z-index: 1; }

h1, h2, h3, .unit__num, .stat__num, .brand, code {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

a { color: var(--blue-lit); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn--red {
  background: linear-gradient(135deg, var(--red), #c9143a);
  color: #fff;
  box-shadow: 0 8px 30px rgba(255, 45, 85, 0.4);
}
.btn--blue {
  background: linear-gradient(135deg, var(--blue), #1741b8);
  color: #fff;
  box-shadow: 0 8px 30px rgba(47, 107, 255, 0.4);
}
.btn--ghost {
  background: rgba(47, 107, 255, 0.1);
  border-color: var(--blue);
  color: var(--blue-lit);
}
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.8rem; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 15, 0.75);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.brand__z { color: var(--blue-lit); }
.brand__amp { color: var(--muted); margin: 0 0.15em; }
.brand__m { color: var(--red-lit); }
.topnav { display: flex; gap: 1.5rem; margin-left: auto; }
.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.topnav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
main { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem) 5rem; }

.hero { text-align: center; padding: clamp(3rem, 9vw, 6rem) 0 3rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.08);
  color: var(--red-lit);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(255, 45, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); }
}

h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(3.6rem, 15vw, 8.5rem);
  line-height: 0.9;
  background: linear-gradient(100deg, var(--blue-lit) 5%, #fff 45%, var(--red-lit) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 40px rgba(47, 107, 255, 0.35));
}
.hero__sub {
  display: block;
  margin-top: 0.6rem;
  font-size: clamp(1rem, 3.4vw, 1.7rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.hero__lede {
  max-width: 620px;
  margin: 0 auto 2.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}
.hero__lede strong { color: var(--text); }

.codebox {
  display: inline-block;
  margin-bottom: 2.2rem;
  padding: 1rem 1.4rem;
  border: 1px dashed var(--blue);
  border-radius: 14px;
  background: rgba(47, 107, 255, 0.07);
}
.codebox__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.codebox__row { display: flex; align-items: center; gap: 1rem; }
.codebox code {
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Countdown ---------- */
.countdown-wrap {
  margin: 2rem 0 3.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(47, 107, 255, 0.1), rgba(255, 45, 85, 0.08));
  text-align: center;
}
.countdown__title {
  margin: 0 0 1.4rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-weight: 600;
}
.countdown { display: flex; justify-content: center; gap: clamp(0.5rem, 2.5vw, 1.4rem); flex-wrap: wrap; }
.unit {
  min-width: clamp(72px, 19vw, 130px);
  padding: 1rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 7, 15, 0.6);
}
.unit__num {
  display: block;
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 24px rgba(47, 107, 255, 0.75);
}
.unit:nth-child(even) .unit__num { text-shadow: 0 0 24px rgba(255, 45, 85, 0.75); }
.unit__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.countdown__note { margin: 1.3rem 0 0; font-size: 0.85rem; color: var(--muted); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 4rem;
}
.stat {
  padding: 1.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  text-align: center;
}
.stat__num {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  color: var(--blue-lit);
}
.stat:nth-child(even) .stat__num { color: var(--red-lit); }
.stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}

/* ---------- Section headings ---------- */
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 5.5vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.section-sub { margin: 0 auto; max-width: 560px; color: var(--muted); font-size: 0.95rem; }
section { scroll-margin-top: 90px; }

/* ---------- Podium ---------- */
.podium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.pod {
  position: relative;
  padding: 2rem 1.2rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  text-align: center;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.pod:hover { transform: translateY(-4px); }
.pod::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--blue);
}
.pod--1 { order: 2; }
.pod--1::before { background: linear-gradient(90deg, var(--gold), #ff8a00); }
.pod--2 { order: 1; }
.pod--2::before { background: var(--blue); }
.pod--3 { order: 3; }
.pod--3::before { background: var(--red); }
.pod--1 {
  border-color: rgba(255, 201, 60, 0.45);
  box-shadow: 0 0 50px rgba(255, 201, 60, 0.16);
}
.pod__medal { font-size: 2.2rem; line-height: 1; }
.pod__rank {
  margin: 0.4rem 0 0.2rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.pod__name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 700;
  word-break: break-all;
}
.pod__wagered { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }
.pod__wagered strong { color: var(--text); font-size: 1.05rem; }
.pod__prize {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(255, 201, 60, 0.14);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---------- Search ---------- */
.search {
  margin: 0 auto 2rem;
  max-width: 620px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.search__label {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.search__row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.search__row input {
  flex: 1 1 220px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #060a16;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}
.search__row input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.22);
}
.search__result { margin: 0.9rem 0 0; font-size: 0.92rem; min-height: 1.4em; }
.search__result--hit { color: #4ade80; }
.search__result--miss { color: var(--red-lit); }

/* ---------- Leaderboard table ---------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  overflow-x: auto;
}
.lb { width: 100%; border-collapse: collapse; min-width: 480px; }
.lb th {
  padding: 1rem 1.2rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.lb td {
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid rgba(120, 150, 255, 0.07);
  font-size: 0.98rem;
}
.lb tbody tr:last-child td { border-bottom: 0; }
.lb tbody tr { transition: background 0.15s ease; }
.lb tbody tr:hover { background: var(--panel-lit); }
.lb .num { text-align: right; font-variant-numeric: tabular-nums; }
.lb__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(47, 107, 255, 0.12);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-lit);
}
tr.is-top .lb__rank { background: rgba(255, 201, 60, 0.16); color: var(--gold); }
.lb__name { font-family: var(--font-display); letter-spacing: 0.04em; word-break: break-all; }
.lb__prize { color: var(--gold); font-weight: 700; }
.lb__prize--none { color: var(--muted); font-weight: 400; }
.lb__empty td { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
tr.is-you {
  background: rgba(47, 107, 255, 0.16) !important;
  box-shadow: inset 3px 0 0 var(--blue);
}
tr.is-you .lb__name::after {
  content: 'YOU';
  margin-left: 0.6rem;
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  vertical-align: middle;
}
.updated { margin: 1rem 0 0; text-align: center; font-size: 0.82rem; color: var(--muted); }

/* ---------- Prizes ---------- */
.prizes { margin-top: 5rem; }
.prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.prize {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.prize--1 { border-color: rgba(255, 201, 60, 0.5); background: rgba(255, 201, 60, 0.07); }
.prize--2 { border-color: rgba(47, 107, 255, 0.45); }
.prize--3 { border-color: rgba(255, 45, 85, 0.45); }
.prize__rank {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.prize__amt { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text); }
.prize--1 .prize__amt { color: var(--gold); }

/* ---------- How to enter ---------- */
.how { margin-top: 5rem; text-align: center; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
  text-align: left;
}
.steps li {
  padding: 1.6rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.steps__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}
.steps h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Socials ---------- */
.socials { margin-top: 5rem; }
.social {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.social:hover { transform: translateY(-3px); }
.social__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.social__handle { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; word-break: break-all; }
.social__go { margin-top: 0.4rem; font-size: 0.85rem; color: #53fc18; font-weight: 700; }
.social--kick {
  margin-bottom: 1.2rem;
  border-color: rgba(83, 252, 24, 0.35);
  background: linear-gradient(140deg, rgba(83, 252, 24, 0.1), var(--panel));
  text-align: center;
  align-items: center;
}
.social--kick:hover { border-color: #53fc18; box-shadow: 0 0 40px rgba(83, 252, 24, 0.2); }
.social-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.social-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(12, 18, 36, 0.6);
}
.social-col h3 {
  margin: 0;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.social-col--blue { border-color: rgba(47, 107, 255, 0.35); }
.social-col--blue h3 { color: var(--blue-lit); }
.social-col--red { border-color: rgba(255, 45, 85, 0.35); }
.social-col--red h3 { color: var(--red-lit); }
.social--ig:hover { border-color: #e1306c; box-shadow: 0 0 30px rgba(225, 48, 108, 0.22); }
.social--tt:hover { border-color: #25f4ee; box-shadow: 0 0 30px rgba(37, 244, 238, 0.2); }

/* ---------- History ---------- */
.history { margin-top: 5rem; }
.history__controls { text-align: center; margin-bottom: 1.5rem; }
.history__controls select {
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: 3rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--line);
  background: #03050c;
  text-align: center;
}
.footer__brand {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue-lit);
}
.footer__brand span { color: var(--red-lit); }
.footer__legal {
  max-width: 700px;
  margin: 0 auto 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer__meta { margin: 1.4rem 0 0; font-size: 0.75rem; color: #55618a; }

@media (max-width: 720px) {
  .topnav { display: none; }
  .topbar { justify-content: space-between; }
}

@media (max-width: 520px) {
  /* Four units no longer fit on one line, and a lone "Seconds" on a second
     row reads as broken — pair them into a 2x2 block instead. */
  .countdown { display: grid; grid-template-columns: 1fr 1fr; }
  .unit { min-width: 0; }

  /* The prize column is the point of the board, so tighten the row until all
     four columns fit rather than leaving prizes behind a sideways scroll. */
  .lb { min-width: 0; }
  .lb th, .lb td { padding: 0.75rem 0.5rem; font-size: 0.87rem; }
  .lb th { font-size: 0.62rem; letter-spacing: 0.08em; }
  .lb__rank { width: 26px; height: 26px; font-size: 0.85rem; }
  .lb__name { font-size: 0.82rem; }
  tr.is-you .lb__name::after { display: block; margin: 0.25rem 0 0; width: fit-content; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
