/* ===== Reset & tokens ===== */
* { box-sizing: border-box; }
:root {
  /* --bg / --accent / --text are injected from config after this file loads */
  --bg: #0b0b0f;
  --accent: #f5c518;
  --text: #f6f5fa;

  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-solid: #14131a;
  --glass: rgba(20, 19, 26, 0.72);

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-accent: rgba(245, 197, 24, 0.28);

  --gold-soft: #ffe79a;
  --gold-deep: #d4a017;
  --gold-grad: linear-gradient(135deg, #ffe79a 0%, var(--accent) 46%, #e0a915 100%);
  --gold-glow: rgba(245, 197, 24, 0.24);

  --silver: #cdd2dc;
  --bronze: #d68a52;

  --muted: #9793a6;
  --muted-2: #6c6879;

  --radius: 18px;
  --radius-lg: 24px;
  --maxw: 1080px;
}
@font-face {
  font-family: 'Archivo';
  src: url('/public/font.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  /* Ember — warm brown-black ground with a gold top glow */
  background:
    radial-gradient(1000px 580px at 50% -150px, rgba(245, 197, 24, 0.15), transparent 63%),
    radial-gradient(760px 580px at 88% 12%, rgba(196, 96, 42, 0.14), transparent 60%),
    radial-gradient(700px 620px at 6% 40%, rgba(120, 50, 20, 0.12), transparent 62%),
    linear-gradient(180deg, #16100a 0%, #0d0906 60%, #090604 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding: 0 1.25rem 5rem; }

/* ===== Nav (floating glass pill) ===== */
.topnav {
  position: sticky; top: 0; z-index: 40;
  padding: 0.85rem 1.25rem 0.4rem;
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.6rem 0.7rem 0.6rem 1.15rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.brand {
  font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand-accent { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: 1.4rem;
  margin-left: auto; margin-right: 0.35rem; font-size: 0.9rem;
}
.nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 600;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.soon {
  font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px;
  color: #100c02; background: var(--accent); border-radius: 999px; padding: 0.12rem 0.45rem;
  vertical-align: middle; margin-left: 0.15rem;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--gold-grad); color: #150f01;
  font-weight: 800; font-size: 0.88rem; text-decoration: none;
  padding: 0.5rem 1.05rem; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(245, 197, 24, 0.28);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 10px 26px rgba(245, 197, 24, 0.36); }
.code-pill {
  display: inline-block; border: 1px dashed var(--line-accent); color: var(--accent);
  border-radius: 999px; padding: 0.25rem 0.8rem; font-weight: 700; font-size: 0.82rem;
}
.nav-discord {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #5865f2; color: #fff;
  font-weight: 800; font-size: 0.88rem; text-decoration: none;
  padding: 0.5rem 1.05rem; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.nav-discord:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 26px rgba(88, 101, 242, 0.48); }
.nav-discord svg { width: 18px; height: 14px; flex: none; }
.arr { font-style: normal; display: inline-block; transition: transform 0.15s; }
.nav-cta:hover .arr, .btn:hover .arr { transform: translate(2px, -2px); }

/* ===== Hero ===== */
.hero { max-width: 780px; margin: 0 auto; text-align: center; padding: 4.5rem 1.25rem 1rem; }
.eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.22em; color: var(--accent); margin-bottom: 1.15rem;
  padding: 0.32rem 0.85rem; border: 1px solid var(--line-accent); border-radius: 999px;
  background: rgba(245, 197, 24, 0.06);
}
.hero-title {
  margin: 0; font-weight: 900; letter-spacing: -0.035em; line-height: 0.94;
  font-size: clamp(2.8rem, 8.5vw, 5.2rem);
}
.hero-title .grad {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: 1.4rem auto 0; max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.18rem); color: var(--muted); font-weight: 500;
}
.pool-amount {
  font-weight: 800; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap;
  font-weight: 800; font-size: 0.98rem; text-decoration: none;
  padding: 0.85rem 1.6rem; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s, background 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--gold-grad); color: #150f01;
  box-shadow: 0 10px 30px rgba(245, 197, 24, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 14px 38px rgba(245, 197, 24, 0.4); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.02); color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--line-accent); transform: translateY(-2px); }
.btn-discord {
  background: #5865f2; color: #fff;
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}
.btn-discord:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 38px rgba(88, 101, 242, 0.44); }
.btn-discord svg { width: 20px; height: 15px; flex: none; }

