/* ---------- thema's ---------- */
:root, [data-theme="neon"] {
  --bg: #120f1f; --bg2: #1b1730; --card: #221d3b; --line: #2f2850;
  --text: #f3f0ff; --muted: #9c95bd;
  --p0: #ff4f9a; --p1: #2ad4f0;
  --accent: #ff4f9a; --accent2: #b25cff; --on-accent: #fff;
  --gold: #ffd166; --danger: #ff6b6b; --ok: #3ee07a;
  --soft: rgba(255, 255, 255, .06); --soft2: rgba(255, 255, 255, .1);
  --header: rgba(18, 15, 31, .82);
  --toast-bg: #f3f0ff; --toast-fg: #1b1730;
  --glow-a: rgba(255, 79, 154, .14); --glow-b: rgba(42, 212, 240, .12);
  --shadow: rgba(0, 0, 0, .4);
  --tint: 22%;
  color-scheme: dark;
}
[data-theme="zilver"] {
  --bg: #f4f5f8; --bg2: #ffffff; --card: #ffffff; --line: #e1e4ec;
  --text: #171a24; --muted: #6b7183;
  --p0: #e0245e; --p1: #0b84c6;
  --accent: #171a24; --accent2: #3a4054; --on-accent: #fff;
  --gold: #c98a00; --danger: #d43c3c; --ok: #1fa557;
  --soft: rgba(20, 25, 40, .05); --soft2: rgba(20, 25, 40, .09);
  --header: rgba(244, 245, 248, .85);
  --toast-bg: #171a24; --toast-fg: #fff;
  --glow-a: rgba(224, 36, 94, .06); --glow-b: rgba(11, 132, 198, .06);
  --shadow: rgba(20, 25, 40, .15);
  --tint: 12%;
  color-scheme: light;
}
[data-theme="klaver"] {
  --bg: #eff6f0; --bg2: #ffffff; --card: #ffffff; --line: #d3e6d7;
  --text: #11301c; --muted: #5d7a66;
  --p0: #15803d; --p1: #d9620b;
  --accent: #15803d; --accent2: #22a35a; --on-accent: #fff;
  --gold: #b07a00; --danger: #c93a3a; --ok: #15803d;
  --soft: rgba(17, 48, 28, .05); --soft2: rgba(17, 48, 28, .09);
  --header: rgba(239, 246, 240, .85);
  --toast-bg: #11301c; --toast-fg: #fff;
  --glow-a: rgba(21, 128, 61, .10); --glow-b: rgba(34, 163, 90, .06);
  --shadow: rgba(17, 48, 28, .15);
  --tint: 12%;
  color-scheme: light;
}
[data-theme="delfts"] {
  --bg: #eef3fb; --bg2: #ffffff; --card: #ffffff; --line: #d4dff2;
  --text: #0e2350; --muted: #5a6b8f;
  --p0: #1d4fd8; --p1: #e0324f;
  --accent: #1d4fd8; --accent2: #3b6cf0; --on-accent: #fff;
  --gold: #b07a00; --danger: #d43c3c; --ok: #1fa557;
  --soft: rgba(14, 35, 80, .05); --soft2: rgba(14, 35, 80, .09);
  --header: rgba(238, 243, 251, .85);
  --toast-bg: #0e2350; --toast-fg: #fff;
  --glow-a: rgba(29, 79, 216, .10); --glow-b: rgba(29, 79, 216, .05);
  --shadow: rgba(14, 35, 80, .15);
  --tint: 12%;
  color-scheme: light;
}
[data-theme="arcade"] {
  --bg: #12100b; --bg2: #1c1912; --card: #252015; --line: #3a3220;
  --text: #fff4dc; --muted: #b3a27f;
  --p0: #ffb020; --p1: #3ddc97;
  --accent: #ffb020; --accent2: #ff7a1a; --on-accent: #1c1206;
  --gold: #ffd166; --danger: #ff6b5b; --ok: #3ddc97;
  --soft: rgba(255, 240, 200, .06); --soft2: rgba(255, 240, 200, .1);
  --header: rgba(18, 16, 11, .85);
  --toast-bg: #fff4dc; --toast-fg: #1c1912;
  --glow-a: rgba(255, 176, 32, .12); --glow-b: rgba(255, 122, 26, .06);
  --shadow: rgba(0, 0, 0, .45);
  --tint: 20%;
  color-scheme: dark;
}

