@font-face { font-family: "Geist"; src: url(fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(fonts/barlow-800i.woff2) format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }

:root {
  --bg: #0a0e15;
  --s1: #0f1520;
  --s2: #151d2b;
  --s3: #1c2638;
  --line: rgba(150, 175, 215, 0.08);
  --line-2: rgba(150, 175, 215, 0.15);
  --text: #eef2f8;
  --muted: #9aa6bb;
  --dim: #7f8ba1;
  --blue: #0b6cf0;
  --blue-hover: #0a5fd6;
  --blue-text: #4d95ff;
  --green: #0a7f5b;
  --win: #3ee0a8;
  --lose: #ff8098;
  --gold: #f7c548;
  --silver: #cfd8e6;
  --bronze: #ef9b5e;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 11px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Geist", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--s3) var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  font-feature-settings: "ss01"; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  caret-color: var(--blue-text);
}
::selection { background: rgba(11, 108, 240, 0.45); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--s3); border-radius: 10px; border: 2px solid var(--bg); }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button, select, input, .stage { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.num { font-family: var(--display); font-style: italic; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.005em; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border: 0; border-radius: var(--r-sm);
  font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.25s, opacity 0.2s;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 50px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 14px -8px rgba(0, 0, 0, 0.8); }
.btn-primary:hover:not(:disabled) { background: var(--blue-hover); }
.btn-success { background: var(--green); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 14px -8px rgba(0, 0, 0, 0.8); }
.btn-success:hover:not(:disabled) { background: #08714f; }
.btn-quiet { background: var(--s2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { background: var(--s3); }

/* ---------- 18+ gate ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; background: radial-gradient(70% 60% at 50% 40%, rgba(11, 108, 240, 0.22), transparent 70%), rgba(6, 9, 14, 0.6); backdrop-filter: blur(30px) saturate(130%); -webkit-backdrop-filter: blur(30px) saturate(130%); transition: opacity 0.38s var(--ease), backdrop-filter 0.38s var(--ease); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .gate { background: rgba(6, 9, 14, 0.97); } }
html.age-ok .gate { display: none; }
html:not(.age-ok) body { overflow: hidden; }
.gate.leaving { opacity: 0; }
.gate.leaving .gate-card { transform: scale(0.96); }
.gate-card { display: grid; justify-items: center; gap: 12px; width: min(400px, 100%); padding: 30px 24px 22px; text-align: center; background: linear-gradient(180deg, #121c2e, var(--s1) 60%); border: 1px solid rgba(77, 149, 255, 0.22); border-radius: 26px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); animation: rise 0.6s var(--ease); transition: transform 0.38s var(--ease); }
.gate-card .wordmark { font-size: 26px; color: var(--muted); }
.gate-title { margin-top: 2px; font-size: 54px; line-height: 0.95; text-transform: uppercase; }
.gate-title span { color: var(--blue-text); }
.gate-text { margin-bottom: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.btn-xl { height: 56px; font-size: 16px; border-radius: 14px; }
.gate-fine { margin-top: 6px; color: var(--dim); font-size: 12px; line-height: 1.5; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10, 14, 21, 0.82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.nav { padding-top: env(safe-area-inset-top); }
.nav-inner { display: flex; align-items: center; height: 60px; }
.wordmark { font-size: 30px; line-height: 1; text-transform: uppercase; text-decoration: none; letter-spacing: 0.01em; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.code-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: rgba(11, 108, 240, 0.12); box-shadow: inset 0 0 0 1px rgba(77, 149, 255, 0.3); font-size: 13px; transition: background 0.2s; }
.code-chip:hover { background: rgba(11, 108, 240, 0.2); }
.code-label { color: var(--muted); }
.code-chip strong { color: var(--blue-text); }
.code-chip .ic { width: 15px; height: 15px; color: var(--blue-text); }

/* ---------- game sections ---------- */
.game-section { padding-top: 28px; }
.game-section + .game-section { padding-top: 64px; }
.game-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.game-head h1, .game-head h2 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.pill { padding: 3px 8px; border-radius: 6px; background: rgba(11, 108, 240, 0.14); color: var(--blue-text); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.game-hint { margin-left: auto; color: var(--dim); font-size: 13px; }

.game { display: grid; grid-template-columns: 290px minmax(0, 1fr); overflow: hidden; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9); }
.panel { display: flex; flex-direction: column; gap: 18px; padding: 20px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--muted); font-size: 13px; font-weight: 500; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa6bb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; pointer-events: none; }
.select select, .input { width: 100%; height: 46px; padding: 0 14px; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-size: 16px; font-weight: 600; appearance: none; transition: border-color 0.2s; }
.select select:hover, .input:hover { border-color: rgba(150, 175, 215, 0.28); }
.select select:disabled { opacity: 0.5; }
.panel-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }

/* ---------- Cross the Road ---------- */
.ch-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); }
.ch-stats div { padding: 10px 6px; text-align: center; }
.ch-stats div + div { border-left: 1px solid var(--line); }
.ch-stats dt { color: var(--dim); font-size: 11px; }
.ch-stats dd { margin: 0; font-size: 22px; line-height: 1.15; }
.ch-buttons { display: grid; gap: 10px; }