/* ===== Countdown (docked bar) ===== */
.countdown {
  max-width: var(--maxw); margin: 2.5rem auto 0;
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background:
    linear-gradient(120deg, rgba(245, 197, 24, 0.07), transparent 42%),
    var(--surface-solid);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  font-variant-numeric: tabular-nums;
}
.cd-label { display: flex; align-items: center; gap: 0.85rem; margin-right: auto; }
.cd-icon {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 12px; background: rgba(245, 197, 24, 0.1); color: var(--accent);
  border: 1px solid var(--line-accent);
}
.cd-icon svg { width: 22px; height: 22px; }
.cd-text { display: flex; flex-direction: column; line-height: 1.2; }
.cd-eyebrow { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); }
.cd-sub { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.cd-clock { display: flex; align-items: center; gap: 0.35rem; }
.countdown .seg { display: inline-flex; flex-direction: column; align-items: center; min-width: 3rem; }
.countdown .seg b { font-size: 1.85rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.countdown .seg small { font-size: 0.6rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 0.25rem; font-weight: 700; }
.cd-colon { font-style: normal; font-size: 1.4rem; font-weight: 700; color: var(--muted-2); transform: translateY(-0.3rem); }

.banner {
  max-width: var(--maxw); margin: 1.25rem auto 0; text-align: center;
  background: rgba(245, 197, 24, 0.1); color: var(--accent);
  padding: 0.65rem; border-radius: 12px; border: 1px solid var(--line-accent); font-weight: 700;
}
.empty { text-align: center; font-size: 1.2rem; color: var(--muted); padding: 5rem 0; }

/* ===== Section label ===== */
.section-label {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--muted-2); margin: 2.75rem 0 1rem;
}

/* ===== Podium ===== */
.podium { display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 1rem; align-items: end; margin: 3rem 0 0.5rem; scroll-margin-top: 6rem; }
.place {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1rem 1.4rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  backdrop-filter: blur(6px);
}
.place-2 { order: 1; }
.place-1 { order: 2; }
.place-3 { order: 3; }
.place-1 {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(245, 197, 24, 0.12), transparent 60%),
    var(--surface-2);
  border-color: var(--line-accent);
  box-shadow: 0 0 48px rgba(245, 197, 24, 0.16), 0 16px 44px rgba(0, 0, 0, 0.5);
  transform: translateY(-16px);
  padding-top: 2.1rem; padding-bottom: 1.9rem;
}
.rank-pill {
  font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em;
  background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 0.22rem 0.75rem;
}
.place-1 .rank-pill { background: var(--gold-grad); color: #150f01; }
.trophy { width: 40px; height: 40px; margin: 0.55rem 0 0.15rem; color: var(--muted-2); }
.place-1 .trophy { color: var(--accent); width: 56px; height: 56px; filter: drop-shadow(0 0 14px rgba(245, 197, 24, 0.5)); }
.place-2 .trophy { color: var(--silver); }
.place-3 .trophy { color: var(--bronze); }
.place .name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.place-1 .name { font-size: 1.25rem; }
.place .wagered { color: var(--muted); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.place .prize { font-weight: 800; font-size: 1.35rem; margin-top: 0.45rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.place-1 .prize {
  font-size: 1.85rem;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.place-2 .prize { color: var(--silver); }
.place-3 .prize { color: var(--bronze); }
.place--open { border-style: dashed; }
.place--open .name { color: var(--muted); font-style: italic; }
.place--open .trophy { opacity: 0.45; }
.empty-note {
  max-width: var(--maxw); margin: 2.5rem auto 0; text-align: center;
  color: var(--muted); font-size: 1.05rem;
}

/* ===== Code band (casino-facing mode) ===== */
.code-band {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(245, 197, 24, 0.1), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-accent); border-radius: var(--radius);
  padding: 2.75rem 1.5rem 2.5rem; margin-top: 2.75rem; text-align: center;
}
.code-band h2 { font-size: 1.7rem; font-weight: 900; letter-spacing: -0.02em; margin: 0.5rem 0 0; }
.code-band p { color: var(--muted); max-width: 480px; margin: 0.6rem auto 1.4rem; }
.code-band .code-box { margin: 0 auto 1.4rem; }

/* ===== Prize strip ===== */
.prize-strip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; margin: 1.75rem 0 0; text-align: center;
}
.prize-strip p { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.85rem; max-width: 44rem; margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.chip {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.95rem; font-size: 0.85rem; font-variant-numeric: tabular-nums; font-weight: 600;
}
.chip b { color: var(--accent); margin-right: 0.4rem; }

/* ===== Table ===== */
.board-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: 0.5rem;
}
table.board { width: 100%; border-collapse: collapse; }
.board th {
  text-align: left; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted-2); font-weight: 800; padding: 0.95rem 1.35rem; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.board td { padding: 0.9rem 1.35rem; border-bottom: 1px solid rgba(255, 255, 255, 0.045); font-size: 0.95rem; }
.board tbody tr:last-child td { border-bottom: 0; }
.board tbody tr { transition: background 0.12s; }
.board tbody tr:hover { background: var(--surface-2); }
.board .num { text-align: right; font-variant-numeric: tabular-nums; }
.board td:first-child { color: var(--muted-2); width: 3.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.board td:nth-child(2) { font-weight: 600; }
.prize-cell { color: var(--muted); }
tr.paid .prize-cell { color: var(--accent); font-weight: 800; }

/* ===== Last month ===== */
.last-month { margin-top: 3.5rem; }
.last-month h2 { font-size: 0.72rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.2em; text-align: center; font-weight: 800; }
.lm-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.25rem; }
.lm-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.85rem 1.35rem; min-width: 8rem;
}
.lm-rank { font-size: 0.66rem; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; }
.lm-name { font-weight: 700; }
.lm-prize { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* ===== Join page ===== */
.join { text-align: center; }
.steps { list-style: none; padding: 0; margin: 2.5rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: left; }
.step-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.4rem 1.5rem;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 12px;
  background: var(--gold-grad); color: #150f01; font-weight: 800;
}
.step-card h3 { margin: 1rem 0 0.4rem; font-size: 1.08rem; letter-spacing: -0.01em; }
.step-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.code-box {
  display: inline-flex; align-items: center; gap: 1rem;
  background: var(--surface-solid); border: 1px dashed var(--line-accent); border-radius: 16px;
  padding: 1rem 1.85rem; margin: 0.5rem 0 1.5rem;
}
.code-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-weight: 800; }
.code-value { font-size: 1.55rem; font-weight: 800; color: var(--accent); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.cta {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--gold-grad); color: #150f01;
  padding: 0.85rem 1.9rem; border-radius: 999px; text-decoration: none; font-weight: 800;
  box-shadow: 0 10px 30px rgba(245, 197, 24, 0.28);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.cta:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 14px 38px rgba(245, 197, 24, 0.4); }

