/* Player promo page — dark felt + gold. Mobile first. */
:root {
  --bg: #07100b;
  --felt: #0d2418;
  --felt-2: #123222;
  --card: rgba(16, 38, 27, 0.82);
  --card-2: rgba(255, 255, 255, 0.035);
  --line: rgba(232, 199, 102, 0.16);
  --line-2: rgba(255, 255, 255, 0.08);
  --gold: #e8c766;
  --gold-2: #c9a13b;
  --gold-ink: #1b1405;
  --text: #f3efe4;
  --muted: #a9b8ad;
  --dim: #7f8f84;
  --green: #3ddc84;
  --red: #ff6b5e;
  --blue: #7cc4ff;
  --radius: 18px;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 700px at 50% -200px, #1a4630 0%, rgba(26, 70, 48, 0) 70%),
    radial-gradient(800px 600px at 110% 40%, rgba(18, 50, 34, 0.7), transparent 70%),
    linear-gradient(180deg, var(--felt) 0%, var(--bg) 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
.hidden { display: none !important; }
.dim { color: var(--dim); }
.gold { color: var(--gold); }
small { font-size: 0.78em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------------------------------------------------------------- header */
.top {
  padding: calc(14px + env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
}
.top-in { max-width: 1088px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.brand { flex: 1; min-width: 0; }
.brand-kicker {
  display: block; font: 600 12px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.brand h1 {
  margin: 4px 0 0; font: 700 28px/1.05 var(--display); letter-spacing: 0.01em; text-transform: uppercase;
  overflow-wrap: anywhere;
}
.live {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 700 12px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #6b7a70; }
.live.on { color: var(--green); border-color: rgba(61, 220, 132, 0.35); }
.live.on .live-dot { background: var(--green); box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

.clubs { flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.club {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted);
}
.club-dot { width: 7px; height: 7px; border-radius: 50%; background: #5d6a61; }
.club.is-live .club-dot { background: var(--green); }
.club-n { color: var(--dim); }
.club.is-live .club-n { color: var(--green); }
.club.paused { color: var(--gold); border-color: var(--line); }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 14px 16px 28px; }
.cols { display: grid; gap: 14px; }
.col { display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (min-width: 900px) {
  .cols { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; }
  .col { gap: 20px; }
  .brand h1 { font-size: 34px; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
}
.card-h, .card h2 {
  margin: 0 0 12px; font: 700 20px/1.1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold);
}
.mini-h { margin: 0 0 6px; font: 700 13px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fatal {
  margin: 0 0 14px; padding: 16px; border-radius: 14px; background: rgba(255, 107, 94, 0.12); border: 1px solid rgba(255, 107, 94, 0.4);
  font-weight: 600; text-align: center;
}
.empty { color: var(--dim); margin: 6px 0; }

/* ---------------------------------------------------------------- lookup */
.lbl { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13.5px; }
.lookup-row { display: flex; gap: 8px; }
.lookup input {
  flex: 1; min-width: 0; height: 54px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid rgba(232, 199, 102, 0.35); background: rgba(0, 0, 0, 0.35); color: var(--text);
  font: 700 24px/1 var(--display); letter-spacing: 0.08em;
}
.lookup input::placeholder { color: #5f6f64; font-weight: 500; letter-spacing: 0.04em; }
.lookup input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 199, 102, 0.2); }
.btn-gold {
  height: 54px; padding: 0 22px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #f3d77e, var(--gold-2)); color: var(--gold-ink);
  font: 800 18px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(201, 161, 59, 0.3);
}
.btn-gold:active { transform: translateY(1px); }
.btn-link { background: none; border: 0; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; font-size: 14px; }
.lookup-msg { margin: 8px 0 0; color: #ffb4a9; font-size: 14px; min-height: 0; }
.lookup-msg:empty { display: none; }

/* ---------------------------------------------------------------- my tickets */
.me-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.me-name { font: 700 22px/1.1 var(--display); letter-spacing: 0.02em; }
.me-no { color: var(--dim); font-size: 13px; margin-top: 2px; }
.held { display: flex; align-items: center; gap: 14px; margin: 8px 0 12px; }
.held-n {
  font: 800 108px/0.9 var(--display); letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff3c4 0%, var(--gold) 45%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 6px 30px rgba(232, 199, 102, 0.18);
  font-variant-numeric: tabular-nums;
}
.held-l { font: 700 20px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.held-l span { font: 500 14px/1.3 var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 11px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line-2); font-size: 13px; color: var(--muted);
}
.chip b { color: var(--text); font: 700 16px/1 var(--display); }
.chip-hour b { color: var(--gold); }
.chip-bonus b { color: var(--green); }
.chip-tournament b { color: var(--blue); }
.chip-newGuest b { color: #f0a6ff; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat {
  display: flex; flex-direction: column; gap: 3px; padding: 11px 10px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line-2); min-width: 0;
}
.stat-k { font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); line-height: 1.2; }
.stat-v { font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-v small { font: 500 12px/1 var(--body); color: var(--muted); }
.stat-note { font-size: 12px; color: var(--muted); line-height: 1.25; }
.stat-note.gold { color: var(--gold); font-weight: 700; }

.wins { margin-top: 14px; padding: 12px; border-radius: 12px; background: rgba(232, 199, 102, 0.08); border: 1px solid var(--line); }
.wins ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.win-amt { font: 800 18px/1 var(--display); color: var(--gold); margin-right: 4px; }

.history { margin-top: 16px; }
.hist-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hist-top .mini-h { margin: 0; }
.hist-note { font-size: 12.5px; margin: 4px 0 8px; line-height: 1.4; }
.hday { border-top: 1px solid var(--line-2); }
.hday summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "day tix" "meta tix"; gap: 2px 10px; padding: 10px 0; align-items: center; }
.hday summary::-webkit-details-marker { display: none; }
.hd-day { grid-area: day; font-weight: 700; font-size: 15px; }
.hd-meta { grid-area: meta; color: var(--muted); font-size: 12.5px; }
.hd-tix { grid-area: tix; font: 800 20px/1 var(--display); color: var(--gold); white-space: nowrap; }
.hd-tix b { font-weight: inherit; }
.hd-types { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; }
.hd-type { font-size: 12px; color: var(--muted); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); }
.hd-type b { color: var(--gold); }
.hd-h { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin: 8px 0 2px; }
.hd-none { font-size: 13px; margin: 4px 0 10px; }
.sess { list-style: none; margin: 0 0 6px; padding: 0; font-size: 13.5px; }
.sess li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line-2); align-items: baseline; }
.ss-at { white-space: nowrap; color: var(--text); } .ss-at em { font-style: normal; color: var(--gold); }
.ss-w { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-m { color: var(--dim); font-size: 12px; white-space: nowrap; }
.hday .events { margin-bottom: 10px; }
.hday .events li:first-child { border-top: 0; }
.events { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13.5px; }
.events li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line-2); align-items: baseline; }
.ev-n { font: 800 17px/1 var(--display); color: var(--green); }
.ev-t { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-at { color: var(--dim); font-size: 12px; white-space: nowrap; }

/* ---------------------------------------------------------------- session */
.session { border-color: rgba(61, 220, 132, 0.3); background: linear-gradient(160deg, rgba(20, 60, 38, 0.9), rgba(12, 32, 22, 0.9)); }
.sess-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.session .sess-h h2 { margin: 0; color: var(--text); font-size: 19px; letter-spacing: 0.03em; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; animation: ping 1.8s infinite; }
.sess-body { display: flex; align-items: center; gap: 16px; }
.ring { position: relative; width: 116px; height: 116px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: rgba(255, 255, 255, 0.08); }
.ring-fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 0.8s ease; filter: drop-shadow(0 0 6px rgba(232, 199, 102, 0.45)); }
.ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-n { font: 800 40px/0.9 var(--display); font-variant-numeric: tabular-nums; }
.ring-u { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sess-txt { min-width: 0; }
.sess-next { font: 700 22px/1.15 var(--display); letter-spacing: 0.02em; }
.sess-next b { color: var(--gold); }
.sess-sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.sess-paused { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(232, 199, 102, 0.1); color: var(--gold); font-size: 13px; font-weight: 600; }
.bonus { margin-top: 16px; }
.bonus-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 7px; flex-wrap: wrap; }
.bonus-row .gold { font-weight: 700; }
.bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-2), #f3d77e); transition: width 0.8s ease; }

/* ---------------------------------------------------------------- totals (no player yet) */
.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px; }
.tot { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.tot-n { font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.tot-l { font-size: 12px; color: var(--muted); line-height: 1.2; }

/* ---------------------------------------------------------------- drawings */
.next-card {
  display: flex; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(232, 199, 102, 0.16), rgba(232, 199, 102, 0.04));
  border: 1px solid rgba(232, 199, 102, 0.35); margin-bottom: 6px;
}
.next-l, .next-r { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.next-r { align-items: flex-end; text-align: right; flex: none; }
.kicker { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.next-name { font: 700 22px/1.1 var(--display); }
.next-pot { font: 800 40px/0.95 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.next-cd { font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: 0.02em; }
.roll { font-size: 12px; color: var(--green); font-weight: 600; }
.badge {
  align-self: flex-start; display: inline-block; padding: 4px 9px; border-radius: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap;
}
.badge.sm { padding: 2px 7px; font-size: 11px; white-space: normal; max-width: 100%; }
.b-must { background: rgba(255, 107, 94, 0.14); color: #ffaaa1; border: 1px solid rgba(255, 107, 94, 0.35); }
.b-roll { background: rgba(124, 196, 255, 0.12); color: #a9d8ff; border: 1px solid rgba(124, 196, 255, 0.3); }
.draws { list-style: none; margin: 0; padding: 0; }
.draw { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line-2); }
.draw:last-child { border-bottom: 0; }
.draw-when { font: 600 15px/1.15 var(--display); color: var(--muted); letter-spacing: 0.02em; }
.draw-mid { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.draw-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draw-pot { font: 800 22px/1 var(--display); padding-left: 4px; color: var(--gold); text-align: right; font-variant-numeric: tabular-nums; }
.draw-pot small { display: block; font: 600 11px/1.3 var(--body); color: var(--green); }
.present {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; text-align: center;
  background: rgba(0, 0, 0, 0.3); border: 1px dashed rgba(232, 199, 102, 0.4);
  color: var(--gold); font: 700 16px/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------------------------------------------------------------- jackpots */
.jackpots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.jp {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px; border-radius: 16px;
  background: linear-gradient(160deg, #2a1f08, #120d03); border: 1px solid rgba(232, 199, 102, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 238, 180, 0.12), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.jp::after { content: ''; position: absolute; inset: -40% -10% auto auto; width: 120px; height: 120px; background: radial-gradient(circle, rgba(232, 199, 102, 0.25), transparent 70%); }
.jp-name { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.jp-amt { font: 800 34px/1 var(--display); color: #fff3c4; font-variant-numeric: tabular-nums; }
.jp-q { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- leaderboards */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); margin-bottom: 12px; }
.tabs button {
  flex: 1; min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted);
  font: 700 16px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
}
.tabs button[aria-selected='true'] { background: var(--gold); color: var(--gold-ink); }
.lb-title { margin: 0 0 2px; font: 700 18px/1.2 var(--display); letter-spacing: 0.03em; }
.lb-sub { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.lb { list-style: none; margin: 0; padding: 0; }
.lb-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 10px; }
.lb-row:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.lb-rank { font: 800 19px/1 var(--display); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.top1 .lb-rank { color: #ffd862; } .top2 .lb-rank { color: #d9dde3; } .top3 .lb-rank { color: #e0a372; }
.lb-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.lb-name small { margin-left: 6px; color: var(--dim); font-weight: 400; }
.lb-name em { color: var(--gold); font-style: normal; font-size: 0.85em; }
.lb-val { font: 700 19px/1 var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.lb-val small { font: 500 11px/1 var(--body); color: var(--dim); }
.lb-pay { font: 800 19px/1 var(--display); color: var(--gold); text-align: right; min-width: 58px; font-variant-numeric: tabular-nums; }
.lb-pay:empty { min-width: 0; }
.lb-row.is-me { background: rgba(232, 199, 102, 0.16) !important; box-shadow: inset 0 0 0 1.5px var(--gold); }
.lb-me { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(232, 199, 102, 0.1); border: 1px solid var(--line); font-size: 14px; }
.lb-me b { color: var(--gold); }

/* ---------------------------------------------------------------- recent winners */
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.recent li:last-child { border-bottom: 0; }
.recent li.is-me { background: rgba(232, 199, 102, 0.12); border-radius: 10px; padding-inline: 8px; }
.rc-amt { flex: none; min-width: 74px; font: 800 22px/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.rc-mid { min-width: 0; font-size: 14px; }
.rc-mid small { color: var(--dim); }
.rc-mid .dim { font-size: 12.5px; }

/* ---------------------------------------------------------------- how it works */
.how summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.how summary::-webkit-details-marker { display: none; }
.how summary .card-h { margin: 0; }
.chev { width: 12px; height: 12px; border-right: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(45deg); transition: transform 0.2s; margin: -4px 4px 0 0; }
.how[open] .chev { transform: rotate(-135deg); margin-top: 4px; }
.rules { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.rules b { color: var(--text); }
.rules li::marker { color: var(--gold); }

.foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; color: var(--dim); font-size: 12px; }

/* ---------------------------------------------------------------- live stage banner */
.stage {
  position: sticky; top: 0; z-index: 20; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
  background: linear-gradient(90deg, #7a1a12, #b32a1b 50%, #7a1a12); border-bottom: 2px solid var(--gold);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.stage.splash { background: linear-gradient(90deg, #0c3d5c, #1466a0, #0c3d5c); }
.stage-in { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.stage-k { display: inline-flex; align-items: center; gap: 7px; font: 800 14px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: #fff3c4; }
.stage-k .pulse { background: #fff3c4; }
.stage-d { font: 700 18px/1.1 var(--display); letter-spacing: 0.03em; }
.stage-d b { color: var(--gold); }
.stage-r { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; flex-basis: 100%; }
.stage-t { font: 700 22px/1.1 var(--display); }
.stage-t small { font: 500 13px/1 var(--body); color: #ffd9c9; margin-left: 4px; }
.stage-t b { color: #fff; }
.shimmer { background: linear-gradient(90deg, #fff 0%, var(--gold) 50%, #fff 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.st-clock { font: 800 18px/1 var(--display); padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); font-variant-numeric: tabular-nums; }
.st-clock.urgent { color: #ffd0c8; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.55; } }
.st-ok { font-weight: 700; color: #b8ffd6; }
.st-bad { font-weight: 700; color: #ffd0c8; }

/* ---------------------------------------------------------------- YOU WON */
.won {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(circle at 50% 40%, rgba(80, 60, 10, 0.85), rgba(0, 0, 0, 0.92));
  backdrop-filter: blur(4px);
}
.won-card {
  position: relative; overflow: hidden; width: min(440px, 100%); text-align: center; padding: 30px 22px 24px;
  border-radius: 24px; background: linear-gradient(170deg, #1f4a31, #0b1d13); border: 2px solid var(--gold);
  box-shadow: 0 0 60px rgba(232, 199, 102, 0.4);
}
.won-k { margin: 0; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-size: 13px; }
.won-h { margin: 6px 0 0 !important; font: 800 64px/0.95 var(--display) !important; color: #fff3c4 !important; letter-spacing: 0.02em; animation: pop 0.6s cubic-bezier(.2, 1.6, .4, 1); }
.won-amt { margin: 6px 0 4px; font: 800 56px/1 var(--display); color: var(--gold); }
.won-sub { margin: 4px 0 12px; font: 700 20px/1.2 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.won-clock { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.st-clock.big { font-size: 44px; padding: 6px 16px; border-radius: 12px; color: #fff; }
.won .btn-gold { width: 100%; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; background: var(--gold); opacity: 0.9; animation: fall 3.2s linear infinite; }
.confetti i:nth-child(3n) { background: #fff3c4; }
.confetti i:nth-child(3n+1) { background: var(--green); }
.confetti i:nth-child(4n) { background: var(--red); }
.confetti i:nth-child(1) { left: 4%; animation-delay: 0s; } .confetti i:nth-child(2) { left: 8%; animation-delay: 1.1s; }
.confetti i:nth-child(3) { left: 12%; animation-delay: 0.4s; } .confetti i:nth-child(4) { left: 16%; animation-delay: 2.2s; }
.confetti i:nth-child(5) { left: 20%; animation-delay: 1.6s; } .confetti i:nth-child(6) { left: 24%; animation-delay: 0.8s; }
.confetti i:nth-child(7) { left: 28%; animation-delay: 2.7s; } .confetti i:nth-child(8) { left: 32%; animation-delay: 0.2s; }
.confetti i:nth-child(9) { left: 36%; animation-delay: 1.9s; } .confetti i:nth-child(10) { left: 40%; animation-delay: 1.3s; }
.confetti i:nth-child(11) { left: 44%; animation-delay: 2.5s; } .confetti i:nth-child(12) { left: 48%; animation-delay: 0.6s; }
.confetti i:nth-child(13) { left: 52%; animation-delay: 2s; } .confetti i:nth-child(14) { left: 56%; animation-delay: 0.1s; }
.confetti i:nth-child(15) { left: 60%; animation-delay: 1.4s; } .confetti i:nth-child(16) { left: 64%; animation-delay: 2.9s; }
.confetti i:nth-child(17) { left: 68%; animation-delay: 0.9s; } .confetti i:nth-child(18) { left: 72%; animation-delay: 1.7s; }
.confetti i:nth-child(19) { left: 76%; animation-delay: 0.3s; } .confetti i:nth-child(20) { left: 80%; animation-delay: 2.4s; }
.confetti i:nth-child(21) { left: 84%; animation-delay: 1.2s; } .confetti i:nth-child(22) { left: 88%; animation-delay: 0.5s; }
.confetti i:nth-child(23) { left: 92%; animation-delay: 2.1s; } .confetti i:nth-child(24) { left: 96%; animation-delay: 1s; }
@keyframes fall { to { transform: translateY(640px) rotate(540deg); } }

/* ---------------------------------------------------------------- small phones */
@media (max-width: 370px) {
  .held-n { font-size: 88px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .draw { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .ring { width: 100px; height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.more { margin-top: 10px; width: 100%; min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--gold); font: 700 15px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 520px) { .brand h1 { font-size: 26px; } }
.more-li { list-style: none; }
@media (min-width: 900px) { .draw { grid-template-columns: 130px minmax(0, 1fr) auto; } }
