/* ═══════════════════════════════════════════════════════════════
   Florida Man's Playground: styles (mobile-first)
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --green: #55cf86;          /* Castle green */
  --green-hi: #7cf0a8;
  --green-deep: #1f7a4a;
  --lime: #8be04e;           /* promo highlight */
  --gold: #ffd23f;
  --gold-deep: #e8a317;
  --silver: #cfd8e3;
  --bronze: #e8964d;
  --mp-blue: #2a4dff;        /* MyPrize */
  --kick: #53fc18;           /* Kick */
  --discord: #5865f2;

  /* Surfaces */
  --bg: #060908;
  --bg-2: #0a0f0d;
  --surface: #0f1613;
  --surface-2: #141d19;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);

  /* Text */
  --text: #eef6f1;
  --muted: #9aaba2;
  --dim: #63736b;

  /* Type */
  --f-display: "Lilita One", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-pixel: "Pixelify Sans", ui-monospace, monospace;

  /* Layout */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --wrap: 1120px;
  --pad: 18px;
  --gap: 14px;
  --header-h: 62px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

@media (min-width: 720px) {
  :root { --pad: 28px; --gap: 18px; --header-h: 70px; }
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Ambient background: green glow + faint pixel grid */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% -5%, rgba(85, 207, 134, 0.18), transparent 70%),
    radial-gradient(40% 35% at 100% 30%, rgba(255, 210, 63, 0.05), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.2) 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.2) 100%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 400; letter-spacing: 0.01em; line-height: 1.05; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.tnum { font-variant-numeric: tabular-nums; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(6, 9, 8, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.brand-mark {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--green), var(--green-deep));
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 6px 18px rgba(85, 207, 134, .3);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-logo { height: 36px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--f-display); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }

.nav { display: none; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.06); }
@media (min-width: 860px) { .nav { display: flex; } }

.header-cta { display: flex; align-items: center; gap: 8px; }

/* LIVE badge */
.live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px;
  font-family: var(--f-pixel); font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: #04110a; background: var(--kick);
  box-shadow: 0 0 0 3px rgba(83, 252, 24, .18), 0 0 18px rgba(83, 252, 24, .45);
  animation: livePop .4s var(--ease) both;
}
.live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #04110a; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes livePop { from { transform: scale(.7); opacity: 0; } }

/* Mobile bottom nav */
.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px; border-radius: 18px;
  background: rgba(15, 22, 19, 0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 4px; border-radius: 12px;
  font-size: 11px; font-weight: 700; color: var(--muted);
  transition: color .2s, background .2s;
}
.tabbar a svg { width: 20px; height: 20px; }
.tabbar a[aria-current="page"] { color: var(--green-hi); background: rgba(85, 207, 134, .1); }
body { padding-bottom: 96px; }
@media (min-width: 860px) { .tabbar { display: none; } body { padding-bottom: 0; } }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  --btn-bg: rgba(255,255,255,.06);
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 20px;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 800; font-size: 15px; line-height: 1.2; text-align: center;
  transition: transform .2s var(--ease), box-shadow .25s, filter .2s, background .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.22); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 13px; border-radius: 11px; }
.btn-block { width: 100%; }

