/* Generated from the Forge leaderboard template. Every colour, font and corner
   radius below comes from the creator config — edit creators/<slug>.json and
   re-run the generator rather than editing this file by hand. */

:root {
  /* base */
  --accent: #38bdf8;
  --accent-lit: #6ccefa;
  --accent-deep: #206e90;
  --accent-2: #6366f1;
  --accent-2-lit: #8c8ef5;
  --accent-2-deep: #393b8c;
  --gold: #fde047;
  --gold-deep: #b6a133;
  --bg: #04070f;
  --panel: #0a1424;
  --panel-lit: #1b2433;
  --footer-bg: #03050a;
  --input-bg: #060b14;
  --text: #e8f6ff;
  --muted: #87a5c4;
  --ok: #4ade80;
  --on-accent: #0a0a0a;
  --on-accent-2: #ffffff;
  /* hairlines */
  --line: rgba(146, 219, 251, 0.16);
  --line-soft: rgba(146, 219, 251, 0.07);
  /* translucent variants */
  --accent-a07: rgba(56, 189, 248, 0.07);
  --accent-a10: rgba(56, 189, 248, 0.1);
  --accent-a12: rgba(56, 189, 248, 0.12);
  --accent-a16: rgba(56, 189, 248, 0.16);
  --accent-a22: rgba(56, 189, 248, 0.22);
  --accent-a35: rgba(56, 189, 248, 0.35);
  --accent-a40: rgba(56, 189, 248, 0.4);
  --accent-a45: rgba(56, 189, 248, 0.45);
  --accent-a75: rgba(56, 189, 248, 0.75);
  --accent-2-a00: rgba(99, 102, 241, 0);
  --accent-2-a07: rgba(99, 102, 241, 0.07);
  --accent-2-a08: rgba(99, 102, 241, 0.08);
  --accent-2-a40: rgba(99, 102, 241, 0.4);
  --accent-2-a45: rgba(99, 102, 241, 0.45);
  --accent-2-a70: rgba(99, 102, 241, 0.7);
  --accent-2-a75: rgba(99, 102, 241, 0.75);
  --gold-a07: rgba(253, 224, 71, 0.07);
  --gold-a14: rgba(253, 224, 71, 0.14);
  --gold-a16: rgba(253, 224, 71, 0.16);
  --gold-a45: rgba(253, 224, 71, 0.45);
  --gold-a50: rgba(253, 224, 71, 0.5);
  --bg-a60: rgba(4, 7, 15, 0.6);
  --bg-a75: rgba(4, 7, 15, 0.75);
  /* type */
  --font-display: 'Rajdhani', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  /* corners */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 30px;
}

* { 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;
}

/* ---------- Backdrop ---------- */
.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--a { top: -18vw; left: -14vw; background: var(--accent); }
.glow--b { top: 42vw; right: -18vw; background: var(--accent-2); }

.gridlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.7;
}

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(--accent-lit); }
[hidden] { display: none !important; }

