:root {
  --plum-black: #110D17; --plum: #1c1426; --violet: #9145F8; --lavender: #d3b3f5; --warm: #F7EFFF;
  --gold: #FFD166; --pink: #F297CA; --mint: #7BE0C3; --muted: #b3a2c6;
  --display: "Fredoka", "Baloo 2", "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--plum-black); color: var(--warm); font-family: var(--body); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; }

.top { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 40px); background: linear-gradient(rgba(17, 13, 23, 0.85), rgba(17, 13, 23, 0)); }
.wordmark { font: 700 30px/1 var(--display); letter-spacing: -0.5px; color: var(--warm); display: inline-flex; align-items: center; gap: 1px; text-shadow: 0 0 24px rgba(145, 69, 248, 0.5); }
.wordmark.small { font-size: 20px; }
.eye-o { display: inline-block; width: 0.62em; height: 0.78em; margin: 0 0.02em; vertical-align: -0.12em; }
.eye-o svg { width: 100%; height: 100%; }
.nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); font: 600 14px/1 var(--body); color: var(--lavender); }
.nav a:not(.btn):hover { color: var(--warm); }

.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 12px 20px; font: 700 15px/1 var(--display); color: var(--warm); background: rgba(145, 69, 248, 0.28); border: 1px solid rgba(215, 185, 243, 0.35); transition: transform 0.15s, background 0.15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); background: rgba(145, 69, 248, 0.45); }
.btn.small { padding: 9px 14px; font-size: 13px; }
.btn.big { padding: 16px 26px; font-size: 18px; }
.btn.gold { background: linear-gradient(135deg, #ffe08f, #f1b73f); color: #3a2405; border-color: transparent; box-shadow: 0 10px 30px rgba(255, 190, 70, 0.35); }
.btn.gold:hover { background: linear-gradient(135deg, #fff0b8, #f6c35a); }
.btn.ghost { background: rgba(255, 255, 255, 0.06); }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: clamp(90px, 14vh, 140px) clamp(16px, 5vw, 64px) clamp(40px, 8vh, 80px); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 13, 23, 0.92) 0%, rgba(17, 13, 23, 0.72) 42%, rgba(17, 13, 23, 0.25) 100%), linear-gradient(rgba(17, 13, 23, 0.2), rgba(17, 13, 23, 0.95)); }
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(10, 6, 16, 0.6); border: 1px solid rgba(215, 185, 243, 0.3); font: 700 12px/1 var(--body); letter-spacing: 1px; text-transform: uppercase; color: var(--lavender); backdrop-filter: blur(8px); }
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live-pill[data-kind="entry"] .dot { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.live-pill[data-kind="race"] .dot { background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
h1 { margin: 18px 0 14px; font: 700 clamp(44px, 8vw, 96px)/0.98 var(--display); letter-spacing: -1.5px; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5); }
.lead { margin: 0 0 26px; max-width: 560px; font: 500 clamp(16px, 1.6vw, 19px)/1.55 var(--body); color: #e8dcf6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat b { font: 700 28px/1 var(--display); color: var(--warm); font-variant-numeric: tabular-nums; }
.stat span { font: 600 11px/1 var(--body); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }

section.how, section.winners, section.lore, section.poolsec { padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 64px); max-width: 1200px; margin: 0 auto; }
h2 { margin: 0 0 28px; font: 700 clamp(30px, 4vw, 44px)/1.05 var(--display); letter-spacing: -0.5px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.steps li { position: relative; padding: 26px 24px 24px; border-radius: 24px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(215, 185, 243, 0.16); }
.step-n { position: absolute; top: 16px; right: 20px; font: 700 34px/1 var(--display); color: rgba(215, 185, 243, 0.25); }
.step-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; }
.step-ico svg { width: 26px; height: 26px; }
.step-ico.violet { background: linear-gradient(135deg, #a86bff, #7a2ff0); color: #fff; box-shadow: 0 8px 24px rgba(145, 69, 248, 0.4); }
.step-ico.gold { background: linear-gradient(135deg, #ffe08f, #e9a93a); color: #3a2405; box-shadow: 0 8px 24px rgba(255, 190, 70, 0.35); }
.step-ico.eyes { background: rgba(145, 69, 248, 0.2); }
.step-ico.eyes svg { width: 44px; height: 28px; }
.steps h3 { margin: 0 0 8px; font: 700 22px/1.15 var(--display); }
.steps p { margin: 0; color: var(--muted); font: 500 15px/1.5 var(--body); }

.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { margin-bottom: 0; }
.win-strip { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.win-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 209, 102, 0.22); text-align: center; }
.win-card canvas { width: 64px; height: 64px; }
.win-card strong { font: 700 14px/1.15 var(--display); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-card b { font: 700 16px/1 var(--display); color: var(--gold); }
.win-card small { color: var(--muted); font: 600 11px/1 var(--body); }
.top-board { margin-top: 36px; }
.top-board h3 { margin: 0 0 12px; font: 700 12px/1 var(--body); letter-spacing: 1.4px; text-transform: uppercase; color: var(--lavender); }
.top-board ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.top-row { display: grid; grid-template-columns: 26px 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(215, 185, 243, 0.14); }
.top-row:first-child { border-color: rgba(255, 209, 102, 0.4); }
.top-row .rank { font: 700 14px/1 var(--display); color: var(--muted); text-align: center; }
.top-row canvas { width: 32px; height: 32px; }
.top-row strong { font: 700 15px/1.15 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-row b { font: 700 13px/1 var(--body); color: var(--gold); white-space: nowrap; }
.empty { color: var(--muted); font: 500 15px/1.5 var(--body); }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 28px clamp(16px, 5vw, 64px) 40px; border-top: 1px solid rgba(215, 185, 243, 0.12); color: var(--muted); font: 500 13px/1.4 var(--body); }
.foot .link { display: inline-flex; align-items: center; gap: 6px; color: var(--lavender); font-weight: 700; }
.foot .link svg { width: 14px; height: 14px; }

@media (max-width: 700px) {
  .nav a:not(.btn) { display: none; }
  .hero { align-items: center; padding-top: 110px; }
  .hero-shade { background: linear-gradient(rgba(17, 13, 23, 0.55), rgba(17, 13, 23, 0.97) 70%); }
  .stat b { font-size: 22px; }
}

.min-rule { display: block; margin-top: 6px; color: var(--gold); font-weight: 600; }

.prize-inline { color: var(--gold); font-weight: 700; }
.stat.prize b { color: var(--gold); }

/* ---- lore + track (2026-09-19) ---- */
[hidden] { display: none !important; }
.kicker { margin: 0 0 14px; font: 700 12px/1 var(--body); letter-spacing: 2.4px; text-transform: uppercase; color: var(--lavender); }
.gold { color: var(--gold); }
section.lore h2 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02; margin-bottom: 30px; max-width: 16ch; }
.lore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px 48px; max-width: 980px; }
.lore-grid p { margin: 0; font: 500 clamp(16px, 1.5vw, 19px)/1.6 var(--body); color: #d9cbe9; }
.army { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.army canvas { width: 56px; height: 56px; }
.army canvas.lead { width: 84px; height: 84px; margin-top: -14px; }

section.how h2 { margin-bottom: 22px; }
.clock { display: grid; grid-template-columns: 4fr 1fr; gap: 6px; max-width: 720px; margin-bottom: 48px; }
.clock-seg { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; border-radius: 16px; }
.clock-seg b { font: 700 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.clock-seg span { font: 600 11px/1.2 var(--body); letter-spacing: 1.2px; text-transform: uppercase; }
.clock-seg.entry { background: rgba(145, 69, 248, 0.22); border: 1px solid rgba(168, 107, 255, 0.5); color: var(--warm); }
.clock-seg.entry span { color: var(--lavender); }
.clock-seg.race { background: rgba(255, 209, 102, 0.14); border: 1px solid rgba(255, 209, 102, 0.5); color: var(--gold); }

.track { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; }
.track::before { content: ''; position: absolute; left: 27px; top: 28px; bottom: 0; width: 2px; background: linear-gradient(var(--violet), var(--violet) 60%, var(--gold)); opacity: 0.55; }
.stop { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px 28px; align-items: center; padding: 0 0 56px; }
.peg { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 700 24px/1 var(--display); color: #fff; background: radial-gradient(circle at 35% 30%, #c79bff, #9145F8 55%, #5a22b0); box-shadow: 0 0 0 5px var(--plum-black), 0 10px 26px rgba(145, 69, 248, 0.45); }
.peg.gold { color: #3a2405; background: radial-gradient(circle at 35% 30%, #fff0b8, #FFD166 55%, #d99a1e); box-shadow: 0 0 0 5px var(--plum-black), 0 10px 26px rgba(255, 190, 70, 0.4); }
.stop-copy h3 { margin: 0 0 10px; font: 700 clamp(22px, 2.6vw, 30px)/1.1 var(--display); }
.stop-copy p { margin: 0; max-width: 52ch; color: var(--muted); font: 500 16px/1.6 var(--body); }
.stop-art { display: flex; justify-content: center; }
.bubble { position: relative; max-width: 300px; padding: 16px 18px; border-radius: 20px 20px 20px 6px; background: var(--warm); color: #1B1534; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); transform: rotate(-2deg); }
.bubble p { margin: 0 0 8px; font: 700 18px/1.25 var(--display); }
.bubble small { font: 600 12px/1 var(--body); color: #6a5a82; }
.art-marble { width: 150px; height: 150px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5)); }
.ticket { display: grid; gap: 4px; padding: 18px 26px; border-radius: 20px; text-align: center; background: linear-gradient(160deg, rgba(255, 209, 102, 0.2), rgba(255, 209, 102, 0.05)); border: 1px dashed rgba(255, 209, 102, 0.65); transform: rotate(2deg); }
.ticket small { font: 700 11px/1 var(--body); letter-spacing: 2px; color: var(--mint); }
.ticket b { font: 700 46px/1 var(--display); color: var(--gold); }
.ticket span { font: 600 12px/1.2 var(--body); color: #e8dcf6; }
.finish { height: 18px; border-radius: 6px; opacity: 0.8; background: repeating-conic-gradient(#F7EFFF 0% 25%, #1B1534 0% 50%) 0 0 / 18px 18px; }

section.poolsec { padding-top: 0; }
.pool-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: radial-gradient(120% 160% at 0% 0%, rgba(255, 209, 102, 0.16), rgba(145, 69, 248, 0.1) 55%, rgba(255, 255, 255, 0.02)); border: 1px solid rgba(255, 209, 102, 0.35); }
.pool-num { margin: 0 0 10px; font-size: clamp(44px, 8vw, 88px); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.pool-sub { margin: 0; max-width: 52ch; color: #d9cbe9; font: 500 16px/1.55 var(--body); }

@media (max-width: 760px) {
  .stop { grid-template-columns: 44px minmax(0, 1fr); padding-bottom: 40px; }
  .stop-art { grid-column: 2; justify-content: flex-start; margin-top: 8px; }
  .peg { width: 44px; height: 44px; font-size: 19px; }
  .track::before { left: 21px; }
  .clock-seg { flex-direction: column; gap: 4px; padding: 12px; }
  .art-marble { width: 110px; height: 110px; }
}

.pool-kicker { display: flex; align-items: center; gap: 8px; color: #c8f169; }
.pool-kicker img { border-radius: 50%; }
section[id] { scroll-margin-top: 72px; }

.army { padding-top: 40px; margin-top: 8px; }
.army canvas, .art-marble { transform-origin: 50% 100%; will-change: transform; }

.hero-tag { margin: 16px 0 12px; font: 700 clamp(12px, 1.2vw, 14px)/1.2 var(--body); letter-spacing: 2.2px; text-transform: uppercase; color: var(--gold); }

#maint-bar { position: sticky; top: 0; z-index: 60; padding: 14px 20px; text-align: center; font: 700 15px/1.4 var(--body); color: #1B1534; background: #FFD166; }
