/* GoScore web demo — values copied from lib/themes.dart and the widget tree
   (active_game.dart, results.dart, sheets/*, widgets/*). Sizes are in "design px";
   main.js scales #stage to the iframe. */

html, body { height: 100%; margin: 0; overflow: hidden; }
body { background: #DCEBFF; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

#root {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  --sh: 680px;

  /* cloudpop (default) */
  --bg: linear-gradient(172deg, #DCEBFF 0%, #EAE2FF 45%, #FFE3EC 100%);
  --b1: #7FB3FF; --b1x: -20%; --b1y: -10%; --b1s: 380px;
  --b2: #FFB6C8; --b2x: 70%;  --b2y: 25%;  --b2s: 320px;
  --b3: #C8B6FF; --b3x: -15%; --b3y: 70%;  --b3s: 300px;
  --accent: #5B8CFF; --accent-rgb: 91,140,255; --accent-soft: #DCE7FF;
  --text: #1F2A44; --text-rgb: 31,42,68;
  --muted: rgba(31,42,68,.62); --faint: rgba(31,42,68,.35);
  --glass: rgba(255,255,255,.55); --glass-strong: rgba(255,255,255,.78); --glass-border: rgba(255,255,255,.75);
  --glass-shadow: 0 14px 40px rgba(91,140,255,.12), 0 2px 6px rgba(31,42,68,.05);
  --btn: linear-gradient(180deg, #6B98FF, #4574EF); --btn-shadow: 0 10px 24px rgba(69,116,239,.36);
  --chip: rgba(255,255,255,.65);
  --name-sheen: #A5C0FF; /* alphaBlend(accent @ .55, white) */
}
#root[data-theme="sunhaze"] {
  --bg: linear-gradient(175deg, #FFF1E0 0%, #FFD6C2 50%, #FFC2D1 100%);
  --b1: #FFB088; --b1x: -10%; --b1y: -15%; --b1s: 360px;
  --b2: #FFD4A0; --b2x: 65%;  --b2y: 15%;  --b2s: 340px;
  --b3: #FF9DBA; --b3x: -20%; --b3y: 65%;  --b3s: 320px;
  --accent: #F0744A; --accent-rgb: 240,116,74; --accent-soft: #FFE0D2;
  --text: #4A2418; --text-rgb: 74,36,24;
  --muted: rgba(74,36,24,.62); --faint: rgba(74,36,24,.32);
  --glass: rgba(255,250,245,.55); --glass-strong: rgba(255,252,248,.82); --glass-border: rgba(255,255,255,.70);
  --glass-shadow: 0 14px 40px rgba(240,116,74,.14), 0 2px 6px rgba(74,36,24,.05);
  --btn: linear-gradient(180deg, #FF9166, #ED6336); --btn-shadow: 0 10px 24px rgba(237,99,54,.36);
  --chip: rgba(255,255,255,.65);
  --name-sheen: #F7B39B;
}
#root[data-theme="mintwave"] {
  --bg: linear-gradient(175deg, #DFF5EC 0%, #D9EEFB 55%, #E6E0FA 100%);
  --b1: #7FE0C2; --b1x: -15%; --b1y: -10%; --b1s: 360px;
  --b2: #A8D8F8; --b2x: 70%;  --b2y: 20%;  --b2s: 320px;
  --b3: #B9A8F0; --b3x: -15%; --b3y: 68%;  --b3s: 300px;
  --accent: #2EAA88; --accent-rgb: 46,170,136; --accent-soft: #CFEFE2;
  --text: #143A33; --text-rgb: 20,58,51;
  --muted: rgba(20,58,51,.62); --faint: rgba(20,58,51,.32);
  --glass: rgba(255,255,255,.55); --glass-strong: rgba(255,255,255,.80); --glass-border: rgba(255,255,255,.70);
  --glass-shadow: 0 14px 40px rgba(46,170,136,.13), 0 2px 6px rgba(20,58,51,.05);
  --btn: linear-gradient(180deg, #3CC6A1, #1E9D7B); --btn-shadow: 0 10px 24px rgba(30,157,123,.36);
  --chip: rgba(255,255,255,.65);
  --name-sheen: #8CD0BE;
}

#stage {
  position: absolute; left: 0; top: 0; width: 340px; height: 680px;
  transform-origin: 0 0; overflow: hidden;
}

/* ---------- GsBackground ---------- */
.bg { position: absolute; inset: 0; background: var(--bg); overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; opacity: .55; filter: blur(60px); }
.b1 { left: var(--b1x); top: var(--b1y); width: var(--b1s); height: var(--b1s); background: var(--b1); }
.b2 { left: var(--b2x); top: var(--b2y); width: var(--b2s); height: var(--b2s); background: var(--b2); }
.b3 { left: var(--b3x); top: var(--b3y); width: var(--b3s); height: var(--b3s); background: var(--b3); }
.wash { position: absolute; inset: 0;
  background: radial-gradient(circle 120vmax at 50% 0, rgba(255,255,255,.6) 0, rgba(255,255,255,0) 60%);
  background: radial-gradient(circle calc(var(--sw, 340px) * 1.2) at 50% 0, rgba(255,255,255,.6) 0, rgba(255,255,255,0) 60%); }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- generic controls ---------- */
button { font: inherit; color: inherit; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none; }
button:disabled { cursor: default; }
button:focus { outline: none; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.glass-pill {
  background: var(--glass-strong); border: .5px solid var(--glass-border); border-radius: 999px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.glass {
  background: var(--glass); border: .5px solid var(--glass-border); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
}

.btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; border-radius: 28px;
  font-size: 17px; font-weight: 600; letter-spacing: -.2px; white-space: nowrap;
  transition: transform .12s ease, filter .12s ease; }
.btn.primary { background: var(--btn); color: #fff; box-shadow: var(--btn-shadow); }
.btn.primary:disabled { background: rgba(0,0,0,.06); color: var(--faint); box-shadow: none; }
.btn.secondary { background: var(--glass-strong); border: .5px solid var(--glass-border); color: var(--text);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.btn:not(:disabled):active { transform: scale(.98); }
.btn.secondary:active { filter: brightness(.97); }

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.screen.enter { animation: screenIn .3s cubic-bezier(.32,.72,0,1) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- top bar ---------- */
.topbar { flex: none; display: flex; align-items: center; padding: 10px 16px 8px; min-height: 58px; }
.pill-space { flex: none; width: 40px; height: 40px; }
.titles { flex: 1; min-width: 0; padding: 0 8px; text-align: center; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .6px; color: var(--muted); line-height: 1.25; }
.game-name { margin-top: 2px; font-size: 15px; font-weight: 700; letter-spacing: -.2px; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.end-pill { flex: none; position: relative; height: 40px; padding: 0 14px; border-radius: 20px;
  background: rgba(255,80,80,.14); border: .5px solid rgba(220,60,60,.25);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 600; color: #C0392B; transition: transform .12s ease; }
.end-pill:active, .icon-pill:active, .reset-pill:active { transform: scale(.94); }
.end-pill::after, .icon-pill::after, .reset-pill::after { content: ""; position: absolute; inset: -6px; }

.icon-pill { position: absolute; left: 16px; top: 10px; z-index: 30; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--text);
  background: var(--glass-strong); border: .5px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: transform .12s ease; }
.icon-pill .ic-off { display: none; }
.icon-pill[aria-pressed="true"] .ic-on { display: none; }
.icon-pill[aria-pressed="true"] .ic-off { display: block; opacity: .6; }

/* ---------- leader pill ---------- */
.leader-wrap { flex: none; display: flex; justify-content: center; padding: 4px 16px 12px; }
.leader-pill { display: flex; align-items: center; max-width: 100%; padding: 8px 14px 8px 8px; }
.leader-avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.leader-tag { margin: 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .4px; color: var(--muted); }
.leader-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-total { color: var(--accent); }
.leader-pill.bump { animation: pillBump .3s ease; }
@keyframes pillBump { 40% { transform: scale(1.05); } }

/* ---------- card area ---------- */
.card-area { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 12px 24px 0; }
.card-stack { position: relative; width: 100%; max-width: 400px; margin: 0 auto; padding-top: 16px; }
.peek { position: absolute; left: 0; right: 0; top: 32px; display: flex; align-items: center; padding: 20px;
  border-radius: 32px; background: var(--glass); border: .5px solid var(--glass-border);
  transform: scale(.94); opacity: .5; }
.peek-avatar { font-size: 28px; line-height: 1.2; margin-right: 12px; }
.peek-text { font-size: 13px; font-weight: 500; color: var(--muted); }

.card { position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 32px 24px 22px; border-radius: 36px;
  background: var(--glass-strong); border: .5px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 20px 60px rgba(0,0,0,.10);
  -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
  touch-action: pan-y; will-change: transform; }
.turn-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--accent-soft);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb),.08), 0 10px 30px rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center; font-size: 56px; line-height: 1; }
.turn-tag { margin-top: 12px; font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--muted); line-height: 1.2; }
.turn-name { margin-top: 2px; font-size: 30px; font-weight: 700; letter-spacing: -.6px; line-height: 1.2; }
.turn-total { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.25; }
.turn-total b { font-weight: 700; color: var(--text); }
.entry { display: flex; align-items: center; width: 100%; margin-top: 22px; }
.step { flex: none; width: 52px; height: 52px; border-radius: 18px; background: var(--chip);
  font-size: 24px; font-weight: 600; line-height: 1; color: var(--text); transition: transform .1s ease, background .1s ease; }
.step:active { transform: scale(.93); background: var(--glass-strong); }
.score-field { flex: 1; min-width: 0; height: 64px; margin: 0 10px; border-radius: 20px; background: var(--chip);
  border: .5px solid var(--glass-border); display: flex; align-items: center; }
.score-field:focus-within, .edit-field:focus-within { box-shadow: 0 0 0 2px rgba(var(--accent-rgb),.35); }
.score-field input, .edit-field input { width: 100%; height: 100%; min-width: 0; margin: 0; padding: 0 8px; border: 0; outline: 0;
  background: transparent; text-align: center; font-family: inherit; color: var(--text); caret-color: var(--accent);
  -webkit-user-select: text; user-select: text; touch-action: manipulation; border-radius: inherit; -webkit-appearance: none; appearance: none; }
.score-field input { font-size: 32px; font-weight: 700; letter-spacing: -.5px; }
.score-field input::placeholder { color: var(--faint); opacity: 1; font-weight: 700; }
.card .btn { margin-top: 14px; }
.swipe-hint { margin-top: 10px; font-size: 11px; font-weight: 500; letter-spacing: .3px; color: var(--faint); line-height: 1.2; }

/* ---------- bottom actions ---------- */
.actions { flex: none; display: flex; gap: 10px; padding: 12px 20px 0; }
.action { flex: 1; min-width: 0; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--glass-strong); border: .5px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  font-size: 14px; font-weight: 600; color: var(--text); transition: transform .12s ease; }
.action:not(:disabled):active { transform: scale(.97); }
.action:disabled { color: var(--faint); }
.action:disabled > * { opacity: .6; }

/* ---------- demo bar (preview label, themes, reset) ---------- */
.demo-bar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 20px 8px; min-height: 54px; }
.preview-tag { min-width: 72px; font-size: 10px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--faint); }
.swatches { display: flex; }
.swatch { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.swatch i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12);
  transition: transform .2s ease, box-shadow .2s ease; }