.stage { --lane: 104px; position: relative; height: 500px; overflow: hidden; background: #6b6c7b; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.world { position: absolute; inset: 0 auto 0 0; display: flex; transition: transform 0.6s var(--ease); }
.lawn { position: relative; flex: 0 0 160px; background-color: #58b947; background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1.2px, transparent 1.6px), radial-gradient(rgba(0, 60, 0, 0.12) 1.2px, transparent 1.6px); background-size: 26px 26px, 26px 26px; background-position: 0 0, 13px 13px; }
.tr { position: absolute; filter: drop-shadow(0 6px 4px rgba(0, 40, 0, 0.3)); }
.tr.a { width: 98px; left: 6px; top: -18px; }
.tr.b { width: 64px; left: 78px; top: 128px; }
.tr.c { width: 104px; left: -6px; top: 236px; }
.tr.d { width: 70px; left: 70px; top: 392px; }
.curb { flex: 0 0 44px; background-color: #b7b9c1; background-image: linear-gradient(#a3a5ae 2px, transparent 2px), linear-gradient(90deg, #a3a5ae 2px, transparent 2px); background-size: 100% 44px, 22px 88px; box-shadow: inset -5px 0 0 #8e909a, inset -9px 0 0 #c8cad1; }
.lanes { display: flex; height: 100%; }
.lane { position: relative; flex: 0 0 var(--lane); height: 100%; background-image: linear-gradient(rgba(255, 255, 255, 0.55) 55%, transparent 55%); background-size: 3px 34px; background-repeat: repeat-y; background-position: right top; }
.lane:last-child { background-image: none; }
.lane.finish { flex-basis: 150px; background: #58b947; background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1.2px, transparent 1.6px); background-size: 26px 26px; box-shadow: inset 6px 0 0 #8e909a, inset 10px 0 0 #c8cad1; }
.hole {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 74px; height: 74px; transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-linear-gradient(180deg, #34363f 0 6px, #464853 6px 10px);
  box-shadow: 0 0 0 5px #5a5c67, 0 0 0 7px #43454f, 0 6px 10px 4px rgba(0, 0, 0, 0.28), inset 0 3px 8px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.35s, transform 0.35s var(--ease);
}
.hole span { padding: 1px 7px 2px; border-radius: 6px; background: rgba(12, 14, 20, 0.78); color: #f1f3f8; font-size: 17px; }
.lane.next .hole { cursor: pointer; box-shadow: 0 0 0 5px #dfe3ec, 0 0 0 7px #aab1c0, 0 8px 14px 4px rgba(0, 0, 0, 0.3), inset 0 3px 8px rgba(0, 0, 0, 0.55); }
@media (hover: hover) { .lane.next .hole:hover { transform: translate(-50%, -50%) scale(1.07); } }
.lane.passed .hole { box-shadow: 0 0 0 5px var(--blue), 0 0 0 7px #0a4fb0, 0 8px 14px 4px rgba(0, 0, 0, 0.3), inset 0 3px 8px rgba(0, 0, 0, 0.55); }
.barrier { position: absolute; left: 50%; top: calc(50% - 86px); width: 80px; height: 16px; transform: translateX(-50%); border-radius: 5px; background: repeating-linear-gradient(-45deg, #f4f5f8 0 9px, #e5384f 9px 18px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 5px 6px rgba(0, 0, 0, 0.35); animation: drop 0.4s var(--ease); }
.barrier::before, .barrier::after { content: ""; position: absolute; top: 14px; width: 6px; height: 12px; border-radius: 0 0 3px 3px; background: #9da1ad; }
.barrier::before { left: 10px; }
.barrier::after { right: 10px; }
.car { position: absolute; left: 50%; top: 0; width: 50px; margin-left: -25px; z-index: 3; will-change: transform; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.35)); }
.car img { display: block; width: 100%; transform: rotate(180deg); }
.chick { position: absolute; top: 50%; left: 0; width: 92px; height: 92px; margin-top: -62px; z-index: 2; transition: transform 0.45s var(--ease); pointer-events: none; }
.chick-art { width: 100%; height: 100%; transform: scaleX(-1); filter: drop-shadow(0 8px 4px rgba(0, 0, 0, 0.3)); }
.chick.hop .chick-art { animation: hop 0.45s var(--ease); }
.chick.hit .chick-art { animation: squash 0.6s var(--ease) forwards; }
.stage-result { position: absolute; left: 50%; top: 20px; z-index: 5; display: grid; gap: 2px; padding: 16px 26px 18px; border-radius: var(--r); text-align: center; white-space: nowrap; background: rgba(10, 14, 21, 0.9); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6); opacity: 0; transform: translate(-50%, -10px); pointer-events: none; transition: opacity 0.3s, transform 0.5s var(--ease); }
.stage-result.show { opacity: 1; transform: translate(-50%, 0); }
.stage-result strong { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 40px; line-height: 1; text-transform: uppercase; }
.stage-result span { color: var(--muted); font-size: 13px; }
.stage-result.win strong { color: var(--win); }
.stage-result.lose strong { color: var(--lose); }

/* ---------- Deals ---------- */
.deals { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.deals-panel { padding: 24px; }
.item-card { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r); background: radial-gradient(120% 140% at 0% 0%, rgba(247, 197, 72, 0.22), rgba(247, 197, 72, 0.04) 55%, transparent), var(--s2); box-shadow: inset 0 0 0 1px rgba(247, 197, 72, 0.18); }
.amz { display: grid; place-items: center; width: 84px; height: 64px; flex: none; padding: 0 12px; border-radius: 12px; background: #131921; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.amz img { display: block; width: 100%; height: auto; margin-top: 4px; }
.amz-lg { width: 132px; height: 92px; padding: 0 18px; border-radius: 16px; }
.item-text { display: grid; }
.item-text strong { font-size: 18px; letter-spacing: -0.015em; }
.item-text span { color: #b4bdcc; font-size: 12px; }
.chance-row { display: flex; gap: 8px; }
.input { display: flex; align-items: center; gap: 6px; flex: 0 0 96px; }
.input span { color: var(--dim); }
.input input { width: 100%; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; outline: none; -moz-appearance: textfield; }
.input input::-webkit-inner-spin-button { -webkit-appearance: none; }
.input:focus-within { border-color: var(--blue); }
.presets { display: flex; flex: 1; gap: 3px; padding: 4px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.presets button { flex: 1; min-width: 0; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; transition: background 0.2s, color 0.2s; }
.presets button:hover:not(:disabled) { background: var(--s3); color: var(--text); }
.presets button.on { background: var(--blue); color: #fff; }
.range { width: 100%; height: 26px; margin: 6px 0 0; background: transparent; -webkit-appearance: none; appearance: none; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(var(--blue), var(--blue)) 0 / var(--p, 50%) 100% no-repeat, var(--s3); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--s3); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--blue); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.range::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); }
.dl-msg { display: grid; place-items: center; min-height: 46px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--bg); color: var(--dim); font-size: 14px; font-weight: 600; text-align: center; transition: background 0.3s, color 0.3s; }
.dl-msg.win { color: var(--win); background: rgba(18, 184, 134, 0.1); }
.dl-msg.lose { color: var(--lose); background: rgba(240, 80, 110, 0.1); }
.wheel-wrap { position: relative; display: grid; place-items: center; padding: 32px; background: radial-gradient(closest-side, rgba(11, 108, 240, 0.12), transparent), var(--bg); }
.wheel { width: min(360px, 100%); height: auto; overflow: visible; }
.w-outer { fill: none; stroke: rgba(150, 175, 215, 0.08); stroke-width: 2; }
.w-track { fill: none; stroke: var(--s2); stroke-width: 20; }
.w-arc { fill: none; stroke: var(--blue); stroke-width: 20; transition: stroke-dasharray 0.45s var(--ease), stroke 0.3s; filter: drop-shadow(0 0 10px rgba(11, 108, 240, 0.55)); }
.w-core { fill: var(--s1); stroke: rgba(150, 175, 215, 0.1); stroke-width: 1.5; }
.w-pointer { fill: var(--blue-text); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); }
.ring { transform-origin: 160px 160px; }
.wheel-center { position: absolute; top: 50%; left: 50%; display: grid; justify-items: center; gap: 8px; transform: translate(-50%, -50%); pointer-events: none; }
.wheel-center .num { color: var(--muted); font-size: 22px; }
.wheel-wrap.win .w-arc { stroke: #12b886; filter: drop-shadow(0 0 12px rgba(18, 184, 134, 0.6)); }
.wheel-wrap.win .amz-lg { animation: pop 0.6s var(--ease); }

/* ---------- CTA ---------- */
.cta-row { display: grid; justify-items: center; margin-top: 24px; }
.cta { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 440px; min-height: 72px; padding: 12px 12px 12px 30px; border-radius: 20px; background: var(--blue); color: #fff; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 28px -10px rgba(11, 108, 240, 0.85); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.2s; }
.cta-shine { position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.3) 50%, transparent 62%); transform: translateX(-110%); animation: shine 3.4s var(--ease) infinite; }
.cta-text { display: grid; gap: 1px; text-align: left; }
.cta-text strong { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.cta-text small { color: #fff; opacity: 1; font-size: 13px; font-weight: 500; }
.cta-arrow { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: #fff; color: var(--blue); }
.cta-arrow .ic { width: 22px; height: 22px; stroke-width: 2.4; transition: transform 0.35s var(--ease); }
@media (hover: hover) {
  .cta:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 34px -12px rgba(11, 108, 240, 1); }
  .cta:hover .ic { transform: translate(3px, -3px); }
}
.cta:active { transform: scale(0.98); }

/* ---------- leaderboard ---------- */
.lb { padding-top: 96px; scroll-margin-top: 50px; }
.lb-banner { overflow: hidden; border-radius: var(--r-lg); border: 1px solid rgba(77, 149, 255, 0.22); background: radial-gradient(80% 90% at 50% 0%, rgba(11, 108, 240, 0.32), transparent 70%), linear-gradient(180deg, #10203b, var(--s1) 75%); }
.lb-banner-main { display: grid; justify-items: center; padding: 44px 24px 32px; text-align: center; }
.lb-pool { font-size: clamp(76px, 13vw, 144px); line-height: 0.9; letter-spacing: -0.01em; }
.lb-heading { margin-top: 4px; font-size: clamp(30px, 5vw, 46px); line-height: 1; text-transform: uppercase; }
.lb-heading span { color: var(--blue-text); }
.lb-sub { margin-top: 10px; color: var(--muted); font-size: 15px; }
.lb-timer { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(640px, 100%); margin-top: 28px; padding: 14px 14px 14px 20px; border-radius: var(--r); background: rgba(5, 8, 13, 0.6); border: 1px solid var(--line); text-align: left; }
.lb-timer-text { display: grid; }
.lb-timer-text strong { font-size: 15px; }
.lb-timer-text span { color: var(--muted); font-size: 13px; }
.countdown { display: flex; gap: 6px; }
.countdown div { display: grid; justify-items: center; min-width: 56px; padding: 6px 8px 5px; border-radius: 10px; background: var(--s2); border: 1px solid var(--line); transform: skewX(-8deg); }
.countdown div > * { transform: skewX(8deg); }
.countdown .num { font-size: 26px; line-height: 1; }
.countdown small { color: var(--dim); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.countdown .sec .num { color: var(--blue-text); }
.lb-banner-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 24px; background: rgba(5, 8, 13, 0.55); border-top: 1px solid var(--line); }
.lb-banner-foot p { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.lb-banner-foot strong { color: var(--text); }
.razed { color: var(--text); font-size: 24px; text-transform: uppercase; letter-spacing: 0.04em; }
.sep { width: 1px; height: 18px; background: var(--line-2); }

.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 14px; margin-top: 40px; }
.pod {
  --c: var(--silver);
  position: relative; display: grid; justify-items: center; padding: 34px 18px 18px; text-align: center;
  background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%), var(--s1);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  border-radius: var(--r) 0 var(--r) var(--r);
  box-shadow: inset 0 2px 0 var(--c);
  opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.podium.in .pod { opacity: 1; transform: none; }
.podium.in .p2 { transition-delay: 0.12s; }
.podium.in .p3 { transition-delay: 0.24s; }
.pod.p1 { --c: var(--gold); order: 2; padding-top: 48px; }
.pod.p2 { order: 1; }
.pod.p3 { --c: var(--bronze); order: 3; }
.ribbon { position: absolute; top: 0; left: 18px; display: grid; place-items: center; width: 42px; height: 46px; padding-bottom: 6px; background: var(--c); color: #0b0f17; font-size: 26px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.pod-name { font-size: 18px; font-weight: 650; }
.pod-name.empty { color: var(--dim); font-weight: 500; }
.pod-label { margin-top: 10px; color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.pod-wager { font-size: 24px; line-height: 1.1; }
.pod-prize { width: 100%; margin-top: 16px; padding: 10px 12px 8px; border-radius: var(--r-sm); background: var(--bg); color: var(--c); font-size: 36px; line-height: 1; }
.p1 .pod-prize { font-size: 46px; }

.lb-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); }
.lb-stats div { display: grid; justify-items: center; padding: 14px 10px; }
.lb-stats div + div { border-left: 1px solid var(--line); }
.lb-stats small { color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.lb-stats .num { font-size: 30px; line-height: 1.1; }

.lb-table { margin-top: 14px; overflow: hidden; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); }
.lb-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 90px; align-items: center; gap: 12px; height: 54px; padding: 0 22px; }
#lb-rows .lb-row, #lb-more .lb-row { border-top: 1px solid var(--line); transition: background 0.2s; }
#lb-rows .lb-row:nth-child(odd), #lb-more .lb-row:nth-child(odd) { background: rgba(255, 255, 255, 0.012); }
#lb-more { border-top: 1px dashed var(--line-2); }
.lb-prize.none { color: var(--dim); }
.lb-toggle { margin-top: 10px; }
.lb-head { height: 42px; color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.lb-row > :nth-child(3), .lb-row > :nth-child(4) { text-align: right; }
.lb-rank { color: var(--muted); font-size: 20px; }
.lb-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.lb-name.empty { color: var(--dim); font-weight: 400; }
.lb-wager { color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-prize { color: var(--gold); font-size: 20px; }
.lb-error { margin-top: 12px; padding: 14px; border-radius: var(--r-sm); background: rgba(240, 80, 110, 0.1); color: var(--lose); text-align: center; font-size: 14px; }

.rules { margin-top: 14px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); }
.rules summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; font-weight: 600; cursor: pointer; list-style: none; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa6bb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.3s var(--ease); }
.rules[open] summary::after { transform: rotate(180deg); }
.rules ol { display: grid; gap: 6px; margin: 0; padding: 0 22px 20px 42px; color: var(--muted); }
.rules strong { color: var(--text); }

/* ---------- wish list ---------- */
.wish { padding-top: 64px; scroll-margin-top: 60px; }
/* Wrapped like a present: red glowing frame with a white bow on top. */
.wish-card { --gift: #ff2d55; position: relative; margin-top: 30px; padding: 44px 26px 20px; border-radius: var(--r-lg); background: var(--s1); border: 2px solid var(--gift); box-shadow: 0 0 0 1px rgba(255, 45, 85, 0.25), 0 0 26px rgba(255, 45, 85, 0.45), 0 0 70px rgba(255, 45, 85, 0.18); }
.wish-bow { position: absolute; top: -40px; left: 50%; width: 112px; transform: translateX(-50%); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)); }
.wish-head { margin-bottom: 20px; text-align: center; }
.wish-head h2 { font-size: 34px; line-height: 1; text-transform: uppercase; }
.wish-head p { margin-top: 6px; color: var(--muted); }
.wish-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.wish-input { position: relative; display: flex; align-items: center; height: 50px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); transition: border-color 0.2s, box-shadow 0.2s; }
.wish-input:focus-within { border-color: var(--blue); }
.wish-input input { flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; font-weight: 600; outline: none; }
.wish-input input::placeholder, .wish-card textarea::placeholder { color: var(--dim); font-weight: 400; }
.wish-status { min-height: 0; margin-top: 12px; color: var(--dim); font-size: 14px; font-weight: 600; }
.wish-status:empty { display: none; }
.wish-status.found { color: var(--win); }
.wish-status.error { color: var(--lose); }
.wish-card textarea { display: block; width: 100%; min-height: 102px; padding: 10px 14px; resize: vertical; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-size: 16px; line-height: 1.5; transition: border-color 0.2s, opacity 0.2s; }
.wish-card textarea:focus { outline: none; border-color: var(--blue); }
.wish-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.wish-count { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.wish-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.wish-card.sent .wish-grid { opacity: 0.6; }

/* ---------- floating jump ---------- */
.jump { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 999px; background: rgba(21, 29, 43, 0.92); border: 1px solid var(--line-2); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity 0.35s, transform 0.45s var(--ease); }
.jump .ic:first-child { color: var(--gold); }
.jump .jump-pool { color: var(--gold); font-size: 19px; }
.jump .ic:last-child { width: 16px; height: 16px; color: var(--muted); }
.jump:hover { background: var(--s3); }
.jump.away { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* ---------- footer ---------- */
.footer { margin-top: 96px; padding: 40px 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #070a10; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.footer-top .wordmark { font-size: 26px; }
.footer-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-link:hover { color: var(--text); }
.footer-link .ic { width: 15px; height: 15px; }
.rg { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-sm); background: var(--s1); border: 1px solid var(--line); }
.rg-badge { flex: none; padding: 2px 8px; border-radius: 7px; background: rgba(240, 80, 110, 0.14); color: var(--lose); font-size: 17px; }
.rg p { color: var(--muted); font-size: 14px; }
.rg a { color: var(--text); }
.fine { margin-top: 14px; color: var(--dim); font-size: 12px; line-height: 1.6; max-width: 90ch; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; top: 72px; z-index: 120; padding: 10px 18px; border-radius: 999px; background: var(--s3); border: 1px solid var(--line-2); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7); font-size: 14px; font-weight: 600; opacity: 0; transform: translate(-50%, -8px); pointer-events: none; transition: opacity 0.25s, transform 0.4s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes pop { 0% { transform: scale(0.9); } 55% { transform: scale(1.08); } 100% { transform: none; } }
@keyframes shine { 0%, 60% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
@keyframes hop { 0% { transform: scaleX(-1); } 40% { transform: scaleX(-1) translateY(-22px) scale(1.04); } 100% { transform: scaleX(-1); } }
@keyframes squash { 30% { transform: scaleX(-1) scale(1.3, 0.55); } 100% { transform: scaleX(-1) scale(1.25, 0.35) translateY(30px); } }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -16px); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .game, .deals { grid-template-columns: 1fr; }
  .chicken .panel { order: 2; }
  .deals .wheel-wrap { order: -1; padding: 22px 16px; }
  .stage { --lane: 86px; height: 360px; }
  .lawn { flex-basis: 112px; }
  .tr.a { width: 76px; left: 0; top: -14px; }
  .tr.b { width: 50px; left: 56px; top: 92px; }
  .tr.c { width: 80px; left: -8px; top: 172px; }
  .tr.d { width: 54px; left: 50px; top: 282px; }
  .curb { flex-basis: 34px; }
  .hole { width: 62px; height: 62px; }
  .hole span { font-size: 15px; }
  .barrier { width: 66px; top: calc(50% - 72px); }
  .car { width: 42px; margin-left: -21px; }
  .chick { width: 76px; height: 76px; margin-top: -52px; }
  .stage-result { top: auto; bottom: 14px; padding: 12px 20px 14px; }
  .stage-result strong { font-size: 32px; }
  .wheel { width: min(290px, 78vw); }
  .amz-lg { width: 104px; height: 76px; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .nav-lb span { display: none; }
  .nav-lb { width: 42px; height: 42px; padding: 0; }
  .code-chip { height: 42px; padding: 0 14px; font-size: 14px; }
  .presets { padding: 3px; }
  .presets button { min-height: 38px; }
  .wordmark { font-size: 26px; display: inline-flex; align-items: center; min-height: 44px; }
  .stage { --lane: 80px; height: 290px; }
  .tr.c, .tr.d { display: none; }
  .chicken .ch-buttons { order: -1; }
  .chicken .panel-foot { display: none; }
  .ch-stats dd { font-size: 20px; }
  .game-section { padding-top: 18px; }
  .game-section + .game-section { padding-top: 48px; }
  .game-hint { display: none; }
  .panel, .deals-panel { padding: 16px; gap: 14px; }
  .input { flex-basis: 76px; padding: 0 10px; }
  .presets button { font-size: 12px; }
  .cta-row { margin-top: 16px; }
  .cta { width: 100%; min-width: 0; min-height: 68px; padding: 10px 10px 10px 20px; border-radius: 18px; }
  .cta-text strong { font-size: 16px; }
  .cta-text small { font-size: 12px; }
  .cta-arrow { width: 46px; height: 46px; }
  .lb { padding-top: 72px; }
  .lb-banner-main { padding: 32px 16px 20px; }
  .lb-timer { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; text-align: center; }
  .countdown div { flex: 1; min-width: 0; }
  .lb-banner-foot { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px 16px; }
  .lb-banner-foot p { justify-content: center; }
  .podium { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .pod { grid-template-columns: 1fr auto; justify-items: start; align-items: center; column-gap: 12px; padding: 18px 16px 16px 72px; text-align: left; }
  .pod.p1 { order: 1; padding-top: 18px; }
  .pod.p2 { order: 2; }
  .ribbon { left: 14px; width: 40px; height: 44px; font-size: 24px; }
  .pod-name { grid-column: 1; }
  .pod-label { display: none; }
  .pod-wager { grid-column: 1; font-size: 18px; color: var(--muted); }
  .pod-prize, .p1 .pod-prize { grid-column: 2; grid-row: 1 / span 2; width: auto; margin: 0; padding: 10px 12px 8px; font-size: 30px; }
  .lb-stats .num { font-size: 24px; }
  .lb-row { grid-template-columns: 30px minmax(0, 1fr) auto 58px; gap: 10px; height: 50px; padding: 0 14px; }
  .lb-rank, .lb-prize { font-size: 18px; }
  .rules ol { padding-left: 34px; }
  .wish { padding-top: 48px; }
  .wish-card { padding: 42px 16px 16px; }
  .wish-bow { width: 96px; top: -34px; }
  /* Mobile: neon yellow Razed buttons so nobody misses them. */
  .cta { background: #e8ff1a; color: #0a0e15; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 0 1px rgba(232, 255, 26, 0.4), 0 14px 32px -10px rgba(232, 255, 26, 0.65); }
  .cta-text small { color: #1d2433; }
  .cta-arrow { background: #0a0e15; color: #e8ff1a; }
  .cta-shine { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%); }
  .wish-head h2 { font-size: 30px; }
  .wish-grid { grid-template-columns: 1fr; gap: 14px; }
  .wish-foot .btn { flex: 1; height: 48px; }
  .gate-title { font-size: 48px; }
  .jump { left: 50%; right: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); }
  .jump.away { transform: translate(-50%, 16px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .pod { opacity: 1; transform: none; }
}