/* ===== Milestones ladder ===== */
.ms-ladder { display: flex; flex-direction: column; gap: 0.8rem; margin: 3rem 0 0; scroll-margin-top: 6rem; }
.ms-tier {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.6rem;
}
.ms-idx {
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem; flex: none;
  border-radius: 11px; background: var(--surface-2); color: var(--muted); font-weight: 800; font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.ms-cap { display: block; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-2); font-weight: 800; margin-bottom: 0.2rem; }
.ms-req-val { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ms-reward { text-align: right; }
.ms-reward-val {
  font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ms-tier--top {
  border-color: var(--line-accent);
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.06), transparent 70%), var(--surface-2);
  box-shadow: 0 0 36px rgba(245, 197, 24, 0.1);
}
.ms-tier--top .ms-idx { background: var(--gold-grad); color: #150f01; }
.ms-toppill {
  position: absolute; top: -0.62rem; right: 1.4rem;
  font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  color: #150f01; background: var(--gold-grad); padding: 0.16rem 0.6rem; border-radius: 999px;
}

.ms-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.75rem; }
.ms-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem; }
.ms-step h3 { margin: 0 0 0.45rem; font-size: 1.02rem; letter-spacing: -0.01em; }
.ms-step p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.ms-terms { color: var(--muted-2); font-size: 0.82rem; text-align: center; max-width: 46rem; margin: 2.75rem auto 0; line-height: 1.65; }

/* ===== VIP cashback tiers ===== */
.vip-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 3rem 0 0; scroll-margin-top: 6rem; }
.vip-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.65rem 1.5rem 1.5rem; min-height: 12.5rem;
}
.vip-name {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.28rem 0.8rem;
}
.vip-rate { display: flex; flex-direction: column; }
.vip-rate-val {
  font-size: 2.4rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vip-rate-cap { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-2); margin-top: 0.35rem; }