.swatch[data-theme-id="cloudpop"] i { background: linear-gradient(160deg, #7FB3FF, #FFB6C8); }
.swatch[data-theme-id="sunhaze"] i  { background: linear-gradient(160deg, #FFB088, #FF9DBA); }
.swatch[data-theme-id="mintwave"] i { background: linear-gradient(160deg, #7FE0C2, #B9A8F0); }
.swatch[aria-pressed="true"] i { transform: scale(1.12); box-shadow: 0 0 0 2px var(--accent), 0 2px 6px rgba(0,0,0,.12); }
.reset-pill { position: relative; min-width: 72px; height: 40px; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text); transition: transform .12s ease; }

/* ---------- results ---------- */
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; display: block; opacity: 0;
  animation: fall 4s linear infinite; }
@keyframes fall {
  0%   { transform: translateY(-40px) rotate(0deg); opacity: 0; }
  10%  { opacity: .9; }
  90%  { opacity: .9; }
  100% { transform: translateY(calc(var(--sh) + 40px)) rotate(360deg); opacity: 0; }
}
.results-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 440px; margin: 0 auto; padding: 0 20px 16px; }
.winner { display: flex; flex-direction: column; align-items: center; padding: 4px 0 14px; }
.winner-pill { display: flex; align-items: center; padding: 5px 12px 5px 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; line-height: 16px; }
.trophy { font-size: 14px; margin-right: 6px; letter-spacing: 0; }
.winner-avatar { margin-top: 10px; width: 108px; height: 108px; border-radius: 50%;
  background: var(--glass-strong); border: .5px solid var(--glass-border);
  box-shadow: 0 0 0 7px rgba(var(--accent-rgb),.09), 0 16px 40px rgba(0,0,0,.10);
  display: flex; align-items: center; justify-content: center; font-size: 64px; line-height: 1;
  animation: breathe 3s linear infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.winner-title { margin: 8px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -.6px; line-height: 1.2; }
.winner-sub { margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.3; text-align: center; }
.winner-sub b { font-weight: 700; color: var(--accent); }

.podium { display: flex; align-items: flex-end; gap: 10px; padding: 8px 4px 0; }
.pod { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.pod-avatar { width: 42px; height: 42px; border-radius: 50%; transform: translateY(8px);
  background: var(--glass-strong); border: .5px solid var(--glass-border);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.13), 0 6px 14px rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; }
.pod.win .pod-avatar { width: 52px; height: 52px; font-size: 28px;
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb),.13), 0 6px 14px rgba(0,0,0,.08); }
.pod-bar { position: relative; width: 100%; margin-top: 18px; border-radius: 18px 18px 6px 6px;
  background: var(--glass-strong); border: .5px solid var(--glass-border); box-shadow: 0 4px 14px rgba(0,0,0,.05);
  transform-origin: 50% 100%; animation: barUp .5s cubic-bezier(.32,.72,0,1) both; }
@keyframes barUp { from { transform: scaleY(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.pod.win .pod-bar { background: var(--btn); box-shadow: var(--btn-shadow); }
.pod-medal { position: absolute; left: 0; right: 0; top: -14px; text-align: center; font-size: 32px; line-height: 1; }
.pod.win .pod-medal { font-size: 44px; }
.pod-text { position: absolute; left: 6px; right: 6px; bottom: 10px; text-align: center; }
.pod.win .pod-text { bottom: 14px; }
.pod-name { font-size: 13px; font-weight: 700; letter-spacing: -.2px; line-height: 1.1; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod.win .pod-name { font-size: 26px; font-weight: 800; letter-spacing: -.6px; line-height: 1.05; color: #fff;
  background: linear-gradient(180deg, #fff, var(--name-sheen)); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
.pod-score { margin-top: 2px; font-size: 17px; font-weight: 800; letter-spacing: -.4px; line-height: 1; color: rgba(var(--text-rgb),.85); }
.pod.win .pod-score { font-size: 36px; font-weight: 900; letter-spacing: -1px; color: #fff; }

.rest-label { padding: 20px 4px 8px; font-size: 11px; font-weight: 600; letter-spacing: .8px; color: var(--muted); line-height: 14px; }
.rest { border-radius: 20px; overflow: hidden; }
.rest-row { display: flex; align-items: center; padding: 12px 16px; }
.rest-row + .rest-row { border-top: .5px solid rgba(var(--text-rgb),.17); }
.rest-rank { width: 20px; font-size: 12px; font-weight: 700; color: var(--muted); }
.rest-emoji { margin: 0 12px; font-size: 20px; line-height: 1; }
.rest-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.rest-total { font-size: 15px; font-weight: 700; }
#again { margin-top: 20px; flex: none; }

/* ---------- GsModalSheet ---------- */
.scrim { position: absolute; inset: 0; z-index: 20; background: rgba(20,20,40,.32);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .24s ease-in, visibility 0s linear .24s; }
.scrim.open { opacity: 1; visibility: visible; transition: opacity .36s cubic-bezier(.32,.72,0,1), visibility 0s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 20px 28px;
  border-radius: 32px 32px 0 0; background: var(--glass-strong);
  border: .5px solid var(--glass-border); border-bottom: 0; box-shadow: 0 -8px 40px rgba(0,0,0,.12);
  -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
  transform: translateY(110%); visibility: hidden; outline: none;
  transition: transform .24s ease-in, visibility 0s linear .24s; }
.sheet.open { transform: none; visibility: visible; transition: transform .36s cubic-bezier(.32,.72,0,1), visibility 0s; }
.sheet-body { width: 100%; max-width: 440px; margin: 0 auto; }
.grabber { width: 36px; height: 5px; margin: 4px auto 14px; border-radius: 3px; background: var(--faint); }
.sheet-title { margin: 0; padding: 0 4px 14px; font-size: 20px; font-weight: 700; letter-spacing: -.4px; line-height: 1.2; }
.sheet-title.tight { padding-bottom: 4px; }
.sheet-sub { margin: 0; padding: 0 4px 16px; font-size: 13px; color: var(--muted); line-height: 1.3; }
.sheet-gap { margin-top: 18px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; min-width: 0; }

.score-rows { display: flex; flex-direction: column; gap: 8px; }
.score-row { display: flex; align-items: center; padding: 12px 14px; border-radius: 18px;
  background: rgba(255,255,255,.5); border: .5px solid var(--glass-border); }
.score-row.first { background: var(--accent-soft); }
.rank { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.score-row.first .rank { background: var(--accent); color: #fff; }
.row-emoji { margin: 0 12px; font-size: 24px; line-height: 1; }
.row-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.row-total { font-size: 18px; font-weight: 700; }

.last-box { display: flex; align-items: center; padding: 16px; border-radius: 22px; background: var(--accent-soft); border: .5px solid var(--glass-border); }
.avatar48 { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--glass-strong); border: .5px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; }
.last-mid { flex: 1; min-width: 0; margin: 0 12px; display: flex; flex-direction: column; }
.last-tag { font-size: 11px; font-weight: 600; letter-spacing: .4px; color: var(--muted); }
.last-name { font-size: 17px; font-weight: 700; }
.last-value { font-size: 22px; font-weight: 700; color: var(--muted); }
.field-label { display: block; padding: 14px 4px 8px; font-size: 12px; font-weight: 600; letter-spacing: .6px; color: var(--muted); }
.edit-field { height: 64px; margin-bottom: 16px; border-radius: 18px; background: var(--glass-strong); border: .5px solid var(--glass-border); display: flex; }
.edit-field input { font-size: 28px; font-weight: 700; letter-spacing: -.2px; }

.end-head { padding: 8px 8px 22px; text-align: center; }
.end-flag { font-size: 44px; line-height: 1.2; }
.end-title { margin: 6px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -.4px; line-height: 1.2; }
.end-sub { margin: 8px 12px 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- compact (short iframes) ---------- */
.compact .leader-wrap { padding-bottom: 8px; }
.compact .card { padding: 22px 24px 16px; }
.compact .turn-avatar { width: 76px; height: 76px; font-size: 42px; }
.compact .entry { margin-top: 16px; }
.compact .winner-avatar { width: 84px; height: 84px; font-size: 50px; }
.compact .rest-label { padding-top: 12px; }
.compact #again { margin-top: 14px; }

/* ---------- lifecycle / motion ---------- */
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  .winner-avatar, .pod-bar, .screen.enter, .leader-pill.bump { animation: none; }
  .sheet, .sheet.open { transition-duration: .01s, 0s; }
}
