/* Klassentools (namenkiezer, groepjes, timer, geluidsmeter, werkstand, dobbelstenen).
   Eigen kermis-look in donkerblauw, los van de rest van de site, zodat de kleuren op het digibord knallen.
   Eerst de gedeelde onderdelen, daarna per tool. */
:root {
  --bg: #14112e;
  --bg-hi: #2c2475;
  --panel: #221d52;
  --panel-hi: #2f2870;
  --ink: #ffffff;
  --muted: #b7b2e6;
  --gold: #ffd43b;
  --gold-ink: #3a2a00;
  --pink: #f783ac;
  --font-display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--font-body); font-size: 16px;
  background: radial-gradient(120% 80% at 50% 0%, var(--bg-hi) 0%, var(--bg) 62%) fixed, var(--bg);
  -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.app {
  min-height: 100%; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

/* ---------- kop ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: .01em; }
.logo em { font-style: normal; color: var(--gold); }
.icons { display: flex; gap: 6px; }
.icon-btn {
  min-width: 42px; height: 42px; padding: 0 12px; border: 0; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.09); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 16px;
}
.icon-btn:hover { background: rgba(255,255,255,.17); }
.icon-btn.wide { display: inline-flex; gap: 6px; align-items: center; background: var(--gold); color: var(--gold-ink); }
.icon-btn.wide:hover { background: #ffe066; }
#nameCount { font-size: 13px; opacity: .75; }

/* ---------- soorten ---------- */
.modes { display: flex; gap: 6px; padding: 5px; background: rgba(0,0,0,.25); border-radius: 16px; align-self: center; width: min(100%, 620px); }
.modes button {
  flex: 1; min-width: 0; border: 0; border-radius: 12px; padding: 8px 6px; background: transparent;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.1;
}
.modes button:hover { background: rgba(255,255,255,.08); }
.modes button i { font-style: normal; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; background: rgba(255,255,255,.12); }
.modes button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.modes button[aria-pressed="true"] i { background: var(--gold); color: var(--gold-ink); }

/* ---------- speelveld ---------- */
.stage { flex: 1; min-height: 340px; position: relative; display: flex; align-items: center; justify-content: center; }
.view { width: 100%; height: 100%; display: none; align-items: center; justify-content: center; }
.view.on { display: flex; }
.empty { position: absolute; inset: auto 0; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.25; color: var(--muted); padding: 0 16px; text-wrap: balance; }
.empty button { margin-top: 12px; }

/* rad */
.wheel-wrap { position: relative; width: var(--size, 480px); height: var(--size, 480px); }
#wheel { width: 100%; height: 100%; display: block; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
.pointer {
  position: absolute; left: 50%; top: -10px; width: 44px; height: 54px; transform: translateX(-50%); z-index: 2;
  background: var(--gold); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 4px 4px rgba(0,0,0,.4));
}
.pointer.tick { animation: tick .12s ease; }
@keyframes tick { 50% { transform: translateX(-50%) rotate(-14deg); } }
.hub {
  position: absolute; left: 50%; top: 50%; width: 26%; height: 26%; transform: translate(-50%, -50%); border-radius: 50%;
  border: 6px solid #fff; background: var(--bg); color: var(--gold);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(16px, calc(var(--size, 480px) * .055), 30px);
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.hub:hover { background: var(--panel-hi); }
.hub:disabled { cursor: default; }

/* gokkast */
.machine {
  --row: 96px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 22px; max-width: 100%;
  background: linear-gradient(180deg, #e8364f, #a3122a); border-radius: 28px;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.25), 0 0 0 6px var(--gold), 0 22px 50px rgba(0,0,0,.5);
}
.reel {
  width: clamp(170px, 26vw, 300px); height: calc(var(--row) * 3); overflow: hidden; position: relative;
  background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 4px rgba(0,0,0,.15);
}
.reel::before, .reel::after { content: ""; position: absolute; left: 0; right: 0; height: var(--row); z-index: 1; pointer-events: none; }
.reel::before { top: 0; background: linear-gradient(#fff, rgba(255,255,255,.35)); }
.reel::after { bottom: 0; background: linear-gradient(rgba(255,255,255,.35), #fff); }
.reel .line { position: absolute; left: 6px; right: 6px; top: var(--row); height: var(--row); border-top: 3px solid rgba(232,54,79,.5); border-bottom: 3px solid rgba(232,54,79,.5); z-index: 1; pointer-events: none; }
.strip { will-change: transform; }
.strip div {
  height: var(--row); display: flex; align-items: center; justify-content: center; padding: 0 10px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3.4vw, 40px); color: #1a1640; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reel.win { box-shadow: inset 0 0 0 4px var(--gold), 0 0 0 4px var(--gold), 0 0 30px rgba(255,212,59,.7); }

/* lichtjes */
.tiles { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile, 150px), 1fr)); gap: 10px; align-content: center; }
.tile {
  min-height: 64px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 10px; border-radius: 14px;
  background: var(--panel); border: 2px solid rgba(255,255,255,.08); overflow-wrap: anywhere;
  font-family: var(--font-display); font-weight: 800; font-size: var(--tile-fs, 22px); line-height: 1.1; transition: background .08s, transform .08s;
}
.tile.lit { background: #fff; color: var(--bg); transform: scale(1.06); box-shadow: 0 0 24px rgba(255,255,255,.6); }
.tile.won { background: var(--gold); color: var(--gold-ink); border-color: #fff; transform: scale(1.08); box-shadow: 0 0 30px rgba(255,212,59,.8); animation: bounce .5s ease; }

/* kaartjes */
.cards { --cw: min(var(--card, 120px), 27vw); width: 100%; display: grid; grid-template-columns: repeat(auto-fill, var(--cw)); justify-content: center; gap: 12px; align-content: center; perspective: 900px; }
.card { aspect-ratio: 3 / 4; position: relative; border: 0; padding: 0; background: none; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3,1.4,.5,1); }
.card.open { transform: rotateY(180deg); }
/* geen 'both': een animatie die blijft staan, overschrijft het omdraaien (transform) */
.card.shuffle { animation: shuffle .7s ease; }
.card .face { position: absolute; inset: 0; border-radius: 14px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 6px; }
.card .back {
  background: repeating-linear-gradient(45deg, #5b4bd6 0 10px, #4a3cc0 10px 20px); border: 4px solid #fff;
  font-family: var(--font-display); font-weight: 800; font-size: calc(var(--cw) * .32); color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.25);
}
.card .front {
  transform: rotateY(180deg); background: #fff; color: var(--bg); border: 4px solid var(--gold);
  font-family: var(--font-display); font-weight: 800; font-size: var(--card-fs, 20px); line-height: 1.1; text-align: center; overflow-wrap: anywhere;
}
.card.done .front { border-color: #fff; background: #ece9ff; color: #6d68a0; }
.card:not(.open):hover .back { filter: brightness(1.15); }
.card:disabled { cursor: default; }
@keyframes shuffle {
  0% { transform: translate(0, 0) rotate(0); }
  40% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
  100% { transform: translate(0, 0) rotate(0); }
}
@keyframes bounce { 0%, 100% { transform: scale(1.08); } 40% { transform: scale(1.18); } }

/* ---------- onderbalk ---------- */
.controls { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.count { display: flex; align-items: center; gap: 4px; background: rgba(0,0,0,.25); border-radius: 16px; padding: 5px; }
.count button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 24px; font-weight: 800; }
.count button:hover { background: rgba(255,255,255,.2); }
.count button:disabled { opacity: .3; cursor: default; }
.count output { min-width: 96px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.go {
  border: 0; border-radius: 18px; padding: 12px 40px; background: var(--gold); color: var(--gold-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.1;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), 0 5px 0 #b88900;
}
.go:active { transform: translateY(2px); box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), 0 3px 0 #b88900; }
.go:disabled { opacity: .5; cursor: default; }
.ghost { border: 2px solid rgba(255,255,255,.35); border-radius: 16px; padding: 10px 22px; background: transparent; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.status { min-width: 0; flex-basis: 100%; text-align: center; color: var(--muted); font-weight: 700; min-height: 1.4em; }
.status b { color: var(--gold); }

/* ---------- namenlijst ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(400px, 100%); overflow-y: auto;
  background: #1c1846; box-shadow: -20px 0 50px rgba(0,0,0,.45); padding: 18px 20px 28px; display: flex; flex-direction: column; gap: 10px;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.drawer label { font-weight: 700; font-size: 14px; color: var(--muted); }
.drawer textarea {
  width: 100%; resize: vertical; min-height: 220px; border-radius: 12px; border: 2px solid rgba(255,255,255,.12); background: #120f30; color: var(--ink);
  font: 700 17px/1.5 var(--font-body); padding: 10px 12px;
}
.small { margin: 0; font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin-top: 6px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); }
.check span { color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.4; }
.check span b { font-size: 15px; }
.picked { background: rgba(0,0,0,.2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.picked-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.picked-head button { border: 0; border-radius: 99px; background: rgba(255,255,255,.12); padding: 6px 12px; font-weight: 800; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: var(--panel-hi); border-radius: 99px; padding: 3px 10px; font-weight: 700; font-size: 14px; }

/* ---------- uitslag ---------- */
.result { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(10,8,30,.72); backdrop-filter: blur(4px); }
.result-card {
  width: min(760px, 100%); text-align: center; display: grid; gap: 18px; padding: 28px 24px;
  background: linear-gradient(180deg, #3a2f9e, #241d6b); border-radius: 28px; box-shadow: 0 0 0 5px var(--gold), 0 30px 70px rgba(0,0,0,.55);
  animation: popin .45s cubic-bezier(.3,1.5,.5,1);
}
.result-title { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--gold); letter-spacing: .04em; text-transform: uppercase; }
.result-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
.result-names span { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 9vw, 104px); line-height: 1; overflow-wrap: anywhere; animation: popin .5s cubic-bezier(.3,1.5,.5,1) both; }
.result-names.many span { font-size: clamp(32px, 5.5vw, 64px); }
.result-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
@keyframes popin { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

canvas#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 35; }

@media (max-width: 560px) {
  .logo { font-size: 21px; }
  .icons { gap: 4px; }
  .icon-btn { min-width: 34px; height: 38px; padding: 0 8px; font-size: 14px; }
  .icon-btn.wide { white-space: nowrap; }
  #nameCount { display: none; }
  .cards { gap: 8px; }
  .modes button { font-size: 15px; gap: 5px; flex-direction: column; padding: 6px 4px; }
  .go { font-size: 24px; padding: 10px 28px; }
  .machine { --row: 72px; padding: 14px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .tile { transition: none; }
  .card.shuffle, .tile.won, .result-card, .result-names span, .pointer.tick { animation: none !important; }
}

/* ---------- gedeeld: keuzeknoppen en tools die bovenaan beginnen ---------- */
.seg { display: flex; gap: 4px; background: rgba(0,0,0,.25); border-radius: 16px; padding: 5px; }
.seg button { border: 0; border-radius: 12px; padding: 10px 14px; background: transparent; font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.1; }
.seg button:hover { background: rgba(255,255,255,.08); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.stage-top { align-items: flex-start; }
.chips.toggles button { border: 0; border-radius: 99px; padding: 5px 12px; background: var(--panel-hi); font-weight: 700; font-size: 14px; }
.chips.toggles button.off { background: transparent; color: var(--muted); text-decoration: line-through; box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); }

/* ---------- groepjesmaker ---------- */
.groups { width: 100%; display: grid; grid-template-columns: repeat(var(--gcols, 3), minmax(0, 1fr)); gap: 14px; }
.group { background: var(--panel); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,.3); animation: popin .35s cubic-bezier(.3,1.5,.5,1) both; }
.group h3 { margin: 0; padding: 10px 16px; background: var(--gc); color: var(--gi); font-family: var(--font-display); font-weight: 800; font-size: calc(var(--nfs, 24px) * .9); line-height: 1.1; display: flex; align-items: center; gap: 8px; }
.group h3 span { font-size: 1.2em; }
.members { padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; min-height: 80px; align-content: flex-start; }
.members span { background: #fff; color: var(--bg); border-radius: 12px; padding: 6px 14px; font-family: var(--font-display); font-weight: 800; font-size: min(var(--nfs, 24px), 4.6vw); line-height: 1.15; animation: popin .3s cubic-bezier(.3,1.5,.5,1) both; }
@media (max-width: 900px) { .groups { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

/* ---------- timer ---------- */
.timer-stage { flex-direction: column; gap: 10px; }
.timer-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.timer-visual svg { display: none; height: min(56vh, 520px); width: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
.timer-visual[data-mode="klok"] .clock, .timer-visual[data-mode="zandloper"] .glass { display: block; }
.clock-face { fill: #fff; }
.clock .tk { stroke: #c9c6e6; stroke-width: 1.5; }
.clock .tk5 { stroke: #1a1640; stroke-width: 3; }
.clock-wedge { fill: #e8364f; }
.clock .tnum { font-family: var(--font-display); font-weight: 800; font-size: 15px; fill: #1a1640; text-anchor: middle; dominant-baseline: central; }
.clock-hub { fill: #1a1640; }
.glass-line { fill: rgba(255,255,255,.08); stroke: #fff; stroke-width: 5; stroke-linejoin: round; }
.glass-cap { fill: #c98a3e; stroke: #8a5a20; stroke-width: 2; }
.sand { fill: var(--gold); }
.sand-stream { stroke: var(--gold); stroke-width: 4; transition: opacity .3s; }
.digits { font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 9vh, 96px); line-height: 1; font-variant-numeric: tabular-nums; }
.timer-visual[data-mode="cijfers"] .digits { font-size: min(32vh, 28vw, 340px); }
body.low .digits { color: #ff6b6b; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.done { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(232,54,79,.92); font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 12vw, 160px); cursor: pointer; animation: flash .5s ease 4 alternate; text-align: center; }
@keyframes flash { from { background: rgba(232,54,79,.95); } to { background: rgba(255,212,59,.95); color: var(--gold-ink); } }
.presets { display: flex; gap: 4px; background: rgba(0,0,0,.25); border-radius: 16px; padding: 5px; flex-wrap: wrap; justify-content: center; }
.presets button { min-width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.presets button:hover { background: rgba(255,255,255,.18); }
.presets button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.presets button:disabled { opacity: .35; cursor: default; }
@media (prefers-reduced-motion: reduce) { body.low .digits, .done { animation: none; } }

/* ---------- geluidsmeter ---------- */
.meter-stage { flex-direction: column; gap: 18px; --zc: #4a4580; }
.meter-stage[data-zone="groen"] { --zc: #2fb36b; }
.meter-stage[data-zone="oranje"] { --zc: #ff9a1f; }
.meter-stage[data-zone="rood"] { --zc: #e8364f; }
.meter-face { width: min(46vh, 70vw, 420px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--zc); box-shadow: 0 0 0 10px rgba(255,255,255,.12), 0 0 80px var(--zc); transition: background .3s, box-shadow .3s; }
.meter-face span { font-size: min(26vh, 40vw, 230px); line-height: 1; }
.meter-stage[data-zone="rood"] .meter-face { animation: wobble .5s ease-in-out infinite; }
@keyframes wobble { 25% { transform: rotate(-4deg) scale(1.03); } 75% { transform: rotate(4deg) scale(1.03); } }
.meter-text { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 6vh, 56px); line-height: 1.1; text-align: center; text-wrap: balance; }
.meter-bar { position: relative; width: min(760px, 100%); height: 26px; border-radius: 99px; background: rgba(255,255,255,.12); }
.meter-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--zc); transition: width .08s linear, background .3s; }
.meter-bar .mark { position: absolute; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; border-radius: 2px; background: #fff; }
.meter-bar #markOrange { background: #ff9a1f; }
.meter-bar #markRed { background: #e8364f; }
.slider { display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: 13px; color: var(--muted); }
.slider input { width: 180px; accent-color: var(--gold); }
.check.inline { margin: 0; align-items: center; }
.check.inline input { margin: 0; }
@media (prefers-reduced-motion: reduce) { .meter-stage[data-zone="rood"] .meter-face { animation: none; } }

/* ---------- werkstand ---------- */
.stage[data-mode="stoplicht"] .ws-big, .stage[data-mode="kaarten"] .traffic { display: none; }
.traffic { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 64px); }
.tl-box { display: flex; flex-direction: column; gap: 3vh; padding: 3vh; background: #1a1a1f; border-radius: 40px; box-shadow: 0 0 0 6px #33333c, 0 24px 60px rgba(0,0,0,.5); }
.lamp { width: min(17vh, 22vw, 170px); aspect-ratio: 1; border-radius: 50%; border: 0; opacity: .22; transition: opacity .25s, box-shadow .25s; }
.lamp-rood { background: #ff3b4e; }
.lamp-oranje { background: #ffa21f; }
.lamp-groen { background: #2fd27a; }
.lamp.on { opacity: 1; }
.lamp-rood.on { box-shadow: 0 0 60px #ff3b4e; }
.lamp-oranje.on { box-shadow: 0 0 60px #ffa21f; }
.lamp-groen.on { box-shadow: 0 0 60px #2fd27a; }
.tl-text, .ws-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.tl-text { max-width: 440px; }
.ws-icon { font-size: clamp(80px, 18vh, 180px); line-height: 1; }
.tl-text b, .ws-card b { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 8vh, 84px); line-height: 1.05; color: var(--wc); text-wrap: balance; }
.tl-text small, .ws-card small { font-size: clamp(18px, 3vh, 28px); font-weight: 700; color: var(--muted); text-wrap: balance; }
.ws-card { width: min(820px, 100%); padding: 5vh 24px; border-radius: 32px; background: var(--panel); box-shadow: inset 0 0 0 8px var(--wc), 0 24px 60px rgba(0,0,0,.45); animation: popin .35s cubic-bezier(.3,1.5,.5,1); }
.ws-picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ws-picks button { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 14px; padding: 9px 14px; background: rgba(255,255,255,.08); font-family: var(--font-display); font-weight: 800; font-size: 17px; box-shadow: inset 0 -4px 0 var(--wc); }
.ws-picks button span { font-size: 22px; }
.ws-picks button:hover { background: rgba(255,255,255,.16); }
.ws-picks button[aria-pressed="true"] { background: var(--wc); color: #fff; box-shadow: none; }
@media (max-width: 560px) { .traffic { flex-direction: column; } .tl-box { flex-direction: row; } }

/* ---------- dobbelstenen ---------- */
.dice-stage { flex-direction: column; gap: 4vh; }
.dice { --ds: min(30vh, 26vw, 240px); display: flex; flex-wrap: wrap; justify-content: center; gap: calc(var(--ds) * .18); max-width: 100%; cursor: pointer; }
.dice[data-n="4"], .dice[data-n="5"], .dice[data-n="6"] { --ds: min(22vh, 20vw, 180px); }
.die { width: var(--ds); height: var(--ds); border-radius: 22%; background: var(--dc); color: var(--di); display: grid; place-items: center; box-shadow: inset 0 calc(var(--ds) * -.06) 0 rgba(0,0,0,.18), 0 16px 34px rgba(0,0,0,.45); }
.die.roll { animation: tumble .55s ease-in-out infinite; }
.die.land { animation: land .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes tumble { 0% { transform: rotate(0) translateY(0); } 50% { transform: rotate(calc(var(--rr) / 2)) translateY(-12%); } 100% { transform: rotate(var(--rr)) translateY(0); } }
@keyframes land { 0% { transform: scale(.7) rotate(-12deg); } 100% { transform: scale(1) rotate(0); } }
.pips { width: 76%; height: 76%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); place-items: center; }
.pips i { width: 62%; aspect-ratio: 1; border-radius: 50%; }
.pips i.on { background: currentColor; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.die .num { font-family: var(--font-display); font-weight: 800; font-size: calc(var(--ds) * .58); line-height: 1; transform: translateY(.05em); }
.dice-total { min-height: 1.2em; font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 7vh, 72px); line-height: 1.1; text-align: center; }
.dice-total b { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .die.roll, .die.land { animation: none; } }

/* smalle schermen: niets mag buiten het scherm vallen */
@media (max-width: 480px) {
  .timer-visual svg { height: auto; width: min(100%, 56vh); }
  .setup-card h1 { font-size: clamp(22px, 7.5vw, 34px); overflow-wrap: anywhere; }
  .setup-card, .setup-card * { min-width: 0; }
  .setup-card .seg { flex-wrap: wrap; }
}