:root { --radius: 18px; --safe-top: env(safe-area-inset-top, 0px); --safe-bot: env(safe-area-inset-bottom, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(1200px 500px at 0% -10%, var(--glow-a), transparent 60%),
    radial-gradient(1200px 500px at 100% -10%, var(--glow-b), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  overscroll-behavior-y: none;
  transition: background-color .2s;
}
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }
[hidden] { display: none !important; }

.pc0 { color: var(--p0); }
.pc1 { color: var(--p1); }
.muted { color: var(--muted); }

/* header */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: var(--header);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top h1 { flex: 1; margin: 0; font-size: 20px; font-weight: 800; letter-spacing: .3px; display: flex; align-items: center; gap: 10px; }
/* Stalen flipperbal: spiegelend chroom met horizon-reflectie, hooglicht en ronde schaduw */
:root {
  --chrome:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,1) 0 7%, rgba(255,255,255,.55) 11%, rgba(255,255,255,0) 20%),
    radial-gradient(circle at 66% 84%, rgba(255,255,255,.55) 0 3%, rgba(255,255,255,0) 12%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 52%, rgba(0,0,0,.28) 74%, rgba(0,0,0,.65) 100%),
    radial-gradient(ellipse 170% 105% at 50% 112%, #d3d8df 0%, #9097a2 22%, #4a515b 38%, #1f2329 45%, #707884 48.5%, #b7bdc7 60%, #e8ebef 78%, #ffffff 100%);
}
.ball, .bigball {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--chrome);
  box-shadow: 0 2px 4px rgba(0,0,0,.35), 0 0 0 .5px rgba(0,0,0,.25);
}
.iconbtn { background: none; border: 0; padding: 8px; border-radius: 12px; display: grid; place-items: center; color: var(--text); }
.iconbtn:active { background: var(--soft2); }
.iconbtn.small { padding: 6px 9px; color: var(--muted); font-size: 14px; }
.live { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 3px 9px 3px 20px; border-radius: 99px; background: var(--soft); position: relative; color: var(--muted); white-space: nowrap; }
.live::before { content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--muted); }
.live.ok::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.live.busy::before { background: var(--gold); }
.live.err::before { background: var(--danger); }

main { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(32px + var(--safe-bot)); }

.banner { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); margin: -4px 0 14px; text-align: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

/* welkom */
.welcome { text-align: center; padding: 48px 12px; }
.welcome .bigball { width: 76px; height: 76px; margin: 0 auto 18px; box-shadow: 0 10px 18px -6px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.2); }
.welcome h2 { margin: 0 0 8px; }
.welcome p { color: var(--muted); margin: 0 auto 22px; max-width: 320px; }

