:root {
  --bg: #0b0716;
  --bg-2: #140c26;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f1ff;
  --muted: #a99fc4;
  --faint: #6f6690;
  --gold: #ffcf5a;
  --gold-2: #ff9f1c;
  --pink: #ff4d8d;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --green: #34d399;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --reel-item: 120px;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  animation: drift 26s ease-in-out infinite alternate;
}
.orb-1 { width: 560px; height: 560px; background: #6d28d9; top: -180px; left: -140px; }
.orb-2 { width: 480px; height: 480px; background: #be185d; bottom: -200px; right: -120px; animation-delay: -8s; opacity: 0.4; }
.orb-3 { width: 360px; height: 360px; background: #b45309; top: 40%; left: 55%; animation-delay: -16s; opacity: 0.22; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 40px);
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; display: flex; gap: 8px; align-items: center; }
.brand-mark { color: var(--gold); display: inline-block; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: rotate(90deg) scale(0.85); opacity: 0.7; } }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; display: grid; place-items: center; font-size: 16px;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn .sound-off { display: none; }
.icon-btn[aria-pressed="false"] .sound-on { display: none; }
.icon-btn[aria-pressed="false"] .sound-off { display: inline; }

main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 80px; }

/* views enter */
.view { animation: view-in 420ms var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Hero / upload ---------- */
.hero { text-align: center; margin: clamp(24px, 7vh, 72px) auto 36px; max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); background: rgba(255, 207, 90, 0.08); border: 1px solid rgba(255, 207, 90, 0.2);
  padding: 5px 12px; border-radius: 999px;
}
h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.035em;
  margin: 18px 0 14px; text-wrap: balance;
}
.shine {
  background: linear-gradient(100deg, var(--gold) 0%, #fff3c4 30%, var(--gold-2) 55%, var(--pink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: -200% center; } }
.lead { color: var(--muted); font-size: clamp(15px, 2vw, 18px); margin: 0 auto; max-width: 560px; text-wrap: pretty; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  max-width: 640px; margin: 0 auto; padding: 48px 24px; text-align: center; cursor: pointer;
  border-radius: 24px; border: 1.5px dashed var(--border-strong);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  transition: transform 200ms var(--ease-out), border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}
.dropzone:active { transform: scale(0.99); }
.dropzone.dragging {
  border-color: var(--gold); transform: scale(1.015);
  background-color: rgba(255, 207, 90, 0.06);
  box-shadow: 0 0 0 6px rgba(255, 207, 90, 0.08), 0 30px 80px -30px rgba(255, 207, 90, 0.4);
}
.dz-icon {
  width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; color: var(--gold);
  background: rgba(255, 207, 90, 0.1); border: 1px solid rgba(255, 207, 90, 0.25);
  transition: transform 300ms var(--ease-spring);
}
.dropzone.dragging .dz-icon { transform: translateY(-4px) scale(1.06); }
.dz-title { font-weight: 700; font-size: 18px; }
.dz-sub { color: var(--muted); font-size: 14px; }
.dz-sub u { text-decoration-color: var(--gold); text-underline-offset: 3px; }

.upload-alt { text-align: center; margin-top: 18px; }

.howto {
  max-width: 640px; margin: 28px auto 0; color: var(--muted); font-size: 14px;
  border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; background: var(--surface);
}
.howto summary { cursor: pointer; color: var(--text); font-weight: 500; }
.howto ol { margin: 10px 0 2px; padding-left: 20px; }
.howto li { margin: 4px 0; }
.howto b { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 14px; padding: 11px 18px;
  font-weight: 700; cursor: pointer; background: var(--surface); white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 12px; }
.btn-ghost { background: var(--surface); }
.btn-primary {
  border: none; color: #1b1030; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  box-shadow: 0 10px 30px -10px rgba(255, 159, 28, 0.7), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-primary > span { position: relative; z-index: 1; }
.btn-xl { font-family: var(--font-display); font-size: clamp(17px, 2.4vw, 22px); padding: 20px 40px; border-radius: 20px; letter-spacing: -0.01em; }
.btn-glow {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sweep 3.2s var(--ease-in-out) infinite;
}
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }

.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 4px 6px; border-radius: 8px; transition: color 200ms ease; }

@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
  .dropzone:hover { border-color: rgba(255, 207, 90, 0.5); background-color: rgba(255, 207, 90, 0.03); }
  .btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }
  .btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(255, 159, 28, 0.85), inset 0 1px 0 rgba(255,255,255,.5); }
  .link-btn:hover { color: var(--pink); }
  .card:hover { border-color: var(--border-strong); background: rgba(255,255,255,.06); }
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Pool ---------- */
.pool-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 20px 0 22px; flex-wrap: wrap; }
.pool-title { font-family: var(--font-display); font-size: clamp(24px, 3.6vw, 36px); letter-spacing: -0.03em; margin: 12px 0 10px; line-height: 1.1; }
#entryCount { color: var(--gold); font-variant-numeric: tabular-nums; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 13px; color: var(--muted); padding: 5px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.chip b { color: var(--text); font-variant-numeric: tabular-nums; }
.chip.warn b { color: var(--pink); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(12px); }
.settings { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding: 16px 20px; }
.setting { display: flex; align-items: center; gap: 10px; }
.setting-label { font-size: 13px; color: var(--muted); font-weight: 500; }

