:root {
  --bg: #040b18;
  --bg2: #071427;
  --card: rgba(12, 30, 56, 0.62);
  --card-solid: #0b1d36;
  --line: rgba(95, 208, 224, 0.16);
  --line2: rgba(95, 208, 224, 0.3);
  --text: #e8f3ff;
  --muted: #8ea6c4;
  --dim: #5c7393;
  --gold: #ffd23f;
  --gold2: #f29d0b;
  --gold-soft: #fff3b0;
  --cyan: #5fd0e0;
  --cyan2: #2a7fae;
  --red: #ff4d6d;
  --green: #3ee6a3;
  --r: 18px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Unbounded', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 70% -10%, #0f2b52 0%, transparent 60%),
    radial-gradient(900px 600px at 0% 20%, #0a2140 0%, transparent 55%), var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, system-ui, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}
body::after { /* Elysian waves along the bottom of the viewport */
  content: '';
  position: fixed; left: 0; right: 0; bottom: 0; height: 220px;
  pointer-events: none; z-index: 0; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%235fd0e0' stroke-width='1.6'%3E%3Ccircle cx='0' cy='40' r='38'/%3E%3Ccircle cx='0' cy='40' r='28'/%3E%3Ccircle cx='0' cy='40' r='18'/%3E%3Ccircle cx='0' cy='40' r='8'/%3E%3Ccircle cx='80' cy='40' r='38'/%3E%3Ccircle cx='80' cy='40' r='28'/%3E%3Ccircle cx='80' cy='40' r='18'/%3E%3Ccircle cx='80' cy='40' r='8'/%3E%3C/g%3E%3Cg fill='%23040b18' stroke='%235fd0e0' stroke-width='1.6'%3E%3Ccircle cx='40' cy='20' r='38'/%3E%3C/g%3E%3Cg fill='none' stroke='%235fd0e0' stroke-width='1.6'%3E%3Ccircle cx='40' cy='20' r='28'/%3E%3Ccircle cx='40' cy='20' r='18'/%3E%3Ccircle cx='40' cy='20' r='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 40px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, transparent 100%);
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--gold-soft); }
b { color: var(--text); }

#sky, #bolts { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#sky { z-index: 0; }
#bolts { z-index: 60; }
#flash { position: fixed; inset: 0; background: #dff6ff; opacity: 0; pointer-events: none; z-index: 59; mix-blend-mode: screen; }
main, header, footer, .tape { position: relative; z-index: 2; }