/* scorebord */
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.player {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 200px; padding: 18px 10px 16px;
  border-radius: var(--radius); border: 2px solid transparent;
  background: var(--card); text-align: center; color: var(--text);
  transition: transform .12s ease, box-shadow .2s ease;
  user-select: none; -webkit-user-select: none;
  box-shadow: 0 2px 12px var(--shadow);
}
button.player:active { transform: scale(.97); }
.player.p0 { border-color: color-mix(in srgb, var(--p0) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--p0) var(--tint), transparent), transparent 75%), var(--card); }
.player.p1 { border-color: color-mix(in srgb, var(--p1) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--p1) var(--tint), transparent), transparent 75%), var(--card); }
.player.p0.lead { box-shadow: 0 0 0 1px var(--p0), 0 8px 32px color-mix(in srgb, var(--p0) 30%, transparent); }
.player.p1.lead { box-shadow: 0 0 0 1px var(--p1), 0 8px 32px color-mix(in srgb, var(--p1) 30%, transparent); }
.player.lead::after { content: "👑"; position: absolute; top: 10px; right: 12px; font-size: 18px; }
.pname { font-weight: 800; font-size: 18px; line-height: 1.2; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.preal { font-size: 12.5px; color: var(--muted); margin-top: -2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p0 .pname { color: var(--p0); }
.p1 .pname { color: var(--p1); }
.score { font-size: 84px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -2px; }
.score.bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.hint { font-size: 13px; color: var(--muted); font-weight: 600; padding: 4px 12px; border-radius: 99px; background: var(--soft); margin-top: 6px; }
div.player { min-height: 170px; }

.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.actions.bottom { margin-top: 22px; }

/* kop of munt */
.nextbar { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; padding: 10px 6px 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.nextbar[role="button"] { cursor: pointer; }
.nextbar .ntext { flex: 1; min-width: 0; }
.coinmini, .coin .face {
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.85) 0 6%, rgba(255,255,255,0) 22%),
    radial-gradient(circle at 50% 50%, #f6d77a 0 58%, #c99a2e 64%, #f3cf6a 70%, #a8781c 100%);
}
.coinmini { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.callrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.callrow .btn { margin-left: auto; }
.coin-stage { position: relative; height: 250px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 34px; perspective: 900px; flex: none; }
.coin { position: relative; width: 150px; height: 150px; transform-style: preserve-3d; }
.coin .face {
  position: absolute; inset: 0; border-radius: 50%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #7a5410; text-shadow: 0 1px 0 rgba(255,240,190,.8), 0 -1px 0 rgba(90,60,10,.35);
  box-shadow: inset 0 0 0 6px rgba(255,236,170,.55), inset 0 0 0 11px rgba(150,105,25,.35), inset 0 -12px 24px rgba(120,80,10,.35);
}
.coin .munt { transform: rotateX(180deg); }
.coin .fsym { font-size: 58px; font-weight: 900; line-height: 1; }
.coin .flabel { font-size: 15px; font-weight: 900; letter-spacing: 3px; margin-top: 4px; }
.coin-shadow { position: absolute; bottom: 20px; left: 50%; width: 130px; height: 22px; margin-left: -65px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), rgba(0,0,0,0)); opacity: .55; }
.toss-result { text-align: center; font-size: 20px; font-weight: 800; margin: 0 0 4px; min-height: 28px; }
.sheet-actions.stack { flex-direction: column; align-items: stretch; }
.sheet-actions.stack .btn { width: 100%; }
.preview { display: flex; justify-content: center; margin: 4px 0 2px; }
.preview img { width: 100%; max-width: 340px; aspect-ratio: 4 / 5; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 8px 30px var(--shadow); background: var(--card); }

/* knoppen */
.btn { border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 700; background: var(--card); color: var(--text); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--on-accent); }
.btn.ghost { background: var(--soft); color: var(--text); }
.btn.ghost.danger { color: var(--danger); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.big { padding: 16px 28px; font-size: 17px; }
.btn:disabled { opacity: .35; }
.btn:active:not(:disabled) { transform: scale(.97); }

/* scoreverloop */
.log h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 22px 4px 10px; display: flex; justify-content: space-between; align-items: baseline; }
.log .count { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; }
.log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.empty { color: var(--muted); text-align: center; padding: 22px 12px; border: 1px dashed var(--line); border-radius: var(--radius); margin: 0; }
.row {
  width: 100%; display: grid; grid-template-columns: 26px 44px 1fr auto; align-items: center; gap: 12px;
  text-align: left; padding: 10px 14px 10px 10px; color: var(--text);
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
}
button.row:active { background: var(--soft2); }
.num { color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.thumb, .rthumb { width: 44px; height: 50px; border-radius: 8px; object-fit: cover; background: var(--soft2); display: block; flex: none; }
.ph { position: relative; }
.ph::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--chrome); opacity: .75; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.info { display: flex; flex-direction: column; min-width: 0; }
.info b { font-size: 15px; }
.mname { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info small, .rinfo small, .hinfo small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info small.add { color: var(--gold); font-weight: 600; font-size: 13px; }
.tally { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tally i { font-style: normal; color: var(--muted); margin: 0 3px; }

/* onderblad */
.sheet-wrap { position: fixed; inset: 0; z-index: 20; }
.backdrop { position: absolute; inset: 0; background: rgba(5, 3, 12, .55); opacity: 0; transition: opacity .2s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px;
  max-height: 88dvh; display: flex; flex-direction: column;
  background: var(--bg2); color: var(--text); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line);
  padding: 8px 16px calc(16px + var(--safe-bot));
  transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .3, 1);
  box-shadow: 0 -10px 40px var(--shadow);
}
.sheet-wrap.open .backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 2px auto 10px; flex: none; }
#sheetBody { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overflow-x: hidden; }
#sheetBody h3 { margin: 4px 0 2px; font-size: 20px; }
#sheetBody h4 { margin: 16px 2px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
#sheetBody .log h2 { margin-top: 14px; }
.sub { margin: 2px 0 12px; opacity: .9; font-size: 15px; }
.searchbox { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; color: var(--muted); flex: none; }
.searchbox:focus-within { border-color: var(--accent); }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); padding: 13px 0; font-size: 16px; }
.results { overflow-y: auto; min-height: 120px; max-height: 46dvh; margin: 8px -4px 0; padding: 0 4px; }
.result, .chosen { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; background: none; border-radius: 12px; text-align: left; color: var(--text); }
.result:active { background: var(--soft2); }
.chosen { background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); margin-bottom: 10px; }
.rinfo { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hintline { color: var(--muted); font-size: 14px; text-align: center; padding: 18px 8px; margin: 0; }
.hintline.small { padding: 8px 4px 0; font-size: 13px; text-align: left; }
.sheet-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex: none; flex-wrap: wrap; }
.sheet-actions .btn.primary { min-width: 120px; }

