/* Fomo Derby landing page. Brand color: --accent. */
:root {
  --bg: #060510;
  --bg2: #0b0a17;
  --card: #12111a;
  --card2: #161522;
  --line: rgba(203, 208, 235, 0.1);
  --fill: rgba(203, 208, 235, 0.1);
  --text: #f7f7f7;
  --muted: #9899a3;
  --dim: #5b5f68;
  --tint: #eaedff;
  --sub: rgba(209, 216, 255, 0.6);
  --mark: #d6d9f5;
  --green: #21c95e;
  --red: #ff622e;
  --blue: #516af6;
  --accent: #f5b53d;
  --accent-soft: rgba(245, 181, 61, 0.14);
  --accent-glow: rgba(245, 181, 61, 0.35);
  --on-accent: #060510;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: 40px;
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 500; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--text); text-decoration: none; }
button { font-family: inherit; color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.mono { font-family: var(--mono); }
.green { color: var(--green); }
.c-accent { background: var(--accent); } .c-white { background: var(--text); } .c-green { background: var(--green); } .c-grey { background: var(--muted); }

/* TICKER TAPE */
.tape { height: 38px; overflow: hidden; background: #0a0914; border-bottom: 1px solid var(--line); position: relative; }
.tape::before, .tape::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.tape::before { left: 0; background: linear-gradient(90deg, #0a0914, transparent); }
.tape::after { right: 0; background: linear-gradient(-90deg, #0a0914, transparent); }
.tape-track { display: flex; width: max-content; height: 100%; align-items: center; animation: tape 70s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: flex; align-items: center; gap: 8px; padding: 0 22px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--muted); border-right: 1px solid var(--line); }
.tape-item b { color: var(--green); font-weight: 600; }
.tape-item .avatar { width: 20px; height: 20px; font-size: 10px; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* AVATARS */
.avatar { position: relative; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: var(--bg); background: var(--blue); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 56px; height: 56px; font-size: 22px; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 30; height: 72px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; background: rgba(6, 5, 16, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; }
.wordmark { font-weight: 700; color: var(--mark); }
.nav-logo { font-size: 28px; letter-spacing: -1.3px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-link { height: 40px; padding: 0 14px; display: flex; align-items: center; font-size: 16px; font-weight: 600; color: var(--muted); }
.nav-link:hover { color: var(--text); }
.icon-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255, 255, 255, 0.12); box-shadow: 0 0 0 1px var(--line); }
.btn-nav { height: 40px; padding: 0 20px; display: flex; align-items: center; border-radius: 8px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: 16px; font-weight: 700; }

/* BUTTONS (FOMO style: flat fill, hairline border, soft top highlight) */
.btn { min-width: 200px; height: 54px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid rgba(203, 208, 235, 0.1); font-size: 18px; font-weight: 700; letter-spacing: -0.2px; cursor: pointer; transition: background-color .15s ease, transform .1s ease; }
.btn svg { display: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: #e9ac35; color: #0b0a12; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); border-color: rgba(255, 255, 255, 0.12); }
.btn-primary:hover { background: #f2b843; }
.btn-secondary { background: rgba(255, 255, 255, 0.12); color: #f7f7f7; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.16); }
.btn-full { width: 100%; }
.btn-sm { height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); font-size: 16px; font-weight: 700; cursor: pointer; }
.cta-row { display: flex; gap: 12px; }

/* LIVE DOT */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(33, 201, 94, .6); animation: pulse 1.8s infinite; flex-shrink: 0; }
.live-dot.sm { width: 6px; height: 6px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(33, 201, 94, .55); } 70% { box-shadow: 0 0 0 8px rgba(33, 201, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(33, 201, 94, 0); } }

/* HERO */
.hero { position: relative; padding: 64px var(--pad) 0; display: flex; flex-direction: column; align-items: center; text-align: center; overflow-x: clip; }
.hero > * { position: relative; }
.glow { position: absolute !important; left: 50%; top: 380px; width: 1200px; height: 760px; max-width: 150vw; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 181, 61, .16), rgba(81, 106, 246, .10) 55%, transparent); filter: blur(40px); pointer-events: none; }
.gate-pill { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--fill); box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.gate-pill b { color: var(--text); font-weight: 700; letter-spacing: .5px; }
.hero-mark { margin-top: 26px; font-size: clamp(88px, 11vw, 168px); line-height: .88; letter-spacing: -0.05em; background: linear-gradient(180deg, #eef0ff 20%, #aab0e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-br { display: none; }
.hero-title { margin-top: 30px; font-size: 40px; line-height: 48px; letter-spacing: -2px; color: var(--tint); }
.hero-sub { margin-top: 12px; max-width: 720px; font-size: 22px; line-height: 30px; letter-spacing: -0.55px; color: var(--sub); }
.hero .cta-row { margin-top: 34px; }

/* TRACK */
.track { margin-top: 64px; width: 100%; max-width: 1080px; padding: 22px 22px 26px; border-radius: 25px; background: linear-gradient(180deg, #12111a, #0d0c16); border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); text-align: left; overflow: hidden; }
.track-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.track-title { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 1px; }
.track-meta { font-size: 13px; color: var(--muted); }
.lanes { position: relative; display: flex; flex-direction: column; }
.lane { position: relative; height: 62px; border-top: 1px dashed rgba(203, 208, 235, .12); }
.lane:last-child { border-bottom: 1px dashed rgba(203, 208, 235, .12); }
.lane-no { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--dim); }
.runner { position: absolute; top: 50%; left: 28px; transform: translate(0, -50%); display: flex; align-items: center; gap: 10px; transition: left 2.4s cubic-bezier(.2, .8, .2, 1); will-change: left; }
.runner .avatar { width: 38px; height: 38px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(203,208,235,.25); animation: gallop .5s ease-in-out infinite alternate; }
.runner.lead .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent), 0 0 24px var(--accent-glow); }
.runner-tag { display: flex; flex-direction: column; line-height: 1.15; }
.runner-tag b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.runner-tag span { font-size: 12px; color: var(--green); font-weight: 600; }
.trail { position: absolute; top: 50%; left: 28px; height: 2px; transform: translateY(-50%); background: linear-gradient(90deg, transparent, rgba(245, 181, 61, .5)); transition: width 2.4s cubic-bezier(.2, .8, .2, 1); width: 0; }
@keyframes gallop { from { transform: translateY(-2px); } to { transform: translateY(2px); } }
.finish { position: absolute; top: 58px; bottom: 26px; right: 36px; width: 12px; background-image: linear-gradient(45deg, #f7f7f7 25%, transparent 25%, transparent 75%, #f7f7f7 75%), linear-gradient(45deg, #f7f7f7 25%, #111 25%, #111 75%, #f7f7f7 75%); background-size: 12px 12px; background-position: 0 0, 6px 6px; opacity: .8; border-radius: 2px; }

/* SECTIONS */
.section { padding: 160px var(--pad) 0; max-width: calc(var(--maxw) + 2 * var(--pad)); margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; scroll-margin-top: 80px; }
.kicker { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 1px; }
.h2 { margin-top: 14px; font-size: 60px; line-height: 62px; font-weight: 500; letter-spacing: -3px; }
.sub { margin-top: 18px; font-size: 22px; line-height: 30px; letter-spacing: -0.55px; color: rgba(234, 237, 255, 0.6); max-width: 720px; }
.label { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--accent); }

/* FIELD */
.field-card { margin-top: 56px; width: 100%; max-width: 980px; padding: 24px; border-radius: 25px; background: var(--card); border: 1px solid var(--line); text-align: left; }
.field-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 10px; background: rgba(203, 208, 235, .06); }
.tab { height: 36px; padding: 0 16px; border: 0; border-radius: 7px; cursor: pointer; font-size: 14px; font-weight: 600; background: transparent; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.tab[aria-selected="true"] { background: rgba(203, 208, 235, 0.16); color: var(--text); }
.chips { display: flex; gap: 8px; }
.chip { height: 36px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border-radius: 8px; background: var(--fill); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chip b { color: var(--text); font-weight: 700; }

.podium { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: end; }
.pod { position: relative; border-radius: 20px; padding: 20px 16px 18px; text-align: center; background: var(--card2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: transform .2s ease, border-color .2s ease; }
.pod:hover { transform: translateY(-4px); border-color: rgba(203, 208, 235, .25); }
.pod .avatar { width: 64px; height: 64px; font-size: 24px; }
.pod.p1 { padding-top: 30px; background: linear-gradient(180deg, rgba(245, 181, 61, .12), var(--card2) 60%); border-color: rgba(245, 181, 61, .35); }
.pod.p1 .avatar { width: 84px; height: 84px; font-size: 30px; box-shadow: 0 0 0 3px var(--card2), 0 0 0 5px var(--accent), 0 0 40px var(--accent-glow); }
.pod.p2 .avatar { box-shadow: 0 0 0 3px var(--card2), 0 0 0 5px #c9ced9; }
.pod.p3 .avatar { box-shadow: 0 0 0 3px var(--card2), 0 0 0 5px #c98a5b; }
.pod-rank { position: absolute; top: 12px; left: 14px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted); }
.pod.p1 .pod-rank { color: var(--accent); }
.pod-name { font-size: 17px; font-weight: 700; }
.pod-handle { font-size: 13px; color: var(--muted); margin-top: -6px; }
.pod-pnl { font-size: 18px; font-weight: 700; color: var(--green); }
.pod-odds { height: 40px; min-width: 110px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: var(--text); font-size: 15px; font-weight: 700; border: 1px solid var(--line); cursor: pointer; }
.pod-odds span:last-child { color: var(--accent); }
.pod-odds:hover { background: rgba(255, 255, 255, 0.14); }
.pod.p1 .pod-odds { background: #e9ac35; color: #0b0a12; border-color: rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.pod.p1 .pod-odds span:last-child { color: #0b0a12; }

.field-head, .frow { display: grid; grid-template-columns: 34px minmax(0, 1fr) 140px 120px 92px; column-gap: 12px; align-items: center; }
.field-head { margin-top: 24px; padding: 0 12px 8px; font-size: 12px; font-weight: 600; color: var(--dim); }
.r { text-align: right; }
.field-rows { display: flex; flex-direction: column; gap: 2px; }
.frow { padding: 10px 12px; border-radius: 12px; transition: background .15s; cursor: pointer; }
.frow:hover { background: rgba(203, 208, 235, .05); }
.frow.sel { background: var(--accent-soft); }
.f-rank { font-size: 14px; font-weight: 600; color: var(--muted); }
.f-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.f-who .avatar { width: 36px; height: 36px; font-size: 14px; }
.f-text { display: flex; flex-direction: column; min-width: 0; }
.f-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-pnl { text-align: right; font-size: 15px; font-weight: 600; color: var(--green); }
.f-odds { text-align: right; font-size: 16px; font-weight: 700; }
.f-bet { height: 36px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; }
.f-bet:hover { background: rgba(255, 255, 255, 0.14); }
.f-bet .odds-in { color: var(--accent); }
.f-bet .odds-in { display: none; }

/* SLIP */
.slip { margin-top: 56px; width: 100%; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; text-align: left; align-items: start; }
.slip-left { padding: 28px; border-radius: 25px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.step { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .5px; }
.pick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.pick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.pick:hover { transform: translateY(-2px); }
.pick .avatar { width: 44px; height: 44px; font-size: 17px; }
.pick span { font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); }
.pick[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.amount-row { display: flex; flex-direction: column; gap: 10px; }
.amount-input { height: 64px; display: flex; align-items: center; gap: 6px; padding: 0 20px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); font-size: 32px; font-weight: 600; color: var(--muted); }
.amount-input input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; }
.amount-input:focus-within { border-color: var(--accent); }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.quick button { height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--fill); font-size: 15px; font-weight: 700; cursor: pointer; }
.quick button.on { background: rgba(203, 208, 235, .22); }

.ticket { position: sticky; top: 96px; padding: 26px; border-radius: 25px; background: linear-gradient(180deg, #1a1826, #12111a); border: 1px solid rgba(245, 181, 61, .3); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(245, 181, 61, .08); display: flex; flex-direction: column; gap: 14px; }
.ticket-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 1px; }
.ticket-race { font-family: var(--mono); color: var(--accent); }
.ticket-who { display: flex; align-items: center; gap: 14px; }
.t-name { font-size: 20px; font-weight: 700; }
.t-handle { font-size: 14px; color: var(--muted); }
.t-odds { margin-left: auto; font-size: 22px; font-weight: 800; color: var(--accent); }
.ticket-cut { position: relative; height: 1px; margin: 6px -26px; border-top: 2px dashed rgba(203, 208, 235, .15); }
.ticket-cut::before, .ticket-cut::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.ticket-cut::before { left: -11px; } .ticket-cut::after { right: -11px; }
.t-label { font-size: 14px; color: var(--muted); }
.t-payout { font-size: 60px; line-height: 60px; font-weight: 800; letter-spacing: -2.5px; color: var(--green); text-shadow: 0 0 40px rgba(33, 201, 94, .25); }
.t-rows { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; }
.t-rows div { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.t-rows b { color: var(--text); font-weight: 600; }
.t-note { font-size: 12px; color: var(--dim); text-align: center; }

/* STEPS */
.steps { margin-top: 56px; width: 100%; display: flex; align-items: flex-start; }
.step-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 12px; }
.step-num { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 22px; font-weight: 700; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.step-num.gold { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 0 40px var(--accent-glow); }
.step-item h3 { margin-top: 8px; font-size: 30px; font-weight: 500; letter-spacing: -1px; }
.step-item p { font-size: 16px; line-height: 23px; color: var(--muted); max-width: 300px; }
.step-line { flex: 0 0 80px; height: 2px; margin-top: 36px; background: repeating-linear-gradient(90deg, rgba(203, 208, 235, .3) 0 6px, transparent 6px 12px); }
.schedule { margin-top: 56px; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; }
.sched { padding: 22px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; row-gap: 4px; }
.sched span.mono { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--muted); }
.sched b { font-size: 19px; font-weight: 600; }
.sched span:not(.mono) { font-size: 14px; color: var(--muted); }
.sched i { grid-row: 2 / 4; grid-column: 2; align-self: center; font-style: normal; font-size: 16px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 8px 10px; border-radius: 8px; }

/* BENTO */
.bento { margin-top: 56px; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); gap: 14px; text-align: left; }
.b-card { padding: 26px; border-radius: 25px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.b-card h3 { font-size: 24px; line-height: 28px; font-weight: 500; letter-spacing: -0.6px; }
.b-card p { font-size: 15px; line-height: 22px; color: var(--muted); }
.b-card p.small { margin-top: auto; font-size: 14px; }
.b-big { grid-column: span 2; grid-row: span 2; background: radial-gradient(120% 90% at 100% 100%, rgba(33, 201, 94, .08), transparent 60%), var(--card); }
.b-big h3 { font-size: 36px; line-height: 40px; letter-spacing: -1px; }
.pnl-art { margin-top: auto; width: 100%; height: auto; }
.checks { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.checks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23060510' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.lockbar { margin-top: auto; height: 10px; border-radius: 999px; background: rgba(203, 208, 235, .1); overflow: hidden; }
.lockbar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* FEES */
.fees { margin-top: 56px; width: 100%; display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 48px; align-items: center; text-align: left; }
.donut-wrap { position: relative; width: 420px; height: 420px; }
.donut { width: 100%; height: 100%; transform: rotate(0deg); filter: drop-shadow(0 0 30px rgba(245, 181, 61, .15)); }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donut-center b { font-size: 84px; line-height: 84px; font-weight: 800; letter-spacing: -4px; color: var(--accent); }
.donut-center span { margin-top: 6px; font-size: 16px; color: var(--muted); }
.fee-side { display: flex; flex-direction: column; gap: 28px; }
.fee-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fee-pill { padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.fee-pill b { font-size: 44px; line-height: 44px; font-weight: 700; letter-spacing: -2px; }
.fee-pill span { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.legend { display: flex; flex-direction: column; gap: 14px; }
.legend li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--muted); }
.legend li b { color: var(--text); font-weight: 700; min-width: 48px; }
.legend i, .alloc-legend i { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }

/* TOKEN */
.supply { margin-top: 18px; font-size: clamp(52px, 10vw, 150px); line-height: 1; font-weight: 800; letter-spacing: -0.05em; background: linear-gradient(180deg, #fff, #9aa1d8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.alloc-bar { margin-top: 44px; width: 100%; height: 64px; display: flex; gap: 4px; }
.alloc-bar span { height: 100%; border-radius: 12px; display: flex; align-items: center; padding: 0 20px; font-size: 16px; font-weight: 700; color: var(--on-accent); }
.alloc-bar span b { margin-right: 8px; font-size: 22px; }
.a1 { background: var(--accent); } .a2 { background: var(--text); } .a3 { background: var(--green); } .a4 { background: var(--muted); }
.alloc-legend { margin-top: 20px; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; text-align: left; }
.alloc-legend div { display: grid; grid-template-columns: 12px 1fr; column-gap: 10px; row-gap: 2px; align-items: center; }
.alloc-legend b { font-size: 24px; font-weight: 700; }
.alloc-legend span { grid-column: 2; font-size: 14px; color: var(--muted); }
.ca-card { margin-top: 36px; width: 100%; padding: 22px 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ca-text { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ca-label { font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 6px 10px; border-radius: 6px; }
.ca { font-size: 15px; color: var(--muted); word-break: break-all; }
.ca-actions { display: flex; gap: 10px; flex-shrink: 0; }
.ca-actions .btn-secondary { background: rgba(255, 255, 255, 0.12); }
.ca-actions .btn-primary { background: #e9ac35; color: #0b0a12; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }

/* LAPS */
.laps { position: relative; margin-top: 64px; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: left; }
.laps::before { content: ""; position: absolute; top: 11px; left: 12px; right: 12px; height: 2px; background: repeating-linear-gradient(90deg, rgba(203, 208, 235, .3) 0 8px, transparent 8px 16px); }
.lap { position: relative; display: flex; flex-direction: column; gap: 10px; }
.lap-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(203, 208, 235, .35); position: relative; z-index: 1; }
.lap.on .lap-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 24px var(--accent-glow); }
.lap-dot.flag { border-radius: 4px; border: 0; background-image: linear-gradient(45deg, #f7f7f7 25%, transparent 25%, transparent 75%, #f7f7f7 75%), linear-gradient(45deg, #f7f7f7 25%, #222 25%, #222 75%, #f7f7f7 75%); background-size: 8px 8px; background-position: 0 0, 4px 4px; }
.lap-n { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lap.on .lap-n { color: var(--accent); }
.lap h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.8px; }
.lap ul { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 21px; color: var(--muted); }

/* FINAL */
.final { margin-top: 180px; padding: 120px var(--pad); display: flex; flex-direction: column; align-items: center; text-align: center; background: radial-gradient(60% 70% at 50% 45%, rgba(245, 181, 61, .10), transparent 70%), linear-gradient(180deg, transparent, rgba(81, 106, 246, .10)); border-top: 1px solid var(--line); }
.clock { margin-top: 22px; display: flex; align-items: flex-start; gap: 12px; }
.clock div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.clock b { width: 140px; height: 150px; display: flex; align-items: center; justify-content: center; border-radius: 20px; background: linear-gradient(180deg, #1c1a29 50%, #151320 50%); border: 1px solid var(--line); font-family: var(--mono); font-size: 88px; font-weight: 700; letter-spacing: -2px; box-shadow: inset 0 -1px 0 rgba(0,0,0,.4), 0 20px 40px rgba(0,0,0,.4); }
.clock span { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.clock i { font-style: normal; font-size: 72px; font-weight: 700; color: var(--dim); line-height: 150px; }
.final-title { margin-top: 48px; font-size: 64px; line-height: 66px; font-weight: 500; letter-spacing: -3px; }
.final .cta-row { margin-top: 36px; }

/* FOOTER */
.footer { padding: 64px var(--pad) 56px; display: flex; justify-content: space-between; gap: 48px; border-top: 1px solid var(--line); }
.foot-brand { display: flex; flex-direction: column; }
.foot-mark { font-size: 56px; line-height: 56px; letter-spacing: -2.5px; }
.foot-tag { margin-top: 12px; font-size: 22px; letter-spacing: -0.8px; color: var(--muted); }
.foot-legal { margin-top: 28px; font-size: 14px; color: var(--dim); }
.foot-cols { display: flex; gap: 88px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.foot-col a:hover { color: var(--accent); }
.foot-head { font-size: 13px; color: var(--dim); margin-bottom: 4px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* TABLET */
@media (max-width: 1100px) {
  .nav-link { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fees { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .fee-side { width: 100%; }
  .slip { grid-template-columns: minmax(0, 1fr); }
  .ticket { position: static; }
  .laps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .laps::before { display: none; }
  .footer { flex-direction: column; }
}

/* MOBILE */
@media (max-width: 720px) {
  :root { --pad: 16px; }
  .tape { height: 34px; }
  .nav { height: 60px; }
  .nav-logo { font-size: 24px; letter-spacing: -1.1px; }
  .btn-nav { padding: 0 14px; font-size: 15px; }
  .hero { padding-top: 32px; }
  .gate-pill { font-size: 13px; height: 34px; padding: 0 14px; }
  .hero-mark { margin-top: 22px; font-size: 104px; line-height: 90px; letter-spacing: -5px; }
  .m-br { display: inline; }
  .hero-title { margin-top: 22px; font-size: 28px; line-height: 32px; letter-spacing: -1.2px; }
  .hero-sub { font-size: 17px; line-height: 24px; letter-spacing: -0.3px; }
  .hero .cta-row, .final .cta-row { width: 100%; flex-direction: column; margin-top: 26px; }
  .btn { width: 100%; min-width: 0; }
  .track { margin-top: 44px; padding: 16px 12px 18px; border-radius: 20px; }
  .lane { height: 54px; }
  .runner { left: 20px; gap: 8px; }
  .runner .avatar { width: 32px; height: 32px; font-size: 13px; }
  .runner-tag b { font-size: 12px; }
  .runner-tag span { font-size: 11px; }
  .finish { right: 14px; width: 8px; background-size: 8px 8px; background-position: 0 0, 4px 4px; top: 50px; bottom: 18px; }

  .section { padding-top: 104px; }
  .h2 { font-size: 38px; line-height: 40px; letter-spacing: -1.8px; }
  .sub { margin-top: 14px; font-size: 17px; line-height: 24px; letter-spacing: -0.3px; }
  .kicker { font-size: 12px; }

  .field-card { margin-top: 36px; padding: 14px; border-radius: 20px; }
  .field-bar { flex-direction: column; align-items: stretch; }
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tab { padding: 0 4px; font-size: 13px; height: 40px; }
  .field-bar > * { min-width: 0; }
  .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip { justify-content: center; overflow: hidden; font-size: 12px; padding: 0 8px; gap: 6px; }
  .chip b { white-space: nowrap; }
  #field-source { display: block; line-height: 36px; text-align: center; text-overflow: ellipsis; }
  .podium { gap: 8px; margin-top: 20px; }
  .pod { padding: 16px 6px 12px; border-radius: 16px; gap: 6px; }
  .pod .avatar { width: 48px; height: 48px; font-size: 18px; }
  .pod.p1 { padding-top: 22px; }
  .pod.p1 .avatar { width: 60px; height: 60px; font-size: 22px; }
  .pod-rank { top: 8px; left: 9px; font-size: 10px; }
  .pod-name { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pod-handle { display: none; }
  .pod-pnl { font-size: 13px; }
  .pod-odds { min-width: 0; width: 100%; height: 36px; font-size: 14px; padding: 0 6px; }
  .pod-odds .lbl { display: none; }
  .field-head, .frow { grid-template-columns: 18px minmax(0, 1fr) auto 64px; column-gap: 10px; }
  .field-head { padding: 0 4px 6px; margin-top: 18px; }
  .frow { padding: 10px 4px; }
  .col-odds-h, .f-odds { display: none; }
  .f-who .avatar { width: 32px; height: 32px; }
  .f-name { font-size: 14px; }
  .f-pnl { font-size: 13px; }
  .f-bet { height: 40px; }
  .f-bet .lbl { display: none; }
  .f-bet .odds-in { display: inline; }

  .slip { margin-top: 36px; gap: 14px; }
  .slip-left { padding: 18px; border-radius: 20px; }
  .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .amount-input { height: 58px; font-size: 26px; }
  .ticket { padding: 20px; border-radius: 20px; }
  .ticket-cut { margin: 6px -20px; }
  .t-payout { font-size: 48px; line-height: 50px; }

  .steps { flex-direction: column; align-items: stretch; gap: 0; margin-top: 36px; }
  .step-item { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; padding: 0; display: grid; grid-template-columns: 56px 1fr; }
  .step-num { width: 56px; height: 56px; font-size: 18px; grid-row: span 2; }
  .step-item h3 { margin-top: 4px; font-size: 24px; }
  .step-item p { font-size: 15px; }
  .step-line { flex: 0 0 28px; width: 2px; height: 28px; margin: 6px 0 6px 27px; background: repeating-linear-gradient(180deg, rgba(203, 208, 235, .3) 0 5px, transparent 5px 10px); }
  .schedule { grid-template-columns: minmax(0, 1fr); margin-top: 36px; gap: 10px; }

  .bento { grid-template-columns: minmax(0, 1fr); margin-top: 36px; grid-auto-rows: auto; gap: 10px; }
  .b-big { grid-column: auto; grid-row: auto; }
  .b-big h3 { font-size: 28px; line-height: 32px; }
  .b-card { padding: 22px; border-radius: 20px; }
  .b-card p.small, .lockbar, .checks { margin-top: 8px; }

  .fees { margin-top: 36px; gap: 28px; }
  .donut-wrap { width: 280px; height: 280px; }
  .donut-center b { font-size: 60px; line-height: 60px; }
  .donut-center span { font-size: 14px; }
  .fee-pills { gap: 8px; }
  .fee-pill { padding: 16px 12px; border-radius: 16px; }
  .fee-pill b { font-size: 32px; line-height: 32px; }
  .legend li { font-size: 15px; }

  .supply { font-size: 50px; }
  .alloc-bar { height: 48px; margin-top: 32px; }
  .alloc-bar span { padding: 0 14px; font-size: 14px; }
  .alloc-bar span b { font-size: 18px; }
  .alloc-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alloc-legend b { font-size: 20px; }
  .alloc-legend span { font-size: 13px; }
  .ca-card { flex-direction: column; align-items: stretch; padding: 20px; }
  .ca-actions { flex-direction: column; }
  .btn-sm { width: 100%; }

  .laps { grid-template-columns: minmax(0, 1fr); margin-top: 36px; row-gap: 28px; }
  .lap { display: grid; grid-template-columns: 24px 1fr; column-gap: 16px; row-gap: 6px; }
  .lap-dot { grid-row: span 3; }
  .lap-n { margin-top: 2px; }
  .lap h3 { font-size: 22px; }

  .final { margin-top: 120px; padding: 88px var(--pad); }
  .clock { gap: 6px; }
  .clock b { width: 88px; height: 100px; font-size: 54px; border-radius: 14px; }
  .clock i { font-size: 44px; line-height: 100px; }
  .final-title { margin-top: 36px; font-size: 40px; line-height: 42px; letter-spacing: -2px; }

  .footer { padding: 48px var(--pad) 40px; gap: 36px; }
  .foot-mark { font-size: 44px; line-height: 44px; }
  .foot-tag { font-size: 18px; }
  .foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .foot-col { font-size: 15px; }
  .foot-head { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape-track, .runner .avatar, .live-dot { animation: none; }
  .runner, .trail, .reveal, .btn { transition: none; }
  .reveal { opacity: 1; transform: none; }
}