/* ---------- gate ---------- */
#gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: radial-gradient(600px 400px at 50% 40%, rgba(255, 210, 63, .12), transparent 70%), rgba(3, 8, 18, .94);
  backdrop-filter: blur(6px);
  transition: opacity .7s ease, visibility .7s;
}
#gate.gone { opacity: 0; visibility: hidden; }
.gate-inner { text-align: center; padding: 24px; }
.gate-logo { width: 150px; height: 150px; filter: drop-shadow(0 0 40px rgba(255, 210, 63, .55)); animation: float 4s ease-in-out infinite; }
.gate-title { font: 900 clamp(40px, 15vw, 120px)/1 var(--display); letter-spacing: .04em; margin: 18px 0 8px; background: linear-gradient(180deg, #fff 10%, var(--gold) 60%, var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 60px rgba(255, 210, 63, .25); }
.gate-sub { color: var(--muted); font-size: 18px; margin: 0 0 30px; }
.link-btn { display: block; margin: 16px auto 0; background: none; border: 0; color: var(--dim); cursor: pointer; font: inherit; text-decoration: underline; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }

/* ---------- buttons ---------- */
.btn {
  --h: 44px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 700 15px/1 Inter, sans-serif; cursor: pointer; white-space: nowrap; overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-gold { color: #1a1200; background: linear-gradient(180deg, var(--gold-soft), var(--gold) 45%, var(--gold2)); box-shadow: 0 0 0 1px rgba(255, 210, 63, .4), 0 8px 30px rgba(255, 180, 20, .35); }
.btn-gold:hover { color: #1a1200; box-shadow: 0 0 0 1px rgba(255, 210, 63, .7), 0 10px 44px rgba(255, 190, 30, .6); transform: translateY(-1px); }
.btn-gold::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); transform: skewX(-20deg); animation: shine 6s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 140%; } }
.btn-ghost { color: var(--text); background: rgba(95, 208, 224, .06); border-color: var(--line2); }
.btn-ghost:hover { background: rgba(95, 208, 224, .14); color: var(--text); }
.btn-sm { --h: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn-xl { --h: 64px; padding: 0 38px; font-size: 19px; }
.pulse { animation: pulse 2.2s ease-in-out infinite; }
.glow { box-shadow: 0 0 0 1px rgba(255, 210, 63, .55), 0 10px 40px rgba(255, 190, 30, .45); animation: glow 4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 1px rgba(255, 210, 63, .8), 0 12px 56px rgba(255, 190, 30, .6); } }

/* trust badges */
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: rgba(62, 230, 163, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.5 2.4L12 5.4' fill='none' stroke='%233ee6a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.trust b { color: var(--text); }

/* what would I win */
.calc { max-width: 560px; margin: -8px 0 24px; padding: 16px 18px; border-radius: var(--r); background: rgba(9, 24, 46, .7); border: 1px solid var(--line2); backdrop-filter: blur(8px); }
.calc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.calc-title { font: 700 15px Inter; }
.calc-live { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--mono); color: var(--green); text-transform: uppercase; letter-spacing: .08em; }
.calc-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.calc-input { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 12px; background: rgba(4, 11, 24, .8); border: 1px solid var(--line2); flex: 1; min-width: 150px; }
.calc-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 210, 63, .12); }
.calc-input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: 700 20px var(--mono); }
.calc-input span { color: var(--muted); font: 600 13px var(--mono); }
.calc-chips { display: flex; gap: 6px; }
.calc-chips button { height: 46px; min-width: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(95, 208, 224, .06); color: var(--text); font: 700 14px var(--mono); cursor: pointer; }
.calc-chips button:hover, .calc-chips button.on { border-color: var(--gold); color: var(--gold); }
.calc-out { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(255, 210, 63, .12), rgba(95, 208, 224, .05)); border: 1px solid rgba(255, 210, 63, .25); font-size: 15px; line-height: 1.5; min-height: 48px; }
.calc-out .big { font: 800 22px var(--display); color: var(--gold); }
.calc-out .sub { color: var(--muted); font-size: 13px; }
.live-sub { color: var(--muted); font-size: 12px; margin: -4px 0 8px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 1px rgba(255, 210, 63, .8), 0 0 0 10px rgba(255, 210, 63, .08), 0 12px 50px rgba(255, 190, 30, .7); } }

/* ---------- top bits ---------- */
.demo-banner { position: relative; z-index: 3; text-align: center; padding: 6px 12px; font: 700 12px/1.4 var(--mono); letter-spacing: .08em; color: #1a1200; background: repeating-linear-gradient(45deg, var(--gold), var(--gold) 14px, #ffdf6b 14px, #ffdf6b 28px); }
.demo-banner.soon { background: linear-gradient(90deg, #ffd23f, #fff3b0, #ffd23f); letter-spacing: .06em; }
.tape { overflow: hidden; border-bottom: 1px solid var(--line); background: rgba(4, 11, 24, .7); height: 34px; }
.tape-track { display: inline-flex; gap: 40px; white-space: nowrap; padding-left: 100%; animation: tape 60s linear infinite; font: 500 13px/34px var(--mono); color: var(--muted); }
.tape-track span b { color: var(--gold); }
@keyframes tape { to { transform: translateX(-100%); } }

.nav { display: flex; align-items: center; gap: 20px; max-width: 1240px; margin: 0 auto; padding: 16px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-name { font: 900 22px/1 var(--display); letter-spacing: .05em; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 600 12px/1 Inter; border: 1px solid var(--line2); background: rgba(95, 208, 224, .07); color: var(--cyan); }
.dot, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(62, 230, 163, .7); animation: ping 1.6s infinite; display: inline-block; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(62, 230, 163, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 230, 163, 0); } }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--text); }