.btn-green {
  --btn-bg: linear-gradient(180deg, #6bdd98, var(--green) 55%, #3fb672);
  --btn-fg: #03140a;
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 8px 24px rgba(85, 207, 134, .35);
}
.btn-green:hover { box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 12px 34px rgba(85, 207, 134, .55); filter: brightness(1.05); }
.btn-blue {
  --btn-bg: linear-gradient(180deg, #4b69ff, var(--mp-blue));
  --btn-fg: #fff;
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 8px 24px rgba(42, 77, 255, .35);
}
.btn-blue:hover { box-shadow: 0 12px 34px rgba(42, 77, 255, .55); }
.btn-discord { --btn-bg: var(--discord); --btn-fg: #fff; border-color: rgba(255,255,255,.18); box-shadow: 0 8px 24px rgba(88, 101, 242, .3); }
.btn-kick { --btn-bg: var(--kick); --btn-fg: #051004; border-color: rgba(255,255,255,.25); box-shadow: 0 8px 24px rgba(83, 252, 24, .28); }
.btn-ghost { --btn-bg: transparent; }

/* Code chip with copy button */
.code-chip {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; max-width: 100%;
  padding: 6px 6px 6px 14px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.22);
  font-size: 14px; color: var(--muted); font-weight: 600;
}
.code-chip strong { font-family: var(--f-pixel); font-size: 18px; color: var(--gold); letter-spacing: .05em; overflow-wrap: anywhere; }
.code-chip .copy-btn { margin-left: auto; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.07);
  font-size: 13px; font-weight: 800;
  transition: background .2s, color .2s, border-color .2s;
}
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn:hover { background: rgba(255,255,255,.12); }
.copy-btn.copied { background: rgba(85, 207, 134, .18); border-color: rgba(85, 207, 134, .5); color: var(--green-hi); }

/* ── Generic pieces ───────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-pixel); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-hi);
}
.eyebrow .pip { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 10px var(--green); }

.section { padding: 44px 0; }
@media (min-width: 720px) { .section { padding: 64px 0; } }
.section-head { margin-bottom: 22px; display: grid; gap: 10px; }
.section-title { font-size: clamp(30px, 7vw, 44px); }
.section-lead { color: var(--muted); max-width: 60ch; }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
@media (min-width: 720px) { .card { padding: 30px; } }
.card-accent::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--green)), transparent);
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Home hero ────────────────────────────────────────────── */
.hero { padding: 34px 0 20px; }
@media (min-width: 720px) { .hero { padding: 64px 0 36px; } }
.hero-grid { display: grid; gap: 26px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.hero h1 { font-size: clamp(42px, 11vw, 76px); margin: 14px 0 16px; }
.hero h1 .hl { color: var(--green); text-shadow: 0 0 34px rgba(85, 207, 134, .35); }
.hero h1 .gold { color: var(--gold); }
.hero-lead { font-size: 17px; color: var(--muted); max-width: 46ch; }
.hero-actions { display: grid; gap: 10px; margin-top: 24px; }
@media (min-width: 520px) { .hero-actions { display: flex; flex-wrap: wrap; align-items: center; } }
.hero-code { margin-top: 16px; }

/* Live round mini-card (home) */
.round-card { --accent: var(--green); overflow: hidden; }
.round-card .wordmark { width: 130px; height: auto; opacity: .95; }
.round-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.mini-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.round-card .stat-value { font-size: clamp(38px, 10vw, 52px); }
.round-card .countdown { margin-top: 18px; }
.round-card .btn { margin-top: 20px; }

/* Perks strip */
.perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.perk {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 999px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.perk svg { width: 16px; height: 16px; color: var(--gold); }

/* ── Status pill ──────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  background: rgba(85, 207, 134, .12); color: var(--green-hi); border: 1px solid rgba(85, 207, 134, .3);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: pulse 1.8s ease-in-out infinite; }
.pill.upcoming { background: rgba(255, 210, 63, .1); color: var(--gold); border-color: rgba(255, 210, 63, .3); }
@keyframes pulse { 50% { opacity: .35; } }

/* ── Countdown ────────────────────────────────────────────── */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-unit {
  background: rgba(0,0,0,.28); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 4px 8px; text-align: center;
}
.cd-num { display: block; font-family: var(--f-display); font-size: clamp(26px, 8vw, 38px); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-lbl { display: block; margin-top: 5px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ── Leaderboard page ─────────────────────────────────────── */
.lb-hero { padding: 30px 0 8px; text-align: center; }
@media (min-width: 720px) { .lb-hero { padding: 54px 0 14px; } }
.lb-hero .wordmark { width: 200px; height: auto; margin: 0 auto 14px; }
@media (min-width: 720px) { .lb-hero .wordmark { width: 260px; } }
.lb-hero h1 { font-size: clamp(36px, 10vw, 64px); }
.lb-hero h1 span { color: var(--gold); }
.lb-meta { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; }
.lb-dates { font-size: 14px; color: var(--muted); font-weight: 600; }
.lb-copy { max-width: 60ch; margin: 16px auto 0; color: var(--muted); font-size: 16px; }
.lb-copy strong { color: var(--text); }

.round-tabs {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); margin-top: 18px;
}
.round-tabs button {
  border: 0; background: transparent; padding: 8px 14px; border-radius: 9px;
  font-size: 13px; font-weight: 800; color: var(--muted); transition: background .2s, color .2s;
}
.round-tabs button[aria-pressed="true"] { background: rgba(85, 207, 134, .16); color: var(--green-hi); }

.lb-layout { display: grid; gap: var(--gap); margin-top: 26px; }
@media (min-width: 960px) {
  .lb-layout { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
  .lb-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: var(--gap); }
}
.lb-main, .lb-side { display: grid; gap: var(--gap); min-width: 0; }

/* Total wagered + progress */
.stat-card { --accent: var(--green); }
.stat-label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat-value {
  display: block; font-family: var(--f-display); font-size: clamp(44px, 13vw, 72px); line-height: 1;
  margin: 8px 0 18px; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #c9f5da);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.progress {
  position: relative; height: 18px; border-radius: 999px; overflow: hidden;
  background: rgba(0,0,0,.4); border: 1px solid var(--line-2);
}
.progress-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  border-radius: inherit;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.14) 0 8px, transparent 8px 16px),
    linear-gradient(90deg, var(--green-deep), var(--green), var(--green-hi));
  background-size: 22px 22px, 100% 100%;
  box-shadow: 0 0 18px rgba(85, 207, 134, .5);
  transition: width 1.4s var(--ease);
  animation: stripes 1s linear infinite;
}
@keyframes stripes { to { background-position: 22px 0, 0 0; } }
.progress-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.progress-text { margin-top: 12px; font-size: 14px; color: var(--muted); font-weight: 600; }
.progress-text strong { color: var(--text); }
.unlocked .progress { border-color: rgba(255, 210, 63, .55); }
.unlocked .progress-fill {
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.22) 0 8px, transparent 8px 16px),
    linear-gradient(90deg, var(--gold-deep), var(--gold), #fff1a8, var(--gold));
  background-size: 22px 22px, 100% 100%;
  box-shadow: 0 0 22px rgba(255, 210, 63, .7), 0 0 50px rgba(255, 210, 63, .35);
}
.unlocked .stat-value { background-image: linear-gradient(180deg, #fff6c9, var(--gold)); }
.unlocked.stat-card { --accent: var(--gold); border-color: rgba(255, 210, 63, .35); box-shadow: var(--shadow), 0 0 60px rgba(255, 210, 63, .12); }
.unlock-banner {
  display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px; text-align: center;
  font-family: var(--f-display); font-size: 22px; color: #1c1300;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), #fff1a8, var(--gold), var(--gold-deep));
  background-size: 200% 100%; animation: shine 3s linear infinite, popIn .5s var(--ease) both;
}
.unlocked .unlock-banner { display: block; }
@keyframes shine { to { background-position: -200% 0; } }
@keyframes popIn { from { transform: scale(.92); opacity: 0; } }

/* Leaderboard rows */
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.board-head h2 { font-size: 28px; }
.updated { font-size: 12px; color: var(--dim); font-weight: 700; text-align: right; }
.rows { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.row {
  --rank: var(--line-2);
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
  animation: rowIn .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.row:hover { transform: translateX(3px); border-color: var(--line-2); background: rgba(255,255,255,.05); }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }
.rank {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 20px;
  background: rgba(255,255,255,.05); border: 1px solid var(--rank); color: var(--text);
  position: relative;
}
.rank svg { position: absolute; top: -11px; width: 22px; height: 22px; color: var(--rank); filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.row.r1 { --rank: var(--gold); border-color: rgba(255, 210, 63, .32); background: linear-gradient(90deg, rgba(255, 210, 63, .1), rgba(255,255,255,.02)); }
.row.r2 { --rank: var(--silver); border-color: rgba(207, 216, 227, .22); }
.row.r3 { --rank: var(--bronze); border-color: rgba(232, 150, 77, .25); }
.row.r1 .rank { color: var(--gold); background: rgba(255, 210, 63, .1); }
.row.r2 .rank { color: var(--silver); }
.row.r3 .rank { color: var(--bronze); }
.who { min-width: 0; }
.who-name, .who-wager { display: block; }
.who-name { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-wager { font-size: 13px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.row.empty .who-name { color: var(--dim); font-weight: 700; }
.row-prize { text-align: right; }
.prize-amt { font-family: var(--f-display); font-size: 22px; color: var(--green-hi); line-height: 1; }
.row.r1 .prize-amt { color: var(--gold); }
.prize-next { display: block; margin-top: 3px; font-size: 11px; color: var(--dim); font-weight: 700; white-space: nowrap; }

.board-state { padding: 26px 16px; text-align: center; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.board-state .big { display: block; font-family: var(--f-display); font-size: 24px; color: var(--text); margin-bottom: 4px; font-weight: 400; }
.board-state.error { border-color: rgba(255, 107, 107, .35); }
.board-state .btn { margin-top: 14px; }

.skeleton { position: relative; overflow: hidden; background: rgba(255,255,255,.05); border-radius: 8px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  transform: translateX(-100%); animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 14px; width: 60%; }
.sk-line.short { width: 35%; margin-top: 8px; height: 11px; }

.disclaimer { margin-top: 14px; font-size: 12px; color: var(--dim); text-align: center; font-weight: 600; }

/* Prize table */
.prize-card { --accent: var(--gold); }
.prize-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.prize-head h2 { font-size: 26px; }
.pool { font-family: var(--f-display); font-size: 34px; color: var(--gold); line-height: 1; transition: color .3s; }
.pool small { display: block; font-family: var(--f-body); font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; text-align: right; }
.prize-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prize-table th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 0 0 8px; }
.prize-table th:last-child, .prize-table td:last-child { text-align: right; }
.prize-table td { padding: 11px 0; border-top: 1px solid var(--line); font-weight: 700; }
.prize-table .place { color: var(--muted); }
.prize-table .amt { font-family: var(--f-display); font-size: 20px; font-weight: 400; }
.prize-table .next { color: var(--dim); font-size: 13px; font-weight: 700; margin-left: 6px; }
.prize-table tfoot td { color: var(--text); }
.swap { animation: swap .6s var(--ease); }
@keyframes swap { 0% { opacity: 0; transform: translateY(6px); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }

/* Castle CTA */
.castle-cta {
  --accent: var(--green);
  text-align: center;
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(85, 207, 134, .2), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: rgba(85, 207, 134, .25);
}
.castle-cta .glyph { width: 62px; margin: 0 auto 12px; filter: drop-shadow(0 6px 16px rgba(85, 207, 134, .5)); }
.castle-cta h3 { font-size: 26px; margin-bottom: 6px; }
.castle-cta p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.castle-cta .code-chip { margin-top: 12px; }

/* ── Sponsor / feature cards ──────────────────────────────── */
.feature-grid { display: grid; gap: var(--gap); }
@media (min-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }

.mp-card {
  --accent: #5d7bff;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(42, 77, 255, .22), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: rgba(42, 77, 255, .25);
}
.mp-grid { display: grid; gap: 22px; }
.mp-grid > * { min-width: 0; }
@media (min-width: 860px) { .mp-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; } }
.mp-logo { width: 190px; height: auto; margin-bottom: 14px; }
.mp-card h2 { font-size: clamp(30px, 7vw, 42px); }
.mp-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 14px; }
.mp-buttons .btn { padding-left: 10px; padding-right: 10px; font-size: 14px; }
.mp-gift {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border-radius: 14px;
  background: rgba(42, 77, 255, .1); border: 1px solid rgba(93, 123, 255, .28);
}
.mp-gift .emoji { font-size: 26px; line-height: 1; }
.mp-gift strong { display: block; font-size: 16px; margin-bottom: 4px; }
.mp-steps { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.mp-steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.mp-steps li::before {
  counter-increment: s; content: counter(s);
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 14px; color: #fff; background: rgba(42, 77, 255, .35); border: 1px solid rgba(93, 123, 255, .5);
}
.mp-steps li strong { color: var(--text); }
.mp-claim { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.mp-claim q { color: var(--text); font-weight: 800; quotes: "“" "”"; }

.feature {
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-3px); border-color: var(--line-2); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2);
}
.feature h3 { font-size: 28px; }
.feature p { color: var(--muted); }
.feature .btn { margin-top: auto; align-self: stretch; }
@media (min-width: 520px) { .feature .btn { align-self: flex-start; } }
.feature.vip { --accent: var(--gold); }
.feature.vip .feature-icon { background: rgba(255, 210, 63, .1); border-color: rgba(255, 210, 63, .3); }
.feature.kick { --accent: var(--kick); }
.feature.kick .feature-icon { background: rgba(83, 252, 24, .08); border-color: rgba(83, 252, 24, .3); }
.feature-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 30px; margin-top: 30px; }
.footer-grid { display: grid; gap: 22px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr auto; align-items: center; } }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted);
  transition: color .2s, background .2s, transform .2s var(--ease), border-color .2s;
}
.social svg { width: 19px; height: 19px; }
.social:hover { color: var(--text); background: rgba(255,255,255,.08); transform: translateY(-2px); border-color: var(--line-2); }
.footer-note { font-size: 12px; color: var(--dim); line-height: 1.7; }
.footer-note a { text-decoration: underline; text-underline-offset: 2px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 110px; z-index: 80; transform: translate(-50%, 20px);
  padding: 10px 16px; border-radius: 12px; background: var(--green); color: #03140a; font-weight: 800; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 860px) { .toast { bottom: 30px; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.notfound h1 { font-size: clamp(64px, 20vw, 120px); color: var(--green); }
.notfound p { color: var(--muted); margin: 10px 0 22px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Small phones ─────────────────────────────────────────── */
@media (max-width: 420px) {
  .header-cta .btn-discord span { display: none; }
  .header-cta .btn-discord { padding: 8px 10px; }
  .brand-name { font-size: 15px; }
}
