:root {
  --bg: #04163a;
  --bg-2: #03102b;
  --glass: linear-gradient(180deg, rgba(13,51,120,.92), rgba(10,40,98,.92));
  --glass-2: #0d3378;
  --line: #1f4fa3;
  --line-2: #2f63c4;
  --text: #ffffff;
  --muted: #a9c4ee;
  --cyan: #38d6ff;
  --gold: #f6b400;
  --gold-2: #ffd75a;
  --buy: #2ee59d;
  --sell: #ff5d6c;
  --dem: #2f7bff;
  --rep: #ef3b4b;
  --radius: 16px;
  --head: "Lilita One", "Arial Black", sans-serif;
  --italic: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gold-grad: linear-gradient(180deg, #ffe58a 0%, #ffc928 50%, #e09a00 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(58,215,255,.13), transparent 60%),
    radial-gradient(700px 400px at 0% 20%, rgba(246,180,0,.07), transparent 60%),
    linear-gradient(rgba(130,170,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130,170,255,.045) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.12; letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.eyebrow { display: block; font: 700 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
.eyebrow::before { content: "// "; opacity: .6; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font: 600 14px var(--sans); border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s, background .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: var(--gold-grad); color: #1a1200; box-shadow: 0 0 0 1px rgba(255,215,90,.4), 0 8px 28px rgba(246,180,0,.25); }
.btn-gold:hover { box-shadow: 0 0 0 1px rgba(255,215,90,.6), 0 10px 36px rgba(246,180,0,.4); }
.btn-line { background: var(--glass); color: var(--text); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(58,215,255,.25); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn.is-off { opacity: .45; cursor: default; }
.btn[disabled] { opacity: .35; cursor: default; transform: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(5,11,26,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 700 17px var(--head); letter-spacing: .04em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 1px var(--gold), 0 0 16px rgba(246,180,0,.35); }
.brand em { font-style: normal; color: var(--gold-2); }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--text); font-size: 15px; background: var(--glass); }
.icon-btn:hover { text-decoration: none; border-color: var(--cyan); }

/* Tape */
.tape { overflow: hidden; border-bottom: 1px solid var(--line); background: rgba(8,18,42,.7); white-space: nowrap; }
.tape-track { display: inline-flex; gap: 40px; padding: 8px 0; animation: scroll 70s linear infinite; font: 500 12px var(--mono); color: var(--muted); }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-track b { color: var(--text); font-weight: 700; }
.tape-track .up { color: var(--buy); }
.tape-track .gold { color: var(--gold-2); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Hero */
.hero { padding-top: 28px; }
.banner { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 0 0 1px rgba(246,180,0,.18), 0 30px 80px rgba(0,0,0,.5), 0 0 60px rgba(58,215,255,.12); }
.banner img { display: block; width: 100%; height: auto; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; }
.hero h1 span { color: var(--gold-2); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ca { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; max-width: 100%; padding: 8px 12px; border-radius: 10px; background: var(--glass); border: 1px dashed var(--line-2); color: var(--muted); cursor: pointer; font: inherit; }
.ca:hover { border-color: var(--gold); }
.ca-tag { font: 700 10px var(--mono); color: #1a1200; background: var(--gold-grad); padding: 2px 6px; border-radius: 5px; }
.ca code { font: 12px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-copy { font: 600 12px var(--sans); color: var(--cyan); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 36px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-2); padding: 20px 22px; }
.stat b { display: block; font: 700 clamp(22px, 2.6vw, 30px) var(--mono); letter-spacing: -.02em; }
.stat b.up { color: var(--buy); }
.stat span { font-size: 12px; color: var(--muted); }

/* Sections */
.section { padding-top: 84px; }
.head { margin-bottom: 20px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(6px); }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }

/* Tabs + leaderboard */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); margin-bottom: 14px; }
.tabs button { font: 600 13px var(--sans); color: var(--muted); background: none; border: 0; border-radius: 9px; padding: 8px 16px; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button.is-on { color: #1a1200; background: var(--gold-grad); }
.lead-sub { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.leaders { list-style: none; margin: 0; padding: 0; }
.leaders li { display: grid; grid-template-columns: 28px 48px 1fr auto; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.leaders li:last-child { border-bottom: 0; }
.leaders li:hover { background: var(--glass); }
.l-rank { font: 700 14px var(--mono); color: var(--muted); text-align: center; }
.leaders li:nth-child(-n+3) .l-rank { color: var(--gold-2); }
.l-av { width: 48px; height: 48px; }
.l-av svg, .mini-av svg, .hid-avatar svg, .mascot svg, .spot-av svg { display: block; width: 100%; height: 100%; }
.l-who b { display: block; font-weight: 600; }
.l-nick { display: block; font: 600 12px var(--mono); color: var(--cyan); letter-spacing: .02em; }
.l-who small { color: var(--muted); font-size: 12px; }
.l-bar { position: relative; display: block; height: 4px; margin-top: 7px; background: rgba(255,255,255,.06); border-radius: 2px; max-width: 360px; }
.l-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--buy)); }
.l-bar em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--gold); }
.l-val { font: 700 18px var(--mono); text-align: right; white-space: nowrap; }
.l-val a { color: var(--gold-2); }
.lead-foot { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.lead-foot i { display: inline-block; width: 2px; height: 10px; background: var(--gold); margin-right: 4px; vertical-align: -1px; }

/* Scorecard */
.spot { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.spot-id { text-align: center; }
.spot-av { width: 180px; height: 180px; margin: 0 auto 12px; filter: drop-shadow(0 16px 30px rgba(0,0,0,.5)); }
.spot-id h3 { font-size: 20px; margin: 0; }
.spot-id p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.spot-id .nick { color: var(--cyan); font: 600 12px var(--mono); }
.spot-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.spot-stat { display: block; padding: 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, transform .15s; }
.spot-stat:hover { text-decoration: none; border-color: var(--gold); transform: translateY(-2px); }
.spot-stat b { display: block; font: 700 24px var(--mono); color: var(--gold-2); letter-spacing: -.02em; }
.spot-stat span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.spot-stat span::after { content: " ↗"; color: var(--cyan); }

/* Predict */
.prize { text-align: right; }
.prize span { display: block; font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.prize b { font: 700 24px var(--mono); color: var(--gold-2); }
.contest-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 14px; border-radius: 12px; border: 1px solid rgba(246,180,0,.35); background: rgba(246,180,0,.06); font-size: 14px; flex-wrap: wrap; }
.race-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.race { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.race .cat { font: 700 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.race h3 { font: 600 15px var(--sans); margin: 6px 0 12px; min-height: 2.6em; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { position: relative; overflow: hidden; text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); font: 600 13px var(--sans); cursor: pointer; }
.opt:hover { border-color: var(--cyan); }
.opt .fill { position: absolute; inset: 0 auto 0 0; background: rgba(58,215,255,.14); transition: width .5s ease; }
.opt.mine { border-color: var(--gold); }
.opt.mine .fill { background: rgba(246,180,0,.22); }
.opt.won { border-color: var(--buy); }
.opt[disabled] { cursor: default; }
.opt .row { position: relative; display: flex; justify-content: space-between; gap: 6px; }
.opt .pct { font-family: var(--mono); }
.race .foot { margin-top: 10px; font-size: 11px; color: var(--muted); }
.lb { list-style: none; margin: 0; padding: 0; }
.lb li { display: grid; grid-template-columns: 22px 30px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 13px; }
.lb li:last-child { border-bottom: 0; }
.lb li.is-me { background: rgba(246,180,0,.08); border-radius: 8px; }
.lb-rank { font: 700 12px var(--mono); color: var(--gold-2); text-align: center; }
.mini-av { display: inline-block; width: 30px; height: 30px; }
.lb-who { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-family: var(--mono); }
.lb-score { font: 700 13px var(--mono); }
.rules summary { cursor: pointer; list-style: none; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary h3 { display: inline; }
.rules summary::after { content: " +"; color: var(--cyan); font-family: var(--mono); }
.rules[open] summary::after { content: " −"; }
.rules ol { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.rules li { margin-bottom: 4px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; font: 600 11px var(--sans); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.tier-staffer { border-color: var(--cyan); color: var(--cyan); }
.tier-lobbyist { border-color: var(--gold-2); color: var(--gold-2); }
.tier-senator { background: var(--gold-grad); color: #1a1200; border-color: transparent; }

/* Party Wars */
.wars { display: grid; grid-template-columns: 160px 1fr 160px; gap: 24px; align-items: center; }
.side { text-align: center; }
.mascot { width: 104px; height: 104px; margin: 0 auto 12px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.45)); }
.btn-team { color: #fff; width: 100%; }
.btn-team.red { background: linear-gradient(180deg, #ff5d6c, #c8102e); box-shadow: 0 8px 24px rgba(239,59,75,.3); }
.btn-team.blue { background: linear-gradient(180deg, #4f9bff, #1546b8); box-shadow: 0 8px 24px rgba(47,123,255,.3); }
.btn-team.is-mine { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.btn-team.is-mine::before { content: "✓ "; }
.meter-labels { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.meter-labels b { font: 700 22px var(--mono); }
.meter-labels b:first-child { color: #ff8f8f; } .meter-labels b:last-child { color: #8cbcff; }
.meter-labels span { font: 700 13px var(--mono); color: var(--muted); letter-spacing: .2em; }
.meter { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-2); }
.meter-red { background: linear-gradient(90deg, #c8102e, #ff5d6c); transition: width .6s ease; box-shadow: 0 0 16px rgba(239,59,75,.6); }
.meter-blue { background: linear-gradient(90deg, #4f9bff, #1546b8); transition: width .6s ease; box-shadow: 0 0 16px rgba(47,123,255,.6); }
.meter-wrap p { margin: 10px 0 0; }

/* Ranks */
.ranks { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; align-items: stretch; }
.hill-id { display: flex; gap: 18px; align-items: center; }
.hid-avatar { width: 96px; height: 96px; flex: none; }
.hill-id h3 { font: 700 16px var(--mono); margin: 0 0 6px; }
#hidMeta { line-height: 1.9; }
.hid-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tier { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 16px 8px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.tier .t-icon { font-size: 26px; }
.tier b { font: 600 14px var(--head); }
.tier small { font: 500 11px var(--mono); color: var(--muted); }
.tier.is-mine { border-color: var(--gold); box-shadow: 0 0 22px rgba(246,180,0,.25); }
.tier.is-mine::after { content: "YOU"; position: absolute; top: -9px; font: 700 10px var(--mono); background: var(--gold-grad); color: #1a1200; padding: 2px 7px; border-radius: 999px; }

/* Token */
.token { display: flex; gap: 28px; align-items: center; background: linear-gradient(135deg, rgba(246,180,0,.09), rgba(58,215,255,.05)); border-color: rgba(246,180,0,.3); }
.token-coin { width: 140px; height: 140px; border-radius: 50%; flex: none; filter: drop-shadow(0 16px 30px rgba(0,0,0,.5)); animation: float 6s ease-in-out infinite; }
.token h2 { font-size: 34px; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: 80px 1fr; gap: 6px 12px; margin: 0 0 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-all; }
.kv code { font: 13px var(--mono); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Footer */
.footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 32px 0 40px; background: rgba(8,18,42,.6); }
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 6px 0 0; }
.sub-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sub-form input { background: var(--glass); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 13px; min-width: 240px; }
.sub-form input:focus { outline: none; border-color: var(--cyan); }
.sub-msg { flex-basis: 100%; margin: 0; font-size: 12px; min-height: 1em; }
.sub-msg.ok { color: var(--buy); } .sub-msg.err { color: var(--sell); }
.disclaimer { font-size: 11px; color: #5d6c90; margin-top: 24px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50; background: var(--bg-2); color: var(--text); border: 1px solid var(--cyan); border-radius: 12px; padding: 10px 18px; font-size: 14px; font-weight: 600; box-shadow: 0 0 24px rgba(58,215,255,.3); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: var(--sell); }

@media (prefers-reduced-motion: reduce) { .tape-track, .token-coin { animation: none; } }

@media (max-width: 960px) {
  .links { display: none; }
  .nav-cta { margin-left: auto; }
  .race-grid { grid-template-columns: 1fr 1fr; }
  .two-col, .ranks { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  #navBuy { display: none; }
  .hero { padding-top: 16px; }
  .banner { border-radius: 14px; }
  .hero-row { margin-top: 20px; }
  .hero-actions .btn { flex: 1; }
  .race-grid { grid-template-columns: 1fr; }
  .race h3 { min-height: 0; }
  .spot { grid-template-columns: 1fr; }
  .spot-stats { grid-template-columns: 1fr 1fr; }
  .wars { grid-template-columns: 1fr 1fr; }
  .meter-wrap { grid-column: 1 / -1; grid-row: 1; }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .leaders li { grid-template-columns: 22px 40px 1fr; }
  .l-av { width: 40px; height: 40px; }
  .l-val { grid-column: 3; text-align: left; font-size: 16px; }
  .token { flex-direction: column; text-align: center; }
  .token .kv { text-align: left; }
  .token .hero-actions { justify-content: center; }
  .head-row .prize { text-align: left; }
  .sub-form input { min-width: 0; flex: 1; }
}

@media (max-width: 640px) { .stat { padding: 16px; } .stat b { font-size: 20px; white-space: nowrap; } }


/* ================= Theme: Capitol blue & gold ================= */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% 0%, rgba(56,214,255,.18), transparent 60%),
    radial-gradient(700px 400px at 5% 30%, rgba(246,180,0,.08), transparent 60%),
    linear-gradient(180deg, #1673e6 0px, #0b3d91 520px, #072a68 1100px, var(--bg) 1800px);
  background-size: auto;
}
h2 { font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(28px, 4vw, 40px); text-shadow: 0 3px 0 var(--bg-2), 0 0 24px rgba(56,214,255,.25); }
h3 { font-family: var(--sans); font-weight: 800; }
.eyebrow { color: var(--gold-2); font-family: var(--sans); font-weight: 800; letter-spacing: .16em; }
.eyebrow::before { content: "★ "; opacity: 1; }
.brand { font-family: var(--head); font-weight: 400; font-size: 21px; letter-spacing: .02em; text-shadow: 0 2px 0 var(--bg-2); }
.brand em { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 var(--bg-2)); }
.brand img { box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(246,180,0,.5); }
.nav { background: rgba(6,29,74,.9); border-bottom: 2px solid rgba(246,180,0,.55); }
.links a { color: var(--muted); font-weight: 700; }
.tape { background: var(--bg-2); }
.tape-track b { color: var(--gold-2); }

/* Buttons: glossy pills */
.btn { border-radius: 999px; font-weight: 800; border-width: 2px; }
.btn-gold { color: var(--bg-2); border-color: #ffe98a; box-shadow: 0 4px 0 #a86d00, 0 8px 24px rgba(246,180,0,.35), inset 0 1px 0 rgba(255,255,255,.7); }
.btn-gold:hover { box-shadow: 0 6px 0 #a86d00, 0 12px 30px rgba(246,180,0,.45), inset 0 1px 0 rgba(255,255,255,.7); }
.btn-line { background: rgba(4,22,58,.75); border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(56,214,255,.25), 0 0 18px rgba(56,214,255,.35), inset 0 0 12px rgba(56,214,255,.15); }
.btn-line:hover { box-shadow: 0 0 0 1px rgba(56,214,255,.4), 0 0 26px rgba(56,214,255,.6), inset 0 0 14px rgba(56,214,255,.25); }
.icon-btn { border-radius: 999px; border: 2px solid var(--cyan); background: rgba(4,22,58,.75); box-shadow: 0 0 14px rgba(56,214,255,.35); }

/* Hero */
.banner { border: 3px solid var(--gold); box-shadow: 0 0 0 6px rgba(246,180,0,.15), 0 30px 70px rgba(0,0,0,.45); }
.hero h1 { font: 800 italic clamp(26px, 3.6vw, 40px)/1.08 var(--italic); text-transform: uppercase; text-shadow: 0 3px 0 var(--bg-2); }
.hero h1 span { color: var(--cyan); text-shadow: 0 3px 0 var(--bg-2), 0 0 20px rgba(56,214,255,.55); }
.ca { background: rgba(3,16,43,.7); border: 2px solid rgba(246,180,0,.6); border-style: solid; }

/* Panels & cards */
.panel, .race, .tier, .spot-stat { background: var(--glass); border: 2px solid var(--line); }
.panel { backdrop-filter: none; }
.stats { border: 3px solid var(--gold); background: var(--line); box-shadow: 0 0 0 6px rgba(246,180,0,.12), 0 24px 50px rgba(0,0,0,.35); border-radius: 20px; }
.stat { background: linear-gradient(160deg, #0d3378, #0a2862); }
.stat b { font-family: var(--head); font-weight: 400; letter-spacing: .01em; }
.stat:nth-child(4) b { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
#leaderBody, .spot, .token { border: 3px solid var(--gold); box-shadow: 0 0 0 6px rgba(246,180,0,.1), 0 24px 50px rgba(0,0,0,.35); }
.tabs { background: var(--bg-2); border: 2px solid var(--line); border-radius: 999px; }
.tabs button { border-radius: 999px; font-weight: 800; }
.leaders li:hover { background: rgba(56,214,255,.06); }
.l-nick { font: 400 15px var(--head); letter-spacing: .02em; }
.l-val { font: 400 22px var(--head); }
.l-rank { font: 400 20px var(--head); }
.spot-stat { background: var(--bg-2); }
.spot-stat:hover { border-color: var(--cyan); }
.spot-stat b { font: 400 28px var(--head); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spot-id h3 { font: 400 24px var(--head); text-shadow: 0 2px 0 var(--bg-2); }
.spot-id .nick { font: 800 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.spot { background: radial-gradient(500px 300px at 10% 0%, rgba(255,107,107,.22), transparent 70%), var(--glass); }
.prize b { font: 400 30px var(--head); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prize span { color: var(--gold-2); }
.contest-bar { border: 2px solid var(--gold); background: rgba(246,180,0,.1); border-radius: 999px; padding: 10px 12px 10px 20px; }
.opt { background: var(--bg-2); border: 2px solid var(--line); border-radius: 12px; }
.opt:hover { box-shadow: 0 0 14px rgba(56,214,255,.3); }
.race .cat { font-family: var(--sans); font-weight: 800; }
.race h3 { font-weight: 800; }
.meter { height: 26px; border: 3px solid var(--gold); box-shadow: 0 0 20px rgba(246,180,0,.3); }
.meter-labels b { font: 400 30px var(--head); }
.meter-labels span { font: 400 26px var(--head); color: var(--gold-2); letter-spacing: 0; text-shadow: 0 3px 0 var(--bg-2); }
.btn-team.red { box-shadow: 0 4px 0 #7a0a1c, 0 8px 22px rgba(239,59,75,.3); }
.btn-team.blue { box-shadow: 0 4px 0 #0b2a75, 0 8px 22px rgba(47,123,255,.3); }
.tier b { font: 400 17px var(--head); letter-spacing: .02em; }
.tier small { color: var(--gold-2); font-weight: 700; }
.hill-id { border-color: var(--cyan); box-shadow: 0 0 24px rgba(56,214,255,.2); }
.token { background: linear-gradient(135deg, #1673e6, #0a2862); }
.token h2 { font-size: 40px; }
.footer { background: var(--bg-2); border-top: 3px solid var(--gold); }
.disclaimer { color: #7f93bf; }
.sub-form input { background: var(--bg-2); border: 2px solid var(--line); border-radius: 999px; padding: 9px 16px; }

@media (max-width: 640px) {
  .stat b { font-size: 22px; }
  .contest-bar { border-radius: 16px; }
  .hero h1 { font-size: 26px; }
}


/* ================= Coin hero with orbiting toons ================= */
.hero { position: relative; padding: 56px 0 64px; overflow: hidden;
  background:
    radial-gradient(600px 220px at 15% 20%, rgba(255,255,255,.16), transparent 70%),
    radial-gradient(500px 200px at 70% 85%, rgba(255,255,255,.1), transparent 70%),
    linear-gradient(180deg, #2f9bff 0%, #1673e6 45%, #0b3d91 100%);
  border-bottom: 3px solid var(--gold); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .13; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 34px, #fff 34px 40px, transparent 40px 74px);
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 40%, transparent 85%); mask-image: linear-gradient(0deg, transparent 0%, #000 40%, transparent 85%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.hero .eyebrow { margin-bottom: 12px; }
.title { font-family: var(--head); font-weight: 400; font-size: clamp(54px, 8.5vw, 108px); line-height: .95; margin: 0 0 16px; letter-spacing: .01em; text-shadow: none; }
.t-white { color: #fff; text-shadow: 0 4px 0 #0a2a6b, 0 7px 0 var(--bg-2), 0 10px 26px rgba(0,0,0,.35); -webkit-text-stroke: 1px #0a2a6b; }
.t-gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1.5px #7a4c00; filter: drop-shadow(0 4px 0 #0a2a6b) drop-shadow(0 7px 0 var(--bg-2)); }
.tagline { font: 800 italic clamp(22px, 2.8vw, 30px)/1.12 var(--italic); text-transform: uppercase; margin: 0 0 16px; text-shadow: 0 2px 0 var(--bg-2); }
.tagline span { color: var(--cyan); text-shadow: 0 2px 0 var(--bg-2), 0 0 18px rgba(56,214,255,.6); }
.stat-ribbon { display: inline-block; padding: 8px 14px; border-radius: 12px; background: rgba(3,16,43,.65); border: 2px solid var(--gold); color: #e3eeff; font-size: 14px; font-weight: 600; }
.stat-ribbon:hover { text-decoration: none; border-color: var(--gold-2); }
.stat-ribbon b { color: var(--gold-2); font: 400 18px var(--head); }
.hero .hero-actions { margin-top: 22px; }

.hero-coin { container-type: inline-size; position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.coin { position: relative; z-index: 2; width: 66%; height: auto; border-radius: 50%; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
.coin-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,222,89,.55), rgba(56,214,255,.15) 55%, transparent 70%); filter: blur(10px); }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }

.orbit { position: absolute; inset: 0; z-index: 1; animation: spin 40s linear infinite; --r: 42cqw; }
.orb { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))); }
.orb > span { position: absolute; display: block; animation: spin 40s linear infinite reverse; }
.toon { width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; background-size: cover; background-position: center;
  border: 3px solid var(--gold); box-shadow: 0 0 0 3px rgba(3,16,43,.6), 0 10px 22px rgba(0,0,0,.45); }
.cash { font-size: 30px; line-height: 1; margin: -16px 0 0 -16px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orbit, .orb > span, .coin { animation: none; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-coin { order: -1; max-width: 400px; }
  .toon { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .cash { font-size: 24px; }
}
@media (max-width: 640px) {
  .hero { padding: 28px 0 40px; }
  .hero-coin { max-width: 330px; }
  .toon { width: 50px; height: 50px; margin: -25px 0 0 -25px; border-width: 2px; }
  .cash { font-size: 20px; margin: -10px 0 0 -10px; }
  .stat-ribbon { font-size: 13px; }
}

/* title specificity over the generic .hero h1 rule */
.hero h1.title { font: 400 clamp(54px, 8.5vw, 108px)/.95 var(--head); text-transform: none; text-shadow: none; margin: 0 0 16px; }
.hero h1.title span.t-white { color: #fff; text-shadow: 0 4px 0 #0a2a6b, 0 7px 0 var(--bg-2), 0 10px 26px rgba(0,0,0,.35); }
.hero h1.title span.t-gold { color: transparent; text-shadow: none; }

/* drawn money */
.cash { display: grid; place-items: center; font: 400 18px var(--head); }
.cash.gcoin { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; color: #8a5a00;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #ffd23f 45%, #e09a00 100%); border: 2px solid #a86d00; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 6px 12px rgba(0,0,0,.35); }
.cash.bill { width: 46px; height: 26px; margin: -13px 0 0 -23px; border-radius: 4px; color: #0f5132; font-size: 16px;
  background: linear-gradient(135deg, #a8e6a1, #4cbb6c); border: 2px solid #1e7a43; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 6px 12px rgba(0,0,0,.35); transform: rotate(-12deg); }
@media (max-width: 640px) {
  .cash.gcoin { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 13px; }
  .cash.bill { width: 32px; height: 18px; margin: -9px 0 0 -16px; font-size: 12px; }
}


/* ================= Climb the Hill (featured) ================= */
.climb { padding-top: 64px; }
.climb-card { position: relative; padding: 36px 28px 28px; border-radius: 24px; text-align: center;
  background: radial-gradient(600px 260px at 50% 0%, rgba(255,215,90,.22), transparent 70%), linear-gradient(160deg, #1673e6, #0a2862 70%);
  border: 3px solid var(--gold); box-shadow: 0 0 0 6px rgba(246,180,0,.15), 0 0 60px rgba(246,180,0,.18), 0 30px 60px rgba(0,0,0,.4); }
.climb-head h2 { font-size: clamp(36px, 5.5vw, 60px); }
.climb-sub { margin: 6px auto 26px; max-width: 520px; color: #dbe7ff; font-size: 16px; }
.tiers.big { grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; }
.tiers.big .tier { background: var(--bg-2); border: 2px solid var(--line-2); padding: 18px 10px 16px; min-height: calc(150px + var(--lvl) * 14px); justify-content: flex-end; transition: transform .15s, border-color .15s; }
.tiers.big .tier:hover { transform: translateY(-4px); border-color: var(--gold); }
.tiers.big .tier .t-icon { font-size: calc(26px + var(--lvl) * 4px); }
.tiers.big .tier b { font-size: 19px; }
.tiers.big .tier p { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.35; }
.tiers.big .tier:last-child { background: linear-gradient(180deg, rgba(246,180,0,.25), var(--bg-2)); border-color: var(--gold); box-shadow: 0 0 26px rgba(246,180,0,.35); }
.tiers.big .tier:last-child b { color: var(--gold-2); }
.climb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; text-align: left; }
.holders h3 { margin-bottom: 8px; }
.first-senator { font: 400 20px var(--head); color: var(--gold-2); margin: 6px 0 0; }
.climb-cta { display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* live countdown */
.cd-stat b { font-variant-numeric: tabular-nums; }
.cd-stat b i { font-style: normal; font-size: .6em; opacity: .75; margin-left: 1px; }
.cd-stat #cdS { display: inline-block; min-width: 1.2em; }

@media (max-width: 960px) { .climb-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .climb-card { padding: 26px 14px 18px; }
  .tiers.big { grid-template-columns: repeat(2, 1fr); }
  .tiers.big .tier { min-height: 0; }
  .tiers.big .tier:last-child { grid-column: 1 / -1; }
}

.stats .cd-stat b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--gold-2); white-space: nowrap; }
.stats .cd-stat b span, .stats .cd-stat b i { font: inherit; color: inherit; display: inline; }
.stats .cd-stat b i { font-size: .6em; opacity: .8; }