main { max-width: 1240px; margin: 0 auto; padding: 0 20px 40px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 40px 0 30px; }
.eyebrow { font: 600 13px/1 var(--mono); color: var(--cyan); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
.hero-title { font: 900 clamp(38px, 5.6vw, 72px)/1.02 var(--display); margin: 0 0 18px; letter-spacing: -.01em; }
.grad { background: linear-gradient(90deg, var(--gold-soft), var(--gold) 40%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 0 24px; }

.leader-card { position: relative; padding: 16px 18px; border-radius: var(--r); background: linear-gradient(135deg, rgba(255, 210, 63, .12), rgba(95, 208, 224, .06)); border: 1px solid rgba(255, 210, 63, .35); max-width: 560px; margin-bottom: 24px; overflow: hidden; }
.leader-card.bump { animation: bump .7s ease; }
@keyframes bump { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 210, 63, .8); } 30% { transform: scale(1.03); } 100% { transform: scale(1); box-shadow: 0 0 0 24px rgba(255, 210, 63, 0); } }
.leader-label { font: 700 12px/1 var(--mono); letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
.leader-main { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 10px 0 6px; flex-wrap: wrap; }
.leader-addr { font: 700 22px/1.2 var(--mono); }
.leader-amt { font: 700 18px/1 var(--mono); color: var(--gold-soft); }
.leader-hint { color: var(--muted); font-size: 14px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* reactor */
.hero-right { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.reactor { position: relative; width: min(420px, 88vw); aspect-ratio: 1; }
.reactor::before { content: ''; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 63, .22), rgba(95, 208, 224, .08) 50%, transparent 70%); filter: blur(10px); animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-bg { fill: none; stroke: rgba(95, 208, 224, .12); stroke-width: 10; }
.ring-fg { fill: none; stroke: url(#ringGrad); stroke-width: 10; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(255, 210, 63, .7)); transition: stroke-dashoffset .95s linear; }
.ring-ticks line { stroke: rgba(95, 208, 224, .35); stroke-width: 2; }
.reactor.danger .ring-fg { stroke: var(--red); filter: drop-shadow(0 0 14px rgba(255, 77, 109, .9)); }
.reactor.danger { animation: shake .35s linear infinite; }
@keyframes shake { 25% { transform: translate(1px, -1px); } 50% { transform: translate(-1px, 1px); } 75% { transform: translate(1px, 1px); } }
.reactor-core { position: absolute; inset: 14%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at 50% 35%, #12305a, #071427 70%); border: 1px solid var(--line2); box-shadow: inset 0 0 60px rgba(95, 208, 224, .15), 0 0 80px rgba(255, 210, 63, .12); }
.pot-label { font: 700 12px/1 var(--mono); letter-spacing: .3em; color: var(--cyan); }
.pot-hype { font: 900 clamp(30px, 5vw, 46px)/1.1 var(--display); color: var(--gold); text-shadow: 0 0 30px rgba(255, 210, 63, .5); margin-top: 8px; }
.pot-hype small { font-size: .4em; color: var(--gold-soft); }
.pot-hype.bump { animation: potbump .5s ease; }
@keyframes potbump { 40% { transform: scale(1.12); text-shadow: 0 0 50px rgba(255, 230, 120, 1); } }
.pot-usd { font: 600 18px/1 var(--mono); color: var(--text); margin-top: 6px; }
.pot-pay { margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 210, 63, .1); border: 1px solid rgba(255, 210, 63, .3); font: 600 12px/1.4 var(--mono); color: var(--gold-soft); }
.pot-pay b { color: var(--gold); }
.sm-list { display: grid; gap: 8px; margin: 4px 0 18px; text-align: left; }
.sm-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 210, 63, .08); border: 1px solid rgba(255, 210, 63, .25); opacity: 0; animation: smin .5s cubic-bezier(.2, 1.4, .3, 1) forwards; }
.sm-row:first-child { background: rgba(255, 210, 63, .18); border-color: rgba(255, 210, 63, .6); }
.sm-place { font-size: 22px; text-align: center; }
.sm-addr { font: 700 15px var(--mono); }
.sm-amt { font: 800 17px/1.15 var(--display); color: var(--gold); text-align: right; }
.sm-amt small { display: block; font: 600 12px var(--mono); color: var(--text); }
@keyframes smin { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
.wline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 2px 0; }
.wplace { width: 26px; text-align: center; }
.ranking li.lucky { color: var(--cyan); border-top: 1px dashed rgba(95, 208, 224, .25); padding-top: 6px; }
.strike-pct { color: var(--muted); font: 500 13px var(--mono); margin: -12px 0 16px; }
.timer { font: 700 clamp(34px, 5.2vw, 50px)/1 var(--mono); margin-top: 12px; letter-spacing: .04em; }
.reactor.danger .timer { color: var(--red); text-shadow: 0 0 20px rgba(255, 77, 109, .8); }
.timer-label { color: var(--muted); font-size: 13px; margin-top: 6px; }

.live-buys { width: 100%; max-width: 460px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; backdrop-filter: blur(8px); }
.live-head { display: flex; align-items: center; gap: 8px; font: 700 13px/1 Inter; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.live-head .count { margin-left: auto; color: var(--text); font-family: var(--mono); }
.buy-list { list-style: none; margin: 0; padding: 0; max-height: 196px; overflow: hidden; }
.buy-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 4px; border-bottom: 1px dashed var(--line); font: 500 13px/1.2 var(--mono); }
.buy-list li.new { animation: slidein .45s cubic-bezier(.2, .8, .2, 1); }
.buy-list li:last-child { border-bottom: 0; }
.buy-list li.lead { color: var(--gold-soft); }
.buy-list li.lead::before { content: '⚡'; position: absolute; margin-left: -18px; }
.buy-list .amt { color: var(--text); }
.buy-list .usd { color: var(--muted); min-width: 64px; text-align: right; }
.buy-list li.nq { opacity: .42; }
.buy-list li.nq .usd::after { content: ' ✕'; color: var(--red); }
.buy-list .empty { color: var(--dim); font-family: Inter; grid-template-columns: 1fr; }
@keyframes slidein { from { opacity: 0; transform: translateX(30px); background: rgba(255, 210, 63, .2); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 20px 0 30px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; backdrop-filter: blur(8px); position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 120px; height: 120px; background: radial-gradient(circle, rgba(255, 210, 63, .14), transparent 70%); }
.stat-v { font: 800 clamp(20px, 2.4vw, 28px)/1.1 var(--display); color: var(--gold-soft); }
.stat-l { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ---------- panels ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; margin: 0 0 24px; backdrop-filter: blur(10px); }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-head h2 { font: 800 26px/1.1 var(--display); margin: 0; }
.panel-head p { margin: 0; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--dim); font: 600 12px/1 Inter; text-transform: uppercase; letter-spacing: .06em; padding: 10px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 10px; border-bottom: 1px solid rgba(95, 208, 224, .07); font-family: var(--mono); white-space: nowrap; }
.tbl tr:hover td { background: rgba(95, 208, 224, .04); }
.tbl .r { text-align: right; }
.tbl tr.fresh td { animation: rowflash 2.4s ease; }
@keyframes rowflash { 0%, 30% { background: rgba(255, 210, 63, .22); } }
.gold { color: var(--gold); font-weight: 700; }
.muted { color: var(--muted); }
.roll { color: var(--dim); font-style: italic; font-family: Inter; }
.addr { color: var(--text); }
.addr .av { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: -4px; margin-right: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.tbl a.ext { color: var(--dim); }
.tbl a.ext:hover { color: var(--cyan); }
.rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(95, 208, 224, .1); color: var(--muted); font-weight: 700; }

.tabs { display: flex; gap: 6px; background: rgba(4, 11, 24, .6); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.tab { background: none; border: 0; color: var(--muted); font: 600 14px/1 Inter; padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.tab.active { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #1a1200; }

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 18px; }
.pod { text-align: center; padding: 18px 12px; border-radius: 18px; background: linear-gradient(180deg, rgba(95, 208, 224, .08), rgba(95, 208, 224, .02)); border: 1px solid var(--line); }
.pod.p1 { padding: 28px 12px; background: linear-gradient(180deg, rgba(255, 210, 63, .2), rgba(255, 210, 63, .03)); border-color: rgba(255, 210, 63, .45); box-shadow: 0 0 50px rgba(255, 210, 63, .12); }
.pod .medal { font-size: 30px; }
.pod .pa { font: 700 15px/1.3 var(--mono); margin: 8px 0 4px; }
.pod .pv { font: 800 20px/1.2 var(--display); color: var(--gold); }
.pod .ps { color: var(--muted); font-size: 13px; }

.lookup-form { display: flex; gap: 10px; }
.lookup-form input { flex: 1; min-width: 0; height: 48px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(4, 11, 24, .7); color: var(--text); padding: 0 20px; font: 500 15px var(--mono); outline: none; }
.lookup-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 210, 63, .12); }
.lookup-form .btn { --h: 48px; }
#lookupOut { margin-top: 16px; }
.lk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lk .stat-v { font-size: 22px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: rgba(4, 11, 24, .4); }
.step-n { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 900 18px var(--display); color: #1a1200; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font: 700 18px var(--display); }
.step p { margin: 0; color: var(--muted); }
.split { margin-top: 24px; }
.split-title { font-weight: 600; margin-bottom: 10px; }
.split-bar { display: flex; min-height: 58px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); }
.split-seg { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6px 4px; min-width: 0; line-height: 1.15; transition: flex .6s; }
.split-seg b { font: 800 16px var(--display); color: inherit; }
.split-seg small { font: 600 11.5px Inter; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.seg-jackpot { background: linear-gradient(90deg, var(--gold2), var(--gold)); color: #1a1200; }
.seg-mkt { background: linear-gradient(90deg, var(--cyan2), var(--cyan)); color: #041320; }
.seg-volta { background: rgba(142, 166, 196, .18); color: var(--muted); font-size: 12px; }
.wallets { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 14px; font: 500 13px var(--mono); }
.w-l { color: var(--muted); font-family: Inter; margin-right: 6px; }
.fine { color: var(--dim); font-size: 13px; }

.foot { max-width: 1240px; margin: 0 auto; padding: 20px 20px 60px; position: relative; z-index: 2; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }

/* ---------- winner banner ---------- */
.winbar { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.winbar > * { position: relative; }
.winbar::before { content: ''; position: absolute; inset: 0 20px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 210, 63, .22), rgba(95, 208, 224, .12)); border: 1px solid rgba(255, 210, 63, .45); }
.winbar { min-height: 44px; font: 600 14px/1.3 Inter; }
.winbar b { color: var(--gold); font-family: var(--mono); }
.winbar-bolt { animation: zap 1.2s ease-in-out infinite; }
@keyframes zap { 50% { transform: scale(1.35) rotate(-10deg); filter: drop-shadow(0 0 8px var(--gold)); } }
.winbar.flash::before { animation: winflash 1.6s ease; }
@keyframes winflash { 0%, 40% { background: rgba(255, 230, 120, .55); box-shadow: 0 0 60px rgba(255, 210, 63, .7); } }

/* ---------- round ranking ---------- */
.ranking { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px dashed rgba(255, 210, 63, .25); display: grid; gap: 6px; }
.ranking:empty { display: none; }
.ranking li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font: 500 13px/1.2 var(--mono); color: var(--muted); }
.ranking li .pos { color: var(--dim); font-weight: 700; }
.ranking li:first-child { color: var(--gold-soft); }
.ranking li:first-child .pos { color: var(--gold); }
.ranking li .gap { color: var(--dim); font-size: 11px; }
.sound-btn.notify-btn { bottom: 76px; }
.notify-btn.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(0, 0, 0, .4); }

/* ---------- strike modal ---------- */
.strike-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(255, 210, 63, .25), rgba(2, 6, 14, .85) 60%); backdrop-filter: blur(4px); padding: 16px; }
.strike-modal[hidden] { display: none; }
.strike-card { text-align: center; padding: 34px 30px; border-radius: 28px; max-width: 520px; width: 100%; background: linear-gradient(180deg, #13315c, #08172d); border: 1px solid rgba(255, 210, 63, .6); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 0 120px rgba(255, 210, 63, .45); animation: slam .7s cubic-bezier(.2, 1.4, .3, 1); }
@keyframes slam { 0% { transform: scale(2.2) rotate(-4deg); opacity: 0; filter: blur(8px); } 100% { transform: scale(1); opacity: 1; filter: none; } }
.strike-kicker { white-space: nowrap; font: 900 clamp(30px, 8vw, 54px)/1 var(--display); background: linear-gradient(180deg, #fff, var(--gold) 55%, var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .04em; }
.strike-round { color: var(--cyan); font: 600 13px var(--mono); letter-spacing: .1em; margin: 10px 0 18px; text-transform: uppercase; }
.strike-addr { font: 700 22px var(--mono); word-break: break-all; }
.strike-won { color: var(--muted); margin: 6px 0; }
.strike-prize { font: 900 clamp(34px, 7vw, 54px)/1.1 var(--display); color: var(--gold); text-shadow: 0 0 40px rgba(255, 210, 63, .7); }
.strike-usd { font: 700 22px var(--mono); margin: 4px 0 18px; }
.strike-next { margin-top: 18px; color: var(--muted); }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column-reverse; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(9, 24, 46, .92); border: 1px solid var(--line2); font: 500 13px var(--mono); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: toastin .4s cubic-bezier(.2, .9, .3, 1.2), toastout .4s ease 3.6s forwards; }
.toast.lead { border-color: rgba(255, 210, 63, .7); background: linear-gradient(90deg, rgba(255, 210, 63, .25), rgba(9, 24, 46, .95)); }
.toast b { color: var(--gold); }
@keyframes toastin { from { transform: translateX(-120%); } }
@keyframes toastout { to { transform: translateX(-120%); opacity: 0; } }
.sound-btn { position: fixed; right: 16px; bottom: 16px; z-index: 70; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(9, 24, 46, .9); font-size: 20px; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-right { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:last-child { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav .buy-link { margin-left: auto; }
  .lk { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  main { padding: 0 16px 30px; }
  .nav { padding: 12px 16px; gap: 10px; }
  .chip-ely { display: none; }
  .panel { padding: 18px 14px; border-radius: 18px; }
  .hide-sm { display: none; }
  .podium { grid-template-columns: 1fr; }
  .podium .p1 { order: -1; }
  .leader-addr { font-size: 18px; }
  .tbl td, .tbl th { padding: 10px 6px; }
  .cta-row .btn { flex: 1; }
}
.hero > *, .hero-left > * { min-width: 0; }
.leader-card, .calc { max-width: 100%; }
.ranking li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wline { min-width: 0; }
@media (max-width: 600px) {
  .calc-row { flex-direction: column; align-items: stretch; }
  .calc-input { min-width: 0; width: 100%; flex: none; }
  .calc-input input { width: 100%; }
  .calc-chips { width: 100%; }
  .calc-chips button { flex: 1; min-width: 0; }
  .ranking li { grid-template-columns: 22px minmax(0, 1fr) auto; font-size: 12px; }
  .ranking li .gap { display: none; }
  .leader-main { flex-direction: column; align-items: flex-start; gap: 4px; }
  .leader-amt { font-size: 15px; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 18px; }
  .brand img { width: 30px; height: 30px; }
  .nav .buy-link { --h: 34px; padding: 0 12px; font-size: 13px; }
  .buy-list li { grid-template-columns: 1fr auto; }
  .buy-list .usd { display: none; }
  .winbar { font-size: 13px; padding: 6px 28px; }
  .sound-btn { width: 42px; height: 42px; font-size: 17px; right: 10px; }
  .sound-btn.notify-btn { bottom: 64px; }
  .toasts { left: 10px; right: 60px; }
}
/* history rows: one winner per line, amounts never cut */
.wline { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 22px; gap: 8px; align-items: center; }
.waddr { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wamt { text-align: right; white-space: nowrap; }
.wusd { margin-left: 8px; }
.wtx { text-align: right; }

/* phone bottom bar: hidden on bigger screens */
.mbar { display: none; }

/* ================= PHONE LAYOUT ================= */
@media (max-width: 640px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }

  /* clean, focused order: headline -> jackpot -> buy -> podium -> calculator -> details */
  .hero { display: flex; flex-direction: column; gap: 16px; padding: 14px 0 10px; }
  .hero-left, .hero-right { display: contents; }
  .eyebrow { order: 1; font-size: 10px; letter-spacing: .04em; margin: 0; text-align: center; }
  .hero-title { order: 2; font-size: 34px; line-height: 1.05; margin: 0; text-align: center; }
  .reactor { order: 3; width: 80vw; max-width: 330px; margin: 0 auto; }
  .cta-row { order: 4; }
  .cta-row .btn { flex: 1; --h: 50px; font-size: 15px; padding: 0 12px; }
  .leader-card { order: 5; margin: 0; }
  .calc { order: 6; margin: 0; }
  .hero-sub { order: 7; font-size: 15px; margin: 0; text-align: center; }
  .trust { order: 8; justify-content: center; margin: 0; font-size: 12.5px; gap: 6px 14px; }
  .live-buys { order: 9; max-width: none; }

  /* jackpot circle text */
  .pot-hype { font-size: 30px; margin-top: 4px; }
  .pot-usd { font-size: 15px; }
  .pot-pay { font-size: 10.5px; padding: 3px 9px; white-space: nowrap; }
  .timer { font-size: 34px; margin-top: 8px; }
  .timer-label { font-size: 11.5px; }

  /* winner banner: one short line */
  .winbar { padding: 6px 16px; min-height: 0; flex-wrap: nowrap; font-size: 12.5px; }
  .winbar::before { inset: 0 12px; border-radius: 12px; }
  .winbar-bolt { display: none; }
  #winBarText { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #winBarTx { flex-shrink: 0; }

  /* buys list: amounts always visible */
  .buy-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .buy-list li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* latest strikes as cards */
  #strikes thead { display: none; }
  #historyBody tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 2px; border-bottom: 1px solid var(--line); }
  #historyBody td { display: block; border: 0; padding: 0; white-space: normal; }
  #historyBody td.hide-sm { display: none; }
  #historyBody td:first-child { order: 1; font-weight: 700; color: var(--text); }
  #historyBody td:last-child { order: 2; text-align: right; font-size: 12px; }
  #historyBody td:last-child .gold { display: inline; margin-left: 8px; }
  #historyBody td[colspan] { order: 3; grid-column: 1 / -1; margin-top: 8px; }
  #historyBody .roll { order: 3; grid-column: 1 / -1; margin-top: 4px; }
  .wline { grid-template-columns: 24px minmax(0, 1fr) auto; font-size: 13px; padding: 4px 0; }
  .wline .av { display: none; }
  .wtx { display: none; }
  .wamt .gold { display: block; }
  .wusd { margin-left: 0; font-size: 11.5px; }

  /* fee split: percent on top, name below (two short lines if needed) */
  .split-seg { padding: 8px 4px; }
  .split-seg b { font-size: 15px; }
  .split-seg small { white-space: normal; font-size: 10.5px; line-height: 1.2; }

  /* leaderboard: compact, fits the screen */
  #leaderboard .tbl th, #leaderboard .tbl td { padding: 9px 4px; font-size: 12.5px; }
  #lbBody td.gold .muted { display: block; font-size: 11px; }
  #lbBody .addr .av { width: 14px; height: 14px; margin-right: 6px; }
  .rank { width: 22px; height: 22px; font-size: 11px; }
  .podium .pod { padding: 12px 10px; }
  .podium .p1 { padding: 16px 10px; }

  /* leaderboard + panels breathe less */
  .panel { margin-bottom: 16px; }
  .panel-head h2 { font-size: 22px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 10px 6px; font-size: 13px; }

  /* the always-visible bar */
  .mbar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(4, 11, 24, .94); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 210, 63, .35);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .45);
  }
  .mbar-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
  .mbar-t { font: 700 22px/1 var(--mono); color: var(--text); }
  .mbar-p { font: 600 12px/1.3 Inter; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar.danger .mbar-t { color: var(--red); }
  .mbar-btn { --h: 46px; padding: 0 18px; font-size: 15px; flex-shrink: 0; }
  /* buy notifications: one tidy line just above the bar */
  .toasts { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .toast { padding: 8px 12px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .toast .av { display: none; }
  .toasts .toast:not(:last-child) { display: none; }
  /* sound button small and out of the way, bell hidden (phones rarely allow site notifications) */
  .sound-btn { width: 36px; height: 36px; font-size: 14px; right: 10px; bottom: calc(82px + env(safe-area-inset-bottom)); opacity: .85; }
  .toasts { right: 56px; }
  .sound-btn.notify-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