.segmented { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--border); position: relative; }
.segmented button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--muted);
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.segmented button:active { transform: scale(0.96); }
.segmented button.active { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 8px rgba(0,0,0,.3); }

.select {
  appearance: none; background: rgba(0,0,0,.3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a99fc4' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--border); border-radius: 10px; padding: 7px 32px 7px 12px; font-size: 13px; max-width: 240px; cursor: pointer;
}
.select option { background: var(--bg-2); }

.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.track {
  width: 36px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.12); position: relative; flex: none;
  transition: background-color 200ms ease;
}
.track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
  transition: transform 220ms var(--ease-out);
}
.toggle input:checked + .track { background: var(--green); }
.toggle input:checked + .track::after { transform: translateX(16px); }
.toggle input:focus-visible + .track { outline: 2px solid var(--gold); outline-offset: 2px; }
.toggle:has(input:checked) { color: var(--text); }

.cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 36px 0 34px; }
.hint { font-size: 13px; color: var(--faint); }
kbd { font-family: var(--font-body); font-size: 12px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; color: var(--muted); }

/* winners */
.winners { padding: 16px 20px; margin-bottom: 30px; border-color: rgba(255, 207, 90, 0.25); background: linear-gradient(180deg, rgba(255,207,90,.07), rgba(255,207,90,.02)); }
.winners-head { display: flex; justify-content: space-between; align-items: center; }
.winners-head h3 { margin: 0; font-family: var(--font-display); font-size: 16px; }
.winners-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.winners-list li {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.2);
  animation: view-in 300ms var(--ease-out) both;
}
.w-rank { font-family: var(--font-display); font-weight: 800; color: var(--gold); font-size: 14px; width: 26px; text-align: center; }
.w-name { font-weight: 700; }
.w-items { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-time { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }

/* list */
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.list-head h3 { margin: 0; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); min-width: min(300px, 100%); transition: border-color 200ms ease; }
.search:focus-within { border-color: var(--border-strong); }
.search input { border: 0; outline: 0; background: transparent; padding: 10px 0; width: 100%; font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card {
  display: flex; gap: 12px; padding: 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 200ms ease, background-color 200ms ease;
  animation: card-in 360ms var(--ease-out) both;
  animation-delay: calc(min(var(--i, 0), 24) * 25ms);
}
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } }
.card.is-winner { border-color: rgba(255, 207, 90, 0.45); background: rgba(255, 207, 90, 0.06); }
.card.is-out { opacity: 0.4; }
.avatar {
  flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 80% 60%), hsl(calc(var(--h) + 40) 80% 45%));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.card-body { min-width: 0; flex: 1; }
