/* Gifts: dark base, two green tiles, dots as the recurring motif (logo, sparklines, draw clock, bonus meter). */
:root {
  --bg: #f3f7fc;
  --panel: #ffffff;
  --panel-2: #edf2f8;
  --line: #dbe3ee;
  --text: #0f1d2e;
  --muted: #5a6a7d;
  --faint: #9aa8b8;
  --mint: #9af5d3;
  --green: #1fcb8b;
  --good: #0c9a63;
  --warn: #b7791f;
  --bad: #d14343;
  --ink: #07140f;
  --shadow: 0 1px 2px rgb(16 40 72 / 0.05), 0 8px 24px -14px rgb(16 40 72 / 0.18);
  --veil: 243 247 252;
  color-scheme: light;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;
  --wrap: 1160px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 19px; }
.mono { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace; font-size: 0.92em; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.good { color: var(--good); }
.err { color: var(--bad); }
.num { text-align: right; }
[hidden] { display: none !important; }

/* ── buttons and chips ─────────────────────────────────────────────── */
.btn { font: inherit; font-size: 14px; font-weight: 500; border-radius: 999px; padding: 8px 16px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-light { background: var(--text); color: #fff; }
.btn-light:hover { background: #22395a; }
.btn-ghost { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-dark { background: var(--ink); color: var(--mint); }
.chip, .chip-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.chip-link:hover { color: var(--text); }
.chip.live { color: var(--good); }
.chip.warn { color: var(--warn); }
.pill { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.pill.ready { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--good); }
.pill.buying { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pill.jackpot { background: var(--mint); color: var(--ink); }

/* ── test-data bar ─────────────────────────────────────────────────── */
.demo-bar { background: #ffd978; color: #3a2a04; text-align: center; font-size: 13px; font-weight: 500; padding: 7px 16px; }

/* ── header ────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 10; max-width: var(--wrap); margin: 0 auto; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; background: linear-gradient(var(--bg) 70%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.mark { width: 22px; height: 22px; flex: none; }
.pill-nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / 0.72); border: 1px solid rgb(255 255 255 / 0.9); box-shadow: 0 6px 20px -10px rgb(16 40 72 / 0.35); backdrop-filter: blur(10px); }
.pill-nav a { font-size: 14px; font-weight: 500; color: #34465c; text-decoration: none; padding: 6px 13px; border-radius: 999px; }
.pill-nav a:hover { color: var(--text); background: #e3eefb; }
.top-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.who { color: var(--muted); }

/* ── page ──────────────────────────────────────────────────────────── */
main { max-width: var(--wrap); margin: 0 auto; padding: 8px 20px 40px; }
.status { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.dot.on { background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 18%, transparent); }
.dot.slow { background: var(--warn); }
h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.035em; }
.lede { margin: 10px 0 0; max-width: 56ch; color: var(--muted); }

/* ── hero tiles ────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { position: relative; border-radius: var(--r-lg); padding: 20px 22px 22px; min-height: 196px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.tile-dark { background: #e4f0fe; --ink: #0d2a4d; color: var(--ink); }
.tile-mint { background: #9ccdfb; --ink: #0a2647; color: var(--ink); }
.tile-green { background: #2f7de1; --ink: #ffffff; color: var(--ink); }
.tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label { font-size: 13px; color: var(--muted); }
.tile-dark .label, .tile-mint .label, .tile-green .label { color: color-mix(in srgb, var(--ink) 72%, transparent); }
.delta { font-size: 14px; font-weight: 500; }
.tile-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tile-foot-col { flex-direction: column; align-items: flex-start; }
.figure { font-size: clamp(34px, 3.6vw, 46px); font-weight: 600; line-height: 1; letter-spacing: -0.035em; white-space: nowrap; }
.figure-md { font-size: clamp(34px, 3.4vw, 44px); margin: 6px 0 6px; }
.figure-clock { font-variant-numeric: tabular-nums; }
.sub { margin-top: 8px; font-size: 13px; color: var(--muted); }
.tile-dark .sub, .tile-mint .sub, .tile-green .sub { color: color-mix(in srgb, var(--ink) 70%, transparent); }

/* dotted sparkline */
.spark { width: 46%; max-width: 170px; height: 58px; flex: none; overflow: visible; }
.spark .fill circle { fill: #4f8fd6; opacity: 0.32; }
.spark .line circle { fill: var(--ink); }
.spark .end { fill: #2f7de1; }

/* the draw clock: one dot per slice of the round, filled as time passes */
.clock { display: grid; grid-template-columns: repeat(10, 7px); gap: 5px; flex: none; }
.clock i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.clock i.past { background: var(--ink); }
.clock i.now { background: var(--ink); opacity: 0.55; }

.prize-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.prize-chips span { font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.prize-chips span.jackpot { background: #fff; color: #174a8c; }

/* ── panels ────────────────────────────────────────────────────────── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; margin-top: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }


/* ── tables ────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 0 -8px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { font-size: 12.5px; font-weight: 500; color: var(--muted); text-align: left; padding: 8px; }
.table td { padding: 12px 8px; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: middle; }
.table th.num, .table td.num { text-align: right; }
.gift-cell { display: flex; align-items: center; gap: 12px; }
.gift-cell small { display: block; color: var(--muted); font-size: 12.5px; }

/* ── rounds ────────────────────────────────────────────────────────── */
.section { margin-top: 44px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 60ch; }
.rounds { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 14px; }
.round { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.more { display: block; margin: 18px auto 0; }

/* ── checker ───────────────────────────────────────────────────────── */
.search { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 16px; }
.search:focus-within { border-color: var(--faint); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.6; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; padding: 8px 0; outline: none; }
.check-result { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.check-result .check-result .stat small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.meter { display: flex; gap: 4px; margin-top: 10px; }
.meter i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.meter i.on { background: var(--good); }
.check-more { margin-top: 18px; display: grid; gap: 8px; }
.check-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ── your gifts ────────────────────────────────────────────────────── */
.gifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 14px; }
.gift { border-radius: var(--r-md); padding: 16px; background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.gift-top { display: flex; align-items: center; gap: 12px; }
.gift-top b { display: block; font-size: 16px; }
.gift-top small { color: var(--muted); font-size: 12.5px; }
.code { font-size: 18px; letter-spacing: 0.06em; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ink); color: var(--mint); text-align: center; user-select: all; }

/* ── dialog ────────────────────────────────────────────────────────── */
.sheet { width: min(760px, calc(100vw - 32px)); max-height: 82vh; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.sheet::backdrop { background: rgb(15 32 56 / 0.35); backdrop-filter: blur(3px); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet-head form { margin: 0; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 8px; gap: 8px; }

/* ── footer ────────────────────────────────────────────────────────── */
.foot { max-width: var(--wrap); margin: 40px auto 0; padding: 32px 20px 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; max-width: 46ch; }
.foot-brand p { margin: 0; }
.foot-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }

/* ── responsive ────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .rounds { grid-template-columns: repeat(2, 1fr); }
  .check-result { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; }
  .pill-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  }
@media (max-width: 560px) {
  main { padding-top: 12px; }
    .rounds { grid-template-columns: 1fr; }
  .who { display: none; }
  .panel { padding: 18px; }
  .table .hide-sm { display: none; }
}

/* ══ Gift cards ═══════════════════════════════════════════════════════
   Our own card faces: brand colors and name, a dot pattern and a ribbon. No brand logos. */
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-latin.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
h1 { font-weight: 650; font-size: clamp(40px, 5.6vw, 64px); letter-spacing: -0.045em; max-width: 13ch; }
h2 { font-weight: 600; font-size: 21px; letter-spacing: -0.025em; }
.figure { font-weight: 600; letter-spacing: -0.045em; }




.intro-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* the shelf */
.shelf { display: flex; gap: 18px; overflow-x: auto; padding: 22px 20px 18px; margin: -18px -20px 0; scroll-padding-inline: 20px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.shelf-item { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.shelf-item .gcard { --w: 220px; transition: transform 0.25s; }
.shelf-item:hover .gcard { transform: translateY(-4px) rotate(-1.5deg); }

/* cards in the winners table and round cards */
.gift-cell .gcard { --w: 54px; }

/* your gift cards: a card that flips to show the code */
.gifts { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.gift { align-items: stretch; }
.flip { perspective: 900px; position: relative; }
.flip-inner { position: relative; transition: transform 0.7s cubic-bezier(.3,1.4,.5,1); transform-style: preserve-3d; }
.flip .gcard { --w: 100%; width: 100%; backface-visibility: hidden; }
.flip-back { position: absolute; inset: 0; transform: rotateY(180deg); backface-visibility: hidden; border-radius: 16px; background: var(--ink); color: var(--mint); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 14px; text-align: center; border: 1px solid #1f3a2f; }
.flip-back .code { background: none; font-size: clamp(16px, 2vw, 21px); padding: 0; }
.flip-back small { color: #6fb79a; font-size: 12px; }
.flip.open .flip-inner { transform: rotateY(180deg); }
.gift-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.gift-meta b { font-size: 15px; }
.gift-meta small { display: block; color: var(--muted); font-size: 12.5px; }

/* confetti, on unwrap only */
.confetti { position: absolute; left: 50%; top: 45%; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; z-index: 5; animation: pop 1.1s cubic-bezier(.15,.7,.3,1) forwards; }
.confetti:nth-child(3n) { border-radius: 50%; }
@keyframes pop { 0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(1); opacity: 0; } }

@media (max-width: 860px) {
    }

/* ══ The stage: the full-width hero picture, copy centred in its dark middle ══ */
.stage {
  position: relative; margin-top: -76px; padding: 150px 20px 110px; min-height: min(82vh, 760px);
  display: grid; place-items: center; text-align: center; isolation: isolate; overflow: hidden;
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: #2f8be6 image-set(url("/assets/hero-sky.webp") type("image/webp"), url("/assets/hero-sky.jpg") type("image/jpeg")) center top / cover no-repeat;
  transition: filter 0.6s;
}
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 40% 46% at 50% 46%, rgb(8 44 102 / 0.3), transparent 72%), linear-gradient(transparent 58%, var(--bg));
}
.stage-copy { max-width: 640px; }
.stage .status { justify-content: center; }
.stage h1 { margin: 0 auto; max-width: 12ch; font-size: clamp(44px, 6.4vw, 78px); color: #fff; text-shadow: 0 2px 18px rgb(6 40 95 / 0.55); }
.stage .lede { margin: 16px auto 0; color: #f1f7ff; text-shadow: 0 1px 10px rgb(6 40 95 / 0.6); font-size: 17px; max-width: 48ch; }
.stage .intro-chips { justify-content: center; margin-top: 26px; align-items: center; }
.stage .btn-light { text-decoration: none; padding: 10px 20px; }
.stage .chip, .stage .chip-link { background: rgb(8 30 66 / 0.45); border-color: rgb(255 255 255 / 0.22); color: #eaf3ff; backdrop-filter: blur(6px); }
.stage .status { color: #eaf3ff; text-shadow: 0 1px 8px rgb(6 40 95 / 0.6); }
.stage .btn-light { background: #fff; color: var(--text); }
.stage .btn-light:hover { background: #eaf3ff; }
.top { background: transparent; max-width: none; padding-inline: max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); }
.top::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.25s;
  background: linear-gradient(rgb(var(--veil) / 0.9), rgb(var(--veil) / 0.55) 55%, transparent); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.top.scrolled::before { opacity: 1; }
.top:not(.scrolled) .brand { color: #fff; text-shadow: 0 1px 8px rgb(6 40 95 / 0.5); }
.top:not(.scrolled) .who { color: #eaf3ff; }
.top:not(.scrolled) .btn-light { background: #fff; color: var(--text); }
@media (max-width: 860px) {
  .stage { min-height: 560px; padding: 130px 20px 80px; }
  .stage::before { background-position: center; opacity: 0.75; }
}

/* ══ Gift cards: the brand's real card art or logo (Bitrefill catalog images), on the brand's color ══ */
.gcard {
  --w: 240px; --bg: #1f2422; --glow: transparent;
  position: relative; width: var(--w); aspect-ratio: 1.586; border-radius: calc(var(--w) * 0.065); flex: none; overflow: hidden;
  background: var(--bg); display: grid; place-items: center; container-type: inline-size;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1) inset, 0 10px 22px -14px rgb(16 40 72 / 0.45), 0 0 14px -6px var(--glow);
}
.gcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgb(255 255 255 / 0.16), transparent 38%, transparent 70%, rgb(255 255 255 / 0.06)); pointer-events: none; }
.gcard img { display: block; }
.gcard.k-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcard.k-logo img { width: 54%; max-height: 46%; object-fit: contain; }
.gcard-name { font-size: 11cqw; font-weight: 750; letter-spacing: -0.03em; color: var(--ink); }
.gcard-value { position: absolute; right: 8%; bottom: 10%; z-index: 1; display: inline-flex; align-items: center; height: 15%; min-height: 20px; padding: 0 0.7em; font-size: max(12px, 6.4cqw); font-weight: 600; line-height: 1; border-radius: 99px; background: rgb(0 0 0 / 0.66); color: #fff; backdrop-filter: blur(4px); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.gcard.sm { --w: 54px; border-radius: 6px; }
.gcard.xs { --w: 34px; border-radius: 5px; }
.gcard.sm .gcard-value, .gcard.xs .gcard-value { display: none; }
.gcard.xs.k-logo img { width: 64%; }
.b-roblox { --bg: #000018; --glow: #6f7a8f; }
.b-steam { --bg: #191817; --glow: #2d73ff; }
.b-playstation { --bg: #00439c; --glow: #1f6bff; }
.b-xbox { --bg: #0f7c10; --glow: #3bd23b; }
.b-walmart { --bg: #0072dd; --glow: #ffc220; }
.b-bestbuy { --bg: #0038b5; --glow: #fff200; }
.b-openai { --bg: #0b0b0b; --glow: #bdbdbd; }
.b-claude { --bg: #e7e6de; --glow: #d97757; }
.b-ppq { --bg: #1f2023; --glow: #ff7a1a; }
.b-doordash { --bg: #f44322; --glow: #ff7a5c; }
.b-starbucks { --bg: #f6f3ec; --glow: #00704a; }
.b-ubereats { --bg: #3fc165; --glow: #3fc165; }
.b-tacobell { --bg: #f5effb; --glow: #702082; }
.b-gamestop { --bg: #ffffff; --glow: #e3202d; }
.b-target { --bg: #ffffff; --glow: #cc0000; }
.b-twitch { --bg: #9246ff; --glow: #b98aff; }
.b-netflix { --bg: #000000; --glow: #e50914; }
.b-any { --bg: linear-gradient(135deg, #9af5d3, #1fcb8b); --glow: #1fcb8b; }
.gcard.b-starbucks.k-logo img, .gcard.b-tacobell.k-logo img, .gcard.b-target.k-logo img { max-height: 62%; }
.shelf-item:hover .gcard { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18) inset, 0 14px 26px -14px rgb(16 40 72 / 0.5), 0 0 18px -4px var(--glow); }
.gcard.sm, .gcard.xs { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1) inset, 0 5px 12px -7px rgb(16 40 72 / 0.45), 0 0 12px -6px var(--glow); }


/* light theme: soft lift on surfaces */
.panel, .stat, .round, .tile { box-shadow: var(--shadow); }
.mark { color: var(--text); }
.top:not(.scrolled) .mark { color: #fff; }
.table td { border-top-color: var(--line); }

/* ── theme toggle ──────────────────────────────────────────────────── */
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
  background: rgb(255 255 255 / 0.72); border: 1px solid rgb(255 255 255 / 0.9); color: #34465c; backdrop-filter: blur(10px); }
.theme-toggle:hover { color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ══ Dark theme: the night sky ═════════════════════════════════════════ */
[data-theme="dark"] {
  --bg: #0a1222;
  --panel: #111c30;
  --panel-2: #18253d;
  --line: #22324e;
  --text: #e8eef8;
  --muted: #93a3bb;
  --faint: #5d6d88;
  --good: #3ee6a4;
  --warn: #f2c66d;
  --bad: #ff8a7a;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 28px -14px rgb(0 0 0 / 0.65);
  --veil: 10 18 34;
  color-scheme: dark;
}
[data-theme="dark"] .stage::before { background: #0a1430 image-set(url("/assets/hero-night.webp") type("image/webp"), url("/assets/hero-night.jpg") type("image/jpeg")) center top / cover no-repeat; }
[data-theme="dark"] .stage::after { background: radial-gradient(ellipse 40% 46% at 50% 46%, rgb(4 10 30 / 0.4), transparent 72%), linear-gradient(transparent 58%, var(--bg)); }
[data-theme="dark"] .pill-nav, [data-theme="dark"] .theme-toggle { background: rgb(17 28 48 / 0.62); border-color: rgb(255 255 255 / 0.12); }
[data-theme="dark"] .pill-nav a, [data-theme="dark"] .theme-toggle { color: #c9d6ea; }
[data-theme="dark"] .pill-nav a:hover { background: rgb(255 255 255 / 0.08); color: #fff; }
[data-theme="dark"] .btn-light { background: #e8eef8; color: #0a1222; }
[data-theme="dark"] .btn-light:hover { background: #fff; }
[data-theme="dark"] .tile-dark { background: #14284a; --ink: #e8eef8; }
[data-theme="dark"] .tile-mint { background: #1d4a86; --ink: #ffffff; }
[data-theme="dark"] .tile-green { background: #2f7de1; --ink: #ffffff; }
[data-theme="dark"] .spark .fill circle { fill: #8bb8ec; }
[data-theme="dark"] .spark .end { fill: #6fb2ff; }
[data-theme="dark"] .demo-bar { background: #f2c66d; }
[data-theme="dark"] .sheet::backdrop { background: rgb(2 6 16 / 0.7); }
[data-theme="dark"] .gcard { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1) inset, 0 10px 22px -14px rgb(0 0 0 / 0.8), 0 0 14px -6px var(--glow); }

/* ══ Payouts: paid out to holders, and what is in the pot ═════════════ */
.payouts { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin-top: 22px; }
.payouts .panel { margin-top: 0; display: flex; flex-direction: column; gap: 16px; }
.pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pay-head .figure { margin-top: 6px; }
.figure-sm { font-size: clamp(28px, 2.8vw, 36px); }
.pay-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.pay-chart { width: 100%; height: 96px; margin-top: auto; }
.pay-chart .off { fill: var(--panel-2); }
.pay-chart .on { fill: #2f7de1; }
.pay-chart .on.jp { fill: #1fb57e; }
.stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--panel-2); gap: 3px; }
.stack i { display: block; height: 100%; min-width: 6px; }
.stack .spend, .sw.spend { background: #2f7de1; }
.stack .buying, .sw.buying { background: #f2b84b; }
.stack .reserve, .sw.reserve { background: #a9bdd6; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.legend li b { margin-left: auto; color: var(--text); font-weight: 600; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.pay-pot .pay-note { margin-top: auto; }

/* ══ Six facts ═════════════════════════════════════════════════════════ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-height: 132px; }
.stat .label { font-size: 13px; }
.stat b { font-size: 28px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; margin-top: 14px; }
.stat small { font-size: 13px; color: var(--muted); }

/* ══ On-chain buttons, wallet links, copy ══════════════════════════════ */
.txs { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tx-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; line-height: 1; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; white-space: nowrap; box-shadow: 0 1px 1px rgb(16 40 72 / 0.05); }
.tx-btn:hover { border-color: #2f7de1; color: #2f7de1; }
.tx-btn svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wallet { display: inline-flex; align-items: center; gap: 4px; }
.wallet-link { font: inherit; font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace; font-size: 13px; padding: 3px 7px; margin-left: -7px; border: 0; border-radius: 6px; background: none; color: var(--text); cursor: pointer; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.wallet-link:hover { background: var(--panel-2); text-decoration-color: currentColor; }
.copy { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.copy:hover { background: var(--panel-2); color: var(--text); }
.copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.copy.done { color: var(--good); }
.copy.done svg { display: none; }
.copy.done::after { content: ""; width: 9px; height: 5px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }

/* shelf cards are buttons */
.shelf-item { appearance: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 16px; }
.shelf-item:focus-visible { outline-offset: 4px; }

/* ══ Pop-up content ════════════════════════════════════════════════════ */
.sheet { width: min(820px, calc(100vw - 32px)); }
.sheet-h { font-size: 15px; font-weight: 600; margin: 20px 0 10px; }
.win-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.win-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); flex-wrap: wrap; }
.win-list li small { display: block; color: var(--muted); font-size: 12.5px; }
.win-list .txs { margin-left: auto; }

/* toggle: explicit so a default button style can never show through */
.theme-toggle { appearance: none; -webkit-appearance: none; flex: none; }

@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .payouts { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

[data-theme="dark"] .tx-btn { background: var(--panel-2); box-shadow: none; }
[data-theme="dark"] .tx-btn:hover { border-color: #6fb2ff; color: #6fb2ff; }
[data-theme="dark"] .pay-chart .on, [data-theme="dark"] .mini-dots i.on, [data-theme="dark"] .mini-bars i:last-child, [data-theme="dark"] .stack .spend, [data-theme="dark"] .sw.spend { fill: #4b95f0; background: #4b95f0; }
[data-theme="dark"] .stack .reserve, [data-theme="dark"] .sw.reserve { background: #4a5f7f; }

/* ══ Night hero: a longer fade into the page ═════════════════════════ */
[data-theme="dark"] .stage::after {
  background: radial-gradient(ellipse 40% 46% at 50% 46%, rgb(4 10 30 / 0.4), transparent 72%),
    linear-gradient(transparent 26%, color-mix(in srgb, var(--bg) 30%, transparent) 50%, color-mix(in srgb, var(--bg) 72%, transparent) 72%, var(--bg) 94%);
}
[data-theme="dark"] #connect { background: rgb(17 28 48 / 0.62); color: #e8eef8; border-color: rgb(255 255 255 / 0.14); backdrop-filter: blur(10px); }
[data-theme="dark"] #connect:hover { background: rgb(32 48 78 / 0.85); color: #fff; }

/* ══ Prize shelf: fades at an edge that still has cards beyond it ═════ */
@property --fl { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fr { syntax: "<length>"; inherits: false; initial-value: 96px; }
.shelf {
  transition: --fl 0.25s, --fr 0.25s;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
}

/* ══ Six facts: figure bottom left, picture bottom right ══════════════ */
.stats .stat { position: relative; overflow: hidden; min-height: 196px; padding: 20px 22px; gap: 0; }
.stats .stat .label { position: relative; z-index: 1; font-size: 13.5px; color: var(--muted); }
.stat-copy { position: relative; z-index: 1; margin-top: auto; max-width: 56%; }
.stats .stat-copy b { display: block; margin: 0; font-size: 36px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.stats .stat-copy small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.stat-viz { position: absolute; right: 22px; bottom: 22px; display: flex; align-items: flex-end; }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 84px; }
.mini-bars i { width: 9px; border-radius: 3px; background: #b5d3f5; }
.mini-bars i:last-child { background: #2f7de1; }
.mini-dots { display: grid; grid-template-columns: repeat(4, 15px); gap: 8px; }
.mini-dots i { width: 15px; height: 15px; border-radius: 50%; background: var(--panel-2); }
.mini-dots i.on { background: #2f7de1; }
.ring { width: 92px; height: 92px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--panel-2); stroke-width: 4.5; }
.ring .arc { stroke: #1fb57e; stroke-linecap: round; }
.tier-bars { display: flex; gap: 12px; height: 92px; }
.tb { display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 6px; height: 100%; }
.tb i { align-self: end; width: 24px; border-radius: 6px; background: #b5d3f5; }
.tb.jp i { background: #1fb57e; }
.tb em { font-style: normal; font-size: 11.5px; color: var(--muted); }
/* the biggest and most-won cards lean in from the right edge, a quarter of them cut off */
.stat-card .stat-viz { right: -58px; bottom: -30px; transform: rotate(-11deg); }
.stat-card .gcard { --w: 224px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12) inset, 0 18px 36px -18px rgb(16 40 72 / 0.55), 0 0 26px -8px var(--glow); }
.stat-card:hover .stat-viz { transform: rotate(-8deg) translateY(-4px); }
.stat-card .stat-viz { transition: transform 0.3s; }

/* ══ Past draws ══════════════════════════════════════════════════════ */
.round.is-jackpot { border-color: color-mix(in srgb, #1fb57e 55%, var(--line)); background: linear-gradient(color-mix(in srgb, var(--mint) 30%, var(--panel)), var(--panel) 130px); }
.round-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.round-head > div { display: flex; flex-direction: column; }
.round-head h3 { font-size: 17px; }
.round-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border: 1px solid var(--line); border-radius: 12px; }
.round-facts div { padding: 8px 12px; min-width: 0; }
.round-facts div + div { border-left: 1px solid var(--line); }
.round-facts dt { font-size: 12px; color: var(--muted); }
.round-facts dd { margin: 1px 0 0; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.round-prizes { list-style: none; margin: 0 -8px; padding: 0; display: grid; gap: 2px; }
.round-prizes li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.round-prizes li:hover { background: var(--panel-2); }
.rp-card { appearance: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 7px; line-height: 0; }
.rp-card .gcard { --w: 60px; }
.rp-who { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.rp-who b { font-size: 14px; font-weight: 600; }
.rp-who .wallet-link { font-size: 12.5px; padding: 1px 7px; color: var(--muted); }
.rp-who .copy { width: 22px; height: 22px; }
.rp-val { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rp-val b { font-size: 15px; font-weight: 600; }
.state { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state.ok { color: var(--good); }
.state.wait { color: var(--warn); }
.round-empty { margin: 0; }
.round-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
button.tx-btn { font-family: inherit; cursor: pointer; }
.round-chain { margin-left: auto; }
.round-chain summary { list-style: none; cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 6px 4px; border-radius: 6px; }
.round-chain summary::-webkit-details-marker { display: none; }
.round-chain summary::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 2px 2px 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.round-chain[open] summary::after { transform: rotate(-135deg); margin-bottom: -1px; }
.round-chain summary:hover { color: var(--text); }
.round-chain[open] { flex-basis: 100%; margin-left: 0; }
.round-chain .txs { justify-content: flex-start; margin-top: 4px; }

/* ══ Pop-up ══════════════════════════════════════════════════════════ */
.sheet { padding: 18px 22px 24px; }
.sheet-head { margin-bottom: 14px; }
.sheet-head h2 { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.sheet-x { width: 34px; height: 34px; display: grid; place-items: center; margin-right: -8px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.sheet-x:hover { color: var(--text); }
.sheet-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sheet-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; min-height: 136px; padding: 24px; border-radius: 18px; background: linear-gradient(135deg, #e7f1fe, #cde2fb); }
.hero-id { display: flex; align-items: center; gap: 16px; }
.identicon { flex: none; width: 68px; height: 68px; padding: 7px; border-radius: 18px; background: var(--panel); box-shadow: 0 8px 20px -12px rgb(16 40 72 / 0.45); }
.hero-addr { display: block; font-size: 21px; font-weight: 600; }
.hero-links { display: flex; gap: 6px; margin-top: 8px; }
.hero-fig { position: relative; z-index: 1; display: flex; flex-direction: column; }
.hero-fig .label { font-size: 13px; color: var(--muted); }
.hero-fig b { font-size: 44px; font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.hero-fig small { font-size: 13px; color: var(--muted); }
.sheet-hero:not(.hero-brand) .hero-fig { align-items: flex-end; text-align: right; }
.hero-brand { min-height: 176px; background: radial-gradient(circle at 82% 50%, color-mix(in srgb, var(--glow) 34%, transparent), transparent 58%), linear-gradient(135deg, #e7f1fe, #cde2fb); }
.hero-brand .hero-fig { max-width: 52%; }
.hero-brand .hero-fig .label { font-size: 15px; font-weight: 600; color: var(--text); }
.hero-card { position: absolute; right: -44px; top: 50%; transform: translateY(-50%) rotate(-9deg); }
.hero-card .gcard { --w: 270px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12) inset, 0 20px 40px -18px rgb(16 40 72 / 0.6), 0 0 30px -8px var(--glow); }
.fact-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 14px 0 0; border: 1px solid var(--line); border-radius: 14px; }
.fact-row div { padding: 12px 16px; min-width: 0; }
.fact-row div + div { border-left: 1px solid var(--line); }
.fact-row dt { font-size: 12.5px; color: var(--muted); }
.fact-row dd { margin: 2px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.fact-row small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.fact-row .meter { margin-top: 6px; }
.fact-row + .pager { margin-top: 16px; }
@media (max-width: 560px) {
  .fact-row { grid-auto-flow: row; }
  .fact-row div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero-card .gcard { --w: 190px; }
  .hero-card { right: -60px; }
  .hero-fig b { font-size: 36px; }
  .sheet-hero:not(.hero-brand) .hero-fig { align-items: flex-start; text-align: left; }
}

[data-theme="dark"] .sheet-hero { background: linear-gradient(135deg, #152a4c, #1c3a66); }
[data-theme="dark"] .hero-brand { background: radial-gradient(circle at 82% 50%, color-mix(in srgb, var(--glow) 30%, transparent), transparent 58%), linear-gradient(135deg, #152a4c, #1c3a66); }
[data-theme="dark"] .hero-fig .label, [data-theme="dark"] .hero-fig small { color: #b9cbe4; }
[data-theme="dark"] .identicon { background: #0e1a30; }
[data-theme="dark"] .round.is-jackpot { background: linear-gradient(color-mix(in srgb, #1fb57e 14%, var(--panel)), var(--panel) 130px); }
[data-theme="dark"] .mini-bars i, [data-theme="dark"] .tb i { background: #2b4a75; }
[data-theme="dark"] .mini-bars i:last-child, [data-theme="dark"] .mini-dots i.on { background: #4b95f0; }
[data-theme="dark"] .tb.jp i { background: #1fb57e; }

/* ══ Check button, claim states ══════════════════════════════════════ */
.btn-glass { display: inline-flex; align-items: center; gap: 6px; background: rgb(255 255 255 / 0.72); border-color: rgb(255 255 255 / 0.9); color: #34465c; backdrop-filter: blur(10px); }
.btn-glass:hover { color: var(--text); background: #fff; }
.btn-glass svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.top.scrolled .btn-glass { border-color: var(--line); }
[data-theme="dark"] .btn-glass { background: rgb(17 28 48 / 0.62); border-color: rgb(255 255 255 / 0.14); color: #c9d6ea; }
[data-theme="dark"] .btn-glass:hover { background: rgb(32 48 78 / 0.85); color: #fff; }
.btn-sm { font-size: 13px; padding: 6px 14px; }
.pill.unclaimed { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.link-btn { appearance: none; border: 0; background: none; padding: 4px 0; margin: -4px 0 10px; font: inherit; font-size: 13.5px; color: #2f7de1; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sheet-search { margin-bottom: 14px; }
.check-wait { padding: 18px 0; }
.claim-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--warn) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); }
.claim-box.ok { background: color-mix(in srgb, var(--green) 10%, var(--panel)); border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.claim-box b { display: block; font-size: 15px; }
.claim-box span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.win-claim { margin-left: auto; }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 55% { box-shadow: 0 0 0 3px #2f7de1; } 100% { box-shadow: 0 0 0 3px transparent; } }
.m-only, .swipe-hint { display: none; }
.hide-xs { display: inline; }

/* ══ How it works ════════════════════════════════════════════════════ */
.how { margin-top: 40px; }

/* ══ Mobile tab bar ══════════════════════════════════════════════════ */
.tabbar { display: none; }

@media (max-width: 1000px) {
}

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  #checkBtn { display: none; }
  .top { padding-block: 12px; }
  .top-right { gap: 8px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
    position: fixed; z-index: 20; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 6px; border-radius: 22px; border: 1px solid var(--line);
    background: rgb(var(--veil) / 0.84); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 14px 34px -14px rgb(16 40 72 / 0.45);
  }
  .tabbar a, .tabbar button {
    appearance: none; border: 0; background: none; font: inherit; font-size: 11.5px; font-weight: 500; color: var(--muted);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; border-radius: 16px;
    text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .tabbar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .on { color: #2f7de1; background: color-mix(in srgb, #2f7de1 12%, transparent); }
  .tabbar button { color: #fff; background: #2f7de1; }
  [data-theme="dark"] .tabbar { box-shadow: 0 14px 34px -14px rgb(0 0 0 / 0.8); }
  [data-theme="dark"] .tabbar .on { color: #6fb2ff; }

  /* the hero: shorter, so this round's numbers are one thumb away */
  .stage { min-height: 470px; padding: 108px 20px 64px; }
  .stage h1 { font-size: clamp(38px, 11vw, 52px); }
  .stage .lede { font-size: 15.5px; }

  /* touch-sized controls */
  .copy { width: 36px; height: 36px; }
  .tx-btn { padding: 9px 12px; font-size: 13px; }
  .wallet-link { padding: 7px 8px; font-size: 14px; }

  /* the pop-up becomes a sheet from the bottom */
  .sheet {
    width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-width: 1px 0 0;
    border-radius: 24px 24px 0 0; padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
  }
  .sheet::before { content: ""; display: block; width: 40px; height: 5px; margin: 0 auto 6px; border-radius: 9px; background: var(--line); }
  .sheet[open] { animation: sheet-up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .sheet-hero { padding: 18px; min-height: 0; }
  .identicon { width: 54px; height: 54px; border-radius: 15px; }
  .hero-addr { font-size: 18px; }
  .claim-box { flex-direction: column; align-items: stretch; }
  .claim-box .btn { width: 100%; padding: 12px; }
  .win-list li { flex-wrap: nowrap; }
  .sheet-search input { font-size: 16px; }

}
@keyframes sheet-up { from { transform: translateY(40%); opacity: 0.3; } }

@media (max-width: 640px) {

  /* winners: one card per row instead of a table */
  .winners-table thead { display: none; }
  .winners-table tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "card val" "wal st"; gap: 4px 10px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
  .winners-table tr:first-child { border-top: 0; }
  .winners-table td { display: block; padding: 0; border: 0; }
  .winners-table td:nth-child(1) { grid-area: card; }
  .winners-table td:nth-child(2) { grid-area: wal; padding-left: 64px; }
  .winners-table td:nth-child(3) { grid-area: val; align-self: center; font-size: 16px; }
  .winners-table td:nth-child(4), .winners-table td:nth-child(6) { display: none; }
  .winners-table td:nth-child(5) { grid-area: st; justify-self: end; align-self: center; }
  .winners-table td[colspan] { grid-column: 1 / -1; }
  .m-only { display: inline; }
  #winners .panel-head { margin-bottom: 4px; }

  /* past draws: swipe through them */
  .rounds { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 14px; scroll-padding-inline: 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .rounds::-webkit-scrollbar { display: none; }
  .round { flex: 0 0 min(86vw, 380px); scroll-snap-align: start; }
  .swipe-hint { display: inline; }

  .shelf-item .gcard { --w: 184px; }
  .hero { gap: 10px; }
}
@media (max-width: 420px) { .hide-xs { display: none; } }

/* ══ Views: the home page and the prizes page share one document ═════ */
[data-page="home"] [data-only]:not([data-only~="home"]),
[data-page="prizes"] [data-only]:not([data-only~="prizes"]),
[data-page="draws"] [data-only]:not([data-only~="draws"]),
[data-page="how"] [data-only]:not([data-only~="how"]) { display: none !important; }
[data-page="draws"] .stage, [data-page="how"] .stage { min-height: min(56vh, 460px); padding-bottom: 80px; }
[data-page="how"] .how { margin-top: 8px; }
.pill-nav a[aria-current] { background: #e3eefb; color: var(--text); }
[data-theme="dark"] .pill-nav a[aria-current] { background: rgb(255 255 255 / 0.1); color: #fff; }
[data-page="prizes"] .stage { min-height: min(56vh, 460px); padding-bottom: 80px; }

/* ══ Past draws: equal heights, a greener jackpot ════════════════════ */
.round { position: relative; overflow: hidden; isolation: isolate; }
.round > * { position: relative; z-index: 1; }
.round-prizes { flex: 1; align-content: start; }
.round-empty { flex: 1; }
.round.is-jackpot {
  border-color: #1fb57e;
  background: linear-gradient(color-mix(in srgb, #1fcb8b 32%, var(--panel)), color-mix(in srgb, #1fcb8b 9%, var(--panel)) 200px, var(--panel) 280px);
}
.round.is-jackpot::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 210px; z-index: 0; pointer-events: none;
  background: url("/assets/dollars.svg") 0 0 / 72px 72px;
  -webkit-mask-image: linear-gradient(#000 20%, transparent); mask-image: linear-gradient(#000 20%, transparent);
}
.round.is-jackpot .round-facts { background: color-mix(in srgb, var(--panel) 72%, transparent); backdrop-filter: blur(2px); }
.state.warn { color: var(--warn); }
[data-theme="dark"] .round.is-jackpot { background: linear-gradient(color-mix(in srgb, #1fcb8b 24%, var(--panel)), color-mix(in srgb, #1fcb8b 6%, var(--panel)) 200px, var(--panel) 280px); }

/* ══ How it works: four steps, each with a small looping picture ═════ */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.how-step { counter-increment: step; display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.how-step h3 { display: flex; align-items: center; gap: 10px; padding: 4px 8px 0; font-size: 16.5px; }
.how-step h3::before { content: counter(step); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2f7de1; color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
.how-step p { margin: 0; padding: 0 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.how-step p b { color: var(--text); font-weight: 600; }
.how-viz { position: relative; height: 156px; overflow: hidden; display: grid; place-items: center; border-radius: 14px; background: radial-gradient(120% 95% at 50% 0%, #f4f9ff, #cde2fb); }

/* 1. coins fall into a jar whose level rises and is spent */
.viz-pot .jar { position: relative; width: 80px; height: 94px; margin-top: 34px; overflow: hidden; border-radius: 14px 14px 28px 28px; background: #eef5fe; border: 3px solid #fff; box-shadow: 0 12px 26px -12px rgb(16 40 72 / 0.45); }
.viz-pot .liquid { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: linear-gradient(#5ea6f4, #2f7de1); animation: pot-level 7s ease-in-out infinite; }
.viz-pot .wave { position: absolute; left: 50%; top: -152px; width: 160px; height: 160px; margin-left: -80px; border-radius: 42%; background: #eef5fe; animation: pot-wave 5s linear infinite; }
.viz-pot .jar-label { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 1; text-align: center; font-style: normal; font-size: 12px; font-weight: 650; color: #fff; }
.viz-pot .drop { position: absolute; top: 8px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff0bf, #f2c66d 55%, #d99a2b); box-shadow: inset 0 0 0 2px rgb(217 154 43 / 0.55); animation: pot-drop 2.4s cubic-bezier(0.5, 0, 0.75, 0) infinite; }
.viz-pot .d1 { margin-left: -24px; }
.viz-pot .d2 { margin-left: 4px; animation-delay: 0.8s; }
.viz-pot .d3 { margin-left: -10px; animation-delay: 1.6s; }
@keyframes pot-level { 0%, 100% { height: 40%; } 45% { height: 68%; } 55% { height: 68%; } }
@keyframes pot-wave { to { transform: rotate(360deg); } }
@keyframes pot-drop { 0% { transform: translateY(-14px); opacity: 0; } 12% { opacity: 1; } 72% { transform: translateY(66px) rotate(220deg); opacity: 1; } 80%, 100% { transform: translateY(74px) rotate(240deg); opacity: 0; } }

/* 2. a playhead runs through the round; at a hidden moment the shutter fires and every holder is recorded */
.viz-snap { align-content: center; gap: 18px; }
.viz-snap .holders { display: flex; gap: 9px; }
.viz-snap .holders i { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #9ccdfb; animation: snap-lit 4.5s infinite; }
.viz-snap .track { position: relative; width: 196px; height: 8px; border-radius: 99px; background: #fff; }
.viz-snap .zone { position: absolute; left: 16.7%; right: 16.7%; top: 0; bottom: 0; border-radius: 99px; background: repeating-linear-gradient(90deg, #9ccdfb 0 5px, #c6e1fd 5px 10px); }
.viz-snap .head { position: absolute; top: -6px; left: 0; width: 3px; height: 20px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: snap-sweep 4.5s linear infinite; }
.viz-snap .shot { position: absolute; left: 61%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #2f7de1; box-shadow: 0 0 0 5px rgb(47 125 225 / 0.22); animation: snap-shot 4.5s infinite; }
.viz-snap .shutter { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; animation: snap-flash 4.5s infinite; }
@keyframes snap-sweep { from { left: 0; } to { left: 100%; } }
@keyframes snap-shot { 0%, 59% { transform: scale(0); } 62% { transform: scale(1.35); } 67%, 94% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes snap-flash { 0%, 60% { opacity: 0; } 62% { opacity: 0.8; } 72%, 100% { opacity: 0; } }
@keyframes snap-lit { 0%, 60% { background: #fff; box-shadow: inset 0 0 0 2px #9ccdfb; transform: none; } 63% { background: #2f7de1; box-shadow: none; transform: scale(1.2); } 68%, 94% { background: #2f7de1; box-shadow: none; transform: none; } 100% { background: #fff; } }

/* 3. the holding bonus climbs, bar by bar */
.viz-ladder { display: flex; align-items: flex-end; justify-content: center; gap: 16px; padding-bottom: 16px; }
.viz-ladder span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.viz-ladder i { width: 32px; border-radius: 8px 8px 5px 5px; background: #9ccdfb; transform-origin: bottom; animation: lad-grow 5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
.viz-ladder b { font-size: 13px; font-weight: 650; animation: lad-pop 5s infinite; }
.viz-ladder em { font-style: normal; font-size: 11px; color: var(--muted); }
.viz-ladder span:nth-child(1) i { height: 22px; }
.viz-ladder span:nth-child(2) i { height: 38px; background: #74b4f6; }
.viz-ladder span:nth-child(3) i { height: 56px; background: #4b95f0; }
.viz-ladder span:nth-child(4) i { height: 82px; background: linear-gradient(#2fd99a, #1fb57e); box-shadow: 0 0 24px -2px rgb(31 203 139 / 0.7); }
.viz-ladder span:nth-child(4) b { color: #0c9a63; }
.viz-ladder span:nth-child(2) i, .viz-ladder span:nth-child(2) b { animation-delay: 0.35s; }
.viz-ladder span:nth-child(3) i, .viz-ladder span:nth-child(3) b { animation-delay: 0.7s; }
.viz-ladder span:nth-child(4) i, .viz-ladder span:nth-child(4) b { animation-delay: 1.05s; }
@keyframes lad-grow { 0% { transform: scaleY(0.08); } 16%, 86% { transform: scaleY(1); } 100% { transform: scaleY(0.08); } }
@keyframes lad-pop { 0% { opacity: 0; transform: translateY(4px); } 16%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 4. a card rises and its code types itself out */
.viz-win { align-content: center; gap: 14px; }
.viz-win .win-card { width: 132px; aspect-ratio: 1.586; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #191817; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1) inset, 0 16px 30px -14px rgb(16 40 72 / 0.6), 0 0 24px -6px #2d73ff; animation: win-rise 5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; transform: rotate(-4deg); }
.viz-win .win-card img { width: 56%; }
.viz-win .win-code { padding: 7px 12px; border-radius: 9px; background: var(--ink); color: var(--mint); font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace; font-size: 13px; letter-spacing: 0.06em; }
.viz-win .win-code span { display: inline-block; width: 15.2ch; overflow: hidden; white-space: nowrap; vertical-align: bottom; animation: win-type 5s steps(14) infinite; }
@keyframes win-rise { 0% { transform: translateY(34px) rotate(8deg) scale(0.85); opacity: 0; } 16%, 88% { transform: rotate(-4deg); opacity: 1; } 100% { transform: translateY(-6px) rotate(-4deg); opacity: 0; } }
@keyframes win-type { 0%, 22% { width: 0; } 52%, 88% { width: 15.2ch; } 100% { width: 0; } }

.how-numbers { margin-top: 28px; }
.how-sub { margin: 0 0 12px; font-size: 16px; }
.how-numbers .stats { margin-top: 0; }
.how-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 18px 22px; border-radius: var(--r-lg); background: #2f7de1; color: #fff; }
.how-cta p { margin: 0; font-size: 15px; }
.how-cta .btn-light { background: #fff; color: #0f1d2e; }
.how-cta .btn-light:hover { background: #eaf3ff; }

[data-theme="dark"] .how-viz { background: radial-gradient(120% 95% at 50% 0%, #22457a, #11213d); }
[data-theme="dark"] .viz-pot .jar, [data-theme="dark"] .viz-pot .wave { background: #0e1a30; }
[data-theme="dark"] .viz-pot .jar { border-color: #2b4a75; }
[data-theme="dark"] .viz-snap .track { background: #0e1a30; }
[data-theme="dark"] .viz-snap .zone { background: repeating-linear-gradient(90deg, #2b5a96 0 5px, #234b7f 5px 10px); }
[data-theme="dark"] .viz-snap .holders i { background: #0e1a30; box-shadow: inset 0 0 0 2px #2b5a96; }
[data-theme="dark"] .viz-snap .shutter { background: #cfe3fb; }
[data-theme="dark"] .viz-ladder em { color: #a9bcd6; }
[data-theme="dark"] .viz-ladder span:nth-child(1) i { background: #2b5a96; }
[data-theme="dark"] .viz-ladder span:nth-child(2) i { background: #3a74c2; }

/* ══ Prizes page ═════════════════════════════════════════════════════ */
.prize-facts { margin: 0 0 22px; background: var(--panel); box-shadow: var(--shadow); }
.prize-facts dd { font-size: 24px; }

/* the jackpot, featured */
.feature { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-areas: "copy art" "foot foot"; margin-bottom: 34px; border-radius: 28px; color: #06261a; background: linear-gradient(135deg, #c4f9e2, #7ae6b8 50%, #2fcf8f); box-shadow: 0 24px 48px -28px rgb(12 120 80 / 0.6); }
.feature-tab { position: absolute; left: 0; top: 0; z-index: 2; padding: 9px 20px 10px 24px; border-radius: 0 0 18px 0; background: #06261a; color: #c4f9e2; font-size: 14px; font-weight: 650; }
.feature-art { grid-area: art; position: relative; min-height: 300px; display: grid; place-items: center; }
.feature-art .fan { position: relative; width: 320px; height: 220px; animation: fan-float 6s ease-in-out infinite; }
.feature-art .fan .gcard { --w: 236px; position: absolute; left: 50%; top: 50%; margin: calc(var(--w) * -0.315) 0 0 calc(var(--w) * -0.5); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14) inset, 0 22px 40px -20px rgb(6 38 26 / 0.7), 0 0 30px -10px var(--glow); }
.feature-art .fan .gcard:nth-child(1) { z-index: 3; transform: rotate(-4deg) translate(0, 8px); }
.feature-art .fan .gcard:nth-child(2) { transform: rotate(-17deg) translate(-74px, -2px); }
.feature-art .fan .gcard:nth-child(3) { transform: rotate(10deg) translate(74px, -8px); }
.glint { position: absolute; width: 22px; height: 22px; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: glint 2.8s ease-in-out infinite; z-index: 4; }
.glint.g1 { top: 16%; left: 18%; }
.glint.g2 { top: 22%; right: 14%; width: 16px; height: 16px; animation-delay: 0.9s; }
.glint.g3 { bottom: 16%; right: 30%; width: 13px; height: 13px; animation-delay: 1.7s; }
@keyframes glint { 0%, 100% { transform: scale(0.4) rotate(0); opacity: 0.4; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes fan-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.feature-copy { grid-area: copy; align-self: end; padding: 70px 34px 28px; }
.feature-kicker { font-size: 14px; font-weight: 600; opacity: 0.68; }
.feature-copy h3 { margin: 8px 0 10px; font-size: clamp(32px, 4.2vw, 50px); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; }
.feature-copy p { margin: 0; max-width: 40ch; font-size: 15.5px; opacity: 0.78; }
.feature-foot { grid-area: foot; display: flex; align-items: center; gap: 14px; padding: 16px 26px; background: rgb(6 38 26 / 0.09); }
.feature-foot .gcard { --w: 64px; }
.feature-foot b { display: block; font-size: 15px; }
.feature-foot span { font-size: 14px; opacity: 0.72; }
.get { appearance: none; margin-left: auto; padding: 9px 20px; border: 0; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; }
.feature .get { background: #06261a; color: #c4f9e2; }
[data-theme="dark"] .feature { color: #eafff6; background: linear-gradient(135deg, #1b6a4e, #149a69 55%, #17c084); }
[data-theme="dark"] .feature-tab, [data-theme="dark"] .feature .get { background: #eafff6; color: #0b3d2b; }

/* brand tiles: the card on the brand's glow, a dark fade, the name and a glass button */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; }
.brand-tile { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: 22px; font: inherit; text-align: left; color: #fff; cursor: pointer; background: radial-gradient(90% 85% at 50% 28%, color-mix(in srgb, var(--glow) 58%, #0d1b31), #0b1628 78%); box-shadow: var(--shadow); }
.brand-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 42%, rgb(4 10 22 / 0.88)); pointer-events: none; }
.bt-art { position: absolute; inset: 0 0 30% 0; z-index: 0; display: grid; place-items: center; }
.bt-art .gcard { --w: 170px; transform: rotate(-6deg); transition: transform 0.3s; }
.brand-tile:hover .bt-art .gcard { transform: rotate(-2deg) translateY(-4px) scale(1.04); }
.bt-copy { position: absolute; left: 18px; right: 112px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; gap: 5px; }
.bt-copy b { font-size: 17px; font-weight: 600; }
.bt-copy small { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgb(255 255 255 / 0.74); }
.bt-tag { padding: 2px 8px; border-radius: 6px; background: #9cc8ff; color: #0b2a52; font-size: 12px; font-weight: 650; }
.brand-tile .get { position: absolute; right: 16px; bottom: 16px; z-index: 2; background: rgb(255 255 255 / 0.2); color: #fff; backdrop-filter: blur(6px); }
.brand-tile:hover .get { background: rgb(255 255 255 / 0.3); }
.brand-tile.soon { cursor: default; background: radial-gradient(90% 85% at 50% 28%, #3c4c66, #18202f 78%); }
.brand-tile.soon .gcard { opacity: 0.8; }
.b-soon { --bg: linear-gradient(135deg, #52627d, #2b374c); --glow: transparent; }
.b-soon .gcard-name { color: rgb(255 255 255 / 0.88); font-size: 12cqw; }
.soon .bt-tag { background: #f2c66d; color: #3d2a05; }
.soon .get { opacity: 0.55; }

@media (max-width: 1000px) {
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; grid-template-areas: "art" "copy" "foot"; border-radius: 24px; }
  .feature-art { min-height: 230px; padding-top: 34px; }
  .feature-art .fan { transform: scale(0.8); animation: none; }
  .feature-copy { padding: 4px 20px 22px; }
  .feature-foot { padding: 14px 18px; }
}

@media (max-width: 640px) {
  /* the top three boxes: two compact tiles side by side, the prizes in a row under them */
  .hero { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 0; padding: 14px 16px 16px; border-radius: 18px; gap: 14px; }
  .tile-green { grid-column: 1 / -1; }
  .tile-dark .tile-head, .tile-mint .tile-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .tile .label { font-size: 12.5px; }
  .tile .delta { font-size: 12px; }
  .tile .figure { font-size: 30px; }
  .tile .sub { display: none; }
  .tile-dark .tile-foot, .tile-mint .tile-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .spark { width: 100%; max-width: none; height: 28px; }
  .clock { grid-template-columns: repeat(15, 1fr); gap: 4px; }
  .clock i { width: auto; height: auto; aspect-ratio: 1; }
  .tile-green .tile-foot-col { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
  .tile-green .figure { font-size: 26px; }
  .prize-chips { margin-top: 0; }

  /* the numbers: a compact two-column grid, no pictures except the cards */
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats .stat { min-height: 0; padding: 14px; }
  .stats .stat .label { font-size: 12px; }
  .stat-copy { max-width: none; margin-top: 10px; }
  .stats .stat-copy b { font-size: 22px; }
  .stats .stat-copy small { font-size: 12px; }
  .stat-viz { display: none; }
  .stat-card .stat-viz { display: flex; right: -28px; bottom: -16px; }
  .stat-card .gcard { --w: 92px; }
  .stat-card .stat-copy { max-width: 64%; }

  /* the steps: swipe through them */
  .how-steps { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 14px; scroll-padding-inline: 20px; scrollbar-width: none; }
  .how-steps::-webkit-scrollbar { display: none; }
  .how-step { flex: 0 0 min(82vw, 340px); scroll-snap-align: start; }

  .prize-facts { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .prize-facts div + div { border-top: 0; }
  .prize-facts div:nth-child(even) { border-left: 1px solid var(--line); }
  .prize-facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .prize-facts dd { font-size: 20px; }

  .brand-grid { gap: 10px; }
  .brand-tile { aspect-ratio: 1 / 1.08; border-radius: 18px; }
  .bt-art { inset: 0 0 36% 0; }
  .bt-art .gcard { --w: 118px; }
  .bt-copy { left: 12px; right: 12px; bottom: 12px; }
  .bt-copy b { font-size: 15px; }
  .bt-copy small { flex-wrap: wrap; gap: 4px 6px; font-size: 12px; }
  .brand-tile .get { display: none; }
}

/* ══ Never wider than the screen (a sideways page pan steals swipes from the carousels) ══ */
html, body { overflow-x: clip; }

/* ══ Section heads with an icon link ═════════════════════════════════ */
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.head-note { margin: -2px 0 16px; max-width: 60ch; }
.icon-link { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 8px 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 13.5px; font-weight: 500; text-decoration: none; box-shadow: var(--shadow); white-space: nowrap; }
.icon-link:hover { border-color: #2f7de1; color: #2f7de1; }
.icon-link svg, .panel-more svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ══ Tickers ═════════════════════════════════════════════════════════ */
.marquee { position: relative; overflow: hidden; padding: 4px 0 8px; margin-bottom: 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
.mq-track { display: flex; width: max-content; animation: mq var(--mq-dur, 30s) linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-set { display: flex; gap: 10px; padding-right: 10px; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-item { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.mq-item b { color: var(--text); font-weight: 650; }
.mq-item.jp { background: color-mix(in srgb, #1fcb8b 16%, var(--panel)); border-color: color-mix(in srgb, #1fb57e 45%, var(--line)); }
.mq-item.jp b { color: var(--good); }

/* the shelf scrolls with a finger */
.shelf { touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }

/* ══ The wallet pill: dot portrait, address, copy ════════════════════ */
.wallet { display: inline-flex; align-items: center; height: 30px; max-width: 100%; padding-left: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); vertical-align: middle; transition: border-color 0.15s; }
.wallet:hover { border-color: color-mix(in srgb, #2f7de1 45%, var(--line)); }
.wallet .wallet-link, .rp-who .wallet .wallet-link { display: inline-flex; align-items: center; gap: 6px; height: 100%; margin: 0; padding: 0 8px 0 0; border: 0; border-radius: 999px 0 0 999px; background: none; color: var(--text); font: inherit; text-decoration: none; cursor: pointer; }
.wallet .wallet-link:hover { background: none; color: #2f7de1; }
.wallet .wallet-link .mono { font-size: 12.5px; }
.wallet .wid { flex: none; width: 22px; height: 22px; padding: 2px; border-radius: 50%; background: var(--panel); }
.wallet .copy { width: 30px; height: 100%; border-radius: 0 999px 999px 0; border-left: 1px solid var(--line); }
[data-theme="dark"] .wallet .wid { background: #0e1a30; }

/* ══ Past draws: the total up top ════════════════════════════════════ */
.round-total { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.round-total b { font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.round-total span { font-size: 12px; color: var(--muted); }
.is-jackpot .round-total b, .is-jackpot .round-total span { color: var(--good); }

/* ══ Fresh winners: sort, feed, more ═════════════════════════════════ */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); }
.seg button { appearance: none; min-height: 32px; padding: 6px 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgb(16 40 72 / 0.16); }
[data-theme="dark"] .seg button[aria-pressed="true"] { background: #22385c; }
.win-feed { display: none; list-style: none; margin: 0; padding: 0; }
.wf { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--panel-2); }
.wf.jp { background: linear-gradient(120deg, color-mix(in srgb, #1fcb8b 24%, var(--panel)), var(--panel-2) 70%); }
.wf-card { position: relative; padding: 0; border: 0; background: none; line-height: 0; cursor: pointer; appearance: none; }
.wf-card .gcard { --w: 76px; border-radius: 8px; }
.wf-rank { position: absolute; top: -7px; left: -7px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 750; line-height: 1; box-shadow: 0 0 0 2px var(--panel-2); }
.r1, .pod-1 .pod-rank { background: linear-gradient(135deg, #f8dc80, #d9a521); color: #3d2a05; }
.r2, .pod-2 .pod-rank { background: linear-gradient(135deg, #eef1f5, #a9b4c2); color: #1d2633; }
.r3, .pod-3 .pod-rank { background: linear-gradient(135deg, #f3bf98, #c27744); color: #fff; }
.wf-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wf-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wf-top b { font-size: 15px; font-weight: 600; }
.wf-val { font-size: 19px; font-weight: 750; letter-spacing: -0.03em; }
.wf.jp .wf-val { color: var(--good); }
.wf-mid { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wf small { font-size: 12px; color: var(--muted); }
.panel-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--panel-2); color: var(--text); font-size: 14px; font-weight: 550; text-decoration: none; }
.panel-more:hover { color: #2f7de1; }

/* ══ Pot and payouts: one card on phones ═════════════════════════════ */
.money-m { display: none; }
.mm-paid { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 18px 18px 16px; background: linear-gradient(135deg, #3b8cf0, #1d5fb8); color: #fff; }
.mm-paid .label { color: rgb(255 255 255 / 0.8); }
.mm-paid b { display: block; margin-top: 4px; font-size: 36px; font-weight: 650; line-height: 1.05; letter-spacing: -0.04em; }
.mm-paid small { font-size: 13px; color: rgb(255 255 255 / 0.82); }
.mm-bars { flex: 0 1 44%; display: flex; align-items: flex-end; gap: 3px; height: 56px; }
.mm-bars i { flex: 1; min-width: 3px; border-radius: 2px; background: rgb(255 255 255 / 0.3); }
.mm-bars i.on { background: rgb(255 255 255 / 0.88); }
.mm-bars i.jp { background: #8ff3cb; }
.mm-pot { display: grid; gap: 12px; padding: 16px 18px 18px; }
.mm-row { display: flex; align-items: baseline; justify-content: space-between; }
.mm-row b { font-size: 22px; font-weight: 650; letter-spacing: -0.03em; }
.money-m .stack { height: 10px; }
.mm-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mm-legend div { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; background: var(--panel-2); }
.mm-legend span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mm-legend .sw { width: 8px; height: 8px; }
.mm-legend b { font-size: 15px; font-weight: 650; }
.mm-note { margin: 0; font-size: 13px; color: var(--muted); }
.mm-note b { color: var(--text); }
[data-theme="dark"] .mm-paid { background: linear-gradient(135deg, #22579c, #14284a); }

/* ══ Draws page: winners ═════════════════════════════════════════════ */
.draws-top { margin-top: 4px; }
.marquee-wins { margin-bottom: 16px; }
.wt { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 13.5px; white-space: nowrap; box-shadow: var(--shadow); }
.wt .gcard { --w: 36px; }
.wt .mono { color: var(--muted); font-size: 12.5px; }
.wt.jp { background: color-mix(in srgb, #1fcb8b 18%, var(--panel)); border-color: #1fb57e; }
.board { margin-top: 40px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 14px; margin-top: 22px; }
.pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 14px 18px; text-align: center; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.pod-1 { padding-top: 40px; border-color: color-mix(in srgb, #d9a521 45%, var(--line)); background: linear-gradient(color-mix(in srgb, #f8dc80 34%, var(--panel)), var(--panel) 72%); }
.pod-2 { background: linear-gradient(color-mix(in srgb, #a9b4c2 26%, var(--panel)), var(--panel) 72%); }
.pod-3 { background: linear-gradient(color-mix(in srgb, #e39a6a 24%, var(--panel)), var(--panel) 72%); }
.pod-rank { position: absolute; top: -15px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; font-weight: 750; box-shadow: 0 0 0 3px var(--bg); }
.pod .identicon { width: 64px; height: 64px; padding: 7px; border-radius: 18px; background: var(--panel); box-shadow: 0 8px 20px -12px rgb(16 40 72 / 0.45); }
.pod-1 .identicon { width: 82px; height: 82px; border-radius: 22px; }
.pod-total { font-size: 28px; font-weight: 750; letter-spacing: -0.04em; line-height: 1.05; }
.pod-1 .pod-total { font-size: 36px; }
.pod-sub { font-size: 12.5px; color: var(--muted); }
.board-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.board-list li { display: grid; grid-template-columns: 28px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.bl-rank { text-align: center; font-weight: 650; color: var(--muted); }
.bl-n { font-size: 13px; color: var(--muted); }
.board-list b { font-size: 15px; }

/* ══ Draws page: the proof ═══════════════════════════════════════════ */
.proof { margin-top: 44px; }
.proof-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.proof-grid .panel { margin-top: 0; }
.proof > .panel { margin-top: 14px; }
.proof h3 { font-size: 17px; }
.proof-grid h3 { margin-bottom: 14px; }
.panel-head h3 { margin: 0; }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); font-size: 14px; }
.formula span { width: 100%; font-size: 12.5px; color: var(--muted); }
.formula b { padding: 4px 10px; border-radius: 8px; background: var(--panel); font-weight: 600; box-shadow: 0 1px 2px rgb(16 40 72 / 0.08); }
.formula i { font-style: normal; font-weight: 750; color: #2f7de1; }
.odds-list { list-style: none; margin: 12px 0 16px; padding: 0; }
.odds-list li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.odds-list span { color: var(--muted); }
.odds-list b { font-weight: 600; text-align: right; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { position: relative; padding-left: 32px; font-size: 14.5px; line-height: 1.5; }
.rules li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, #1fcb8b 20%, var(--panel)); }
.rules li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 4px; border: solid var(--good); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.chain-steps { list-style: none; margin: 0; padding: 0; counter-reset: cs; }
.chain-steps li { position: relative; padding: 0 0 24px 46px; counter-increment: cs; }
.chain-steps li::before { content: counter(cs); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #2f7de1; color: #fff; font-size: 13px; font-weight: 650; }
.chain-steps li::after { content: ""; position: absolute; left: 14px; top: 36px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--line); }
.chain-steps li:last-child { padding-bottom: 0; }
.chain-steps li:last-child::after { display: none; }
.cs-body h4 { margin: 4px 0; font-size: 15px; font-weight: 600; }
.cs-body p { margin: 0; max-width: 70ch; font-size: 14px; color: var(--muted); }
.cs-value, .cs-txs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.cs-txs .txs { justify-content: flex-start; }
.hash { display: inline-flex; align-items: center; gap: 8px; height: 32px; max-width: 100%; padding: 0 2px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); }
.hash em { font-style: normal; font-size: 12px; color: var(--muted); }
.hash code { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace; font-size: 12.5px; white-space: nowrap; }
.hash .copy { width: 28px; height: 28px; }
.step-wins { display: flex; flex-wrap: wrap; gap: 8px; }
.step-wins > span { display: inline-flex; align-items: center; gap: 8px; padding: 4px; border-radius: 999px; background: var(--panel-2); }
.step-wins .gcard { --w: 36px; }
.accounts { list-style: none; margin: 0; padding: 0; }
.accounts li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.accounts li:first-child { border-top: 0; }
.ac-name b { display: block; font-size: 14.5px; }
.ac-name span { font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .proof-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shelf { scroll-snap-type: x proximity; scrollbar-width: none; gap: 14px; }
  .shelf::-webkit-scrollbar { display: none; }
  .icon-link { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .icon-link span { display: none; }
  .icon-link svg { width: 18px; height: 18px; }
  .payouts { grid-template-columns: 1fr; }
  .pay-main, .pay-pot { display: none; }
  .money-m { display: block; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
  .wallet { height: 34px; }
  .wallet .wid { width: 26px; height: 26px; }
  .wallet .wallet-link .mono { font-size: 13px; }
  .wallet .copy { width: 36px; height: 100%; }
  .accounts li { grid-template-columns: 1fr auto; }
  .ac-name { grid-column: 1 / -1; }
  .chain-steps li { padding-left: 42px; }
}

@media (max-width: 640px) {
  #winners .table-wrap { display: none; }
  .win-feed { display: grid; gap: 8px; }
  #winners .panel-head { align-items: center; }
  .podium { gap: 8px; margin-top: 20px; }
  .pod { padding: 22px 6px 12px; gap: 6px; border-radius: 18px; }
  .pod-1 { padding-top: 28px; }
  .pod .identicon { width: 44px; height: 44px; padding: 5px; border-radius: 13px; }
  .pod-1 .identicon { width: 58px; height: 58px; border-radius: 16px; }
  .pod-total { font-size: 18px; }
  .pod-1 .pod-total { font-size: 23px; }
  .pod-sub, .pod .copy, .pod .wid { display: none; }
  .pod .wallet { padding-left: 0; }
  .pod .wallet .wallet-link { padding: 0 9px; border-radius: 999px; }
  .board-list li { grid-template-columns: 24px 1fr auto; gap: 10px; padding: 8px 10px; }
  .bl-n { display: none; }
  .mq-item { font-size: 13px; padding: 6px 12px; }
}

/* ══ Grid columns share the row equally and never grow with their content (a wide child pushed a column off screen) ══ */
.hero { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rounds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.podium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.payouts { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.proof-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.how-step, .stat, .round, .tile, .pod { min-width: 0; }
.viz-snap .track { width: min(196px, 80%); }
@media (max-width: 1000px) {
  .how-steps, .stats, .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rounds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero, .proof-grid, .payouts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rounds { grid-template-columns: none; }
}

/* ══ Phones: the paid-out and pot card (replaces the two desktop panels) ══ */
@media (max-width: 760px) {
  .payouts .pay-main, .payouts .pay-pot { display: none; }
}
.money-m .mm-paid { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 18px 14px; background: #d4e8fd; color: #0d2a4d; --ink: #0d2a4d; }
.mm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.money-m .mm-paid .label { color: rgb(13 42 77 / 0.72); }
.mm-delta { padding: 3px 9px; border-radius: 999px; background: rgb(255 255 255 / 0.7); color: #0c7a50; font-size: 12.5px; font-weight: 600; }
.money-m .mm-fig { display: block; margin-top: 6px; font-size: 40px; font-weight: 650; line-height: 1.02; letter-spacing: -0.045em; }
.money-m .mm-paid small { margin-top: 4px; font-size: 13px; color: rgb(13 42 77 / 0.7); }
.money-m .mm-spark { width: 100%; max-width: none; height: 62px; margin-top: 14px; }
.mm-axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11.5px; color: rgb(13 42 77 / 0.55); }
.money-m .mm-pot { display: grid; gap: 12px; padding: 16px 18px 18px; }
.money-m .mm-pot .mm-head b { font-size: 22px; font-weight: 650; letter-spacing: -0.03em; }
.money-m .stack { height: 12px; }
.money-m .mm-legend { display: grid; grid-template-columns: none; gap: 0; list-style: none; margin: 0; padding: 0; }
.money-m .mm-legend li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.money-m .mm-legend li:first-child { border-top: 0; padding-top: 2px; }
.money-m .mm-legend b { margin-left: auto; color: var(--text); font-weight: 600; }
.money-m .mm-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); font-size: 13px; color: var(--muted); }
.money-m .mm-note svg { flex: none; width: 16px; height: 16px; fill: none; stroke: #2f7de1; stroke-width: 1.8; stroke-linecap: round; }
.money-m .mm-note b { color: var(--text); font-weight: 600; }
[data-theme="dark"] .money-m .mm-paid { background: #1d3a66; color: #e8eef8; --ink: #e8eef8; }
[data-theme="dark"] .money-m .mm-paid .label, [data-theme="dark"] .money-m .mm-paid small { color: #b9cbe4; }
[data-theme="dark"] .mm-axis { color: #8fa6c6; }
[data-theme="dark"] .mm-delta { background: rgb(255 255 255 / 0.12); color: #6ee7b7; }

/* ══ Draws: stat tiles ══ */
.dstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dstat { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; min-height: 168px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.dstat b { margin-top: 6px; font-size: 34px; font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; }
.dstat small { margin-top: 4px; font-size: 13px; color: var(--muted); }
.dstat-blue { background: #d4e8fd; border-color: transparent; color: #0d2a4d; --ink: #0d2a4d; }
.dstat-blue .label, .dstat-blue small { color: rgb(13 42 77 / 0.7); }
.dstat .spark { width: 100%; max-width: none; height: 44px; margin-top: auto; padding-top: 10px; }
.faces { display: flex; margin-top: auto; padding-top: 12px; padding-left: 8px; }
.faces .face { width: 36px; height: 36px; margin-left: -8px; padding: 4px; border-radius: 50%; background: var(--panel); box-shadow: 0 0 0 2px var(--panel), 0 4px 10px -4px rgb(16 40 72 / 0.4); }
.draw-dots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; margin-top: auto; padding-top: 12px; max-width: 190px; }
.draw-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--line); }
.draw-dots i.on { background: #4f8fd6; }
.draw-dots i.jp { background: #1fb57e; box-shadow: 0 0 0 2px color-mix(in srgb, #1fb57e 30%, transparent); }
.dstat-card .label, .dstat-card b, .dstat-card small { position: relative; z-index: 1; max-width: 62%; }
.dstat-art { position: absolute; right: -34px; bottom: -14px; z-index: 0; transform: rotate(-12deg); }
.dstat-art .gcard { --w: 150px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12) inset, 0 18px 32px -16px rgb(16 40 72 / 0.55), 0 0 26px -8px var(--glow); }
[data-theme="dark"] .dstat-blue { background: #1d3a66; color: #e8eef8; --ink: #e8eef8; }
[data-theme="dark"] .dstat-blue .label, [data-theme="dark"] .dstat-blue small { color: #b9cbe4; }
@media (max-width: 1000px) { .dstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .dstats { gap: 10px; }
  .dstat { min-height: 142px; padding: 14px; border-radius: 18px; }
  .dstat b { font-size: 26px; }
  .dstat small { font-size: 12px; }
  .dstat-art .gcard { --w: 108px; }
  .dstat-art { right: -30px; bottom: -10px; }
  .faces .face { width: 30px; height: 30px; }
}


/* ══ Solana, the token, US cards ══ */
.sol { height: auto; flex: none; }
.chip-sol { display: inline-flex; align-items: center; gap: 7px; }
.chip-sol .sol { width: 14px; }
.sol-h { display: flex; align-items: center; gap: 9px; }
.sol-h .sol { width: 18px; }
.foot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.sol-badge { display: inline-flex; align-items: center; gap: 11px; padding: 9px 16px 9px 12px; border-radius: 14px; background: #0f1424; color: #fff; text-decoration: none; transition: transform 0.15s; }
.sol-badge:hover { transform: translateY(-1px); }
.sol-badge .sol { width: 26px; }
.sol-badge span { display: flex; flex-direction: column; font-size: 15px; font-weight: 650; line-height: 1.15; }
.sol-badge small { font-size: 11px; font-weight: 500; opacity: 0.7; }
[data-theme="dark"] .sol-badge { background: #e8eef8; color: #0f1424; }
@media (max-width: 760px) { .foot-side { align-items: flex-start; } }
.region { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 0 0 14px; padding: 9px 14px; border-radius: 12px; background: var(--panel-2); font-size: 13.5px; color: var(--muted); }
.region svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #2f7de1; stroke-width: 1.6; }
.region b { color: var(--text); font-weight: 600; }

/* ══ Prizes header: a ticket per prize size ══ */
.tickets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.ticket {
  --stub: 52px; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 196px; padding: 16px 18px 0; border-radius: 22px;
  -webkit-mask: radial-gradient(circle 10px at 0 calc(100% - var(--stub)), #0000 96%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 10px at 100% calc(100% - var(--stub)), #0000 96%, #000) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle 10px at 0 calc(100% - var(--stub)), #0000 96%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 10px at 100% calc(100% - var(--stub)), #0000 96%, #000) 100% 0 / 51% 100% no-repeat;
}
.tk-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.tk-name { font-weight: 650; }
.tk-when { opacity: 0.7; }
.tk-val { margin-top: 10px; font-size: 42px; font-weight: 750; line-height: 1; letter-spacing: -0.05em; }
.tk-dots { display: grid; grid-template-columns: repeat(12, 7px); gap: 5px; margin: 14px 0 16px; }
.tk-dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.18; }
.tk-dots i.on { opacity: 1; }
.tk-fan { display: flex; margin: 14px 0 16px 6px; }
.tk-fan .gcard { --w: 46px; margin-left: -12px; border-radius: 5px; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.9), 0 6px 12px -6px rgb(0 0 0 / 0.5); }
.tk-fan .gcard:nth-child(odd) { transform: rotate(-6deg); }
.tk-fan .gcard:nth-child(even) { transform: rotate(5deg) translateY(2px); }
.tk-stub { display: flex; align-items: center; gap: 18px; height: var(--stub); margin: auto -18px 0; padding: 0 18px; border-top: 2px dashed color-mix(in srgb, currentColor 22%, transparent); font-size: 13px; }
.tk-stub span { opacity: 0.8; }
.tk-stub b { font-weight: 700; opacity: 1; }
.t-small { background: #d4e8fd; color: #0d2a4d; }
.t-medium { background: #2f7de1; color: #fff; }
.t-jackpot { background: linear-gradient(140deg, #c4f9e2, #5fe0aa 60%, #2fcf8f); color: #06261a; }
.t-jackpot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/dollars.svg") 0 0 / 64px 64px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); mask-image: linear-gradient(200deg, #000, transparent 70%); }
.t-shelf { background: #0f1d2e; color: #fff; }
[data-theme="dark"] .t-small { background: #1d3a66; color: #e8eef8; }
[data-theme="dark"] .t-jackpot { background: linear-gradient(140deg, #1b6a4e, #149a69 60%, #17c084); color: #eafff6; }
[data-theme="dark"] .t-shelf { background: #e8eef8; color: #0f1d2e; }
@media (max-width: 1000px) { .tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tickets { gap: 10px; }
  .ticket { --stub: 44px; min-height: 168px; padding: 14px 14px 0; border-radius: 18px; }
  .tk-top { flex-direction: column; gap: 1px; font-size: 12px; }
  .tk-val { font-size: 30px; }
  .tk-dots { grid-template-columns: repeat(12, 5px); gap: 4px; margin: 12px 0; }
  .tk-dots i { width: 5px; height: 5px; }
  .tk-stub { gap: 10px; margin: auto -14px 0; padding: 0 14px; font-size: 12px; }
  .tk-fan .gcard { --w: 36px; }
}

/* ══ Prizes: collections, like a store's featured cards ══ */
.colls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.coll { --c: #6b21a8; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; border-radius: 28px; color: #fff; background: var(--c); box-shadow: 0 24px 48px -30px color-mix(in srgb, var(--c) 70%, #000); }
.c-gaming { --c: #6b21a8; }
.c-food { --c: #c2410c; }
.c-shopping { --c: #1d4ed8; }
.c-ai { --c: #0f766e; }
.c-streaming { --c: #be123c; }
.c-more { --c: #334155; }
.c-soon { --c: #3c4c66; }
.cl-art { position: relative; height: 210px; overflow: hidden; }
.cl-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(color-mix(in srgb, var(--c) 10%, transparent), transparent 40%, var(--c)); pointer-events: none; }
.cl-tilt { position: absolute; left: 50%; top: 50%; display: flex; gap: 14px; transform: translate(-50%, -50%) rotate(-14deg); }
.cl-col { display: flex; flex-direction: column; animation: cl-drift var(--dur, 30s) linear infinite; }
.cl-col.up { animation-direction: reverse; }
.cl-set { display: flex; flex-direction: column; gap: 14px; padding-bottom: 14px; }
.cl-col .gcard { --w: 168px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14) inset, 0 16px 30px -16px rgb(0 0 0 / 0.6); }
@keyframes cl-drift { to { transform: translateY(-50%); } }
.cl-copy { position: relative; padding: 0 26px 18px; }
.cl-kicker { font-size: 13px; font-weight: 600; color: rgb(255 255 255 / 0.72); }
.cl-copy h3 { margin: 4px 0 4px; font-size: 30px; font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; }
.cl-copy p { margin: 0; font-size: 15px; color: rgb(255 255 255 / 0.78); }
.cl-icons { list-style: none; display: flex; gap: 14px; margin: auto 0 0; padding: 16px 22px 18px; overflow-x: auto; scrollbar-width: none; background: rgb(0 0 0 / 0.18); }
.cl-icons::-webkit-scrollbar { display: none; }
.cl-icon { appearance: none; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 78px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
span.cl-icon { cursor: default; }
.cl-icon .gcard { --w: 78px; border-radius: 8px; transition: transform 0.2s; }
button.cl-icon:hover .gcard { transform: translateY(-3px); }
button.cl-icon:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 8px; }
.cl-icon > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: rgb(255 255 255 / 0.82); }
@media (max-width: 760px) {
  .colls { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .coll { border-radius: 24px; }
  .cl-art { height: 170px; }
  .cl-col .gcard { --w: 128px; }
  .cl-copy { padding: 0 20px 16px; }
  .cl-copy h3 { font-size: 26px; }
  .cl-icons { padding: 14px 18px 16px; gap: 12px; }
  .cl-icon, .cl-icon .gcard { width: 68px; --w: 68px; }
}

/* ══ Draws: top winners and latest wins, side by side, flat rows ══ */
.draws-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; margin-top: 36px; align-items: start; }
.draws-split .head-row { margin-bottom: 10px; }
.board { margin-top: 0; }
.lb { list-style: none; margin: 0; padding: 0; display: grid; }
.lb-row { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 12px; }
.lb-row:not(.top):not(.jp) { box-shadow: inset 0 1px 0 var(--line); }
.lb-row:not(.top):not(.jp):hover { background: var(--panel-2); border-radius: 14px; box-shadow: none; }
.lb-row:not(.top):not(.jp):hover + .lb-row { box-shadow: none; }
.lb-rank { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 650; color: var(--muted); }
.lb-main { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.lb-sub { font-size: 12.5px; color: var(--muted); }
.lb-total { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.lb .minis { display: inline-flex; }
.lb .minis .gcard { --w: 32px; border-radius: 4px; }
.lb .minis .gcard + .gcard { margin-left: -12px; }
.lb-row.top { margin-bottom: 8px; padding: 16px 18px 16px 14px; border-radius: 18px; }
.lb-row.top::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0.13;
  -webkit-mask-image: url("/assets/dollars.svg"), linear-gradient(90deg, transparent 35%, #000); -webkit-mask-size: 60px 60px, 100% 100%; -webkit-mask-composite: source-in;
  mask-image: url("/assets/dollars.svg"), linear-gradient(90deg, transparent 35%, #000); mask-size: 60px 60px, 100% 100%; mask-composite: intersect;
}
.lb-row.t1 { background: linear-gradient(100deg, #fff4c9, #f6cf5a); color: #3d2c00; }
.lb-row.t2 { background: linear-gradient(100deg, #f5f7fa, #c5cfdc); color: #1f2a37; }
.lb-row.t3 { background: linear-gradient(100deg, #ffe8d8, #eba57a); color: #43200a; }
.lb-row.top .lb-rank { background: rgb(255 255 255 / 0.7); color: inherit; font-weight: 750; box-shadow: 0 2px 6px -2px rgb(0 0 0 / 0.25); }
.lb-row.top .lb-sub { color: inherit; opacity: 0.72; }
.lb-row.top .lb-total { font-size: 24px; }
.lb-row.top .wallet { background: rgb(255 255 255 / 0.62); border-color: transparent; color: inherit; }
.lb-row.top .minis .gcard { box-shadow: 0 0 0 2px rgb(255 255 255 / 0.8); }
[data-theme="dark"] .lb-row.t1 { background: linear-gradient(100deg, #4a3a0c, #a07a14); color: #fff3c9; }
[data-theme="dark"] .lb-row.t2 { background: linear-gradient(100deg, #2a3442, #64748b); color: #eef2f7; }
[data-theme="dark"] .lb-row.t3 { background: linear-gradient(100deg, #4a2412, #a5562c); color: #ffe8d8; }
[data-theme="dark"] .lb-row.top .lb-rank, [data-theme="dark"] .lb-row.top .wallet { background: rgb(0 0 0 / 0.25); }
.lb-latest .lb-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.lb-latest .lb-row.jp { margin: 4px 0; border-radius: 16px; background: linear-gradient(100deg, color-mix(in srgb, #1fcb8b 24%, var(--panel)), color-mix(in srgb, #1fcb8b 5%, var(--panel))); }
.lb-latest .lb-row.jp + .lb-row { box-shadow: none; }
.lb-what { font-size: 14.5px; }
.lb-ago { font-size: 12.5px; color: var(--muted); white-space: nowrap; align-self: start; padding-top: 3px; }
.ll-card .gcard { --w: 58px; }
.rr-tag { display: inline-block; margin-right: 7px; padding: 1px 7px; border-radius: 6px; background: #1fb57e; color: #fff; font-size: 11.5px; font-weight: 650; font-style: normal; vertical-align: 1px; }
.wt-ago { padding-left: 8px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 1000px) { .draws-split { grid-template-columns: minmax(0, 1fr); gap: 30px; } }
@media (max-width: 640px) {
  .draws-split { margin-top: 26px; }
  .lb-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 11px 8px; }
  .lb .minis { display: none; }
  .lb-row.top { padding: 14px 14px 14px 10px; }
  .lb-row.top .lb-total { font-size: 20px; }
  .lb-latest .lb-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ll-card .gcard { --w: 50px; }
}

/* ══ Past draws: one row per round, tap to open ══ */
.rlist { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: var(--shadow); }
.rrow { position: relative; isolation: isolate; }
.rrow + .rrow { border-top: 1px solid var(--line); }
.rrow > summary { display: grid; grid-template-columns: 62px 96px minmax(0, 1fr) auto 20px; align-items: center; gap: 16px; padding: 14px 18px; list-style: none; cursor: pointer; }
.rrow > summary::-webkit-details-marker { display: none; }
.rrow > summary:hover { background: color-mix(in srgb, var(--panel-2) 80%, transparent); }
.rrow > summary:focus-visible { outline: 3px solid #2f7de1; outline-offset: -3px; }
.rr-no { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 56px; border-radius: 15px; background: #d4e8fd; color: #0d2a4d; line-height: 1; }
.rr-no small { font-size: 10.5px; font-weight: 600; opacity: 0.7; }
.rr-no b { margin-top: 3px; font-size: 20px; font-weight: 750; letter-spacing: -0.03em; }
.rr-fan { display: flex; align-items: center; height: 44px; padding-left: 4px; }
.rr-fan .gcard { --w: 46px; border-radius: 5px; box-shadow: 0 0 0 2px var(--panel), 0 6px 12px -6px rgb(16 40 72 / 0.5); }
.rr-fan .gcard + .gcard { margin-left: -24px; }
.rr-fan .gcard:nth-child(odd) { transform: rotate(-7deg); }
.rr-fan .gcard:nth-child(even) { transform: rotate(6deg) translateY(2px); }
.rr-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rr-main b { font-size: 15.5px; font-weight: 600; }
.rr-main > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.rr-total { display: flex; flex-direction: column; align-items: flex-end; }
.rr-total b { font-size: 21px; font-weight: 750; letter-spacing: -0.035em; }
.rr-total small { font-size: 12.5px; color: var(--muted); }
.rr-chev { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.rrow[open] .rr-chev { transform: rotate(180deg); }
.rr-body { padding: 2px 18px 16px 96px; }
.rr-prizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; margin: 0 -8px; }
.rr-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.rr-foot > .muted { margin-right: auto; }
.rrow.jp { background: linear-gradient(100deg, color-mix(in srgb, #1fcb8b 26%, var(--panel)), color-mix(in srgb, #1fcb8b 5%, var(--panel)) 75%); }
.rrow.jp::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #0c9a63; opacity: 0.16; pointer-events: none;
  -webkit-mask-image: url("/assets/dollars.svg"), linear-gradient(90deg, #000, transparent 60%); -webkit-mask-size: 64px 64px, 100% 100%; -webkit-mask-composite: source-in;
  mask-image: url("/assets/dollars.svg"), linear-gradient(90deg, #000, transparent 60%); mask-size: 64px 64px, 100% 100%; mask-composite: intersect;
}
.rrow.jp .rr-no { background: #1fb57e; color: #fff; }
.rrow.jp .rr-fan .gcard { box-shadow: 0 0 0 2px #e3faf0, 0 6px 12px -6px rgb(6 38 26 / 0.5); }
[data-theme="dark"] .rr-no { background: #1d3a66; color: #e8eef8; }
[data-theme="dark"] .rrow.jp { background: linear-gradient(100deg, color-mix(in srgb, #1fcb8b 20%, var(--panel)), color-mix(in srgb, #1fcb8b 4%, var(--panel)) 75%); }
[data-theme="dark"] .rrow.jp::before { background: #6ee7b7; }
@media (max-width: 900px) { .rr-prizes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .rlist { border-radius: 18px; }
  .rrow > summary { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .rr-fan, .rr-chev { display: none; }
  .rr-no { height: 50px; border-radius: 13px; }
  .rr-no b { font-size: 18px; }
  .rr-main b { font-size: 14.5px; }
  .rr-total b { font-size: 18px; }
  .rr-body { padding: 0 14px 14px; }
  .rr-foot > .muted { flex-basis: 100%; }
}
.draws-cta { margin-top: 28px; }

/* ══ How it works: the four pictures, in the charts' dots ══ */
.how-viz { position: relative; height: 156px; display: block; overflow: hidden; border-radius: 14px; background: #d4e8fd; }
.how-viz .vz { display: block; width: 100%; height: 100%; }
.vz .f { fill: #4f8fd6; opacity: 0.32; }
.vz .ln, .vz .pick { fill: #0d2a4d; }
.vz .rim { fill: #0d2a4d; opacity: 0.4; }
.vz .sc { fill: #0d2a4d; opacity: 0.5; }
.vz .zone, .vz .end { fill: #2f7de1; }
.vz .lv { fill: #2f7de1; opacity: 0; animation: vz-fill 7.2s infinite; }
.vz .lv.g { fill: #1fb57e; }
[data-viz="ladder"] .lv { animation-duration: 5s; }
@keyframes vz-fill { 0% { opacity: 0; } 5%, 70% { opacity: 1; } 80%, 100% { opacity: 0; } }
.vz .coin { fill: #2f7de1; stroke: rgb(47 125 225 / 0.28); stroke-width: 4; opacity: 0; animation: vz-coin 2.4s cubic-bezier(0.5, 0, 0.75, 0) infinite; }
@keyframes vz-coin { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 75% { transform: translateY(30px); opacity: 1; } 90%, 100% { transform: translateY(34px); opacity: 0; } }
.vz .scan { animation: vz-scan 4.5s linear infinite; }
@keyframes vz-scan { from { transform: translateX(10px); } to { transform: translateX(190px); } }
.vz .shot { opacity: 0; animation: vz-shot 4.5s infinite; }
@keyframes vz-shot { 0%, 58% { opacity: 0; } 61%, 94% { opacity: 1; } 100% { opacity: 0; } }
.vz .ring { fill: none; stroke: #2f7de1; stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: vz-ring 4.5s infinite; }
@keyframes vz-ring { 0%, 58% { transform: scale(0.3); opacity: 0; } 61% { transform: scale(0.4); opacity: 1; } 85%, 100% { transform: scale(1.9); opacity: 0; } }
.vz-t { fill: #0d2a4d; font-size: 11px; font-weight: 650; text-anchor: middle; }
.vz-t.g { fill: #0c9a63; }
.vz .seg.s0 { fill: #9ccdfb; }
.vz .seg.s1 { fill: #4f8fd6; }
.vz .seg.s2 { fill: #2f6fc4; }
.vz .seg.win { animation: vz-win 5s infinite; }
@keyframes vz-win { 0%, 62% { fill: #2f6fc4; } 66%, 94% { fill: #1fb57e; } 100% { fill: #2f6fc4; } }
.vz .pick { animation: vz-pick 5s cubic-bezier(0.3, 0.7, 0.2, 1) infinite; }
@keyframes vz-pick { 0% { transform: translateX(14px); } 35% { transform: translateX(182px); } 62%, 100% { transform: translateX(90px); } }
.vz-card { position: absolute; left: 50%; bottom: 12px; display: flex; align-items: center; gap: 8px; opacity: 0; transform: translate(-50%, 14px); animation: vz-card 5s infinite; }
.vz-card .gcard { --w: 72px; }
.vz-card b { padding: 3px 9px; border-radius: 8px; background: #0d2a4d; color: #fff; font-size: 13px; font-weight: 650; }
@keyframes vz-card { 0%, 62% { opacity: 0; transform: translate(-50%, 14px); } 70%, 94% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
[data-theme="dark"] .how-viz { background: #1d3a66; }
[data-theme="dark"] .vz .f { fill: #8bb8ec; }
[data-theme="dark"] .vz .ln, [data-theme="dark"] .vz .pick, [data-theme="dark"] .vz .rim, [data-theme="dark"] .vz .sc, [data-theme="dark"] .vz-t { fill: #e8eef8; }
[data-theme="dark"] .vz-t.g { fill: #6ee7b7; }
[data-theme="dark"] .vz-card b { background: #e8eef8; color: #0d2a4d; }
.brand-tld { font-weight: 500; opacity: 0.55; }

/* ══ Prizes page: its own header picture (hero-prizes.jpg), green sky with cards ══ */
[data-page="prizes"] .stage::before { background: image-set(url("/assets/hero-prizes.webp") type("image/webp"), url("/assets/hero-prizes.jpg") type("image/jpeg")) center top / cover no-repeat, linear-gradient(#12b866, #3fd88a 45%, #c9f7dd); }
[data-page="prizes"] .stage::after { background: radial-gradient(ellipse 40% 46% at 50% 46%, rgb(4 70 38 / 0.28), transparent 72%), linear-gradient(transparent 58%, var(--bg)); }
[data-page="prizes"] .stage h1 { text-shadow: 0 2px 18px rgb(4 70 38 / 0.5); }
[data-page="prizes"] .stage .lede { text-shadow: 0 1px 10px rgb(4 70 38 / 0.6); }
[data-page="prizes"] .stage .chip, [data-page="prizes"] .stage .chip-link { background: rgb(4 60 32 / 0.4); }
[data-theme="dark"][data-page="prizes"] .stage::before { filter: brightness(0.62) saturate(0.9); }

/* ══ Draws: top three are the same flat rows, just with colour ══ */
.lb-row.top { margin: 0; padding: 14px 12px; border-radius: 0; box-shadow: none; }
.lb-row.top + .lb-row.top { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5); }
.lb-row.top .lb-total { font-size: 21px; }
.lb .lb-row { width: 100%; }
.lb-latest .lb-row.jp { margin: 0; border-radius: 0; }
.ll-card { appearance: none; display: block; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; border-radius: 7px; }
.live-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; color: #12a46a; }
.live-tag i { width: 8px; height: 8px; border-radius: 50%; background: #1fcb8b; animation: live-pulse 1.6s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgb(31 203 139 / 0.7); opacity: 1; } 50% { opacity: 0.55; } 100% { box-shadow: 0 0 0 9px rgb(31 203 139 / 0); opacity: 1; } }
[data-theme="dark"] .live-tag { color: #6ee7b7; }

/* ══ Paid out and the pot: one card at every width (desktop panels retired) ══ */
.payouts { grid-template-columns: minmax(0, 1fr); }
.payouts .pay-main, .payouts .pay-pot { display: none; }
.money-m { display: block; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.mm-facts { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; color: rgb(13 42 77 / 0.7); }
.mm-facts b { color: #0d2a4d; font-weight: 650; }
[data-theme="dark"] .mm-facts { color: #b9cbe4; }
[data-theme="dark"] .mm-facts b { color: #e8eef8; }
@media (min-width: 761px) {
  .money-m { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .money-m .mm-paid { padding: 26px 28px 20px; }
  .money-m .mm-fig { font-size: 54px; }
  .money-m .mm-paid small { font-size: 14px; }
  .money-m .mm-spark { height: 132px; margin-top: 18px; }
  .money-m .mm-pot { align-content: start; gap: 16px; padding: 26px 28px; }
  .money-m .mm-pot .mm-head b { font-size: 30px; }
  .money-m .stack { height: 14px; }
  .money-m .mm-legend li { padding: 12px 0; font-size: 14px; }
  .money-m .mm-legend b { font-size: 15px; }
  .money-m .mm-note { margin-top: auto; }
}

/* ══ Hero: Buy $GG ══ */
.btn-buy { display: inline-flex; align-items: center; gap: 9px; padding: 8px 20px 8px 8px; border-radius: 999px; background: linear-gradient(135deg, #2fe39a, #12b866); color: #04301c; font-weight: 700; text-decoration: none; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.35) inset, 0 10px 24px -10px rgb(10 120 70 / 0.8); transition: transform 0.15s, box-shadow 0.15s; }
.btn-buy:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.45) inset, 0 14px 28px -10px rgb(10 120 70 / 0.9); }
.btn-buy .coin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c8, #f6cf5a 55%, #d9a521); color: #5a3d00; font-size: 14px; font-weight: 800; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.5); }

/* ══ Prizes header: a touch of blue in the green sky ══ */
[data-page="prizes"] .stage::after { background: linear-gradient(180deg, rgb(37 117 230 / 0.2), rgb(37 117 230 / 0.07) 45%, transparent 70%), radial-gradient(ellipse 40% 46% at 50% 46%, rgb(4 70 38 / 0.24), transparent 72%), linear-gradient(transparent 58%, var(--bg)); }

/* ══ Draws: top winners and latest wins, same height, rows share it evenly ══ */
.draws-split { align-items: stretch; }
.draws-split > .board, .draws-split > .latest { display: flex; flex-direction: column; }
.draws-split .lb { flex: 1; grid-auto-rows: 1fr; }
.ll-card { align-self: center; justify-self: center; }

/* ══ Home shelf: US cards as a tooltip on a globe ══ */
#shelf .head-tools { display: inline-flex; align-items: center; gap: 8px; }
.info-tip { position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: #2f7de1; cursor: help; }
.info-tip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.info-tip .tip { position: absolute; right: -6px; top: calc(100% + 10px); z-index: 20; width: 240px; padding: 10px 12px; border-radius: 12px; background: #0f1d2e; color: #e8eef8; font-size: 13px; line-height: 1.45; text-align: left; box-shadow: 0 14px 30px -12px rgb(0 0 0 / 0.5); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; pointer-events: none; }
.info-tip .tip::before { content: ""; position: absolute; right: 16px; top: -5px; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); }
.info-tip .tip b { color: #fff; font-weight: 600; }
.info-tip:hover .tip, .info-tip:focus-visible .tip, .info-tip:focus .tip { opacity: 1; visibility: visible; transform: none; }
[data-theme="dark"] .info-tip .tip { background: #e8eef8; color: #33445c; }
[data-theme="dark"] .info-tip .tip b { color: #0f1d2e; }

/* ══ How it works: you need $GG ══ */
.hold-gg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto; align-items: center; gap: 28px; margin: 0 0 14px; padding: 24px 28px; border-radius: var(--r-lg); background: linear-gradient(135deg, #c4f9e2, #7ae6b8 55%, #3fd391); color: #06261a; }
.hg-copy h3 { margin: 0 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.hg-copy p { margin: 0; font-size: 14.5px; opacity: 0.8; }
.hg-steps { list-style: none; counter-reset: hg; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.hg-steps li { counter-increment: hg; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; background: rgb(255 255 255 / 0.55); font-size: 13px; }
.hg-steps li::before { content: counter(hg); display: grid; place-items: center; width: 22px; height: 22px; margin-bottom: 4px; border-radius: 50%; background: #06261a; color: #c4f9e2; font-size: 12px; font-weight: 700; }
.hg-steps b { font-size: 14.5px; }
.hg-steps span { opacity: 0.75; }
.hold-gg .btn-buy { white-space: nowrap; background: #06261a; color: #eafff6; box-shadow: 0 10px 24px -12px rgb(6 38 26 / 0.8); }
[data-theme="dark"] .hold-gg { background: linear-gradient(135deg, #1b6a4e, #149a69 55%, #17c084); color: #eafff6; }
[data-theme="dark"] .hg-steps li { background: rgb(0 0 0 / 0.18); }
[data-theme="dark"] .hg-steps li::before, [data-theme="dark"] .hold-gg .btn-buy { background: #eafff6; color: #0b3d2b; }
@media (max-width: 1000px) { .hold-gg { grid-template-columns: minmax(0, 1fr); gap: 18px; } .hold-gg .btn-buy { justify-self: start; } }
@media (max-width: 640px) { .hold-gg { padding: 20px; } .hg-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; } .hg-copy h3 { font-size: 21px; } }

/* ══ Draws page: its own header picture (hero-draws), a gold sky with trophies ══ */
[data-page="draws"] .stage::before { background: image-set(url("/assets/hero-draws.webp") type("image/webp"), url("/assets/hero-draws.jpg") type("image/jpeg")) center top / cover no-repeat, linear-gradient(#d9b54a, #f3dc8a 50%, #fff6d8); }
[data-page="draws"] .stage::after { background: radial-gradient(ellipse 42% 48% at 50% 46%, rgb(92 58 0 / 0.34), transparent 72%), linear-gradient(transparent 58%, var(--bg)); }
[data-page="draws"] .stage h1 { text-shadow: 0 2px 18px rgb(92 58 0 / 0.6); }
[data-page="draws"] .stage .lede { text-shadow: 0 1px 10px rgb(92 58 0 / 0.75); }
[data-page="draws"] .stage .chip, [data-page="draws"] .stage .chip-link { background: rgb(70 44 0 / 0.42); }
[data-theme="dark"][data-page="draws"] .stage::before { filter: brightness(0.6) saturate(0.9); }

.stage h1 .h-line { display: block; white-space: nowrap; }
[data-page="home"] .stage h1 { max-width: none; }
@media (max-width: 420px) { .stage h1 .h-line { white-space: normal; } [data-page="home"] .stage h1 { font-size: 40px; } }

/* round bubbles on the paid-out chart */
.spark .mark { fill: #fff; stroke: #2f7de1; stroke-width: 1.8; transition: r 0.15s; cursor: default; }
.spark .mark.jp { stroke: #1fb57e; fill: #e3faf0; stroke-width: 2.2; }
.spark .mark.zero { stroke: #9bb4d3; }
.spark .mark:hover { r: 6; }
[data-theme="dark"] .spark .mark { fill: #1d3a66; stroke: #8bc0ff; }
[data-theme="dark"] .spark .mark.jp { fill: #134d39; stroke: #6ee7b7; }

/* the hero tucks under the header by its measured height (set from gifts.js) */
.stage { margin-top: calc(-1 * var(--head-h, 76px) - 1px); }

/* ══ Type: Nunito (rounded, full weight range) for headings and big figures, Geist for everything else ══ */
h1, h2, h3, .brand, .figure, .mm-fig, .tk-val, .dstat b, .lb-total, .rr-total b, .rr-no b, .cl-copy h3, .feature-copy h3, .hg-copy h3 { font-family: "Nunito", "Geist", system-ui, sans-serif; }
.stage h1 { font-weight: 900; letter-spacing: -0.03em; }

.brand { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