.menu { display: grid; gap: 6px; margin-top: 10px; }
.menu button { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 600; }
.menu button span { width: 26px; text-align: center; font-size: 18px; }
.menu button:active { background: var(--soft2); }

/* spelers instellen */
.pfields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.plabel { grid-column: 1 / -1; font-weight: 800; font-size: 14px; }
.pfields input, .linkbox input { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 16px; outline: 0; width: 100%; min-width: 0; }
.pfields input:focus { border-color: var(--accent); }
.field { display: grid; gap: 6px; margin: 10px 0; font-weight: 800; font-size: 14px; }
.field input { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 16px; font-weight: 600; outline: 0; width: 100%; min-width: 0; }
.field input:focus { border-color: var(--accent); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; text-decoration: underline; font-size: inherit; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.choice input { accent-color: var(--accent); width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.choice span { display: flex; flex-direction: column; }
.choice small { color: var(--muted); }

/* delen */
.linkbox { display: flex; gap: 8px; align-items: center; }
.linkbox input { font-size: 13px; color: var(--muted); padding: 10px; }
.danger-zone { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.danger-zone summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; }
.danger-zone .sub { margin-top: 10px; }

/* geschiedenis & statistiek */
.hist { display: grid; gap: 6px; margin-top: 8px; }
.hrow { display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 12px; background: var(--card); border-radius: 14px; border: 1px solid var(--line); }
.hrow.cur { border-color: var(--accent); }
.hrow[role="button"] { cursor: pointer; }
.hinfo { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hinfo em { color: var(--gold); font-style: normal; }
.mini-score { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; margin-top: 10px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.mini-score b { font-size: 24px; font-variant-numeric: tabular-nums; }
.statbar { display: flex; justify-content: space-between; font-weight: 800; margin-top: 10px; }
.meter { height: 12px; border-radius: 6px; background: var(--p1); overflow: hidden; margin: 6px 0 12px; }
.meter span { display: block; height: 100%; background: var(--p0); }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.statgrid > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 4px; }
.statgrid small { color: var(--muted); font-size: 12px; }
.statgrid b { font-size: 22px; font-variant-numeric: tabular-nums; }

/* thema kiezen: elke kaart toont zijn eigen thema */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.themecard { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--bg); color: var(--text); text-align: left; }
.themecard.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.themecard .swatch { display: flex; gap: 6px; width: 100%; margin-bottom: 8px; padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.themecard .swatch i { flex: 1; height: 28px; border-radius: 8px; }
.themecard .s0 { background: var(--p0); }
.themecard .s1 { background: var(--p1); }
.themecard .tname { font-weight: 800; }
.themecard small { color: var(--muted); font-size: 12.5px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + var(--safe-bot)); z-index: 30;
  transform: translate(-50%, 20px); opacity: 0; transition: .2s;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px);
  background: var(--toast-bg); color: var(--toast-fg); font-weight: 600; font-size: 14px;
  padding: 10px 10px 10px 16px; border-radius: 14px; box-shadow: 0 10px 30px var(--shadow);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast button { border: 0; background: var(--toast-fg); color: var(--toast-bg); border-radius: 10px; padding: 7px 12px; font-weight: 700; }
.toast:not(:has(button)) { padding-right: 16px; }

@media (max-width: 360px) {
  .score { font-size: 68px; }
  .player { min-height: 170px; }
}