.card-name { font-weight: 700; display: flex; gap: 6px; align-items: baseline; justify-content: space-between; }
.card-name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-orders { font-size: 12px; color: var(--faint); font-weight: 500; flex: none; font-variant-numeric: tabular-nums; }
.items { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.items li { font-size: 12px; color: var(--muted); background: rgba(255,255,255,.05); border-radius: 7px; padding: 2px 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.items li b { color: var(--gold); font-weight: 700; }
.grid-more { text-align: center; color: var(--faint); font-size: 13px; margin-top: 16px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Stage ---------- */
.stage {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px;
  background: rgba(6, 3, 14, 0.86); backdrop-filter: blur(14px);
  animation: fade-in 300ms var(--ease-out) both;
}
.stage.closing { animation: fade-out 180ms ease-out both; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.stage-spot {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(139, 92, 246, 0.28), transparent 70%);
}
.stage-close { position: absolute; top: 18px; right: 18px; z-index: 3; }

.drawing { position: relative; width: min(680px, 100%); text-align: center; }
.stage-label { color: var(--muted); margin-bottom: 22px; font-size: 15px; transition: opacity 300ms ease; }
.stage-label b { color: var(--text); }

.countdown {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 4; pointer-events: none;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(100px, 22vw, 200px); line-height: 1;
  color: var(--gold); text-shadow: 0 0 60px rgba(255, 207, 90, 0.6);
}
.countdown.pop { animation: count-pop 700ms var(--ease-out) both; }
@keyframes count-pop {
  0% { opacity: 0; transform: scale(1.5); filter: blur(8px); }
  30% { opacity: 1; transform: scale(1); filter: blur(0); }
  75% { opacity: 1; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(0.85); filter: blur(4px); }
}

.reel-window {
  position: relative; height: calc(var(--reel-item) * 3); overflow: hidden; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid var(--border);
  mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 74%, transparent 100%);
  transition: opacity 300ms ease, transform 300ms var(--ease-out);
}
.reel-window.dim { opacity: 0.25; transform: scale(0.98); }
.reel { will-change: transform; }
.reel.blurred { filter: url(#motion-blur); }
.reel-item {
  height: var(--reel-item); display: flex; align-items: center; gap: 18px; padding: 0 40px; text-align: left;
  transition: opacity 300ms ease;
}
.reel-item .avatar { width: 58px; height: 58px; border-radius: 18px; font-size: 18px; }
.reel-text { min-width: 0; }
.reel-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 3.4vw, 30px); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-items { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-frame {
  position: absolute; left: 12px; right: 12px; top: var(--reel-item); height: var(--reel-item); pointer-events: none;
  border-radius: 20px; border: 2px solid rgba(255, 207, 90, 0.7);
  box-shadow: 0 0 0 1px rgba(255,207,90,.15), 0 0 40px rgba(255, 207, 90, 0.25), inset 0 0 30px rgba(255, 207, 90, 0.08);
}
.reel-window.landed .reel-frame { animation: frame-flash 600ms var(--ease-out) 2; }
@keyframes frame-flash { 50% { box-shadow: 0 0 0 6px rgba(255,207,90,.3), 0 0 80px rgba(255, 207, 90, 0.7), inset 0 0 40px rgba(255, 207, 90, 0.2); } }
.pointer { position: absolute; top: 50%; translate: 0 -50%; color: var(--gold); font-size: 18px; text-shadow: 0 0 12px rgba(255,207,90,.8); }
.pointer-l { left: -2px; }
.pointer-r { right: -2px; }

/* winner */
.stage { overflow: hidden; }
.winner { position: absolute; inset: 0; display: grid; place-items: center; padding: 50px 20px 20px; overflow: hidden auto; }
.rays {
  position: absolute; left: 50%; top: 50%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 207, 90, 0.10) 0deg 8deg, transparent 8deg 22deg);
  mask-image: radial-gradient(circle, #000 0%, transparent 60%);
  animation: rays-in 900ms var(--ease-out) both, spin 40s linear infinite;
}
@keyframes rays-in { from { opacity: 0; scale: 0.6; } }
@keyframes spin { to { transform: rotate(360deg); } }

.winner-card {
  position: relative; width: min(560px, 100%); text-align: center; padding: 34px 28px 28px;
  border-radius: 30px; border: 1px solid rgba(255, 207, 90, 0.35);
  background: linear-gradient(180deg, rgba(40, 24, 70, 0.92), rgba(20, 12, 38, 0.95));
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.7), 0 0 80px -10px rgba(255, 207, 90, 0.35), inset 0 1px 0 rgba(255,255,255,.08);
  animation: card-reveal 700ms var(--ease-spring) both;
}
@keyframes card-reveal { from { opacity: 0; transform: translateY(24px) scale(0.9); filter: blur(6px); } }
.winner-card > * { animation: view-in 500ms var(--ease-out) both; }
.winner-card > :nth-child(1) { animation-delay: 150ms; }
.winner-card > :nth-child(2) { animation-delay: 200ms; }
.winner-card > :nth-child(3) { animation-delay: 250ms; }
.winner-card > :nth-child(4) { animation-delay: 300ms; }
.winner-card > :nth-child(5) { animation-delay: 350ms; }
.winner-card > :nth-child(6) { animation-delay: 400ms; }
.winner-card > :nth-child(7) { animation-delay: 450ms; }
.winner-card > :nth-child(8) { animation-delay: 550ms; }

.trophy { font-size: 52px; line-height: 1; margin-top: -70px; filter: drop-shadow(0 10px 25px rgba(255, 159, 28, 0.6)); }
.trophy { animation: trophy-in 800ms var(--ease-spring) 150ms both, float 3s ease-in-out 1s infinite; }
@keyframes trophy-in { from { opacity: 0; transform: translateY(20px) scale(0.6) rotate(-15deg); } }
@keyframes float { 50% { transform: translateY(-6px) rotate(3deg); } }
.winner-label { margin-top: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.winner-avatar { margin: 18px auto 0; width: 84px; height: 84px; border-radius: 26px; font-size: 26px; box-shadow: 0 0 0 4px rgba(255, 207, 90, 0.25), 0 12px 30px -8px rgba(0,0,0,.6); }
.winner-name {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 5.4vw, 46px); letter-spacing: -0.035em; line-height: 1.08;
  margin: 14px 0 6px; text-wrap: balance;
  background: linear-gradient(180deg, #fff 30%, #ffe6a3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.winner-meta { color: var(--muted); font-size: 14px; }
.winner-bought { margin-top: 22px; font-size: 12px; color: var(--faint); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.winner-items { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.winner-items li { padding: 7px 13px; border-radius: 11px; background: rgba(255,255,255,.07); border: 1px solid var(--border); font-size: 14px; }
.winner-items li b { color: var(--gold); }
.winner-actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 14px; background: #2a1d45; border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); font-size: 14px;
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity 200ms ease, transform 300ms var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255, 77, 141, 0.5); }

@media (max-width: 640px) {
  :root { --reel-item: 96px; }
  .reel-item { padding: 0 22px; gap: 14px; }
  .reel-item .avatar { width: 46px; height: 46px; border-radius: 14px; font-size: 15px; }
  .winners-list li { grid-template-columns: auto 1fr; }
  .w-items, .w-time { grid-column: 2; }
  .settings { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .brand-mark, .shine, .btn-glow, .rays, .trophy { animation: none !important; }
  .view, .card, .winner-card, .winner-card > *, .winners-list li { animation: fade-in 200ms ease both !important; }
  .countdown.pop { animation: fade-in 300ms ease both; }
}

/* prank build: the picked card blinks twice — no lasting marker */
.card.rig-blink { animation: rig-blink 520ms ease-in-out 2 !important; }
@keyframes rig-blink { 50% { opacity: 0.35; } }