.vip-req { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; margin-top: auto; }
.vip-card--top {
  border-color: var(--line-accent);
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.06), transparent 70%), var(--surface-2);
  box-shadow: 0 0 36px rgba(245, 197, 24, 0.1);
}
.vip-card--top .vip-name { background: var(--gold-grad); color: #150f01; border-color: transparent; }
@media (max-width: 860px) { .vip-tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .vip-tiers { grid-template-columns: 1fr; } }

/* ===== Claim band ===== */
.claim {
  display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap;
  margin-top: 2.75rem; padding: 1.6rem 1.85rem;
  background: linear-gradient(120deg, rgba(245, 197, 24, 0.07), transparent 55%), var(--surface-2);
  border: 1px solid var(--line-accent); border-radius: var(--radius);
}
.claim-text { flex: 1 1 24rem; }
.claim .eyebrow { margin-bottom: 0.65rem; }
.claim-line { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.6; }
.claim-line b { color: var(--text); font-weight: 700; }
.claim .btn { flex: none; }
@media (max-width: 620px) {
  .claim { flex-direction: column; align-items: stretch; }
  .claim .btn { justify-content: center; }
}

/* ===== Milestones (coming-soon fallback) ===== */
.soon-block { display: flex; justify-content: center; padding-top: 3.5rem; }
.soon-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 3.25rem 2.75rem; text-align: center; max-width: 27rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.85rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
.soon-card .trophy { color: var(--accent); width: 52px; height: 52px; filter: drop-shadow(0 0 14px rgba(245, 197, 24, 0.4)); }
.soon-card h1 { margin: 0; font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; }
.soon-card p { color: var(--muted); margin: 0; }

/* ===== Footer ===== */
footer { margin-top: 5rem; padding: 2.5rem 1.25rem 3rem; border-top: 1px solid var(--line); text-align: center; }
.foot-brand { font-weight: 800; margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.foot-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 0.9rem; font-size: 0.9rem; }
.foot-links a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.foot-links a:hover { color: var(--text); }
.disclaimer { color: var(--muted-2); font-size: 0.8rem; }

/* ===== Admin (functional, lightly themed) ===== */
.admin-wrap { max-width: 760px; }
.race-controls {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; margin-bottom: 2rem;
}
.race-controls h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.race-controls p { color: var(--muted); margin: 0 0 0.25rem; }
.race-controls form { display: inline-block; margin-right: 0.75rem; }
.race-controls table.board { background: var(--surface-solid); border-radius: 12px; margin: 0.75rem 0 0.5rem; }
.row-action { text-align: right; }
.row-action form { margin: 0; }
.btn-row {
  background: none; border: 1px solid var(--line); color: var(--muted);
  padding: 0.28rem 0.9rem; margin-top: 0; font-weight: 600; font-size: 0.85rem;
}
.btn-row:hover { color: var(--text); border-color: var(--accent); }
.tag-manual {
  font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  background: rgba(245, 197, 24, 0.14); color: var(--accent);
  border-radius: 999px; padding: 0.14rem 0.5rem; vertical-align: middle;
}
.manual-form { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-top: 0.9rem; }
.manual-form input {
  background: var(--surface-solid); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.55rem 0.8rem; font-family: inherit; font-size: 0.9rem;
}
.manual-form button { margin-top: 0; }
.hint { color: var(--muted-2); font-size: 0.8rem; margin: 0.5rem 0 0.25rem; }
.excluded-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.excluded-list li { display: flex; align-items: center; gap: 0.8rem; padding: 0.3rem 0; }
.excluded-list form { display: inline; margin: 0; }
form textarea {
  width: 100%; font-family: inherit; font-size: 0.95rem; background: var(--surface-solid); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 0.85rem;
}
form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: transparent; }
button {
  background: var(--gold-grad); color: #150f01; border: 0; border-radius: 999px;
  padding: 0.65rem 1.4rem; font-weight: 800; font-family: inherit; cursor: pointer; margin-top: 0.75rem;
}
button:hover { filter: brightness(1.04); }
.message { text-align: center; color: var(--accent); font-weight: 700; }
.admin-wrap table.board { background: var(--surface-solid); border-radius: 12px; margin-top: 1rem; }

/* ===== Focus & motion ===== */
a:focus-visible, .btn:focus-visible, .nav-cta:focus-visible, .cta:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ===== Mobile ===== */
@media (max-width: 760px) {
  .topnav { padding: 0.7rem 0.9rem 0.3rem; }
  .nav-inner { padding: 0.55rem 0.7rem 0.55rem 1rem; gap: 0.6rem; }
  .nav-links { display: none; }
  .brand { font-size: 1rem; }
  .nav-cta { margin-left: auto; }
  .nav-discord { margin-left: auto; padding: 0.5rem 0.7rem; }
  .nav-discord span { display: none; }
  .nav-discord + .nav-cta { margin-left: 0; }
  .hero { padding-top: 3rem; }
  .hero-cta .btn { flex: 1; justify-content: center; min-width: 8rem; padding: 0.85rem 1rem; }
  .countdown { flex-direction: column; align-items: stretch; gap: 1rem; text-align: center; padding: 1.1rem; }
  .cd-label { margin-right: 0; justify-content: center; }
  .cd-clock { justify-content: center; }
  .countdown .seg b { font-size: 1.6rem; }
  .podium { grid-template-columns: 1fr; align-items: stretch; gap: 0.85rem; }
  .place-1 { order: 1; transform: none; }
  .place-2 { order: 2; }
  .place-3 { order: 3; }
  .steps { grid-template-columns: 1fr; }
  .ms-how { grid-template-columns: 1fr; }
  .ms-tier { padding: 1rem 1.1rem; gap: 0.85rem; }
  .ms-req-val { font-size: 1.1rem; }
  .ms-reward-val { font-size: 1.35rem; }
  .board th, .board td { padding: 0.75rem 0.85rem; }
  .board th { font-size: 0.6rem; }
  .board td { font-size: 0.88rem; }
  .board td:first-child { width: 2rem; }
}
@media (max-width: 380px) {
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