.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: var(--r-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  /* Keep even the small header CTA at a comfortable tap size on phones. */
  min-height: 44px;
  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--accent2 {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-2-deep));
  color: var(--on-accent-2);
  box-shadow: 0 8px 30px var(--accent-2-a40);
}
.btn--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
  box-shadow: 0 8px 30px var(--accent-a40);
}
.btn--ghost {
  background: var(--accent-a10);
  border-color: var(--accent);
  color: var(--accent-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: var(--bg-a75);
  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__a { color: var(--accent-lit); }
.brand__b { color: var(--accent-2-lit); }
.brand__sep { color: var(--muted); margin: 0 0.15em; }
.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: var(--accent-2-a08);
  color: var(--accent-2-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(--accent-2);
  box-shadow: 0 0 0 0 var(--accent-2-a70);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px var(--accent-2-a00); }
  100% { box-shadow: 0 0 0 0 var(--accent-2-a00); }
}

h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(3.2rem, 14vw, 8.5rem);
  line-height: 0.9;
  background: linear-gradient(100deg, var(--accent-lit) 5%, var(--text) 45%, var(--accent-2-lit) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 40px var(--accent-a35));
}
.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(--accent);
  border-radius: var(--r-lg);
  background: var(--accent-a07);
}
.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; flex-wrap: wrap; justify-content: center; }
.codebox code {
  font-size: clamp(1.2rem, 4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  word-break: break-all;
}
.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: var(--r-xl);
  background: linear-gradient(160deg, var(--accent-a10), var(--accent-2-a08));
  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: var(--r-lg);
  background: var(--bg-a60);
}
.unit__num {
  display: block;
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-shadow: 0 0 24px var(--accent-a75);
}
.unit:nth-child(even) .unit__num { text-shadow: 0 0 24px var(--accent-2-a75); }
.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: var(--r-lg);
  background: var(--panel);
  text-align: center;
}
.stat__num {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  color: var(--accent-lit);
}
.stat:nth-child(even) .stat__num { color: var(--accent-2-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; }

/* ---------- Weekly / monthly tabs ---------- */
/* Hidden unless the creator funds a weekly board. Sized as a real tap target
   so the two boards are equally reachable on a phone. */
.board-tabs {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 auto 2rem;
  padding: 0.35rem;
  width: fit-content;
  max-width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.board-tab {
  min-height: 44px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.board-tab:hover { color: var(--text); }
.board-tab.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
  box-shadow: 0 6px 20px var(--accent-a40);
}
.board-tab:focus-visible { outline: 2px solid var(--accent-lit); outline-offset: 2px; }

/* Monthly / weekly chips inside Past winners. Quieter than the board tabs —
   they pick a competition within a view, not a view. */
.history__scope {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.scope-tab {
  min-height: 44px;
  padding: 0 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.scope-tab:hover { color: var(--text); }
.scope-tab.is-active {
  background: var(--accent-a10);
  border-color: var(--accent);
  color: var(--accent-lit);
}
.scope-tab:focus-visible { outline: 2px solid var(--accent-lit); outline-offset: 2px; }

.history__period {
  margin: 0 0 1.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.history__period strong { color: var(--text); }

/* ---------- 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: var(--r-xl);
  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(--accent);
}
.pod--1 { order: 2; }
.pod--1::before { background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.pod--2 { order: 1; }
.pod--2::before { background: var(--accent); }
.pod--3 { order: 3; }
.pod--3::before { background: var(--accent-2); }
.pod--1 {
  border-color: var(--gold-a45);
  box-shadow: 0 0 50px var(--gold-a16);
}
.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: var(--gold-a14);
  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: var(--r-lg);
  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;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}
.search__row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-a22);
}
.search__result { margin: 0.9rem 0 0; font-size: 0.92rem; min-height: 1.4em; }
.search__result--hit { color: var(--ok); }
.search__result--miss { color: var(--accent-2-lit); }

/* ---------- Leaderboard table ---------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  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 var(--line-soft);
  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: var(--r-sm);
  background: var(--accent-a12);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-lit);
}
tr.is-top .lb__rank { background: var(--gold-a16); 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: var(--accent-a16) !important;
  box-shadow: inset 3px 0 0 var(--accent);
}
tr.is-you .lb__name::after {
  content: 'YOU';
  margin-left: 0.6rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--on-accent);
  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: var(--r-md);
  background: var(--panel);
}
.prize--1 { border-color: var(--gold-a50); background: var(--gold-a07); }
.prize--2 { border-color: var(--accent-a45); }
.prize--3 { border-color: var(--accent-2-a45); }
.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); }

/* Nobody in this position yet — no amount is being advertised. */
.prize--unclaimed { border-color: var(--line); background: transparent; }
.prize--unclaimed .prize__rank { color: var(--muted); }
.prize--unclaimed .prize__amt { color: var(--muted); font-weight: 400; }

/* ---------- 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: var(--r-lg);
  background: var(--panel);
}
.steps__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  margin-bottom: 0.9rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--on-accent);
}
.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: var(--r-lg);
  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; font-weight: 700; color: var(--accent-lit); }
.social--featured {
  margin-bottom: 1.2rem;
  text-align: center;
  align-items: center;
  background: linear-gradient(140deg, var(--accent-a10), var(--panel));
}
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }

/* Platform brand colours on hover — deliberately literal, they are not themeable. */
.social--kick:hover      { border-color: #53fc18; box-shadow: 0 0 34px rgba(83, 252, 24, 0.22); }
.social--kick .social__go { color: #53fc18; }
.social--twitch:hover    { border-color: #9146ff; box-shadow: 0 0 34px rgba(145, 70, 255, 0.24); }
.social--twitch .social__go { color: #a970ff; }
.social--youtube:hover   { border-color: #ff0033; box-shadow: 0 0 34px rgba(255, 0, 51, 0.22); }
.social--youtube .social__go { color: #ff4d6d; }
.social--instagram:hover { border-color: #e1306c; box-shadow: 0 0 30px rgba(225, 48, 108, 0.22); }
.social--tiktok:hover    { border-color: #25f4ee; box-shadow: 0 0 30px rgba(37, 244, 238, 0.2); }
.social--x:hover         { border-color: #e7e9ea; box-shadow: 0 0 30px rgba(231, 233, 234, 0.18); }
.social--discord:hover   { border-color: #5865f2; box-shadow: 0 0 30px rgba(88, 101, 242, 0.24); }
.social--telegram:hover  { border-color: #29a9eb; box-shadow: 0 0 30px rgba(41, 169, 235, 0.22); }
.social--website:hover   { border-color: var(--accent); box-shadow: 0 0 30px var(--accent-a22); }

/* ---------- Previous winners ---------- */
.history { margin-top: 0; }
.history__controls { text-align: center; margin-bottom: 1.5rem; }
.history__controls select[hidden] { display: none; }
.history__controls select {
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
}

.champion {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: 640px;
  margin: 0 auto 1.8rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--gold-a45);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--gold-a14), var(--accent-2-a07));
  box-shadow: 0 0 50px var(--gold-a14);
}
.champion__crown { font-size: 2.4rem; line-height: 1; }
.champion__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.champion__tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.champion__name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}
.champion__meta { font-size: 0.88rem; color: var(--muted); }
.champion__prize {
  margin-left: auto;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--gold-a16);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.footer {
  padding: 3rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  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;
}
.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: var(--muted); opacity: 0.7; }

@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; }

  .champion { flex-wrap: wrap; gap: 0.9rem; padding: 1.2rem; }
  .champion__prize { margin-left: 0; width: 100%; text-align: center; }

  /* The 2/1/3 arrangement puts first place on the centre step. Once the cards
     stack into a column that reads as "second place won", so restore rank order. */
  .pod--1 { order: 1; }
  .pod--2 { order: 2; }
  .pod--3 { order: 3; }
}

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