/* =========================================================
   Tijdlijn – opmaak voor het grote scherm (body.host) en de telefoon (body.phone)
   ========================================================= */
:root {
  --bg: #12101c;
  --bg-2: #181527;
  --panel: #1f1b30;
  --panel-2: #2b2642;
  --line: #352f52;
  --text: #f3f1fb;
  --muted: #a6a1c2;
  --accent: #ff4f8b;
  --accent-2: #ffb347;
  --ok: #3ddc84;
  --bad: #ff5f5f;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 79, 139, .12), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(79, 157, 255, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
}

h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; margin: 22px 0 10px; }

.hidden { display: none !important; }
.muted { color: var(--muted); font-weight: 500; }
.center-text { text-align: center; }
.hint { color: var(--muted); font-size: .85rem; }
.error { color: var(--bad); min-height: 1.2em; font-weight: 600; margin: 8px 0 0; }

/* ---------- Bovenbalk ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px;
  background: rgba(18, 16, 28, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.top-code {
  background: var(--panel-2); border-radius: 999px; padding: 4px 12px;
  font-size: .9rem; color: var(--muted); white-space: nowrap;
}
.top-code b { color: var(--accent-2); letter-spacing: .12em; font-size: 1.05rem; }
.status {
  margin-left: auto; min-width: 0;
  font-size: .85rem; color: var(--muted); text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.status a { color: var(--muted); }
.status .warn { color: var(--accent-2); }

main { max-width: 1240px; margin: 0 auto; padding: 20px; }

/* ---------- Panelen & formulieren ---------- */
.card-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card-panel h2 { margin: 0 0 10px; }

label { display: block; margin: 14px 0 6px; font-weight: 600; }
input[type=text], input[type=number], select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 500; margin-top: 12px; cursor: pointer; }
label.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px;
  padding: 10px 18px;
  font: inherit; font-weight: 700; font-size: 1rem;
  background: var(--panel-2); color: var(--text);
  cursor: pointer; text-decoration: none;
  transition: transform .08s ease, filter .15s ease;
}
.btn:hover:not(:disabled) { filter: brightness(1.15); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.primary { background: linear-gradient(135deg, #ff4f8b, #ff6f61); color: #fff; box-shadow: 0 6px 18px rgba(255, 79, 139, .3); }
.btn.big { padding: 14px 28px; font-size: 1.1rem; }
.btn.small { padding: 7px 13px; font-size: .85rem; }
.btn.wide { width: 100%; margin-top: 18px; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); box-shadow: none; }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.row.center { justify-content: center; }
.small-row { margin-top: 12px; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--team, var(--muted)); margin-right: 6px; vertical-align: middle; flex: none; }

.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: transparent; color: var(--muted);
  padding: 7px 14px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
}
.seg button.on { background: var(--accent); color: #fff; }

/* ---------- Startscherm ---------- */
.hero { text-align: center; padding: 28px 0 22px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 14px 0 6px; letter-spacing: -.02em; }
.tagline { color: var(--muted); font-size: 1.1rem; margin: 0; }
.hero-disc {
  width: 96px; height: 96px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 13%, #111 14% 21%, #262236 22% 40%, #1b1828 41% 60%, #262236 61% 100%);
  box-shadow: 0 0 0 4px var(--panel-2), 0 10px 40px rgba(255, 79, 139, .35);
  animation: spin 6s linear infinite;
}
.hero.small { padding: 12px 0 18px; }
.hero.small .hero-disc { width: 64px; height: 64px; }
.hero.small h1 { font-size: 2.2rem; margin-top: 10px; }
.start-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 860px; margin: 0 auto; }
.start-tile { display: flex; flex-direction: column; }
.start-tile p { color: var(--muted); flex: 1; }
.tile-icon { font-size: 2rem; }

/* ---------- Lobby ---------- */
.lobby { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 16px; align-items: start; }
.join-panel { text-align: center; position: sticky; top: 76px; }
.join-label { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.join-url { font-size: 1.1rem; font-weight: 800; word-break: break-all; margin: 2px 0 6px; }
.room-code { font-size: clamp(3rem, 5vw, 4.2rem); font-weight: 900; letter-spacing: .14em; color: var(--accent-2); line-height: 1.1; margin-top: 4px; }
.qr { display: inline-block; margin: 10px 0 8px; padding: 12px; background: #fff; border-radius: 14px; }
.qr:empty { display: none; }
.qr img, .qr canvas { display: block; width: 220px; height: 220px; }

.setup-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.setup-head h2 { margin: 0; }
.lobby-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 16px; }
.team-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; border-top: 4px solid var(--team, var(--line)); min-height: 64px; }
.team-name { font-weight: 800; color: var(--team); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--panel-2); border-radius: 999px; padding: 5px 6px 5px 12px; font-weight: 700;
}
.mode-teams .chip { cursor: pointer; }
.chip.offline { opacity: .45; }
.chip .x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .75rem; width: 22px; height: 22px; border-radius: 50%; }
.chip .x:hover { background: var(--bad); color: #fff; }
.empty { color: var(--muted); font-style: italic; }

.music-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; border-left: 4px solid var(--accent-2); }
.music-box .sub { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.music-box .btn { margin-top: 8px; }
.own-playlist { margin-top: 4px; }

.start-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.win-label { margin: 0; }
.win-label input { width: 110px; margin-top: 6px; display: block; }

/* ---------- Scorebord ---------- */
.scoreboard { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.score {
  display: inline-flex; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-weight: 600;
}
.score b { margin-left: 8px; color: var(--accent-2); }
.score.active { border-color: var(--team, var(--accent)); box-shadow: 0 0 0 2px var(--team, var(--accent)); }
.score.deck { color: var(--muted); }
.score.mine { font-weight: 800; }
.host .scoreboard .score { font-size: clamp(.95rem, 1.2vw, 1.15rem); }
.scoreboard.small .score { font-size: .8rem; padding: 4px 10px; }

/* ---------- Spel: groot scherm ---------- */
.stage { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.stage-side { flex: 1; min-width: 0; }
.turn-label { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 900; line-height: 1.2; }
.turn-label .sub { display: block; font-size: .55em; color: var(--muted); font-weight: 600; margin-top: 6px; }
.mystery { flex: none; display: flex; align-items: center; gap: 18px; }
.mystery .disc {
  width: clamp(110px, 13vw, 170px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 12%, #111 13% 20%, #262236 21% 40%, #1b1828 41% 60%, #262236 61% 100%);
  box-shadow: 0 0 0 5px var(--panel-2);
}
.disc.spin { animation: spin 2.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mystery img { width: clamp(110px, 13vw, 170px); aspect-ratio: 1; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow); }
.mystery .no-img { width: clamp(110px, 13vw, 170px); aspect-ratio: 1; border-radius: 14px; background: var(--panel-2); display: grid; place-items: center; font-size: 3rem; }
.reveal-info .year { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 900; color: var(--accent-2); line-height: 1; }
.reveal-info .title { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 800; margin-top: 6px; }
.reveal-info .artist { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.2rem); }
.game-msg { font-weight: 800; min-height: 1.4em; margin: 10px 0 0; font-size: clamp(1rem, 1.4vw, 1.25rem); }
.game-msg.ok { color: var(--ok); }
.game-msg.bad { color: var(--bad); }

.timeline-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.timeline-head h3 { margin: 10px 0; font-size: clamp(1.05rem, 1.6vw, 1.4rem); }

/* Tijdlijn: breekt af over meerdere regels, zodat alles op een tv past */
.timeline { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px 6px; padding: 4px 0 8px; }
.tl-card {
  width: clamp(120px, 11vw, 160px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px; text-align: center; font-size: .85rem;
  display: flex; flex-direction: column; justify-content: center;
}
.tl-card .year { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 900; color: var(--accent-2); line-height: 1.1; }
.tl-card .title { font-weight: 700; margin-top: 4px; overflow-wrap: anywhere; }
.tl-card .artist { color: var(--muted); overflow-wrap: anywhere; }
.tl-card.new { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok); animation: pop .4s ease; }
@keyframes pop { 0% { transform: scale(.85); } 100% { transform: scale(1); } }
.slot {
  width: 34px; min-height: 96px;
  border: 2px dashed var(--line); border-radius: 12px; background: transparent;
  color: var(--muted); font-size: 1.3rem; font-weight: 800; cursor: pointer; padding: 0;
}
.slot:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.slot.chosen { border-style: solid; border-color: var(--accent); background: var(--accent); color: #fff; width: 70px; }
.slot.right { border-style: solid; border-color: var(--ok); background: var(--ok); color: #000; width: 54px; }
.slot.wrong { border-style: solid; border-color: var(--bad); background: var(--bad); color: #fff; width: 54px; }
.slot:disabled { cursor: default; }
.game-foot { display: flex; justify-content: flex-end; margin-top: 18px; }

/* ---------- Einde ---------- */
.end-panel { text-align: center; max-width: 620px; margin: 30px auto; }
.trophy { font-size: 4rem; animation: pop .5s ease; }
.end-panel h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.end-scores { margin: 18px auto 22px; }
.end-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-left: 5px solid var(--team);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 8px;
}
.end-row .pos { font-weight: 900; width: 1.6em; color: var(--muted); }
.end-row .name { flex: 1; text-align: left; font-weight: 800; }
.end-row .pts { font-weight: 900; color: var(--accent-2); }
.end-row.first { background: linear-gradient(90deg, rgba(255, 179, 71, .14), transparent); }

/* =========================================================
   Telefoon
   ========================================================= */
body.phone main { max-width: 520px; padding: 12px 16px calc(40px + env(safe-area-inset-bottom)); }
.code-input { font-size: 2rem !important; text-align: center; letter-spacing: .35em; text-transform: uppercase; font-weight: 900; }

.banner { position: sticky; top: 0; z-index: 10; background: var(--accent-2); color: #000; text-align: center; padding: 9px; font-weight: 800; }

.phone-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0 10px; }
.me-name { font-size: 1.25rem; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-team { font-weight: 800; color: var(--muted); white-space: nowrap; }

.team-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.team-btn {
  border: 2px solid var(--team); background: var(--panel); color: var(--text);
  border-radius: 14px; padding: 16px 10px; font: inherit; font-weight: 800; cursor: pointer;
}
.team-btn span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.team-btn.on { background: var(--team); color: #000; }
.team-btn.on span { color: rgba(0, 0, 0, .65); }

.your-turn { font-size: 1.7rem; font-weight: 900; text-align: center; color: var(--accent); margin-top: 6px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.05); } }
.turn-info { background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--team); border-radius: 14px; padding: 14px; text-align: center; }

.reveal { display: flex; gap: 14px; align-items: center; background: var(--panel); border-radius: 16px; padding: 14px; border: 3px solid var(--line); }
.reveal.ok { border-color: var(--ok); }
.reveal.bad { border-color: var(--bad); }
.reveal img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; flex: none; }
.reveal .year { font-size: 2.1rem; font-weight: 900; color: var(--accent-2); line-height: 1; }
.reveal .verdict { font-weight: 900; margin-top: 4px; }
.reveal.ok .verdict { color: var(--ok); }
.reveal.bad .verdict { color: var(--bad); }

.tl-head { margin: 20px 0 8px; color: var(--team); }
.vtimeline { display: flex; flex-direction: column; gap: 6px; }
.vtimeline .end-label { color: var(--muted); font-size: .8rem; text-align: center; }
.vcard { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.vcard .year { font-size: 1.45rem; font-weight: 900; color: var(--accent-2); min-width: 3.2em; }
.vcard .t { font-size: .9rem; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.vcard.new { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.vslot {
  min-height: 12px; border: 2px dashed var(--line); border-radius: 10px; background: transparent;
  color: var(--muted); font: inherit; font-weight: 800; font-size: .9rem; padding: 0;
}
.vslot:not(:disabled) { min-height: 46px; cursor: pointer; }
.vslot.chosen { border-style: solid; border-color: var(--accent); background: var(--accent); color: #fff; min-height: 46px; }
.vslot.right { border-style: solid; border-color: var(--ok); background: var(--ok); color: #000; min-height: 36px; }
.vslot.wrong { border-style: solid; border-color: var(--bad); background: var(--bad); color: #fff; min-height: 36px; }
.sticky-actions { position: sticky; bottom: 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 35%); display: flex; gap: 8px; }
.sticky-actions .btn { flex: 1; }

.leave { display: block; margin: 34px auto 0; }

/* =========================================================
   Spelregels, munten, inbreken, reacties en effecten
   ========================================================= */
.small { font-size: .85rem; }
.coins { margin-left: 8px; color: #ffd36b; font-weight: 800; white-space: nowrap; }
.streak { color: #ff8a3d; font-weight: 900; font-size: .8em; }
.chip .av { font-size: 1.1em; margin-right: 2px; }

/* Lobby: spelregels */
.lobby-main { min-width: 0; }
.presets button { font-size: .85rem; padding: 6px 11px; }
.rules { display: grid; gap: 2px; margin-top: 6px; }
.rule-group { font-weight: 900; margin: 14px 0 4px; color: var(--accent-2); }
.rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rule-label { font-weight: 600; }
.seg.wrap { flex-wrap: wrap; border-radius: 14px; }
.seg.wrap button { font-size: .85rem; padding: 6px 11px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.stepper button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--panel-2); color: var(--text); font-size: 1.1rem; font-weight: 800; cursor: pointer; }
.stepper b { min-width: 2.2em; text-align: center; font-size: 1.05rem; }
.switch { position: relative; display: inline-block; width: 50px; height: 28px; margin: 0; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: var(--panel-2); border-radius: 999px; transition: background .15s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(22px); }
.years { display: inline-flex; align-items: center; gap: 6px; }
.years input { width: 92px; padding: 7px 9px; }
.rules-sum { margin-top: 12px; }
.rules-sum summary, .history summary, .host-menu summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.rules-sum ul, .rules-list { padding-left: 20px; margin: 8px 0; color: var(--muted); }
.rules-sum li, .rules-list li { margin: 4px 0; }
.rules-list { list-style: none; padding-left: 0; }
.start-bar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap;
  padding: 14px 0; background: linear-gradient(transparent, var(--bg) 40%);
}
.start-bar .error { margin: 0; flex: 1; text-align: right; }

/* Timer */
.timerbar { position: relative; height: 26px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; margin-top: 12px; }
.timerbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #4f9dff, #3ddc84); transition: width .25s linear; }
.timerbar span { position: relative; display: block; text-align: center; font-weight: 900; font-size: .85rem; line-height: 24px; }
.timerbar.urgent i { background: linear-gradient(90deg, #ff5f5f, #ff8a3d); }
.timerbar.urgent { animation: pulse .6s ease-in-out infinite; }
.phone .timerbar { margin: 0 0 10px; }

.hint-badge { display: inline-block; background: rgba(255, 211, 107, .15); color: #ffd36b; border: 1px solid rgba(255, 211, 107, .4); border-radius: 999px; padding: 6px 14px; font-weight: 800; }
.hint-badge.center { display: block; width: fit-content; margin: 8px auto 0; }
.mystery .hint-badge { font-size: clamp(1rem, 1.5vw, 1.3rem); }

/* Groot scherm: inbrekers en keuzes */
.game-msg.steal { color: #c18cff; }
.chal { display: inline-block; border: 2px solid var(--team); border-radius: 999px; padding: 4px 12px; margin: 4px 4px 0 0; font-size: .95rem; }
.slot { position: relative; }
.slot small { display: block; font-size: .7rem; line-height: 1.1; writing-mode: vertical-rl; transform: rotate(180deg); margin: auto; }
.slot em, .tl-card em { position: absolute; top: -10px; right: -8px; font-style: normal; background: var(--team); border-radius: 999px; padding: 2px 6px; font-size: .8rem; color: #000; }
.slot.challenged { border-style: solid; border-color: #c18cff; }
.tl-card { position: relative; font: inherit; color: inherit; }
button.tl-card { cursor: pointer; }
button.tl-card:hover { border-color: var(--accent); }
.tl-card.chosen { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.tl-card.right { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.tl-card.wrong { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad); }
.tl-card .same { color: var(--accent); font-weight: 800; font-size: .75rem; margin-top: 4px; }

.mini-timelines { display: grid; gap: 6px; margin-top: 14px; }
.mini { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--team); border-radius: 12px; padding: 8px 12px; }
.mini-name { font-weight: 800; min-width: 130px; white-space: nowrap; }
.mini-years { display: flex; flex-wrap: wrap; gap: 4px; }
.mini-years b { background: var(--bg-2); border-radius: 6px; padding: 2px 7px; color: var(--accent-2); font-size: .9rem; }

.host-menu { margin-top: 18px; padding: 12px 18px; }
.coin-admin { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.coin-row { display: inline-flex; align-items: center; gap: 6px; }

/* Einde: prijzen en geschiedenis */
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 6px 0 20px; text-align: left; }
.award { display: flex; gap: 10px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .9rem; }
.award-icon { font-size: 1.8rem; }
.history { text-align: left; margin-top: 18px; }
.history ol { max-height: 320px; overflow: auto; padding-left: 22px; }
.history li { margin: 3px 0; }
.end-row.mine { box-shadow: 0 0 0 2px var(--team); }

/* Reacties op het grote scherm */
.reactions { position: fixed; inset: auto 0 0 0; height: 0; pointer-events: none; z-index: 50; }
.react { position: absolute; bottom: 10px; display: flex; flex-direction: column; align-items: center; animation: floatUp 3.5s ease-out forwards; }
.react span { font-size: clamp(2.6rem, 4vw, 3.6rem); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.react small { background: rgba(0, 0, 0, .55); padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: .8rem; white-space: nowrap; }
@keyframes floatUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translateY(-40px) scale(1.1); } 100% { transform: translateY(-55vh) scale(1); opacity: 0; } }

/* Confetti */
.confetti-box { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 60; }
.confetti-box i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { top: 110%; transform: rotate(720deg) translateX(40px); } }

/* Meldingen */
.toast {
  position: fixed; left: 50%; top: 16px; z-index: 70; transform: translate(-50%, -150%);
  background: var(--panel-2); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 10px 18px; border-radius: 999px; font-weight: 800; max-width: calc(100% - 32px); text-align: center;
  transition: transform .3s ease;
}
.toast.show { transform: translate(-50%, 0); }
.host .toast { top: auto; bottom: 28px; transform: translate(-50%, 180%); font-size: clamp(1rem, 1.6vw, 1.35rem); }
.host .toast.show { transform: translate(-50%, 0); }
.phone .toast { top: auto; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translate(-50%, 400%); }
.phone .toast.show { transform: translate(-50%, 0); }

/* Telefoon: aanmelden en avatar */
.avatar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.avatar-grid button { aspect-ratio: 1; border: 2px solid transparent; background: var(--bg-2); border-radius: 12px; font-size: 1.5rem; cursor: pointer; padding: 0; }
.avatar-grid button.on { border-color: var(--accent); background: rgba(255, 79, 139, .15); }
.avatar-grid.small button { font-size: 1.25rem; }

/* Telefoon: spelen */
.tabs { display: flex; margin-bottom: 10px; }
.tabs button { flex: 1; }
.steal-call { font-size: 1.6rem; font-weight: 900; text-align: center; color: #c18cff; animation: pulse 1.2s ease-in-out infinite; }
.reveal.steal { border-color: #c18cff; }
.reveal.steal .verdict { color: #c18cff; }
.reveal .no-img { width: 92px; height: 92px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; font-size: 2.2rem; flex: none; }
.coin-win { color: #ffd36b; font-weight: 900; margin-top: 4px; }
.winner-note { text-align: center; font-weight: 900; color: var(--accent-2); margin-top: 10px; font-size: 1.1rem; }

.vslot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; text-align: left; position: relative; }
.vslot.open { min-height: 46px; border-color: #4a4370; color: var(--text); }
.vslot.open .g-width { color: var(--muted); font-weight: 600; font-size: .82rem; }
.vslot.open:hover { border-color: var(--accent); }
.vslot.chosen .g-width { color: rgba(255, 255, 255, .85); }
.vslot.taken { min-height: 36px; opacity: .5; }
.vslot.marked { min-height: 40px; border-style: solid; border-color: var(--accent); color: var(--accent); }
.vslot.right .g-width, .vslot.wrong .g-width { color: inherit; opacity: .8; }
.thief { font-style: normal; background: var(--team); color: #000; border-radius: 999px; padding: 2px 8px; font-size: .78rem; font-weight: 800; margin-left: auto; }
.vslot .thief { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.vslot:has(.thief) { min-height: 34px; border-style: solid; border-color: #c18cff; }
.vcard { position: relative; font: inherit; color: inherit; text-align: left; width: 100%; }
.vcard.pickable { cursor: pointer; border-style: dashed; }
.vcard.chosen { border: 2px solid var(--accent); background: rgba(255, 79, 139, .12); }
.vcard.right { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.vcard.wrong { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad); }
.same-btn { margin-left: auto; white-space: nowrap; font-size: .78rem; font-weight: 800; color: var(--accent); }

.guess-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 14px; display: grid; gap: 8px; }
.guess-title { font-weight: 800; font-size: .92rem; }
.guess-title .muted { display: block; font-weight: 600; font-size: .8rem; }

.sticky-actions { flex-direction: column; background: linear-gradient(rgba(18, 16, 28, 0), var(--bg) 18%); padding-top: 18px; }
.powers { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.powers .btn { border-radius: 12px; padding: 8px 4px; font-size: .78rem; white-space: nowrap; flex-direction: column; gap: 0; line-height: 1.25; }
.coin-btn b { color: #ffd36b; font-size: .75rem; }
#turn-head:not(:empty) { margin-bottom: 4px; }
.main-actions { display: flex; gap: 8px; }
.main-actions .btn:not(.grow) { flex: none; width: 56px; padding: 0; font-size: 1.2rem; }
.main-actions .btn.grow { font-size: .95rem; line-height: 1.2; }
.grow { flex: 1; }
.btn.steal { background: linear-gradient(135deg, #8a4dff, #c18cff); box-shadow: 0 6px 18px rgba(138, 77, 255, .35); }

.react-bar {
  position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 15;
  display: flex; gap: 2px; background: rgba(31, 27, 48, .92); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px;
  backdrop-filter: blur(6px); box-shadow: var(--shadow);
}
.react-bar button { border: 0; background: transparent; font-size: 1.35rem; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; }
.react-bar button:active { transform: scale(1.3); }
.react-bar.cooldown button { opacity: .35; pointer-events: none; }
body.phone main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.sticky-actions { bottom: 0; }
body.phone:has(.react-bar:not(.hidden)) .sticky-actions { bottom: 56px; }

/* =========================================================
   Power-ups en speciale rondes
   ========================================================= */
.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.mystery .badges { flex-direction: column; align-items: flex-start; justify-content: flex-start; margin: 0; }
.chip-toggles { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip-toggles button { border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.chip-toggles button.on { background: rgba(255, 79, 139, .18); border-color: var(--accent); color: var(--text); }
.dj { margin-top: 12px; }
.dj .row { margin-top: 8px; }
.chip.enter { animation: pop .45s ease; }
.disc.special { background: radial-gradient(circle, #ffb347 0 12%, #111 13% 20%, #3a2a10 21% 40%, #241a0a 41% 60%, #3a2a10 61% 100%); box-shadow: 0 0 0 5px #ffb347, 0 0 40px rgba(255, 179, 71, .5); }
.mini-years b.new { background: var(--ok); color: #000; }

.answered { display: flex; flex-wrap: wrap; gap: 6px; }
.ans { border: 2px solid var(--team); border-radius: 999px; padding: 4px 12px; font-size: .95rem; opacity: .55; }
.ans.done { opacity: 1; background: color-mix(in srgb, var(--team) 22%, transparent); }
.round-results { display: grid; gap: 6px; margin-top: 4px; }
.rr { display: grid; grid-template-columns: minmax(90px, auto) 1fr auto; gap: 10px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--team); border-radius: 10px; padding: 8px 12px; font-size: .95rem; text-align: left; }
.rr-name { font-weight: 800; }
.rr-ans { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-res { font-weight: 900; white-space: nowrap; }
.rr.ok .rr-res { color: var(--ok); }
.rr.bad .rr-res { color: var(--bad); }
.rr small { color: var(--muted); font-weight: 600; }

.round-title { font-size: 1.7rem; font-weight: 900; text-align: center; color: var(--accent-2); margin-top: 6px; animation: pop .5s ease; }
.decades { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.decade-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 2px solid var(--line); background: var(--panel); color: var(--text); border-radius: 14px; padding: 16px 8px; font: inherit; font-size: 1.15rem; font-weight: 900; cursor: pointer; }
.decade-btn small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.decade-btn.on { border-color: var(--accent-2); background: rgba(255, 179, 71, .16); }

.power-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; overflow-x: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); max-height: 46vh; overflow: auto; }
.pw-note { grid-column: 1 / -1; color: var(--accent-2); font-weight: 700; font-size: .85rem; text-align: center; padding: 2px 0 4px; }
.pw { display: flex; flex-direction: column; align-items: stretch; gap: 1px; text-align: left;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.pw:disabled { opacity: .4; cursor: default; }
.pw.used { opacity: .6; border-color: var(--ok); }
.pw-top { display: flex; justify-content: space-between; align-items: center; }
.pw-icon { font-size: 1.3rem; }
.pw-top b { color: #ffd36b; font-size: .8rem; }
.pw-name { font-weight: 800; font-size: .86rem; }
.pw-desc { color: var(--muted); font-size: .72rem; line-height: 1.2; }
.power-toggle { font-size: 1.2rem; }
.power-toggle.on { background: var(--accent-2); color: #000; }

/* =========================================================
   Party Hub: bibliotheek en quiz-spellen
   ========================================================= */
.lib-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 10px 0 18px; }
.lib-title { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.lib-code { color: var(--accent-2); letter-spacing: .12em; }
.library { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.game-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s; }
.game-card:not(.soon):hover { transform: translateY(-3px); border-color: var(--accent); }
.game-card.soon { opacity: .6; }
.gc-art { height: 120px; display: grid; place-items: center; font-size: 3.6rem; }
.gc-art span { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .4)); }
.gc-tijdlijn { background: linear-gradient(135deg, #ff4f8b, #ff8a3d); }
.gc-detective { background: linear-gradient(135deg, #2b5876, #4e4376); }
.gc-covers { background: linear-gradient(135deg, #11998e, #38ef7d); }
.gc-mayhem { background: linear-gradient(135deg, #f7971e, #ffd200); }
.gc-hum { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.gc-playlist { background: linear-gradient(135deg, #4f9dff, #00d2ff); }
.gc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.gc-name { font-size: 1.3rem; font-weight: 900; }
.gc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.gc-tags span { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: .75rem; color: var(--muted); font-weight: 700; }
.gc-body p { color: var(--muted); font-size: .9rem; flex: 1; margin: 6px 0 0; }
.game-banner .btn { white-space: nowrap; flex: none; }
.game-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lobby-game { display: flex; align-items: center; gap: 14px; }
.lg-icon { font-size: 2.6rem; }
.lg-name { font-size: 1.4rem; font-weight: 900; }
.ready { color: var(--ok); font-weight: 900; }

.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.q-game { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 900; }
.q-progress { font-weight: 800; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--panel-2); }
.dots i.done { background: var(--accent); }
.dots i.cur { background: var(--accent-2); box-shadow: 0 0 0 3px rgba(255, 179, 71, .3); }
.paused-tag { font-size: .7em; background: var(--accent-2); color: #000; border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.quiz-grid { display: grid; grid-template-columns: 1fr minmax(240px, 300px); gap: 16px; align-items: start; }
.q-stage { min-height: 420px; display: flex; flex-direction: column; gap: 14px; }
.q-title { display: flex; align-items: center; gap: 14px; }
.q-icon { font-size: 2.6rem; }
.q-name { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 900; }
.q-visual { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; min-height: 240px; }
.q-status { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 800; color: var(--muted); }
.q-intro { animation: pop .6s ease; }
.q-round { font-size: 1.2rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.q-big { font-size: clamp(5rem, 10vw, 8rem); line-height: 1.1; }
.q-intro-name { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; }
.eq { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.eq i { width: 16px; height: 18%; border-radius: 6px; background: linear-gradient(var(--accent-2), var(--accent)); }
.eq.on i { animation: eq .55s ease-in-out infinite alternate; }
@keyframes eq { from { height: 12%; } to { height: 100%; } }
.stages { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.stages span { border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; font-weight: 800; color: var(--muted); }
.stages span.done { border-color: var(--accent); color: var(--accent); }
.stages span.cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.stages.small span { padding: 2px 8px; font-size: .8rem; }
.buzz-banner { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 900; color: var(--accent-2); animation: pop .4s ease, pulse 1s ease-in-out infinite .4s; }
.cover-frame { width: min(380px, 70vw); aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.cover-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease, filter 1.2s ease; }
.cover-meter { display: flex; gap: 6px; }
.cover-meter span { border: 2px solid var(--line); border-radius: 999px; padding: 2px 10px; font-weight: 800; color: var(--muted); font-size: .9rem; }
.cover-meter span.cur { background: var(--accent-2); color: #000; border-color: var(--accent-2); }
.cover-meter span.done { opacity: .35; text-decoration: line-through; }
.order-cards { display: flex; gap: 14px; }
.oc { width: 120px; height: 150px; border-radius: 16px; background: var(--panel-2); border: 2px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.oc b { font-size: 3rem; }
.oc.cur { border-color: var(--accent); box-shadow: 0 0 30px rgba(255, 79, 139, .4); animation: pulse 1s ease-in-out infinite; }
.oc.done { opacity: .6; }
.q-reveal { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.q-song { display: flex; gap: 14px; align-items: center; text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px; animation: pop .45s ease; }
.q-song img, .q-song .no-img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; }
.q-song .no-img { background: var(--panel-2); display: grid; place-items: center; font-size: 3rem; }
.q-song .year { font-size: 2.4rem; font-weight: 900; color: var(--accent-2); line-height: 1; }
.q-song .title { font-weight: 900; font-size: 1.2rem; }
.q-song .artist { color: var(--muted); }
.rr.half .rr-res { color: var(--accent-2); }
.rr:not([style]) { border-left-color: var(--accent); }
.q-side h3 { margin-top: 0; }
.q-scores { display: grid; gap: 6px; }
.qs { display: grid; grid-template-columns: 1.6em auto 1fr auto auto; gap: 8px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.qs .pos { color: var(--muted); font-weight: 900; }
.qs .name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qs b { color: var(--accent-2); }
.qs em { font-style: normal; color: var(--ok); font-weight: 900; font-size: .85rem; animation: pop .4s ease; }
.qs.lead { border-color: var(--accent-2); }
.podium { display: flex; align-items: flex-end; gap: 14px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; animation: pop .6s ease; }
.pod-av { font-size: 3rem; }
.pod-name { font-weight: 900; }
.pod-block { width: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px 14px 0 0; font-size: 2.4rem; font-weight: 900; background: var(--panel-2); }
.pod-block small { font-size: .85rem; color: var(--muted); }
.p1 .pod-block { height: 180px; background: linear-gradient(#ffd36b, #ff8a3d); color: #000; }
.p1 .pod-block small { color: rgba(0, 0, 0, .7); }
.p2 .pod-block { height: 130px; }
.p3 .pod-block { height: 100px; }
.ans.buzz { border-color: var(--accent-2); background: rgba(255, 179, 71, .2); opacity: 1; }
.ans.locked { opacity: .35; }
.ans { border-color: var(--line); }
body.paused .q-stage, body.paused .stage { opacity: .55; }

/* Telefoon: quiz */
.phone-game { font-size: 1.6rem; font-weight: 900; }
.q-phone-head { text-align: center; }
.q-phone-head .round-title { margin-top: 0; }
.q-wait { text-align: center; font-size: 1.3rem; font-weight: 800; color: var(--muted); padding: 40px 0; }
.buzzer {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: min(78vw, 300px); aspect-ratio: 1; margin: 18px auto; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #ff8fb3, #ff4f8b 45%, #c42a63);
  color: #fff; font: inherit; font-size: 1.8rem; font-weight: 900;
  box-shadow: 0 14px 0 #8c1c45, 0 20px 40px rgba(255, 79, 139, .45);
  transition: transform .06s, box-shadow .06s;
}
.buzzer span { font-size: 3.4rem; }
.buzzer:active { transform: translateY(10px); box-shadow: 0 4px 0 #8c1c45, 0 8px 20px rgba(255, 79, 139, .4); }
.fb { text-align: center; font-weight: 800; padding: 8px; border-radius: 12px; margin-bottom: 8px; }
.fb.ok { background: rgba(61, 220, 132, .15); color: var(--ok); }
.fb.bad { background: rgba(255, 95, 95, .15); color: var(--bad); }
.year-pick { text-align: center; }
.year-big { font-size: 4rem; font-weight: 900; color: var(--accent-2); line-height: 1.1; }
.year-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.year-btns button { padding: 14px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 900; font-size: 1.1rem; cursor: pointer; }
.year-pick input[type=range] { width: 100%; accent-color: var(--accent); }
.order-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.oc-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 6px; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.oc-btn b { font-size: 1.8rem; color: var(--accent-2); }
.oc-btn.on { border-color: var(--accent); background: rgba(255, 79, 139, .12); }
.order-sel { text-align: center; color: var(--muted); font-weight: 700; margin-top: 10px; }
.q-songs { display: grid; gap: 6px; margin-top: 10px; }
.mini-cover { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }

/* =========================================================
   Hum or Fake en Playlist Panic
   ========================================================= */
.stage-perf { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mic-rings { position: relative; width: 200px; height: 200px; display: grid; place-items: center; }
.mic-rings span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; }
.stage-perf.perform .mic-rings span { animation: ring 2s ease-out infinite; }
.stage-perf.perform .mic-rings span:nth-child(2) { animation-delay: .66s; }
.stage-perf.perform .mic-rings span:nth-child(3) { animation-delay: 1.33s; }
@keyframes ring { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.perf-av { width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; font-size: 4.5rem; background: radial-gradient(circle, #3a2f5c, #1f1b30); box-shadow: 0 0 0 4px var(--accent), 0 0 50px rgba(255, 79, 139, .4); }
.hum-reveal { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vote-bar { display: flex; width: min(520px, 90%); border-radius: 999px; overflow: hidden; font-weight: 900; }
.vote-bar span { padding: 10px 14px; white-space: nowrap; }
.vb-real { background: #4f9dff; color: #000; }
.vb-fake { background: #b06bff; color: #000; text-align: right; }
.pp-prompt { font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 900; text-align: center; color: var(--accent-2); line-height: 1.3; }
.pp-prompt.small { font-size: 1.15rem; margin: 6px 0 10px; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; width: 100%; }
.pp-grid.small .pp-card { font-size: .85rem; }
.pp-present .pp-card { width: min(560px, 90vw); font-size: 1.15rem; animation: pop .5s ease; }
.pp-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: left; }
.pp-card.win { border-color: var(--accent-2); box-shadow: 0 0 0 2px var(--accent-2), 0 0 30px rgba(255, 179, 71, .3); }
.pp-label { font-weight: 900; font-size: 1.15em; margin-bottom: 8px; color: var(--accent-2); }
.pp-song { display: flex; gap: 10px; align-items: center; margin: 6px 0; }
.pp-song img, .pp-song .no-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--panel-2); }
.pp-note { font-style: italic; color: var(--muted); margin-top: 8px; }
.pp-votes { margin-top: 8px; font-weight: 800; }
.pp-votes b { color: var(--ok); margin-left: 6px; }

.secret-card { background: linear-gradient(135deg, #2b2642, #1f1b30); border: 2px dashed var(--accent-2); border-radius: 16px; padding: 16px; text-align: center; margin: 10px 0; }
.secret-card.fake { border-color: #b06bff; }
.secret-label { font-weight: 900; color: var(--accent-2); }
.secret-card.fake .secret-label { color: #c18cff; }
.secret-task { font-size: 1.15rem; font-weight: 800; margin: 8px 0; }
.secret-song { font-size: 1.3rem; background: var(--bg); border-radius: 12px; padding: 10px; margin: 8px 0; }
.vote2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.vote-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 8px; border-radius: 16px; border: 3px solid #4f9dff; background: var(--panel); color: var(--text); font: inherit; font-size: 2rem; cursor: pointer; }
.vote-btn span { font-size: 1rem; font-weight: 900; }
.vote-btn.fake { border-color: #b06bff; }
.vote-btn.on { background: #4f9dff; color: #000; }
.vote-btn.fake.on { background: #b06bff; }
.pp-box { margin-top: 6px; }
.pp-search { display: flex; gap: 6px; }
.pp-search input { flex: 1; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: 1rem; }
.pp-results, .pp-picked { display: grid; gap: 6px; margin-top: 8px; }
.pp-results { max-height: 300px; overflow: auto; }
.pp-item { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; width: 100%; }
.pp-item img, .pp-item .no-img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; }
.pp-item > span:not(.pp-n):not(.no-img) { flex: 1; min-width: 0; }
.pp-item em { font-style: normal; font-weight: 900; font-size: 1.3rem; color: var(--accent); width: 24px; text-align: center; }
.pp-item.on { border-color: var(--ok); }
.pp-item.on em { color: var(--ok); }
.pp-item:disabled { opacity: .4; }
.pp-item .x { border: 0; background: var(--panel-2); color: var(--text); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.pp-n { font-weight: 900; color: var(--accent-2); width: 20px; text-align: center; }
#pp-note { margin-top: 8px; }
.pp-vote { display: grid; gap: 8px; }
.pp-vcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.pp-vcard.own { opacity: .55; }
.pp-vhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.vb { border: 2px solid var(--line); background: var(--bg-2); border-radius: 12px; font-size: 1.4rem; width: 52px; height: 44px; margin-left: 6px; cursor: pointer; }
.vb.on { border-color: var(--accent-2); background: rgba(255, 179, 71, .25); }


/* =========================================================
   Tegen de Klok – eigen quizshow-stijl (donkerblauw en goud)
   ========================================================= */
body.klok-theme {
  --bg: #050914; --bg-2: #0a1226; --panel: #0d1730; --panel-2: #16264d; --line: #22345f;
  --text: #f4f6ff; --muted: #9aa7c7; --accent: #e8b923; --accent-2: #ffd23d;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(232, 185, 35, .14), transparent 65%),
    radial-gradient(1200px 700px at 50% 120%, rgba(61, 139, 255, .12), transparent 60%),
    var(--bg);
}
body.klok-theme .btn.primary { background: linear-gradient(135deg, #e8b923, #c98a12); color: #0a0f1f; box-shadow: 0 6px 18px rgba(232, 185, 35, .3); }
.k-secs, .k-big-clock, .k-delta, .k-pbig, .k-pt b, .k-mine b {
  font-family: "Consolas", "SF Mono", "Courier New", monospace; font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.k-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.k-logo { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: .12em; color: #fff; text-shadow: 0 0 24px rgba(232, 185, 35, .35); }
.k-logo b { color: var(--accent); }
.k-rounds { display: flex; flex-wrap: wrap; gap: 6px; }
.k-rounds span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: .8rem; color: var(--muted); font-weight: 700; }
.k-rounds span.done { color: var(--accent); border-color: rgba(232, 185, 35, .4); }
.k-rounds span.cur { background: var(--accent); color: #0a0f1f; border-color: var(--accent); }
.k-grid { display: grid; grid-template-columns: 1fr minmax(240px, 300px); gap: 16px; align-items: start; }
.k-stage { min-height: 460px; background: linear-gradient(180deg, rgba(22, 38, 77, .7), rgba(13, 23, 48, .9)); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 20px 50px rgba(0, 0, 0, .35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.k-side { display: grid; gap: 10px; }
.k-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--pc); border-radius: 14px; padding: 10px 14px; transition: box-shadow .2s, transform .2s; }
.k-card.actief { box-shadow: 0 0 0 2px var(--pc), 0 0 26px color-mix(in srgb, var(--pc) 55%, transparent); transform: scale(1.03); }
.k-card.uit { opacity: .45; }
.k-card.finale { border-color: var(--accent); }
.k-card-top { display: flex; align-items: center; gap: 8px; }
.k-av { font-size: 1.3rem; }
.k-av.big { font-size: 3rem; }
.k-name { font-weight: 900; color: var(--pc, #fff); flex: 1; text-align: left; }
.k-tag { font-size: .72rem; font-weight: 800; background: var(--accent); color: #0a0f1f; border-radius: 999px; padding: 2px 8px; }
.k-tag.out { background: var(--panel-2); color: var(--muted); }
.k-secs { font-size: 2.2rem; font-weight: 900; line-height: 1.1; text-align: right; }
.k-bar { position: relative; height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin-top: 4px; }
.k-bar i { position: absolute; inset: 0 auto 0 0; background: var(--pc); transition: width .25s linear; }
.k-target { text-align: center; font-size: .9rem; color: var(--text); background: var(--bg-2); border: 1px dashed rgba(232, 185, 35, .5); border-radius: 12px; padding: 8px; }
.k-target b { color: var(--accent); }
.k-title-card { animation: pop .6s ease; max-width: 760px; }
.k-round-no { text-transform: uppercase; letter-spacing: .2em; color: var(--accent); font-weight: 800; font-size: .9rem; }
.k-title-icon { font-size: clamp(4rem, 8vw, 6rem); margin: 8px 0; filter: drop-shadow(0 0 20px rgba(232, 185, 35, .4)); }
.k-title-name { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 900; letter-spacing: .02em; }
.k-title-name.small { font-size: 1.6rem; }
.k-title-card p, .k-ptitle p { color: var(--muted); font-size: 1.1rem; }
.k-standings { display: grid; gap: 8px; margin: 16px auto; min-width: min(460px, 100%); }
.k-stand { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-left: 6px solid var(--pc); border-radius: 12px; padding: 10px 16px; animation: pop .4s ease both; }
.k-stand span { font-weight: 900; color: var(--muted); width: 1.4em; }
.k-stand b { flex: 1; text-align: left; color: var(--pc); font-size: 1.15rem; }
.k-stand em { font-style: normal; font-weight: 900; color: var(--accent); }
.k-stand.first { background: linear-gradient(90deg, rgba(232, 185, 35, .2), transparent); }
.k-turn { font-size: clamp(1.3rem, 2.4vw, 1.9rem); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.k-turn b { color: var(--pc); }
.k-big-clock { font-size: clamp(4rem, 9vw, 7rem); font-weight: 900; color: #fff; text-shadow: 0 0 30px rgba(232, 185, 35, .45); line-height: 1; }
.k-big-clock.small { font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--accent); border: 2px solid var(--accent); border-radius: 14px; padding: 2px 14px; }
.k-question { font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-weight: 800; max-width: 900px; line-height: 1.3; animation: pop .45s ease; }
.k-question.small { font-size: clamp(1.15rem, 2vw, 1.6rem); color: var(--muted); }
.k-flash { border-radius: 16px; padding: 14px 24px; font-size: 1.15rem; animation: pop .35s ease; }
.k-flash.ok { background: rgba(61, 220, 132, .15); border: 2px solid var(--ok); }
.k-flash.bad { background: rgba(255, 79, 94, .15); border: 2px solid var(--bad); }
.k-delta { font-size: 3rem; font-weight: 900; line-height: 1; }
.k-flash.ok .k-delta, .k-presult.ok .k-delta { color: var(--ok); }
.k-flash.bad .k-delta, .k-presult.bad .k-delta { color: var(--bad); }
.k-q { font-weight: 900; color: var(--accent); margin-top: 6px; }
.k-q.out { color: var(--bad); }
.k-duel { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 50px); width: 100%; }
.k-duelist { flex: 1; max-width: 340px; background: var(--bg-2); border: 2px solid var(--line); border-radius: 22px; padding: 18px; transition: all .3s; }
.k-duelist .k-name { display: block; text-align: center; font-size: 1.4rem; }
.k-duelist.act { border-color: var(--pc); box-shadow: 0 0 0 3px var(--pc), 0 0 50px color-mix(in srgb, var(--pc) 50%, transparent); transform: scale(1.05); }
.k-duelist:not(.act) { opacity: .7; }
.k-vs { font-size: 2rem; font-weight: 900; color: var(--accent); }
.k-clues { display: grid; gap: 8px; width: min(760px, 100%); }
.k-clue { display: flex; align-items: center; gap: 12px; min-height: 52px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; text-align: left; font-size: 1.1rem; color: transparent; }
.k-clue span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); color: var(--muted); font-weight: 900; }
.k-clue.open { color: var(--text); border-color: rgba(232, 185, 35, .5); animation: flip .5s ease; }
.k-clue.open span { background: var(--accent); color: #0a0f1f; }
@keyframes flip { 0% { transform: rotateX(90deg); opacity: 0; } 100% { transform: rotateX(0); opacity: 1; } }
.k-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(760px, 100%); }
.k-part { background: var(--bg-2); border: 2px solid rgba(232, 185, 35, .45); border-radius: 14px; padding: 22px 12px; font-size: 1.2rem; font-weight: 800; animation: pop .5s ease both; }
.k-reveal { position: relative; width: min(420px, 70vw); aspect-ratio: 1; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 3px var(--accent); }
.k-reveal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.k-tiles i { background: linear-gradient(135deg, #16264d, #0d1730); border: 1px solid #22345f; transition: opacity .6s ease, transform .6s ease; }
.k-tiles i.open { opacity: 0; transform: scale(.6); }
.k-gallery { display: grid; gap: 10px; width: min(520px, 100%); }
.k-gallery.g3 { width: min(560px, 100%); }
.k-gallery.g2 { grid-template-columns: repeat(2, 1fr); }
.k-gallery.g3 { grid-template-columns: repeat(3, 1fr); }
.k-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.k-answered { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.k-answered span { border: 2px solid var(--pc); border-radius: 999px; padding: 4px 14px; font-weight: 800; opacity: .55; }
.k-answered span.ok { opacity: 1; background: color-mix(in srgb, var(--pc) 30%, transparent); }
.k-answered span.lock { opacity: .3; }
.k-winner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.k-crown { font-size: 4.5rem; animation: pop .6s ease, pulse 1.6s ease-in-out infinite .6s; }
.k-win-label { text-transform: uppercase; letter-spacing: .2em; color: var(--accent); font-weight: 800; }
.k-win-name { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; color: var(--pc); text-shadow: 0 0 40px color-mix(in srgb, var(--pc) 60%, transparent); }
.k-timerbar { margin: 12px 0 0; }

/* Tegen de Klok op de telefoon */
.k-box { display: grid; gap: 8px; margin: 12px 0; }
.k-box input { font-size: 1.3rem; padding: 14px; text-align: center; border-radius: 14px; border: 2px solid var(--accent); background: var(--bg-2); color: var(--text); }
.k-box-btns { display: flex; gap: 8px; }
.k-box-btns .grow { flex: 1; }
.k-box-btns .btn { padding: 14px 18px; font-size: 1.1rem; }
.k-mine { display: inline-block; border: 2px solid var(--pc); border-radius: 999px; padding: 4px 14px; font-weight: 800; }
.k-mine b { color: var(--pc); font-size: 1.2rem; }
.k-phone-round { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 10px; color: var(--muted); }
.k-phone-round b { color: var(--accent); }
.k-ptitle { text-align: center; padding: 18px 0; animation: pop .5s ease; }
.k-ptitle .k-title-name { font-size: 2rem; }
.k-ptimes { display: grid; gap: 6px; margin-top: 12px; }
.k-pt { display: flex; justify-content: space-between; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--pc); border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.k-pt b { font-size: 1.3rem; }
.k-pt.act { box-shadow: 0 0 0 2px var(--pc); }
.k-pt.out { opacity: .45; }
.k-yourturn { text-align: center; border: 2px solid var(--pc); border-radius: 18px; padding: 12px; font-weight: 900; font-size: 1.3rem; color: var(--pc); box-shadow: 0 0 30px color-mix(in srgb, var(--pc) 35%, transparent); }
.k-yourturn span { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.k-pbig { font-size: 3.6rem; color: #fff; line-height: 1.1; }
.k-pq { font-size: 1.25rem; font-weight: 800; text-align: center; margin: 14px 0 4px; line-height: 1.35; }
.k-pq.small { font-size: 1rem; color: var(--muted); }
.k-presult { text-align: center; border-radius: 16px; padding: 14px; margin-top: 10px; }
.k-presult.ok { background: rgba(61, 220, 132, .14); border: 2px solid var(--ok); }
.k-presult.bad { background: rgba(255, 79, 94, .12); border: 2px solid var(--bad); }
.k-pclues { display: grid; gap: 6px; }
.k-pclues .k-clue { font-size: .95rem; min-height: 44px; }
.k-pparts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.k-pparts .k-part { padding: 14px 8px; font-size: 1rem; }
.k-reveal.phone { width: 100%; max-width: 340px; margin: 0 auto; }
.k-gallery.phone { width: 100%; }
@media (max-width: 860px) { .k-grid { grid-template-columns: 1fr; } }


/* Tegen de Klok: introductie, rode klok, compacte kaarten, eindknoppen */
.k-intro { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: introIn .7s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes introIn { 0% { transform: translateY(40px) scale(.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
.k-intro-av { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; font-size: 6rem; background: radial-gradient(circle, #1d2b55, #0a1226); box-shadow: 0 0 0 5px var(--pc), 0 0 70px color-mix(in srgb, var(--pc) 60%, transparent); }
.k-intro-name { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 900; color: var(--pc); text-shadow: 0 0 30px color-mix(in srgb, var(--pc) 50%, transparent); }
.k-intro-color { text-transform: uppercase; letter-spacing: .2em; color: var(--muted); font-weight: 800; }
.k-intro-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0; }
.k-intro-row span { border: 2px solid var(--pc); border-radius: 999px; padding: 6px 16px; font-weight: 900; color: var(--pc); }
.k-pcard { text-align: center; border: 2px solid var(--pc); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: introIn .6s ease; }
.k-pcard .k-intro-av { width: 120px; height: 120px; font-size: 4rem; }
.k-pcard .k-intro-name { font-size: 2.2rem; }
.low { color: #ff4f5e !important; animation: lowPulse .8s ease-in-out infinite; }
@keyframes lowPulse { 50% { transform: scale(1.08); text-shadow: 0 0 30px rgba(255, 79, 94, .8); } }
.k-side.compact { gap: 6px; }
.k-side.compact .k-card { padding: 6px 12px; }
.k-side.compact .k-secs { font-size: 1.7rem; }
.k-endbtns { display: grid; gap: 8px; margin-top: 12px; }

.k-answered span.act { opacity: 1; background: var(--pc); color: #0a0f1f; box-shadow: 0 0 18px var(--pc); }
.k-turn.small { font-size: clamp(1.1rem, 1.8vw, 1.5rem); }
/* ---------- Kleinere schermen ---------- */
@media (max-width: 860px) {
  .quiz-grid { grid-template-columns: 1fr; }
  .lobby { grid-template-columns: 1fr; }
  .join-panel { position: static; }
  .stage { flex-direction: column; text-align: center; }
  .stage .row { justify-content: center; }
  .mystery { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  main { padding: 14px; }
  .topbar { padding: 10px 14px; }
  .status { display: none; }
  .tl-card { width: 108px; }
  .slot { min-height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Host op de telefoon, spelerskleuren en ghosts
   ========================================================= */
.dotc { display: inline-block; width: .75em; height: .75em; border-radius: 50%; background: var(--pc, #fff); margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.chip[style*="--pc"] { box-shadow: inset 4px 0 0 var(--pc); }

/* grote scherm: host kiezen, geluid aan */
.host-pick { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--accent-2); margin-left: auto; white-space: nowrap; }
.host-pick + .status { margin-left: 0; }
.host-pick select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font: inherit; font-weight: 700; }
.sound-gate { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; border: 0; border-radius: 999px; padding: 16px 28px; font: inherit; font-size: 1.15rem; font-weight: 900; background: var(--accent-2); color: #1a1200; box-shadow: var(--shadow); cursor: pointer; animation: gatepulse 1.6s ease-in-out infinite; }
@keyframes gatepulse { 50% { transform: translateX(-50%) scale(1.05); } }
.lib-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.lib-join { position: sticky; top: 16px; }
.lib-join .qr { margin: 10px auto 8px; }
.lib-join .room-code { font-size: 3.4rem; }
.lib-host { margin: 14px 0 10px; text-align: center; font-weight: 700; }
.lib-join .chips { justify-content: center; }
.library .game-card { cursor: default; }
@media (max-width: 1000px) { .lib-wrap { grid-template-columns: 1fr; } .lib-join { position: static; } }
.lobby-host { font-weight: 800; color: var(--accent-2); white-space: nowrap; }
.lobby-wait { font-size: 1.25rem; font-weight: 700; text-align: center; padding: 14px; border-radius: var(--radius); background: rgba(255, 179, 71, .1); border: 1px dashed var(--accent-2); }
#screen-lobby .rules, #screen-lobby #preset-seg, #screen-lobby #mode-seg, #screen-lobby #team-count-row,
#screen-lobby #quiz-rules, #screen-lobby #own-playlist, #screen-lobby .lobby-teams, #screen-lobby label.check { pointer-events: none; }

/* grote scherm: wie is er aan de beurt */
.turn-label .acting { display: inline-block; padding: 6px 18px; border-radius: 14px; background: color-mix(in srgb, var(--team) 22%, transparent); border: 2px solid var(--team); color: var(--text); animation: pop .35s ease; }
.chal.ok { background: rgba(61, 220, 132, .2); }

/* ghosts: vakjes die spelers hebben aangetikt */
.slot.ghost { border-style: solid; border-color: var(--g); background: color-mix(in srgb, var(--g) 30%, transparent); width: 64px; }
.slot.proposed, .tl-card.proposed { box-shadow: 0 0 0 3px var(--accent-2), 0 0 22px rgba(255, 179, 71, .5); }
.tl-card.ghost { border-color: var(--g); box-shadow: 0 0 0 2px color-mix(in srgb, var(--g) 60%, transparent); }
.ghosts { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.slot .ghosts { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); flex-wrap: nowrap; }
.tl-card .ghosts { margin-top: 6px; }
.gh { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-style: normal; font-size: 1rem; background: color-mix(in srgb, var(--pc) 45%, #000); border: 2px solid var(--pc); opacity: .7; }
.gh.ok { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.gh.ok::after { content: "✓"; position: absolute; top: -6px; right: -6px; font-size: .6rem; background: var(--ok); color: #000; border-radius: 50%; width: 14px; height: 14px; display: grid; place-items: center; }
.vslot.ghost { border-style: solid; border-color: var(--g); background: color-mix(in srgb, var(--g) 22%, transparent); min-height: 46px; }
.vslot.ghost.chosen { background: color-mix(in srgb, var(--g) 55%, transparent); border-width: 3px; }
.vslot.proposed, .vcard.proposed { box-shadow: 0 0 0 3px var(--accent-2); }
.vcard.ghost { border-color: var(--g); }
.vslot .ghosts, .vcard .ghosts { margin-left: auto; flex-wrap: nowrap; }
.vslot .gh, .vcard .gh { width: 26px; height: 26px; font-size: .85rem; }

/* telefoon: voorstel van een teamgenoot */
.prop-box { margin: 10px 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--pc) 16%, var(--panel)); border: 2px solid var(--pc); text-align: center; font-weight: 600; }
.prop-box.ask { animation: pop .35s ease; }
.prop-btns { display: flex; gap: 8px; margin-top: 10px; }
.prop-btns .btn { font-size: 1.05rem; padding: 12px; }
.turn-info.acting { border: 2px solid var(--team); background: color-mix(in srgb, var(--team) 14%, var(--panel)); }
.tries { list-style: none; padding: 0; margin: 8px 0; font-size: .9rem; color: var(--muted); }
.tries li { padding: 3px 0; }
.main-actions .btn.on { border-color: var(--accent); background: rgba(255, 79, 139, .2); }

/* kleur kiezen */
.color-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.color-grid button { aspect-ratio: 1; border-radius: 50%; border: 3px solid transparent; background: var(--pc); cursor: pointer; padding: 0; font-weight: 900; color: #000; font-size: .9rem; min-width: 0; }
.color-grid button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--pc); }
.color-grid button:disabled { opacity: .3; cursor: not-allowed; font-size: .8rem; }
@media (max-width: 380px) { .color-grid { grid-template-columns: repeat(5, 1fr); } }

/* host-paneel op de telefoon */
.host-panel { background: linear-gradient(160deg, rgba(255, 179, 71, .12), var(--panel) 40%); border: 1px solid rgba(255, 179, 71, .45); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.host-crown { font-size: 1.3rem; font-weight: 900; text-align: center; color: var(--accent-2); }
.host-panel h3 { margin: 16px 0 8px; }
.a-games { display: grid; gap: 8px; }
.a-game { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; }
.a-game:active { transform: scale(.98); }
.a-gi { font-size: 1.8rem; }
.a-banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); margin: 12px 0 6px; font-size: 1.1rem; }
.a-banner .btn { margin-left: auto; }
.a-rule { display: flex; flex-direction: column; gap: 6px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.a-rule:last-child { border-bottom: 0; }
.a-label { font-weight: 700; font-size: .92rem; }
.a-rule .seg { align-self: flex-start; }
.a-rule .chip-toggles { justify-content: flex-start; }
.a-group { font-weight: 900; margin-top: 14px; color: var(--accent-2); }
.a-players { display: grid; gap: 6px; }
.a-player { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 12px; background: var(--bg-2); border-left: 4px solid var(--pc); }
.a-player.offline { opacity: .5; }
.a-pn { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-team { border: 1px solid var(--team); background: color-mix(in srgb, var(--team) 20%, transparent); color: var(--text); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.a-rules { margin-top: 14px; background: var(--bg-2); border-radius: 14px; padding: 4px 12px; }
.a-rules summary { cursor: pointer; font-weight: 900; padding: 10px 0; }
.a-music { display: grid; gap: 8px; }
.a-opt { text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.a-opt.on { border-color: var(--accent); background: rgba(255, 79, 139, .15); }
.a-music select, .a-link input { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.a-link { display: flex; gap: 6px; }
.a-start { margin-top: 14px; }
.toggle { border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); border-radius: 999px; padding: 6px 16px; font: inherit; font-weight: 800; cursor: pointer; align-self: flex-start; }
.toggle.on { background: var(--ok); color: #000; border-color: var(--ok); }
.a-rule .years { display: flex; align-items: center; gap: 6px; }
.a-rule .years input { width: 90px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }

/* bedieningsbalk van de host tijdens het spel */
.host-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; margin: 0 0 10px; border-radius: 14px; background: rgba(255, 179, 71, .1); border: 1px solid rgba(255, 179, 71, .45); }
.host-bar > span { font-size: 1.1rem; }
.host-bar .btn { flex: 1; min-width: 0; padding: 8px 4px; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.host-bar .grow { flex: 3; }

/* Tegen de Klok: "Wat weet je van…" (meerdere antwoorden) */
.k-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 980px; margin: 14px auto 6px; }
.k-slots.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 700px; }
.k-slots.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 820px; }
.k-slot { position: relative; min-height: 74px; display: grid; place-items: center; padding: 10px 8px 8px; border-radius: 14px; border: 2px dashed rgba(201, 162, 39, .45); background: rgba(10, 18, 40, .55); font-weight: 900; font-size: clamp(1rem, 1.6vw, 1.35rem); text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
.k-slot > span { position: absolute; top: 4px; left: 8px; font-size: .7rem; color: #c9a227; font-weight: 800; }
.k-slot.found { border: 2px solid var(--pc); background: color-mix(in srgb, var(--pc) 28%, #0b1430); animation: pop .35s ease; box-shadow: 0 0 18px color-mix(in srgb, var(--pc) 45%, transparent); }
.k-slot.missed { border-style: solid; border-color: rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .45); font-weight: 700; }
.k-try { text-align: center; color: #ff8a8a; font-weight: 800; animation: pop .3s ease; }
.k-next-q { text-align: center; color: var(--muted); margin-top: 8px; }
.k-slots.phone { grid-template-columns: 1fr; gap: 6px; margin: 10px 0; }
.k-slots.phone .k-slot { min-height: 40px; padding: 8px 10px 8px 32px; place-items: center start; font-size: 1rem; text-align: left; }
.k-slots.phone .k-slot > span { top: 50%; transform: translateY(-50%); left: 10px; font-size: .8rem; }
@media (max-width: 900px) { .k-slots:not(.phone) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* QR-code: altijd helemaal in beeld, gecentreerd */
.qr { line-height: 0; }
.qr img, .qr canvas { width: min(260px, 60vw) !important; height: min(260px, 60vw) !important; margin: 0 auto; }
.join-panel { max-height: calc(100vh - 92px); overflow: auto; }
@media (max-height: 820px) { .qr img, .qr canvas { width: 200px !important; height: 200px !important; } .room-code { font-size: 2.6rem !important; } }

/* Lobbyscherm: wie doen er mee */
.lib-main { min-width: 0; }
.lib-lobby { margin-bottom: 18px; }
.lib-lobby-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.lib-lobby-head h2 { margin: 0; }
.lib-host { color: var(--accent-2); font-weight: 700; }
.lib-games-title { margin: 6px 0 12px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.pgrid.sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pgrid-empty { grid-column: 1 / -1; text-align: center; padding: 28px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 1.15rem; font-weight: 700; animation: gatepulse2 2s ease-in-out infinite; }
@keyframes gatepulse2 { 50% { opacity: .55; } }
.pcard { position: relative; text-align: center; padding: 14px 8px 12px; border-radius: 16px; background: color-mix(in srgb, var(--pc) 12%, var(--bg-2)); border: 2px solid color-mix(in srgb, var(--pc) 70%, transparent); min-width: 0; }
.pcard.enter { animation: pop .45s ease; }
.pcard.off { opacity: .45; filter: grayscale(.6); }
.pc-av { font-size: 2.6rem; line-height: 1.1; }
.pc-name { font-weight: 900; font-size: 1.1rem; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-tags { font-size: .78rem; color: var(--muted); font-weight: 700; margin-top: 2px; }
.pcard.sm { display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px 10px; border-radius: 12px; }
.pcard.sm .pc-av { font-size: 1.5rem; }
.pcard.sm .pc-name { margin: 0; font-size: 1rem; flex: 1; }
.pcard.sm .pc-tags { margin: 0; white-space: nowrap; }
.team-box .pgrid { margin-top: 8px; }
.reset-btn { white-space: nowrap; }

/* Telefoon: knoppen niet afbreken, antwoordveld vast onderin */
.main-actions .btn.nowrap { flex: none; width: auto; padding: 0 14px; font-size: .9rem; white-space: nowrap; }
.k-box:not(.hidden) { position: sticky; bottom: 0; z-index: 30; margin: 12px -4px 0; padding: 10px 4px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #070b18 22%); }

/* Meldingen: compact op de telefoon, boven de onderste balk op het grote scherm */
.host .toast { bottom: 110px; }
.phone .toast { font-size: .9rem; padding: 8px 14px; border-radius: 14px; max-width: calc(100% - 24px); width: max-content; }
.main-actions .btn.grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Music Party Hub als Windows-app */
.app-top-btn { white-space: nowrap; }
.app-strip { display: flex; align-items: center; gap: 16px; max-width: 900px; margin: 18px auto 0; }
.app-strip img { border-radius: 14px; flex: none; }
.app-strip > div { flex: 1; }
.app-strip .btn { flex: none; white-space: nowrap; }
@media (max-width: 640px) { .app-strip { flex-wrap: wrap; } .app-strip .btn { width: 100%; } }
.app-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--text); padding: 22px 24px; box-shadow: var(--shadow); }
.app-dialog::backdrop { background: rgba(8, 6, 14, .72); backdrop-filter: blur(4px); }
.app-dialog-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.app-dialog-head img { border-radius: 14px; }
.app-dialog-head h2 { margin: 0; flex: 1; }
.app-option { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 14px 0; }
.app-option h3 { margin: 0 0 6px; }
.app-option p { margin: 0 0 12px; color: var(--muted); }
.app-option .hint { margin: 12px 0 0; font-size: .85rem; }
.app-option .tag { font-size: .72rem; font-weight: 800; color: #1a1200; background: var(--accent-2); border-radius: 999px; padding: 2px 8px; vertical-align: middle; margin-left: 6px; }
.app-howto { margin-top: 12px; font-size: .92rem; }
.app-howto ol { margin: 6px 0 0; padding-left: 20px; }
.app-howto li { margin: 4px 0; }

/* =========================================================
   Duidelijk in beeld: stappenbalk, grote meldingen, "wat moet je doen"
   ========================================================= */
.steps { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.step { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--panel); border: 2px solid var(--line); color: var(--muted); font-weight: 800; font-size: 1.05rem; transition: all .3s ease; }
.step b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--panel-2); color: var(--text); font-size: .9rem; }
.step em { font-style: normal; }
.step.done { opacity: .55; }
.step.done b { background: var(--ok); color: #000; }
.step.cur { color: var(--text); border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 18%, var(--panel)); box-shadow: 0 0 0 4px rgba(255, 179, 71, .15), 0 0 26px rgba(255, 179, 71, .25); transform: scale(1.06); animation: stepPulse 1.8s ease-in-out infinite; }
.step.cur b { background: var(--accent-2); color: #1a1200; }
@keyframes stepPulse { 50% { box-shadow: 0 0 0 7px rgba(255, 179, 71, .08), 0 0 34px rgba(255, 179, 71, .35); } }
.step-arrow { font-style: normal; color: var(--muted); font-size: 1.4rem; opacity: .6; }
.steps.small { gap: 3px; margin: 0 0 10px; flex-wrap: nowrap; }
.steps.small .step { padding: 4px 8px 4px 4px; font-size: .72rem; gap: 4px; border-width: 1px; }
.steps.small .step b { width: 20px; height: 20px; font-size: .68rem; }
.steps.small .step:not(.cur) span { display: none; }
.steps.small .step.cur { transform: none; }
.steps.small .step-arrow { font-size: 1rem; }

/* Grote melding (groot scherm: midden in beeld) */
.callout { position: fixed; left: 50%; top: 42%; z-index: 80; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none;
  min-width: min(720px, 90vw); max-width: 92vw; text-align: center; padding: 26px 40px 30px; border-radius: 28px;
  background: color-mix(in srgb, var(--cc, #ff4f8b) 22%, #14111f); border: 4px solid var(--cc, #ff4f8b);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px color-mix(in srgb, var(--cc, #ff4f8b) 45%, transparent); }
.callout.show { animation: calloutIn 2.3s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes calloutIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
  20% { transform: translate(-50%, -50%) scale(1); }
  85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
}
.co-icon { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; }
.co-text { font-size: clamp(1.8rem, 4vw, 3.4rem); font-weight: 900; line-height: 1.15; margin-top: 8px; }
.co-sub { font-size: clamp(1rem, 1.8vw, 1.5rem); color: var(--muted); font-weight: 700; margin-top: 10px; }

/* Grote melding op de telefoon: bovenin */
.callout.phone-co { top: calc(12px + env(safe-area-inset-top)); transform: translate(-50%, -140%); min-width: 0; width: calc(100% - 24px); padding: 14px 16px 16px; border-radius: 20px; }
.callout.phone-co.show { animation: calloutPhone 2.3s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes calloutPhone {
  0% { opacity: 0; transform: translate(-50%, -140%); }
  12% { opacity: 1; transform: translate(-50%, 0); }
  86% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -140%); }
}
.phone-co .co-icon { font-size: 1.8rem; }
.phone-co .co-text { font-size: 1.3rem; margin-top: 4px; }
.phone-co .co-sub { font-size: .9rem; margin-top: 4px; }

/* Telefoon: wat moet jij nu doen */
.todo-card { margin: 4px 0 12px; padding: 14px 16px; border-radius: 18px; text-align: center; background: color-mix(in srgb, var(--team, #ff4f8b) 20%, var(--panel)); border: 3px solid var(--team, #ff4f8b); animation: pop .35s ease; }
.todo-big { font-size: 1.6rem; font-weight: 900; line-height: 1.15; }
.todo-sub { margin-top: 6px; color: var(--text); opacity: .85; font-size: .95rem; }

/* =========================================================
   Song Order: letters, kleuren, ladder en tijdlijn-onthulling
   ========================================================= */
.order-cards { flex-wrap: wrap; justify-content: center; }
.order-cards .oc { position: relative; border-color: color-mix(in srgb, var(--oc) 55%, transparent); background: color-mix(in srgb, var(--oc) 14%, var(--panel-2)); }
.order-cards .oc b { color: var(--oc); font-size: 3.4rem; line-height: 1; text-shadow: 0 0 22px color-mix(in srgb, var(--oc) 50%, transparent); }
.order-cards .oc span { font-weight: 800; color: var(--muted); }
.order-cards .oc.cur { border-color: var(--oc); box-shadow: 0 0 34px color-mix(in srgb, var(--oc) 55%, transparent); transform: translateY(-6px) scale(1.06); animation: none; }
.order-cards .oc.cur span { color: var(--text); }
.order-cards .oc.done { opacity: .75; }
.oc-eq { position: absolute; bottom: 12px; display: flex; gap: 3px; height: 18px; align-items: flex-end; }
.oc-eq i { width: 5px; background: var(--oc); border-radius: 2px; animation: ocEq .7s ease-in-out infinite alternate; }
.oc-eq i:nth-child(2) { animation-delay: .15s; } .oc-eq i:nth-child(3) { animation-delay: .3s; } .oc-eq i:nth-child(4) { animation-delay: .45s; }
@keyframes ocEq { from { height: 4px; } to { height: 18px; } }
.q-status.big { font-size: clamp(1.2rem, 2.1vw, 1.8rem); color: var(--text); margin-top: 18px; }

.order-reveal { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.or-card { width: 150px; text-align: center; padding: 10px; border-radius: 18px; background: color-mix(in srgb, var(--oc) 12%, var(--panel-2)); border: 3px solid var(--oc); opacity: 0; animation: orIn .55s cubic-bezier(.2, .9, .3, 1.3) forwards; }
@keyframes orIn { from { opacity: 0; transform: translateY(30px) rotateX(70deg); } to { opacity: 1; transform: none; } }
.or-letter { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--oc); color: #111; font-weight: 900; font-size: 1.2rem; margin-bottom: 6px; }
.or-card img, .or-card .no-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: grid; place-items: center; font-size: 2.4rem; background: var(--bg-2); }
.or-year { font-size: 2rem; font-weight: 900; color: var(--accent-2); line-height: 1.1; margin-top: 6px; }
.or-title { font-weight: 800; font-size: .92rem; line-height: 1.2; overflow-wrap: anywhere; }
.or-artist { color: var(--muted); font-size: .82rem; }
.or-arrow { font-size: 1.8rem; color: var(--muted); }
.order-results { display: grid; gap: 6px; margin-top: 6px; }
.orr { display: grid; grid-template-columns: minmax(110px, auto) 1fr auto; gap: 12px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.orr.ok { border-color: var(--ok); }
.orr.ok .rr-res { color: var(--ok); }
.orr.half .rr-res { color: var(--accent-2); }
.orr.bad .rr-res { color: var(--bad); }
.orr-seq { display: flex; gap: 5px; flex-wrap: wrap; }
.orr-seq i { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-style: normal; font-weight: 900; color: #111; background: var(--oc); }
.orr-seq i.bad { opacity: .45; }
.orr-seq i.good::after, .orr-seq i.bad::after { position: absolute; right: -5px; top: -6px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font-size: .6rem; color: #000; }
.orr-seq i.good::after { content: "✓"; background: var(--ok); }
.orr-seq i.bad::after { content: "✗"; background: var(--bad); color: #fff; opacity: 1; }
.reveal .orr-seq { justify-content: center; margin-top: 6px; }

/* telefoon */
.order-pick.n4 { grid-template-columns: repeat(4, 1fr); }
.order-pick.n5 { grid-template-columns: repeat(5, 1fr); }
.order-pick .oc-btn { border-color: color-mix(in srgb, var(--oc) 60%, transparent); background: color-mix(in srgb, var(--oc) 14%, var(--panel)); padding: 12px 4px; }
.order-pick .oc-btn b { color: var(--oc); font-size: 2rem; line-height: 1; }
.order-pick .oc-btn span { font-size: .72rem; color: var(--muted); }
.order-pick .oc-btn.playing { box-shadow: 0 0 0 3px var(--oc); animation: pulse 1s ease-in-out infinite; }
.order-pick .oc-btn:disabled { opacity: .35; }
.order-ladder { margin-top: 12px; display: grid; gap: 6px; }
.ol-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--line); }
.ol-pos { width: 92px; flex: none; font-weight: 800; color: var(--muted); font-size: .85rem; }
.ol-empty { color: var(--muted); font-size: .85rem; }
.ol-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 0; border-radius: 10px; background: var(--oc); color: #111; font: inherit; font-weight: 900; font-size: 1.1rem; cursor: pointer; }
.ol-chip small { font-size: .7rem; opacity: .7; }
.ol-chip.static { padding: 2px 9px; font-size: .9rem; cursor: default; margin-right: 6px; }

/* Meldingen die weg zijn, ook echt onzichtbaar (ze schoven soms maar half uit beeld) */
.toast { transition: transform .3s ease, opacity .3s ease; }
.toast:not(.show) { opacity: 0; pointer-events: none; }

/* =========================================================
   Nieuwe spellen: Hoger of Lager en Muziekbingo
   ========================================================= */
.gc-hilo { background: linear-gradient(135deg, #11998e, #38ef7d); }
.gc-bingo { background: linear-gradient(135deg, #f7971e, #ff4f8b); }

/* Hoger of Lager: groot scherm */
.hilo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; width: 100%; max-width: 820px; margin: 0 auto; }
.hilo-card { text-align: center; padding: 16px; border-radius: 22px; background: var(--panel-2); border: 3px solid var(--line); min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.hilo-card img, .hilo-card .no-img { width: 150px; height: 150px; border-radius: 14px; object-fit: cover; display: grid; place-items: center; font-size: 3rem; background: var(--bg-2); }
.hilo-card .disc { width: 150px; height: 150px; }
.hilo-card.known { border-color: var(--accent-2); }
.hilo-card.mystery { border-style: dashed; }
.hilo-card.revealed { border-color: var(--ok); animation: pop .45s ease; }
.hilo-year { font-size: 2.8rem; font-weight: 900; color: var(--accent-2); line-height: 1.1; margin-top: 6px; }
.hilo-card.mystery .hilo-year { color: var(--muted); letter-spacing: .1em; }
.hilo-t { font-weight: 800; }
.hilo-a { color: var(--muted); font-size: .9rem; }
.hilo-mid { display: grid; gap: 8px; justify-items: center; font-weight: 900; font-size: 1.3rem; }
.hilo-up { color: var(--ok); } .hilo-down { color: #4f9dff; } .hilo-q { color: var(--muted); font-size: 1rem; }
.hilo-answer { font-size: 2rem; padding: 14px 20px; border-radius: 18px; animation: pop .45s ease; }
.hilo-answer.up { background: rgba(61, 220, 132, .18); color: var(--ok); border: 2px solid var(--ok); }
.hilo-answer.down { background: rgba(79, 157, 255, .18); color: #4f9dff; border: 2px solid #4f9dff; }
@media (max-width: 760px) { .hilo { grid-template-columns: 1fr; } .hilo-card { min-height: 0; } }

/* Hoger of Lager: telefoon */
.hilo-prev { display: grid; justify-items: center; gap: 2px; text-align: center; padding: 12px; margin-bottom: 10px; border-radius: 16px; background: var(--panel); border: 2px solid var(--accent-2); }
.hilo-prev-year { font-size: 2.2rem; font-weight: 900; color: var(--accent-2); line-height: 1.1; }
.hilo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hilo-btn { display: grid; justify-items: center; gap: 4px; padding: 22px 8px; border-radius: 20px; font: inherit; font-size: 2.4rem; cursor: pointer; color: var(--text); border: 3px solid var(--line); background: var(--panel); }
.hilo-btn span { font-size: 1.15rem; font-weight: 900; }
.hilo-btn small { font-size: .8rem; color: var(--muted); font-weight: 700; }
.hilo-btn.up { border-color: rgba(61, 220, 132, .6); }
.hilo-btn.down { border-color: rgba(79, 157, 255, .6); }
.hilo-btn.up.on { background: rgba(61, 220, 132, .25); border-color: var(--ok); box-shadow: 0 0 22px rgba(61, 220, 132, .4); }
.hilo-btn.down.on { background: rgba(79, 157, 255, .25); border-color: #4f9dff; box-shadow: 0 0 22px rgba(79, 157, 255, .4); }

/* Muziekbingo: groot scherm */
.b-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 14px; }
.b-logo { font-size: 2.2rem; font-weight: 900; }
.b-logo b { color: var(--accent-2); }
.b-info { display: flex; gap: 10px; flex-wrap: wrap; }
.b-info span { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.b-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .b-grid { grid-template-columns: 1fr; } }
.b-stage { min-height: 420px; }
.b-intro, .b-end, .b-win { text-align: center; padding: 20px; }
.b-ball { font-size: 5rem; animation: pulse 1.6s ease-in-out infinite; }
.b-now { display: flex; align-items: center; gap: 28px; justify-content: center; padding: 10px 0 20px; }
.b-now .disc { width: 170px; height: 170px; }
.b-now-n { font-size: 1.1rem; color: var(--muted); font-weight: 800; }
.b-now-q { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; }
.b-hist-title { margin: 6px 0 10px; }
.b-hist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.b-h { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.b-h:first-child { border-color: var(--accent-2); }
.b-h img, .b-h .no-img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: var(--panel-2); flex: none; }
.b-h span { display: grid; min-width: 0; }
.b-h b, .b-h small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-h small { color: var(--muted); }
.b-side h3 { margin-top: 0; }
.b-player { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "av name em" "av dots dots"; gap: 2px 8px; align-items: center; padding: 8px 10px; margin-bottom: 6px; border-radius: 12px; background: var(--bg-2); border-left: 4px solid var(--pc); }
.b-player .av { grid-area: av; font-size: 1.6rem; }
.b-player b { grid-area: name; }
.b-player em { grid-area: em; font-style: normal; font-weight: 800; color: var(--accent-2); font-size: .85rem; }
.b-player.win { box-shadow: 0 0 0 2px var(--accent-2); }
.b-dots { grid-area: dots; display: grid; grid-template-columns: repeat(8, 10px); gap: 3px; }
.b-dots i { width: 10px; height: 10px; border-radius: 3px; background: var(--panel-2); }
.b-dots i.on { background: var(--pc); }
.b-win-title { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 900; color: var(--accent-2); text-shadow: 0 0 40px rgba(255, 179, 71, .5); animation: pop .5s ease; }
.b-win-name { font-size: 2rem; font-weight: 900; margin: 6px 0 16px; }

/* Bingokaart (groot scherm en telefoon) */
.bingo-card { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 560px; margin: 0 auto; }
.bc { display: grid; place-items: center; min-height: 74px; padding: 6px; border-radius: 14px; text-align: center; font: inherit; font-weight: 800; font-size: .95rem; line-height: 1.15; overflow-wrap: anywhere; color: var(--text); background: var(--panel-2); border: 2px solid var(--line); }
.bc.on { background: color-mix(in srgb, var(--accent) 30%, var(--panel-2)); border-color: var(--accent); }
.bc.line { background: color-mix(in srgb, var(--accent-2) 40%, var(--panel-2)); border-color: var(--accent-2); box-shadow: 0 0 16px rgba(255, 179, 71, .45); }
.bingo-card.phone { gap: 6px; }
.bingo-card.phone .bc { min-height: 70px; font-size: .78rem; cursor: pointer; }
.bingo-card.phone .bc.on::after { content: "✓"; display: block; font-size: 1rem; }
.bingo-card.phone .bc:active { transform: scale(.96); }
.bingo-card.locked .bc:not(.on) { opacity: .5; }

/* Bingo: lange namen netjes, plaat rond */
.bc { overflow-wrap: normal; word-break: normal; hyphens: auto; }
.bc.long { font-size: .8rem; }
.bingo-card.phone .bc.long { font-size: .66rem; letter-spacing: -.01em; }
.b-now .disc { flex: none; border-radius: 50%; }

/* Kleine meldingen (bv. "Team Blauw breekt niet in") linksonder, zodat het midden rustig blijft */
.callout.corner { left: 24px; top: auto; bottom: 24px; transform: translateX(-130%); min-width: 0; width: min(460px, 42vw); max-width: none;
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; text-align: left; padding: 14px 20px; border-radius: 20px; border-width: 3px; }
.callout.corner .co-icon { grid-row: span 2; font-size: 2.2rem; }
.callout.corner .co-text { font-size: 1.35rem; margin: 0; }
.callout.corner .co-sub { font-size: .95rem; margin-top: 2px; }
.callout.corner.show { animation: cornerIn 2.3s cubic-bezier(.2, .9, .3, 1.1) forwards; }
@keyframes cornerIn {
  0% { opacity: 0; transform: translateX(-130%); }
  12% { opacity: 1; transform: translateX(0); }
  86% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(-130%); }
}

/* Captain en teamnaam */
.captain-tag { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); margin-top: 2px; }
.team-btn small { display: block; font-size: .7rem; font-weight: 700; opacity: .8; margin-top: 2px; }
.captain-card { margin: 16px 0 6px; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--team) 16%, var(--panel)); border: 2px solid var(--team); }
.cc-title { font-size: 1.2rem; font-weight: 900; }
.cc-row { display: flex; gap: 8px; margin-top: 8px; }
.cc-row input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-weight: 700; }

/* =========================================================
   Wereldgok
   ========================================================= */
.gc-geo { background: linear-gradient(135deg, #0f9b8e, #2a5298); }
#screen-geo { --geo: #36d1c4; }
.geo-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 4px 0 10px; }
.geo-logo { font-size: 2rem; font-weight: 900; letter-spacing: .02em; }
.geo-logo b { color: var(--geo); }
.geo-info { display: flex; gap: 10px; flex-wrap: wrap; }
.geo-info span { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.geo-info b { color: var(--geo); }
.geo-stage { position: relative; height: min(64vh, 720px); border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #13314a, #0b1626 70%); border: 2px solid #1d3b57; box-shadow: var(--shadow); }
.geo-stage[data-phase="result"] { height: min(52vh, 600px); }
.geo-stage[data-phase="standings"], .geo-stage[data-phase="end"] { height: auto; min-height: 420px; }
.geo-sv, .geo-map { position: absolute; inset: 0; }
.geo-overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 5; }
.geo-overlay > * { pointer-events: auto; }
.geo-stage[data-phase="standings"] .geo-overlay, .geo-stage[data-phase="end"] .geo-overlay { position: relative; padding: 24px; }
.geo-intro { text-align: center; animation: pop .5s ease; }
.geo-intro-logo { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: .06em; }
.geo-intro-logo b { color: var(--geo); }
.geo-intro-round { font-size: 1.6rem; font-weight: 900; color: var(--accent-2); margin-top: 8px; letter-spacing: .1em; }
.geo-intro-q { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; margin-top: 14px; }
.geo-count { font-size: 7rem; font-weight: 900; color: var(--geo); margin-top: 10px; animation: pulse 1s ease-in-out infinite; }
.geo-allin { background: rgba(10, 25, 40, .88); border: 3px solid var(--ok); border-radius: 22px; padding: 22px 40px; font-size: 2.4rem; font-weight: 900; color: var(--ok); animation: pop .4s ease; }
.geo-error { padding: 20px; color: #ffb3b3; font-weight: 800; text-align: center; max-width: 600px; }
.geo-bottom { margin-top: 12px; }
.geo-progress { height: 10px; border-radius: 999px; background: var(--panel); overflow: hidden; margin-bottom: 10px; }
.geo-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--geo), var(--ok)); transition: width .4s ease; }
.geo-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.geo-chip { padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 2px solid color-mix(in srgb, var(--pc) 50%, transparent); font-weight: 800; color: var(--muted); }
.geo-chip.ok { color: var(--text); background: color-mix(in srgb, var(--pc) 25%, var(--panel)); border-color: var(--pc); }
.geo-chip.off { opacity: .45; }
.geo-left { margin-left: auto; font-weight: 800; color: var(--muted); }
.geo-reveal { text-align: center; margin: 4px 0 12px; animation: pop .5s ease; }
.geo-reveal-name { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; color: #ffd23d; }
.geo-reveal-place { font-size: 1.2rem; font-weight: 800; }
.geo-reveal-desc { color: var(--muted); margin-top: 4px; }
.geo-table { display: grid; gap: 6px; max-width: 900px; margin: 0 auto; }
.geo-row { display: grid; grid-template-columns: 34px 1fr auto 110px; gap: 12px; align-items: center; padding: 9px 14px; border-radius: 12px; background: var(--bg-2); border-left: 5px solid var(--pc); animation: pop .4s ease both; }
.geo-row.best { background: color-mix(in srgb, #ffd23d 14%, var(--bg-2)); box-shadow: 0 0 0 2px #ffd23d; }
.gr-pos { font-weight: 900; color: var(--muted); }
.gr-name { font-weight: 800; }
.gr-name em { font-style: normal; color: #ffd23d; font-size: .85rem; }
.gr-km { color: var(--muted); font-weight: 700; }
.gr-pts { text-align: right; font-weight: 900; font-size: 1.15rem; color: var(--geo); }
.geo-team { border-radius: 16px; padding: 10px; background: color-mix(in srgb, var(--team) 10%, var(--panel)); border: 2px solid color-mix(in srgb, var(--team) 60%, transparent); display: grid; gap: 6px; }
.geo-team-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; padding: 0 4px; }
.geo-team-head b { color: var(--team); }
.geo-team-head span b { color: var(--geo); font-size: 1.3rem; }
.geo-board { width: min(820px, 100%); display: grid; gap: 8px; }
.geo-board-title { font-size: 1.8rem; font-weight: 900; text-align: center; margin-bottom: 6px; }
.geo-stand { display: grid; grid-template-columns: 50px 1fr 60px 100px 120px; gap: 12px; align-items: center; padding: 12px 18px; border-radius: 14px; background: var(--bg-2); border-left: 6px solid var(--pc); animation: pop .45s ease both; font-size: 1.15rem; }
.geo-stand.first { background: color-mix(in srgb, #ffd23d 12%, var(--bg-2)); box-shadow: 0 0 0 2px #ffd23d; }
.gs-pos { font-weight: 900; font-size: 1.3rem; }
.gs-name { font-weight: 900; }
.gs-move { font-weight: 800; font-size: .9rem; color: var(--ok); }
.gs-round { color: var(--muted); font-weight: 700; text-align: right; }
.gs-total { font-weight: 900; text-align: right; color: var(--geo); font-size: 1.3rem; }
.geo-end { text-align: center; width: 100%; display: grid; gap: 10px; justify-items: center; }
.geo-crown { font-size: 4rem; animation: pulse 1.6s ease-in-out infinite; }
.geo-win-label { color: var(--muted); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.geo-win-name { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; text-shadow: 0 0 30px currentColor; }
.geo-win-pts { font-size: 1.4rem; font-weight: 900; color: #ffd23d; }
.ge-members { color: var(--muted); font-weight: 700; }
.geo-end-table { border-collapse: collapse; margin-top: 8px; max-width: 100%; overflow-x: auto; display: block; }
.geo-end-table th, .geo-end-table td { padding: 7px 10px; text-align: right; white-space: nowrap; }
.geo-end-table th:nth-child(2), .geo-end-table td:nth-child(2) { text-align: left; }
.geo-end-table th { color: var(--muted); font-size: .85rem; }
.geo-end-table tbody tr { border-left: 4px solid var(--pc); background: var(--bg-2); }
.geo-end-table tbody tr + tr { border-top: 4px solid var(--bg); }
.geo-end-table tr.first td { background: color-mix(in srgb, #ffd23d 12%, var(--bg-2)); }

/* Telefoon */
.geo-box { margin: 6px 0 0; }
.geo-search { display: flex; gap: 6px; margin-bottom: 6px; }
.geo-search input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; }
.geo-pmap { height: 58vh; min-height: 300px; border-radius: 16px; overflow: hidden; border: 2px solid #1d3b57; background: #0d1b2a; }
.geo-box.locked .geo-pmap { height: 34vh; min-height: 220px; }
.geo-box.result .geo-pmap { height: 40vh; }
.geo-box.locked .geo-search, .geo-box.locked .geo-guess { display: none; }
.geo-guess { width: 100%; margin-top: 8px; padding: 18px; border: 0; border-radius: 18px; font: inherit; font-size: 1.5rem; font-weight: 900; letter-spacing: .12em; color: #062a26;
  background: linear-gradient(135deg, #36d1c4, #5ee7a0); box-shadow: 0 8px 26px rgba(54, 209, 196, .35); cursor: pointer; position: sticky; bottom: 8px; }
.geo-guess:disabled { background: var(--panel-2); color: var(--muted); box-shadow: none; letter-spacing: .02em; font-size: 1.1rem; }
.geo-hint { color: var(--muted); text-align: center; font-size: .92rem; margin: 2px 0 8px; }
.geo-res-card { text-align: center; padding: 12px; border-radius: 16px; background: var(--panel); border: 2px solid #ffd23d; margin-bottom: 8px; }
.grc-name { font-size: 1.3rem; font-weight: 900; color: #ffd23d; }
.grc-me { margin-top: 6px; font-weight: 700; }
body.phone:has(.react-bar:not(.hidden)) .geo-guess { bottom: calc(62px + env(safe-area-inset-bottom)); }
.geo-pmap { height: 52vh; }
.geo-box.result .geo-pmap { height: 52vh; min-height: 300px; }
.geo-box.result .geo-pmap { height: 46vh; min-height: 280px; }
body.phone:has(#geo-box:not(.hidden)) main { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }

/* Tijdlijn: rustig "Nu / Daarna" en een vast logboek in plaats van pop-ups */
.turn-label { display: grid; gap: 8px; justify-items: start; }
.tl-now-tag { font-size: .45em; font-weight: 900; letter-spacing: .2em; color: var(--muted); }
.turn-label .sub { font-size: .62em; color: var(--text); opacity: .85; margin-top: 0; }
.tl-next { display: block; font-size: .5em; font-weight: 700; color: var(--muted); padding: 6px 12px; border-radius: 10px; background: var(--bg-2); border: 1px dashed var(--line); }
.tl-next b { color: var(--accent-2); letter-spacing: .12em; margin-right: 6px; font-size: .85em; }
.tl-next.phone { font-size: .9rem; margin: 8px 0 0; text-align: left; }
#callout-corner.tl-log { position: fixed; left: 20px; bottom: 20px; z-index: 40; width: min(420px, 34vw); display: none; gap: 6px; padding: 12px 14px; border-radius: 16px;
  background: rgba(20, 17, 34, .9); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(6px); }
#callout-corner.tl-log.show { display: grid; }
.tl-log-title { font-size: .75rem; font-weight: 900; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.tl-log-row { display: grid; grid-template-columns: 26px 1fr; gap: 6px; align-items: start; font-weight: 700; color: var(--muted); border-left: 3px solid var(--cc, var(--line)); padding: 2px 0 2px 8px; }
.tl-log-row.new { color: var(--text); animation: pop .4s ease; }
.tl-log.phone { display: grid; gap: 4px; margin-top: 8px; font-size: .88rem; text-align: left; }
@media (max-width: 1100px) { #callout-corner.tl-log { position: static; width: auto; margin: 12px 0; } }

/* Uitleg vóór een spel */
.tut-wrap { max-width: 980px; margin: 10px auto; display: grid; gap: 16px; justify-items: center; }
.tut-box { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 26px 34px 22px; box-shadow: var(--shadow); text-align: center; animation: pop .35s ease; }
.tut-head { display: flex; justify-content: space-between; color: var(--muted); font-weight: 800; font-size: .95rem; }
.tut-icon { font-size: 3.6rem; margin-top: 4px; }
.tut-title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 900; margin: 2px 0 10px; }
.tut-text { font-size: clamp(1.1rem, 1.9vw, 1.45rem); line-height: 1.45; max-width: 820px; margin: 0 auto; }
.tut-text b { color: var(--accent-2); }
.tut-visual { margin: 20px auto 4px; display: grid; justify-items: center; gap: 8px; }
.tut-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.tut-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.tut-dots i.done { background: color-mix(in srgb, var(--accent-2) 50%, var(--line)); }
.tut-dots i.on { background: var(--accent-2); transform: scale(1.3); }
.tut-nav { display: flex; gap: 12px; justify-content: center; width: 100%; }
.tut-nav .btn.big { min-width: 260px; }
.tut-tl { display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding: 30px 4px 6px; }
.tut-card-y { position: relative; min-width: 130px; display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); text-align: center; }
.tut-card-y b { font-size: 1.7rem; color: var(--accent-2); }
.tut-card-y span { font-weight: 800; font-size: .92rem; }
.tut-card-y small { color: var(--muted); }
.tut-card-y.hl { border: 3px solid var(--ok); box-shadow: 0 0 24px color-mix(in srgb, var(--ok) 40%, transparent); }
.tut-card-y em { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--ok); color: #062a1a; font-style: normal; font-weight: 900; padding: 2px 10px; border-radius: 999px; font-size: .85rem; white-space: nowrap; }
.tut-gap { position: relative; width: 26px; margin: 0 4px; border-radius: 10px; border: 2px dashed var(--line); }
.tut-gap.on { width: 64px; border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 14%, transparent); }
.tut-gap.marked { width: 64px; }
.tut-myst { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; font-weight: 900; color: var(--accent-2); animation: pulse 1.4s ease-in-out infinite; }
.tut-mark { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .8rem; font-weight: 900; padding: 2px 8px; border-radius: 8px; background: var(--team); color: #fff; }
.tut-gap.marked { border-color: var(--team, var(--accent-2)); }
.tut-cap { color: var(--muted); font-weight: 700; max-width: 760px; }
.tut-phone { width: 270px; padding: 14px; border-radius: 26px; border: 3px solid var(--line); background: var(--bg-2); display: grid; gap: 8px; }
.tut-in { display: grid; text-align: left; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.tut-in span { font-size: .75rem; color: var(--muted); }
.tut-ok { padding: 10px; border-radius: 14px; background: linear-gradient(135deg, #36d1c4, #5ee7a0); color: #062a26; font-weight: 900; letter-spacing: .06em; }
.tut-sv { height: 120px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(#7ec8e3 0%, #bfe6f5 45%, #8a8a8a 46%, #5a5a5a 100%); color: #123; }
.tut-map { height: 120px; border-radius: 14px; display: grid; place-items: center; font-size: 2.6rem; background: #5ccfe6; position: relative; }
.tut-pin { position: absolute; left: 58%; top: 28%; font-size: 1.8rem; }
.tut-btnrow { display: flex; gap: 8px; } .tut-btnrow span { flex: 1; padding: 8px; border-radius: 12px; background: var(--panel); font-weight: 800; }
.tut-btnrow span.hl { background: var(--accent-2); color: #1a1300; }
.tut-big-emoji { font-size: 3.4rem; letter-spacing: .2em; }
.tut-coins { font-size: 3rem; }
.tut-table { border-collapse: collapse; font-size: 1.15rem; } .tut-table td { padding: 6px 16px; border-bottom: 1px solid var(--line); text-align: left; } .tut-table td + td { text-align: right; }
.tut-list { text-align: left; max-width: 760px; font-size: 1.15rem; line-height: 1.5; display: grid; gap: 6px; padding-left: 20px; }
.tut-now { display: grid; gap: 8px; justify-items: start; font-size: 1.6rem; font-weight: 900; text-align: left; }
/* telefoon */
.tut-box.phone { padding: 16px 14px; border-radius: 20px; }
.tut-box.phone .tut-icon { font-size: 2.6rem; }
.tut-box.phone .tut-title { font-size: 1.5rem; }
.tut-box.phone .tut-text { font-size: 1rem; }
.tut-box.phone .tut-tl { padding-top: 30px; }
.tut-box.phone .tut-card-y { min-width: 96px; padding: 8px; } .tut-box.phone .tut-card-y b { font-size: 1.25rem; } .tut-box.phone .tut-card-y span { font-size: .78rem; }
.tut-box.phone .tut-now { font-size: 1.05rem; }
.tut-box.phone .tut-big-emoji { font-size: 2.4rem; }
.tut-nav.phone { margin: 12px 0 8px; }
.tut-nav.phone .btn.big { min-width: 0; }

/* Wereldgok: eigen Street View op de telefoon */
.geo-psv, .geo-bar { display: none; }
.geo-box.own .geo-bar { display: flex; gap: 8px; margin-top: 8px; }
.geo-bar .btn { flex: 1; font-size: 1.05rem; padding: 14px 10px; }
.geo-box.own.sv .geo-psv { display: block; height: 62vh; min-height: 320px; border-radius: 16px; overflow: hidden; border: 2px solid #1d3b57; }
.geo-box.own.sv .geo-search, .geo-box.own.sv .geo-pmap, .geo-box.own.sv .geo-guess, .geo-box.own.sv #geo-tosv { display: none; }
.geo-box.own.map #geo-home, .geo-box.own.map #geo-tomap { display: none; }
.geo-box.own.sv .geo-bar { position: sticky; bottom: calc(62px + env(safe-area-inset-bottom)); }
#geo-tomap { font-size: 1.25rem; font-weight: 900; }
/* Wereldgok: de muur op het grote scherm */
.geo-wall { position: absolute; inset: 0; display: grid; gap: 6px; padding: 6px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; }
.geo-wall[data-n="1"] { grid-template-columns: 1fr; }
.geo-wall[data-n="5"], .geo-wall[data-n="6"], .geo-wall[data-n="7"], .geo-wall[data-n="8"], .geo-wall[data-n="9"] { grid-template-columns: repeat(3, 1fr); }
.geo-wall[data-n="10"], .geo-wall[data-n="11"], .geo-wall[data-n="12"] { grid-template-columns: repeat(4, 1fr); }
.geo-tile { position: relative; border-radius: 12px; overflow: hidden; border: 3px solid var(--pc); background: #0b1626; min-height: 0; }
.geo-tile-sv { position: absolute; inset: 0; width: 100%; height: 100%; }
.geo-tile-name { position: absolute; left: 6px; top: 6px; z-index: 3; background: rgba(10, 16, 30, .85); padding: 3px 10px; border-radius: 999px; font-weight: 800; }
.geo-tile-name b { color: var(--ok); margin-left: 4px; }
.geo-tile.done { opacity: .75; }
.geo-tile.more { display: grid; place-items: center; font-weight: 900; color: var(--muted); border-color: var(--line); }
.geo-stage[data-own="wall"][data-phase="view"], .geo-stage[data-own="wall"][data-phase="allin"] { height: min(70vh, 820px); }
/* Wereldgok: geen zoekveld meer; knoppenbalk onder de kaart */
.geo-box:not(.locked) .geo-bar { display: flex; gap: 8px; margin-top: 8px; }
.geo-box:not(.own) #geo-home, .geo-box:not(.own) #geo-tomap, .geo-box:not(.own) #geo-tosv { display: none; }
.geo-box.own.sv #geo-world { display: none; }
/* Wereldgok telefoon: alles past op het scherm; de knoppenbalk staat altijd in beeld */
.geo-box { display: flex; flex-direction: column; }
.geo-box.own.sv .geo-psv { height: 44vh; min-height: 240px; }
.geo-box.own.sv .geo-bar { position: static; }
.geo-box.map .geo-bar { order: -1; margin: 0 0 8px; }
.geo-box.own.map .geo-pmap, .geo-box:not(.own) .geo-pmap { height: 44vh; min-height: 240px; }
.geo-box.result .geo-pmap { height: 46vh; }
/* uitleg: tijdlijn past in het blok */
.tut-tl { overflow: visible; }
.tut-card-y { min-width: 118px; padding: 10px; }
.tut-gap.on, .tut-gap.marked { width: 54px; }

/* =========================================================
   Tijdlijn op het grote scherm: alles in één beeld, zonder scrollen
   ========================================================= */
main:has(#screen-game:not(.hidden)) { max-width: 1680px; padding-top: 10px; padding-bottom: 10px; }
#screen-game .scoreboard { margin-bottom: 6px; }
#screen-game .score { padding: 5px 12px; }
#screen-game .steps { margin: 0 0 8px; }
#screen-game .step { padding: 4px 12px 4px 4px; font-size: .92rem; }
#screen-game .stage.card-panel { padding: 12px 18px; margin-bottom: 8px; gap: 18px; }
#screen-game .mystery .disc, #screen-game .mystery img, #screen-game .mystery .no-img { width: clamp(84px, 8vw, 120px); }
#screen-game .reveal-info .year { font-size: clamp(2rem, 3.6vw, 3rem); }
#screen-game .reveal-info .title { font-size: clamp(1rem, 1.3vw, 1.2rem); margin-top: 2px; }
#screen-game .turn-label { font-size: clamp(1.15rem, 2vw, 1.75rem); gap: 5px; }
#screen-game .turn-label .acting { padding: 4px 14px; }
#screen-game .tl-next { padding: 4px 10px; }
#screen-game .game-msg { margin-top: 6px; font-size: clamp(.9rem, 1.15vw, 1.1rem); min-height: 0; }
#screen-game .timerbar { margin: 6px 0; }
#screen-game .stage .row { margin-top: 6px; }
#screen-game .stage .row .btn { padding: 7px 14px; font-size: .9rem; }
#screen-game .timeline-head { margin-top: 0; }
#screen-game .timeline-head h3 { margin: 4px 0; font-size: clamp(1rem, 1.3vw, 1.2rem); }
/* één regel: de kaarten krimpen mee naarmate de tijdlijn langer wordt */
#screen-game .timeline { flex-wrap: nowrap; gap: 4px; padding: 14px 0 18px; }
#screen-game .tl-card { flex: 1 1 0; min-width: 0; max-width: 150px; width: auto; padding: 8px 6px; border-radius: 12px; font-size: clamp(.68rem, .8vw, .82rem); }
#screen-game .tl-card .year { font-size: clamp(1.15rem, 1.7vw, 1.6rem); }
#screen-game .tl-card .title { margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#screen-game .tl-card .artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#screen-game .slot { flex: none; width: 20px; min-height: 84px; border-radius: 10px; font-size: 1rem; }
#screen-game .slot.chosen, #screen-game .slot.ghost { width: 46px; }
#screen-game .slot.right, #screen-game .slot.wrong { width: 40px; }
#screen-game .mini-timelines { margin-top: 4px; gap: 4px; }
#screen-game .mini { padding: 5px 12px; }
#screen-game .host-menu { margin-top: 8px; padding: 8px 14px; }
/* Groot scherm (1080p tv): iets groter, het past ruim */
@media (min-width: 1600px) and (min-height: 950px) {
  #screen-game .stage.card-panel { padding: 18px 24px; }
  #screen-game .mystery .disc, #screen-game .mystery img, #screen-game .mystery .no-img { width: 150px; }
  #screen-game .turn-label { font-size: 2.1rem; }
  #screen-game .game-msg { font-size: 1.25rem; }
  #screen-game .timeline-head h3 { font-size: 1.45rem; }
  #screen-game .tl-card { max-width: 200px; padding: 14px 8px; font-size: .98rem; }
  #screen-game .tl-card .year { font-size: 2.2rem; }
  #screen-game .slot { width: 26px; min-height: 120px; }
  #screen-game .slot.chosen, #screen-game .slot.ghost { width: 60px; }
  #screen-game .mini { padding: 8px 14px; font-size: 1.1rem; }
}

/* Afsluitknop van de Windows-app (alleen in de lobby, linksonder) */
.app-exit { display: none; position: fixed; left: 18px; bottom: 18px; z-index: 60; padding: 10px 18px; font-weight: 800;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
body:has(#screen-lobby:not(.hidden)) .app-exit.on { display: inline-flex; }
.app-exit.armed { background: var(--bad); border-color: var(--bad); color: #fff; }
.miss { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 10px; background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--text); font-weight: 800; }
.reveal .miss { font-size: .9rem; display: block; }
#k-rounds span.skip { opacity: .35; text-decoration: line-through; }
.k-credit { margin-top: 8px; font-size: .72rem; color: var(--muted); opacity: .8; text-align: center; }

/* Laatste 5 seconden aftellen */
.big-count { position: fixed; left: 50%; top: 50%; z-index: 90; transform: translate(-50%, -50%); pointer-events: none; display: none;
  font-size: min(42vh, 30vw); font-weight: 900; line-height: 1; color: #ff2d4a; text-shadow: 0 0 40px rgba(255, 45, 74, .8), 0 0 4px #000; }
.big-count.show { display: block; }
.big-count.tick { animation: bigTick 1s ease-out; }
@keyframes bigTick { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); } 50% { opacity: .9; } 70% { opacity: .25; } 100% { opacity: .55; transform: translate(-50%, -50%) scale(.95); } }
.phone-count { display: none; }
body.counting .phone-count { display: flex; position: sticky; top: 0; z-index: 30; justify-content: center; align-items: center; gap: 10px; margin: 0 0 8px;
  height: 64px; border-radius: 16px; background: rgba(255, 45, 74, .14); border: 2px solid #ff2d4a; color: #ff2d4a; font-size: 3rem; font-weight: 900; }
body.counting .phone-count::before { content: "⏱️"; font-size: 1.6rem; }
.phone-count.tick { animation: phoneTick 1s ease-out; }
@keyframes phoneTick { 0% { background: rgba(255, 45, 74, .45); } 100% { background: rgba(255, 45, 74, .14); } }

/* Tegen de Klok: shootout bij gelijkstand */
.k-shoot-head { text-align: center; margin-bottom: 10px; }
.k-shoot-title { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 900; letter-spacing: .08em; color: #ffd23d; text-shadow: 0 0 24px rgba(255, 210, 61, .55); animation: pop .5s ease; }
.k-shoot-sub { color: var(--muted); font-size: 1.05rem; }
.k-shooters { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 12px 0; flex-wrap: wrap; }
.k-shooter { min-width: 150px; text-align: center; padding: 12px 16px; border-radius: 16px; background: var(--bg-2); border: 3px solid var(--pc); transition: transform .2s, opacity .2s; }
.k-shooter.act { transform: scale(1.08); box-shadow: 0 0 28px var(--pc); }
.k-shooter.won { background: color-mix(in srgb, var(--pc) 25%, var(--bg-2)); }
.k-shooter.lost { opacity: .4; }
.k-shooter-st { font-weight: 800; margin-top: 4px; }
.k-shoot-rules { text-align: center; font-size: 1.2rem; line-height: 1.7; background: var(--bg-2); border-radius: 16px; padding: 16px 20px; max-width: 760px; margin: 10px auto; }
.k-shoot-wait { text-align: center; font-size: 1.3rem; font-weight: 800; color: #ffd23d; animation: pulse 1s ease-in-out infinite; margin-top: 10px; }
.k-shoot-done { text-align: center; font-size: 1.5rem; margin-top: 12px; color: #ffd23d; }
.k-pshooters { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.k-pshooters span { padding: 6px 12px; border-radius: 999px; border: 2px solid var(--pc); font-weight: 800; }
.k-pshooters span.act { box-shadow: 0 0 14px var(--pc); }
.k-pshooters span.lost { opacity: .4; text-decoration: line-through; }
.k-pshooters span.won { background: color-mix(in srgb, var(--pc) 30%, transparent); }
.k-pshooters b { color: var(--muted); font-size: .8rem; }

/* Tegen de Klok: ronde 1 (3-6-9) en ronde 2 (eigen onderwerp) */
.k-r1-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.k-r1-no { font-size: 1.1rem; color: var(--muted); }
.k-r1-no b { color: var(--text); font-size: 1.4rem; }
.k-worth { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--bg-2); color: var(--muted); font-weight: 700; }
.k-worth.big { background: #ffd23d; color: #1a1300; font-weight: 900; animation: pop .4s ease, pulse 1.2s ease-in-out infinite .4s; }
div.k-worth { display: block; text-align: center; margin: 6px auto; width: fit-content; }
.k-owner { text-align: center; font-size: 1.05rem; padding: 6px 12px; border-radius: 12px; border: 2px solid var(--pc); background: color-mix(in srgb, var(--pc) 15%, transparent); margin: 0 auto 8px; width: fit-content; }
.k-owner.phone { font-size: .9rem; margin-bottom: 6px; }

/* Wereldgok: dubbele punten */
.geo-x2 { margin: 14px auto 0; width: fit-content; padding: 8px 22px; border-radius: 14px; background: linear-gradient(135deg, #ffd23d, #ff8a3d); color: #1a1300; font-weight: 900; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: .06em; animation: pop .5s ease, pulse 1.2s ease-in-out infinite .5s; text-align: center; }
.geo-x2 span { display: block; font-size: .5em; font-weight: 700; letter-spacing: 0; opacity: .8; }
.geo-x2.phone { font-size: 1.05rem; padding: 4px 14px; margin-top: 6px; }
.geo-x2-tag { padding: 2px 10px; border-radius: 999px; background: linear-gradient(135deg, #ffd23d, #ff8a3d); color: #1a1300; font-weight: 900; }

/* ---------------- Extra muziekspellen ---------------- */
/* Snelle Vingers: 4 keuzes in vier kleuren */
.snel-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.snel-opt { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 800; color: #fff; }
.snel-opt b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(0, 0, 0, .25); flex: none; }
.snel-opt.c0, .snel-btn.c0 { background: #e2364f; } .snel-opt.c1, .snel-btn.c1 { background: #2f7de1; }
.snel-opt.c2, .snel-btn.c2 { background: #d9a400; } .snel-opt.c3, .snel-btn.c3 { background: #26a65b; }
.snel-opts.reveal .snel-opt.wrong { opacity: .3; }
.snel-opts.reveal .snel-opt.right { outline: 4px solid #fff; transform: scale(1.03); }
.snel-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.snel-btn { min-height: 110px; border: 0; border-radius: 16px; color: #fff; font-weight: 800; font-size: 1.05rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; }
.snel-btn b { font-size: 1.6rem; }
.snel-btn:disabled { opacity: .35; }
.snel-btn.on { opacity: 1; outline: 4px solid #fff; transform: scale(1.03); }
/* Letterregen */
.letter-board { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px auto; max-width: 900px; }
.letter-board span { width: clamp(30px, 4vw, 54px); height: clamp(40px, 5.2vw, 70px); display: grid; place-items: center; border-radius: 8px; font-size: clamp(1.3rem, 2.8vw, 2.4rem); font-weight: 900; text-transform: uppercase; }
.letter-board span.hid { background: var(--bg-2); border-bottom: 4px solid var(--accent-2); }
.letter-board span.open { background: #fff; color: #1a1300; animation: pop .35s ease; }
.letter-board span.sym { background: transparent; }
.letter-board i.gap { width: clamp(14px, 2vw, 28px); }
.letter-board.phone { gap: 4px; margin: 8px auto; }
.letter-board.phone span { width: 24px; height: 32px; font-size: 1.05rem; border-radius: 5px; }
.letter-board.phone i.gap { width: 10px; }
.eq.small { height: 40px; }
/* Stoelendans */
.stoel-stage { text-align: center; }
.stoel-big { font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 900; text-align: center; margin: 14px 0; }
.stoel-stage.stopped .stoel-big { color: #ff4f5e; animation: pulse .6s ease-in-out infinite; }
.stoel-chairs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }
.stoel-p { display: flex; flex-direction: column; align-items: center; font-size: 2.4rem; padding: 8px 12px; border-radius: 14px; background: var(--bg-2); transition: transform .2s; }
.stoel-p small { font-size: .85rem; font-weight: 700; }
.stoel-p.sat { background: #26a65b; transform: scale(1.08); }
.stoel-p.early { background: #e2364f; opacity: .7; }
.stoel-out { margin-top: 14px; color: var(--muted); }
.stoel-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 240px; margin: 14px 0; border: 0; border-radius: 28px;
  background: radial-gradient(circle at 50% 35%, #ffd23d, #ff8a3d); color: #1a1300; font-size: 2.2rem; font-weight: 900; box-shadow: 0 10px 0 #b35a12; }
.stoel-btn span { font-size: 4rem; }
.stoel-btn:active { transform: translateY(8px); box-shadow: 0 2px 0 #b35a12; }
/* Wiens Nummer? */
.wiens-opts, .wiens-who { display: grid; gap: 8px; margin-top: 10px; }
.wiens-opt { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px; border-radius: 14px; border: 2px solid transparent; background: var(--bg-2); color: var(--text); }
.wiens-opt img, .wiens-opt .no-img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 1.6rem; }
.wiens-opt.on, .wiens-who-btn.on { border-color: #a66bff; background: color-mix(in srgb, #a66bff 25%, var(--bg-2)); }
.wiens-who { grid-template-columns: 1fr 1fr; }
.wiens-who-btn { padding: 14px 8px; border-radius: 14px; border: 2px solid transparent; background: var(--bg-2); color: var(--text); font-weight: 800; font-size: 1rem; }
.wiens-listen { text-align: center; }
.wiens-listen .q-song { justify-content: center; }
.wiens-reveal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.wr-card { background: var(--bg-2); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; animation: pop .45s ease both; }
.wr-card img, .wr-card .no-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: grid; place-items: center; font-size: 2rem; }
.wr-t { display: flex; flex-direction: column; } .wr-t span { color: var(--muted); font-size: .9rem; }
.wr-owner { font-weight: 900; font-size: 1.2rem; color: #ffd23d; }
.wr-right { font-size: .9rem; color: var(--muted); }

/* Spelbibliotheek in mappen */
#lib-filter small { opacity: .7; font-weight: 800; margin-left: 4px; }
.lib-folder { grid-column: 1 / -1; margin-top: 10px; }
.lib-folder:first-child { margin-top: 0; }
.lib-folder-head { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.lib-folder-head b { display: block; font-size: 1.4rem; }
.lib-folder-head span:not(.lib-folder-icon) { color: var(--muted); }
.lib-folder-head em { margin-left: auto; font-style: normal; color: var(--muted); font-weight: 700; white-space: nowrap; }
.lib-folder-icon { font-size: 2.2rem; }
.a-folders { display: grid; gap: 10px; }
.a-folder { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; min-height: 72px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; }
.a-folder .a-fi { font-size: 2rem; }
.a-folder em { margin-left: auto; font-style: normal; font-weight: 900; color: var(--accent-2); background: var(--panel); border-radius: 999px; padding: 4px 10px; }
.a-folder:active { transform: scale(.98); }
.a-folder-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.a-folder-head b { font-size: 1.15rem; }

/* ---------------- De Gids ---------------- */
.gids-box { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 0; }
.gids-psv, .gids-pmap { display: none; position: relative; width: 100%; border-radius: 16px; overflow: hidden; border: 2px solid #1d3b57; background: #0d1b2a; }
.gids-box.m-sv-big .gids-psv { display: block; height: 62vh; min-height: 320px; }
.gids-box.m-sv-small .gids-psv { display: block; height: 26vh; min-height: 170px; }
.gids-box.m-map .gids-pmap { display: block; height: 48vh; min-height: 260px; }
.gids-box #gids-confirm { display: none; }
.gids-box.m-map.confirm #gids-confirm { display: block; }
.gids-hints { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0; }
.gids-tile { display: inline-flex; flex-direction: column; align-items: center; min-width: 70px; padding: 6px 10px; border-radius: 12px; background: var(--bg-2); border: 2px solid #4fc3f7; }
.gids-tile b { font-size: 1.6rem; line-height: 1.2; }
.gids-tile small { font-size: .72rem; color: var(--muted); text-align: center; }
.gids-tile.extra { border-color: #ffd23d; }
.gids-tile.pop { animation: pop .5s ease; }
.gids-hints.big .gids-tile { min-width: 110px; padding: 10px 14px; }
.gids-hints.big .gids-tile b { font-size: 2.6rem; }
.gids-hints.big .gids-tile small { font-size: .95rem; }
.gids-hints.phone .gids-tile { min-width: 54px; padding: 4px 6px; }
.gids-hints.phone .gids-tile b { font-size: 1.3rem; }
.gids-pts { text-align: center; font-size: 1.1rem; }
.gids-pts b { color: #ffd23d; font-size: 1.4rem; }
.gids-tabs { justify-content: center; margin: 6px 0; }
.gids-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gids-grid.small { grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
.gids-tbtn { position: relative; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px;
  border-radius: 12px; border: 2px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: .78rem; }
.gids-tbtn b { font-size: 1.5rem; }
.gids-tbtn em { position: absolute; top: 3px; right: 5px; font-style: normal; font-weight: 900; font-size: .7rem; background: #ffd23d; color: #1a1300; border-radius: 6px; padding: 0 5px; }
.gids-tbtn.off { opacity: .3; }
.gids-tbtn.on { border-color: #ffd23d; background: color-mix(in srgb, #ffd23d 20%, var(--bg-2)); }
.gids-extra summary { cursor: pointer; padding: 10px; border-radius: 12px; background: var(--bg-2); }
.gids-banner { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 5; background: #000c; color: #fff; padding: 12px 22px; border-radius: 16px;
  font-size: clamp(1.2rem, 2.4vw, 2rem); font-weight: 800; text-align: center; max-width: 90%; }
.gids-banner.small { font-size: clamp(1rem, 1.8vw, 1.5rem); }
.gids-magnify { display: inline-block; animation: pulse 1s ease-in-out infinite; }
.gids-bigtile { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; display: flex; flex-direction: column; align-items: center;
  background: #000d; border: 4px solid #4fc3f7; border-radius: 24px; padding: 18px 34px; animation: pop .5s ease; }
.gids-bigtile b { font-size: 6rem; line-height: 1.1; }
.gids-bigtile span { font-size: 1.6rem; font-weight: 800; color: #fff; }
.gids-guide { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 18px; }
.gids-guide span { font-size: 5rem; }
.gids-guide b { font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--pc); }
.gids-guide em { font-style: normal; font-size: 1.3rem; color: var(--muted); }
.gids-guidepts { text-align: center; font-size: 1.3rem; margin-top: 10px; }
.gids-guidepts b { color: #ffd23d; }
.gids-podium { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: 14px 0; }
.gids-podium .gp { display: flex; flex-direction: column; align-items: center; padding: 10px 16px; border-radius: 14px 14px 0 0; background: var(--bg-2); border-top: 4px solid var(--pc); min-width: 120px; }
.gids-podium .gp span { font-size: 2.2rem; } .gids-podium .gp.p1 { padding-bottom: 40px; order: 2; } .gids-podium .gp.p2 { padding-bottom: 24px; order: 1; } .gids-podium .gp.p3 { order: 3; }
.gids-podium .gp em { font-style: normal; color: var(--muted); }

/* =========================================================
   Koningen: ring van 36 vakken rond het kasteel
   ========================================================= */
.kon-wrap { display: grid; grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr); gap: 14px; align-items: start; }
.kon-side { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.kon-board { position: relative; width: min(84vh, 60vw); aspect-ratio: 1; margin: 0 auto;
  background: radial-gradient(circle at 50% 50%, #3a2f1c 0 33%, #2a2214 33.5% 34.5%, #1d2a17 35% 50%, transparent 50.5%),
              radial-gradient(circle, rgba(232,185,35,.12), transparent 70%); border-radius: 50%; }
#kon-tiles, #kon-pawns { position: absolute; inset: 0; pointer-events: none; }
#kon-pawns { z-index: 3; }
.kt { position: absolute; transform: translate(-50%, -50%); width: 7.3%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: #f4e7c8; color: #2a1d0b; border-radius: 9px; border: 2px solid #8a6a32; box-shadow: 0 3px 8px rgba(0,0,0,.45); font-size: min(.56vw, .98vh); line-height: 1.05; text-align: center; padding: 2px; overflow: hidden; }
.kt.dom { border-top: 6px solid var(--gc); }
.kt.corner { width: 7.9%; aspect-ratio: 1; background: #e8b923; font-weight: 800; border-color: #6b4a10; }
.kt.owned { outline: 3px solid var(--pc); outline-offset: 1px; }
.kt.mort { filter: grayscale(.7) brightness(.8); }
.kt-ic { font-size: 1.9em; line-height: 1; } .kt-shield { font-size: 1.5em; line-height: 1; }
.kt-name { font-weight: 700; word-break: break-word; }
.kt-price { color: #7a5a20; font-weight: 700; }
.kt-lvl { font-size: 1.1em; }
.kt-flag { position: absolute; top: 1px; right: 1px; font-size: 1em; background: var(--pc); border-radius: 50%; width: 1.6em; height: 1.6em; display: grid; place-items: center; }
.kt-seal { position: absolute; bottom: 1px; left: 1px; }
.kon-pawnset { position: absolute; transform: translate(-50%, -50%); display: flex; flex-wrap: wrap; justify-content: center; width: 8%; gap: 1px; }
.kon-pawnset span { position: relative; font-size: min(1.5vw, 2.6vh); width: 1.45em; height: 1.45em; display: grid; place-items: center; background: var(--pc); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 3px 8px rgba(0,0,0,.6); }
.kon-pawnset.n3 span, .kon-pawnset.n4 span, .kon-pawnset.n5 span, .kon-pawnset.n6 span, .kon-pawnset.n7 span, .kon-pawnset.n8 span { font-size: min(1.1vw, 1.9vh); }
.kon-pawnset span.act { animation: konBob .8s ease-in-out infinite; z-index: 2; border-color: #e8b923; }
.kon-pawnset span i { position: absolute; bottom: -.4em; right: -.4em; font-size: .55em; font-style: normal; }
@keyframes konBob { 50% { transform: translateY(-18%) scale(1.12); } }
.kon-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54%; height: 58%; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding-top: 2%; text-align: center; overflow: hidden; }
.kon-title { font-family: Georgia, serif; font-weight: 900; letter-spacing: .3em; color: #e8b923; font-size: min(2vw, 3.2vh); text-shadow: 0 3px 0 #5a3a08; }
.kon-chest { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.35); border: 2px solid #e8b923; border-radius: 30px; padding: 3px 14px; font-size: min(1vw, 1.7vh); }
.kon-chest span { font-size: calc(1.6em * var(--sz, 1)); transition: font-size .4s; } .kon-chest b { font-size: 1.4em; color: #ffd75e; } .kon-chest small { color: var(--muted); }
.kon-dice { font-size: min(3vw, 5vh); line-height: 1; display: flex; align-items: center; gap: 8px; }
.kon-dice b { font-size: .5em; background: #e8b923; color: #1a1205; border-radius: 10px; padding: 2px 10px; }
.kon-dice em { font-size: .35em; font-style: normal; font-weight: 900; color: #ff7a00; }
.kon-dice.rolling { animation: konShake .25s linear infinite; }
@keyframes konShake { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.kon-focus { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; font-size: min(.95vw, 1.6vh); }
.kon-focus.end { font-size: min(.8vw, 1.35vh); }
.kon-banner { font-size: 1.5em; font-weight: 800; background: rgba(0,0,0,.4); border-radius: 12px; padding: 4px 14px; }
.kon-banner.small { font-size: 1.15em; }
.kon-banner.turn { border: 3px solid var(--pc); }
.kon-msg { color: #ffd75e; font-weight: 700; }
.kon-pawnpick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 1.4em; }
.kon-pawnpick span { background: rgba(0,0,0,.35); border-radius: 10px; padding: 3px 10px; }
.kon-card { background: #f4e7c8; color: #2a1d0b; border-radius: 12px; border-top: 10px solid var(--gc); padding: 8px 12px; min-width: 52%; box-shadow: 0 6px 18px rgba(0,0,0,.5); text-align: left; animation: pop .35s ease; }
.kc-head { font-size: 1.25em; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; } .kc-head small { color: #7a5a20; }
.kc-price { font-weight: 700; color: #6b4a10; margin: 2px 0; }
.kc-tab { width: 100%; border-collapse: collapse; font-size: .95em; } .kc-tab td { padding: 1px 4px; } .kc-tab td:last-child { text-align: right; font-weight: 700; } .kc-tab tr.sub td { color: #7a5a20; font-size: .9em; }
.kc-tolls { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; } .kc-tolls span { background: rgba(0,0,0,.08); border-radius: 6px; padding: 2px 6px; font-size: .85em; } .kc-tolls b { margin-left: 4px; }
.kon-scroll { background: linear-gradient(#f9eccb, #e9d39c); color: #2a1d0b; border-radius: 8px; padding: 12px 18px; max-width: 90%; font-size: 1.2em; box-shadow: 0 6px 18px rgba(0,0,0,.5); border: 3px double #8a6a32; animation: pop .35s ease; }
.kon-scroll.orakel { border-color: #7b3fa0; } .kon-scroll.hof { border-color: #c4122f; }
.kon-scroll p { margin: 6px 0 0; }
.kon-env { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 1.3em; }
.kon-env span { background: rgba(0,0,0,.35); border-radius: 10px; padding: 3px 10px; } .kon-env span.bid { background: #2e6b2e; } .kon-env span.pass { opacity: .5; }
.kon-bids { display: flex; flex-direction: column; gap: 3px; font-size: 1.15em; } .kon-bids div { background: rgba(0,0,0,.3); border-radius: 8px; padding: 2px 12px; } .kon-bids div.win { background: #8a6a12; }
.kon-sold { font-size: 1.5em; font-weight: 900; color: #ffd75e; animation: pop .4s ease; }
.kon-trade { background: rgba(46,107,46,.55); border-radius: 10px; padding: 4px 10px; font-size: min(.85vw, 1.45vh); } .kon-trade.done { background: rgba(138,106,18,.6); }
.kon-log { margin-top: auto; font-size: min(.75vw, 1.3vh); color: #e9dfc4; display: flex; flex-direction: column; gap: 1px; }
.kon-crowned { font-size: 3em; animation: konBob 1.4s ease-in-out infinite; }
.kon-end-tab { border-collapse: collapse; font-size: .95em; } .kon-end-tab td, .kon-end-tab th { padding: 2px 8px; text-align: right; } .kon-end-tab td:first-child { text-align: left; }
.kon-focus.end .awards { margin: 4px 0; } .kon-focus.end .gids-podium { margin: 4px 0; } .kon-focus.end .gids-podium .gp { min-width: 90px; padding: 6px 10px; }
.kp { background: var(--panel); border: 2px solid var(--line); border-left: 6px solid var(--pc); border-radius: 12px; padding: 8px 10px; }
.kp.act { border-color: #e8b923; box-shadow: 0 0 0 3px rgba(232,185,35,.35); }
.kp.out { opacity: .45; } .kp.off { opacity: .7; }
.kp-top { display: flex; align-items: center; gap: 6px; font-size: 1.05rem; } .kp-pawn { font-size: 1.5rem; }
.kp-gold { font-size: 1.35rem; font-weight: 800; color: #ffd75e; }
.kp-info { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; color: var(--muted); }
.kp-sh { width: 12px; height: 16px; background: var(--gc); border-radius: 2px 2px 6px 6px; opacity: .55; } .kp-sh.full { opacity: 1; outline: 2px solid #ffd75e; }
.kon-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.kon-info { display: flex; gap: 18px; color: var(--muted); }

/* Koningen op de telefoon */
.kph-top { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: color-mix(in srgb, var(--pc) 22%, var(--panel)); border: 2px solid var(--pc); }
.kph-pawn { font-size: 2rem; } .kph-gold { font-size: 1.3rem; font-weight: 800; color: #ffd75e; }
.kph-turn { margin-left: auto; text-align: right; font-size: .85rem; }
.kph-you { color: #ffd75e; animation: konBob 1s ease-in-out infinite; display: inline-block; }
.kph-pawns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kph-pawnbtn { font-size: 2.2rem; padding: 10px 0; border-radius: 14px; background: var(--panel); border: 2px solid var(--line); }
.kph-pawnbtn.on { border-color: #e8b923; background: #4a3a10; } .kph-pawnbtn:disabled { opacity: .25; }
.kph-pop { background: var(--panel-2); border: 2px solid var(--line); border-radius: 14px; padding: 10px; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; animation: pop .3s ease; }
.kph-pop p { margin: 0; } .kph-pop.debt { border-color: var(--bad); } .kph-pop.auction { border-color: #e8b923; } .kph-pop.trade { border-color: var(--ok); }
.kph-row { display: flex; gap: 6px; } .kph-row.wrap { flex-wrap: wrap; } .kph-row .grow { flex: 1; }
.kph-bid { display: flex; align-items: center; gap: 8px; } .kph-bid input { flex: 1; font-size: 1.6rem; font-weight: 800; padding: 6px 10px; border-radius: 10px; border: 2px solid #e8b923; background: var(--bg-2); color: var(--text); }
.kph-mybid { text-align: center; font-size: 1.1rem; }
.kph-tabs { display: flex; gap: 4px; margin: 8px 0; } .kph-tabs button { flex: 1; padding: 8px 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: .8rem; }
.kph-tabs button.on { background: #e8b923; color: #1a1205; font-weight: 800; } .kph-tabs button:last-child { flex: 0 0 40px; }
.kph-rules ul { padding-left: 18px; } .kph-rules li { margin: 6px 0; }
.kph-roll { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 26px 0; border-radius: 22px; border: none; font-size: 4rem; background: linear-gradient(135deg, #e8b923, #c98a12); box-shadow: 0 8px 22px rgba(232,185,35,.35); }
.kph-roll span { font-size: 1.4rem; font-weight: 900; color: #1a1205; }
.kph-group { border-left: 5px solid var(--gc); background: var(--panel); border-radius: 12px; padding: 8px; margin: 8px 0; }
.kph-ghead { font-weight: 800; margin-bottom: 4px; } .kph-ghead small { color: var(--muted); }
.kph-prop { border-top: 1px solid var(--line); padding: 6px 0; } .kph-pname span { color: var(--muted); font-size: .85rem; }
.kph-pbtns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } .kph-pbtns .btn { font-size: .78rem; padding: 6px 8px; }
.kph-trade { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.kph-col { background: var(--panel); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.kph-chk { display: flex; align-items: center; gap: 6px; } .kph-chk input[type=number] { width: 80px; padding: 4px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); }
.kph-rijk { display: flex; flex-direction: column; gap: 2px; font-size: .82rem; }
.kph-rrow { display: grid; grid-template-columns: 1fr 28px 70px 60px; gap: 4px; padding: 4px 6px; border-left: 4px solid var(--gc); background: var(--panel); border-radius: 6px; }
.kon-card.phone { font-size: .9rem; min-width: 0; }
button.link { background: none; border: none; color: #ffd75e; text-decoration: underline; padding: 0; font: inherit; }
.kon-center.end { width: 96%; height: 96%; z-index: 5; background: rgba(18,16,28,.95); border: 3px solid #e8b923; border-radius: 28px; padding: 2% 3%; justify-content: center; overflow: auto; }
.kon-center.end .kon-focus.end { font-size: min(.95vw, 1.6vh); }
.kon-center.end .kon-log { display: none; }
.kon-center.end > .kon-chest, .kon-center.end > .kon-dice, .kon-center.end > .kon-title, .kon-center.end > .kon-trade { display: none; }
.kon-center.end .awards { width: 100%; grid-template-columns: repeat(5, 1fr); }
.kon-center.end .award { font-size: .8rem; padding: 8px; }

/* =========================================================
   Dagobert: het schateiland
   ========================================================= */
.dg-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 6px; }
.dg-logo { font-family: Georgia, serif; font-size: 1.8rem; color: #ffd75e; } .dg-logo b { letter-spacing: .08em; }
.dg-info { display: flex; gap: 22px; font-size: 1.15rem; color: var(--muted); } .dg-info b { color: var(--text); }
.dg-hurry { color: var(--bad); font-weight: 800; animation: konBob .8s infinite; }
.dg-wrap { display: grid; grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr); gap: 16px; align-items: start; }
.dg-side { display: flex; flex-direction: column; gap: 12px; }
.dg-boardwrap { position: relative; width: min(74vh, 54vw); aspect-ratio: 1; }
#dg-board, #dg-board .dg-svg { width: 100%; height: 100%; display: block; }
.dg-svg { border-radius: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.dg-tile.dg-shine rect:first-child { animation: dgShine .6s ease-in-out 4 alternate; }
@keyframes dgShine { to { filter: brightness(1.6) drop-shadow(0 0 12px #fff6b0); } }
.dg-ekster { animation: dgHop 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dgHop { 50% { transform: translateY(-5px) rotate(-6deg); } }
.dg-new { animation: dgPop .6s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes dgPop { from { opacity: 0; transform: scale(2.2); } }
.dg-tgt { cursor: pointer; }
.dg-tgt-ring { fill: rgba(255, 215, 94, .85); stroke: #fff; stroke-width: 3; animation: dgPulse 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.dg-tgt.sel .dg-tgt-ring { fill: #3ddc84; animation: none; transform: scale(1.35); }
.dg-tgt-line { stroke: rgba(255, 215, 94, .9); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 6 8; animation: dgDash 1s linear infinite; }
.dg-tgt-edge circle { fill: rgba(255, 215, 94, .9); stroke: #fff; stroke-width: 2; }
.dg-tgt-edge.sel .dg-tgt-line { stroke: #3ddc84; stroke-dasharray: none; } .dg-tgt-edge.sel circle { fill: #3ddc84; }
.dg-tgt-tile { fill: rgba(255, 215, 94, .22); stroke: #ffd75e; stroke-width: 5; animation: dgPulseO 1s ease-in-out infinite; }
.dg-tgt-tile.sel { fill: rgba(61, 220, 132, .35); stroke: #3ddc84; animation: none; }
@keyframes dgPulse { 50% { transform: scale(1.3); } }
@keyframes dgPulseO { 50% { opacity: .45; } }
@keyframes dgDash { to { stroke-dashoffset: -28; } }
.dg-overlay { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 10px; }
.dg-overlay .dg-end { pointer-events: auto; }
.dg-banner { background: rgba(10, 20, 30, .82); border: 2px solid #ffd75e; border-radius: 14px; padding: 6px 18px; font-size: 1.45rem; font-weight: 800; text-align: center; }
.dg-card { background: rgba(244, 231, 200, .96); color: #2a1d0b; border-radius: 14px; padding: 8px 16px; font-size: 1.1rem; box-shadow: 0 6px 18px rgba(0,0,0,.5); text-align: center; animation: pop .35s ease; }
.dg-card small { color: #6b4a10; }
.dg-discard { align-self: center; margin-top: auto; margin-bottom: auto; }
.dg-offer { font-size: 1.2rem; } .dg-offer.done { background: rgba(200, 240, 200, .96); }
.dg-replies { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 4px; font-size: 1rem; }
.dg-pop { position: absolute; top: 42%; background: rgba(10, 10, 20, .9); border: 3px solid #ffd75e; border-radius: 16px; padding: 10px 22px; font-size: 1.4rem; font-weight: 800; animation: pop .4s ease; }
.dg-pop.big { font-size: 1.7rem; }
.dg-coins { position: absolute; inset: 0; overflow: hidden; } .dg-coins i { position: absolute; top: -40px; font-size: 2rem; font-style: normal; animation: dgFall 1.6s ease-in forwards; }
@keyframes dgFall { to { transform: translateY(80vh) rotate(540deg); } }
.dp { background: var(--panel); border: 2px solid var(--line); border-left: 8px solid var(--pc); border-radius: 14px; padding: 10px 12px; position: relative; }
.dp.act { border-color: #ffd75e; box-shadow: 0 0 0 4px rgba(255, 215, 94, .35); transform: scale(1.04); }
.dp.off { opacity: .6; filter: grayscale(.6); }
.dp-top { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; } .dp-top small { color: var(--muted); font-size: .8rem; }
.dp-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--pc); border: 2px solid #fff; }
.dp-vp { margin-left: auto; font-size: 1.6rem; font-weight: 900; color: #ffd75e; }
.dp-row { display: flex; gap: 12px; font-size: 1.15rem; margin-top: 4px; } .dp-row .warn { color: var(--bad); font-weight: 800; }
.dp-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; } .dp-badge { background: #8a6a12; border-radius: 8px; padding: 2px 8px; font-size: .9rem; font-weight: 700; }
.dp-stock { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.dp-gain { position: absolute; right: 10px; bottom: -14px; background: #2e6b2e; border-radius: 10px; padding: 2px 10px; font-size: 1.2rem; animation: pop .4s ease; }
.dg-bottom { display: grid; grid-template-columns: auto auto 1fr auto; gap: 18px; align-items: center; margin-top: 10px; }
.dg-dice { font-size: 3rem; line-height: 1; display: flex; align-items: center; gap: 6px; min-width: 170px; }
.dg-dice b { font-size: 1.6rem; background: #ffd75e; color: #1a1205; border-radius: 10px; padding: 2px 12px; } .dg-dice b.seven { background: #c62828; color: #fff; }
.dg-rolling { display: inline-block; animation: konShake .25s linear infinite; }
.dg-bank { display: flex; gap: 10px; align-items: center; font-size: 1.3rem; background: var(--panel); border-radius: 12px; padding: 6px 12px; }
.dg-bank b { font-size: 1rem; margin-left: 2px; } .dg-bank-t { font-size: .9rem; color: var(--muted); }
.dg-log { font-size: .95rem; color: #e9dfc4; display: flex; flex-direction: column; gap: 1px; max-height: 8.5em; overflow: hidden; }
.dg-end { position: absolute; inset: 0; background: rgba(14, 18, 28, .96); border: 3px solid #ffd75e; border-radius: 26px; padding: 18px 22px; overflow-y: auto; overflow-x: hidden; text-align: center; }
.dg-end-crown { font-size: 3rem; animation: konBob 1.4s ease-in-out infinite; } .dg-end-title { font-size: 1.8rem; font-weight: 900; }
.dg-end-tab { margin: 8px auto; border-collapse: collapse; font-size: 1rem; } .dg-end-tab td, .dg-end-tab th { padding: 3px 8px; } .dg-end-tab td:first-child { text-align: left; }
.dg-reveal { animation: dgReveal .8s ease both; } @keyframes dgReveal { from { opacity: 0; transform: scale(3) rotate(-20deg); color: #ffd75e; } }
.dg-end-row { display: flex; gap: 24px; justify-content: center; align-items: flex-end; margin: 6px 0; flex-wrap: wrap; }
.dg-bars { display: flex; gap: 4px; align-items: flex-end; height: 100px; } .dg-bars div { display: flex; flex-direction: column; align-items: center; font-size: .75rem; }
.dg-bars i { width: 18px; background: #ffd75e; border-radius: 4px 4px 0 0; } .dg-bars i.seven { background: #c62828; }
.dg-stats { text-align: left; font-size: .9rem; }
.dg-end .awards { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Dagobert op de telefoon */
.dg-ptop-vp { font-size: 1.5rem; font-weight: 900; color: #ffd75e; }
.dg-lock { font-size: .8rem; }
.dg-hand { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0; position: relative; padding-top: 14px; }
.dg-lock-l { position: absolute; top: -2px; left: 2px; font-size: .7rem; color: var(--muted); }
.dg-res { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; align-items: center; padding: 6px 0; }
.dg-res span { font-size: 1.7rem; } .dg-res b { font-size: 1.3rem; } .dg-res.zero { opacity: .45; }
.dg-cards { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.dg-cardchip { background: #3a2f5c; color: var(--text); border: 1px solid #6b5aa8; border-radius: 10px; padding: 6px 10px; font-size: .85rem; }
.dg-cardchip.new { border-style: dashed; opacity: .75; }
.dg-pboard { margin: 6px 0; } .dg-pboard .dg-svg { width: 100%; height: auto; display: block; touch-action: manipulation; }
.dg-roll { margin-bottom: 8px; }
.dg-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.dg-act { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); color: var(--text); font-weight: 800; font-size: .95rem; padding: 6px; }
.dg-act span { font-size: 1.5rem; } .dg-act small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.dg-act:disabled { opacity: .45; }
.dg-counter { display: grid; grid-template-columns: 1fr; gap: 4px; }
.dg-cnt { display: grid; grid-template-columns: 40px 56px 1fr 56px; align-items: center; gap: 6px; } .dg-cnt span { font-size: 1.5rem; } .dg-cnt b { text-align: center; font-size: 1.3rem; }
.dg-cnt .btn { min-height: 44px; font-size: 1.3rem; }
.dg-tlabel { font-weight: 800; margin-top: 6px; }
.dg-reply { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 6px 0; }
.dg-bankrow { display: flex; justify-content: space-between; align-items: center; gap: 6px; border-top: 1px solid var(--line); padding: 6px 0; }
.dg-bankrow .btn { font-size: 1.2rem; padding: 6px 8px; }
.dg-pick { display: flex; gap: 6px; justify-content: center; } .dg-pick .btn { font-size: 1.5rem; }
.dg-bigcard { background: linear-gradient(#f9eccb, #e9d39c); color: #2a1d0b; border-radius: 16px; padding: 16px; text-align: center; margin: 8px 0; position: relative; }
.dg-bigcard .dg-lock-l { color: #6b4a10; top: 6px; left: 10px; } .dg-bigicon { font-size: 3rem; } .dg-bigcard b { font-size: 1.4rem; }
.dg-costs { background: var(--panel); border-radius: 14px; padding: 10px; margin: 8px 0; }
.dg-cost { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; border-top: 1px solid var(--line); padding: 6px 0; } .dg-cost small { grid-column: 1 / -1; color: var(--muted); }
.dg-bar { margin: 10px 0; } .dg-bar .btn { flex: 1; }
.dg-end-tab th { font-size: .82rem; padding: 3px 5px; } .dg-end-tab td:first-child { white-space: nowrap; }

/* ---------- Dagobert: verbeterde opmaak (overschrijft de eerste versie) ---------- */
#screen-dagobert { max-width: 1900px; margin: 0 auto; }
.dg-top { display: grid; grid-template-columns: 1fr auto 1fr; }
.dg-info { justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 1.05rem; }
.dg-banner { white-space: nowrap; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; }
.dg-banner:empty { visibility: hidden; }
.dg-who { color: var(--pc); font-weight: 900; text-shadow: 0 0 1px #000, 0 1px 3px rgba(0,0,0,.7); }
.dg-wrap { grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr); gap: 14px; }
.dg-boardwrap { width: min(70vh, 50vw); }
.dg-side { min-width: 0; }
.dp { transition: transform .25s, box-shadow .25s; }
.dp.act { transform: scale(1.03); }
.dp-top { font-size: 1.25rem; min-width: 0; } .dp-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-sub { color: var(--muted); font-size: .85rem; margin-top: -2px; }
.dp-row { flex-wrap: nowrap; justify-content: space-between; gap: 6px; font-size: 1.1rem; } .dp-row span { white-space: nowrap; }
.dp-badges:empty { display: none; }
.dp-gainrow { min-height: 30px; display: flex; align-items: center; justify-content: flex-end; margin-top: 4px; }
.dp-gain { position: static; font-size: 1.15rem; }
.dg-overlay { display: block; padding: 0; }
.dg-ov-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; justify-content: center; pointer-events: none; z-index: 3; width: 90%; }
.dg-ov-bot { position: absolute; left: 4%; right: 4%; bottom: 3%; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 3; }
#dg-ov-coins { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; border-radius: 26px; }
#dg-ov-end { position: absolute; inset: 0; z-index: 5; pointer-events: none; } #dg-ov-end:empty { display: none; } #dg-ov-end .dg-end { pointer-events: auto; }
.dg-pop { position: static; text-align: center; max-width: 100%; }
.dg-discard { margin: 0; }
.dg-fx { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: visible; }
.dg-flyer { position: absolute; font-size: 2.1rem; filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); will-change: transform; }
.dg-flyer.bird { font-size: 3.2rem; }
.dg-bigdice { display: flex; align-items: center; gap: 14px; background: rgba(10, 20, 30, .78); border: 3px solid #ffd75e; border-radius: 22px; padding: 10px 22px; font-size: 4.2rem; line-height: 1; }
.dg-bigdice.rolling span { display: inline-block; animation: dgTumble .35s linear infinite; } .dg-bigdice.rolling span:nth-child(2) { animation-duration: .42s; animation-direction: reverse; }
@keyframes dgTumble { 0% { transform: rotate(0) translateY(0); } 50% { transform: rotate(180deg) translateY(-14px); } 100% { transform: rotate(360deg) translateY(0); } }
.dg-bigdice.done { animation: pop .35s ease; } .dg-bigdice b { font-size: 3.6rem; color: #ffd75e; margin-left: 6px; } .dg-bigdice.seven { border-color: #c62828; } .dg-bigdice.seven b { color: #ff6b6b; }
.dg-colors { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 12px; }
.dg-colorchip { background: rgba(10, 20, 30, .85); border: 4px solid var(--pc); border-radius: 18px; padding: 10px 16px; display: flex; flex-direction: column; align-items: center; font-size: 1.2rem; }
.dg-colorchip span { font-size: 2.2rem; } .dg-colorchip small { color: var(--muted); }
.dg-bank span.low b { color: var(--bad); }
.dg-bottom { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.dg-log { max-height: 7em; }
.dg-coins.pool i { animation: dgPool 2.4s cubic-bezier(.3, .1, .6, 1) forwards; }
@keyframes dgPool { to { transform: translateY(calc(min(70vh, 50vw) - 60px)) rotate(400deg); } }
.dg-end-title .dg-who { font-size: 1.1em; }
@media (max-height: 820px) { .dg-logo { font-size: 1.4rem; } .dp { padding: 6px 10px; } .dp-top { font-size: 1.1rem; } .dg-dice { font-size: 2.4rem; } .dg-banner { font-size: 1.2rem; padding: 4px 12px; } }

/* Telefoon */
.dg-prompt { margin: 4px 0 6px; padding: 8px 12px; border-radius: 14px; border-left: 6px solid var(--pc); background: color-mix(in srgb, var(--pc) 16%, var(--panel)); }
.dg-prompt-big { font-weight: 900; font-size: 1.1rem; } .dg-prompt-sub { color: var(--muted); font-size: .85rem; }
.dg-pbwrap { position: relative; margin: 6px 0; }
.dg-pboard { overflow: auto; max-height: 62vh; border-radius: 22px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; margin: 0; }
.dg-pzoom { min-width: 100%; } .dg-pzoom .dg-svg { width: 100%; height: auto; display: block; border-radius: 0; box-shadow: none; }
.dg-zoombtns { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.dg-zoombtns button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: rgba(10, 20, 30, .75); color: #fff; font-size: 1.4rem; font-weight: 900; }
.dg-zoombtns button:disabled { opacity: .35; }
.dg-confirmbar { position: fixed; left: 10px; right: 10px; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 60; background: var(--panel-2); border: 3px solid #3ddc84; border-radius: 18px; padding: 10px 12px; box-shadow: 0 -6px 24px rgba(0,0,0,.55); animation: pop .25s ease; }
.dg-confirmbar b { display: block; margin-bottom: 6px; } .dg-confirmbar .btn { min-height: 56px; font-size: 1.15rem; }
.dg-confirmspace { height: 120px; }
.dg-colorpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.dg-colorbtn { min-height: 110px; border-radius: 18px; border: 4px solid var(--pc); background: color-mix(in srgb, var(--pc) 22%, var(--panel)); color: var(--text); font-size: 1.3rem; font-weight: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.dg-colorbtn span { font-size: 2.2rem; } .dg-colorbtn small { font-size: .8rem; font-weight: 500; }
.dg-colorbtn.on { box-shadow: 0 0 0 4px #fff; } .dg-colorbtn:disabled { opacity: .3; }
.dg-res { position: relative; transition: transform .2s; } .dg-res.up { border-color: #3ddc84; transform: scale(1.06); }
.dg-plus { position: absolute; top: -10px; right: -4px; background: #3ddc84; color: #08210f; font-style: normal; font-weight: 900; border-radius: 10px; padding: 0 6px; font-size: .9rem; animation: pop .3s ease; }
.dg-cnt { grid-template-columns: 36px 56px 1fr 56px 44px; } .dg-cnt small { color: var(--muted); font-size: .72rem; }
.dg-cnt .btn { min-height: 52px; }
.dg-lock-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; right: 2px; }
.dg-mine { background: var(--panel); border-radius: 14px; padding: 10px; text-align: center; margin: 8px 0; } .dg-mine div { font-size: 1.05rem; margin-top: 4px; }
.dg-act { min-height: 72px; }
.dg-boardwrap { --dgb: min(70vh, calc(100vh - 275px), 50vw); width: var(--dgb); }
@keyframes dgPool { to { transform: translateY(calc(var(--dgb, 70vh) - 60px)) rotate(400deg); } }
.dg-end-tab { width: 94%; } .dg-end-tab th { white-space: nowrap; padding: 3px 8px; font-size: .8rem; }
.dg-end .award { min-width: 0; } .dg-end .award b { overflow-wrap: anywhere; font-size: .82rem; }
#dg-ov-coins { z-index: 7; }
.dg-zoombtns button { background: rgba(10, 20, 30, .92); }
@keyframes dgPool { 0% { opacity: 1; } 80% { opacity: 1; transform: translateY(calc(var(--dgb, 70vh) - 70px)) rotate(400deg); } 100% { opacity: 0; transform: translateY(calc(var(--dgb, 70vh) - 60px)) rotate(420deg); } }
.dg-end { background: rgba(14, 18, 28, .985); }

/* ---------- Koningen: verbeterde opmaak (overschrijft de eerste versie) ---------- */
.kon-board { width: min(84vh, calc(100vh - 170px), 58vw); }
.kon-side { min-width: 0; }
.kp { transition: transform .25s, box-shadow .25s; }
.kp.act { transform: scale(1.04); }
.kp-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-worth { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.kon-pawn { position: absolute; transform: translate(-50%, -50%); font-size: min(1.5vw, 2.6vh); width: 1.5em; height: 1.5em; display: grid; place-items: center;
  background: var(--pc); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 3px 8px rgba(0,0,0,.6); transition: left .17s linear, top .17s linear; z-index: 1; }
.kon-pawn.small { font-size: min(1.1vw, 1.9vh); }
.kon-pawn.act { z-index: 3; border-color: #e8b923; box-shadow: 0 0 0 4px rgba(232,185,35,.45), 0 3px 8px rgba(0,0,0,.6); }
.kon-pawn i { position: absolute; bottom: -.4em; right: -.4em; font-size: .55em; font-style: normal; }
.kt-pop { animation: konTilePop .9s ease; z-index: 2; }
@keyframes konTilePop { 0% { transform: translate(-50%, -50%) scale(1); } 35% { transform: translate(-50%, -50%) scale(1.45); box-shadow: 0 0 22px #ffd75e; } 100% { transform: translate(-50%, -50%) scale(1); } }
.kt-hot { box-shadow: 0 0 0 3px #ffd75e, 0 0 16px rgba(255, 215, 94, .7); z-index: 2; }
.kon-center.end #kon-c-chest, .kon-center.end #kon-c-dice, .kon-center.end .kon-title, .kon-center.end #kon-c-trade, .kon-center.end #kon-c-log { display: none; }
.kon-c-focus { width: 100%; display: flex; justify-content: center; }
.kon-dice { font-size: min(3.4vw, 5.6vh); gap: 10px; }
.kon-dice span { display: inline-block; }
.kon-dice.rolling { animation: none; }
.kon-dice.rolling span { animation: dgTumble .35s linear infinite; } .kon-dice.rolling span:nth-child(2) { animation-duration: .42s; animation-direction: reverse; }
.kon-dice b { animation: pop .35s ease; } .kon-dice em { animation: konBob .7s ease-in-out infinite; display: inline-block; }
.kon-banner.warn { border: 2px solid var(--bad); }
.kon-pawnpick span { border: 2px solid transparent; } .kon-pawnpick span.on { border-color: var(--pc); } .kon-pawnpick i { font-style: normal; }
.kon-bids div { opacity: 0; animation: konReveal .45s ease forwards; }
@keyframes konReveal { from { opacity: 0; transform: rotateX(90deg) scale(.8); } to { opacity: 1; transform: none; } }
.kon-bids div.win { font-size: 1.15em; box-shadow: 0 0 14px #ffd75e; }
.kon-sold { opacity: 0; animation: konReveal .5s ease forwards; }
.kon-env span { font-size: .85em; }
.kon-fx { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.kon-coin { position: absolute; font-size: 1.7rem; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); will-change: transform; }
.kon-amount { position: absolute; font-weight: 900; font-size: 1.6rem; text-shadow: 0 2px 4px #000, 0 0 2px #000; white-space: nowrap; }
.kon-amount.plus { color: #5dff9b; } .kon-amount.minus { color: #ff7a7a; }
.kon-rain { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.kon-rain i { position: absolute; top: -40px; font-style: normal; font-size: 1.8rem; animation: konRain 2.6s cubic-bezier(.3, .1, .6, 1) forwards; }
@keyframes konRain { 80% { opacity: 1; } to { transform: translateY(var(--kb, 80vh)) rotate(420deg); opacity: 0; } }
.kon-center.end { --kb: min(84vh, calc(100vh - 170px), 58vw); }
.kon-center.end .kon-end-tab { width: 92%; }
.kon-center.end .awards { grid-template-columns: repeat(5, minmax(0, 1fr)); } .kon-center.end .award b { overflow-wrap: anywhere; }
.kon-bottom .kon-info { align-items: center; flex-wrap: wrap; }
@media (max-height: 820px) { .kp { padding: 6px 9px; } .kp-gold { font-size: 1.15rem; } .kp-top { font-size: .95rem; } }

/* Telefoon */
.kon-confirmbar { position: fixed; left: 10px; right: 10px; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 60; background: var(--panel-2); border: 3px solid #e8b923; border-radius: 18px; padding: 10px 12px; box-shadow: 0 -6px 24px rgba(0,0,0,.55); animation: pop .25s ease; }
.kon-confirmbar b { display: block; margin-bottom: 6px; } .kon-confirmbar .btn { min-height: 56px; font-size: 1.1rem; }
.kph-delta { margin-left: 8px; font-size: .9rem; border-radius: 8px; padding: 0 6px; animation: konDelta 2.4s ease forwards; display: inline-block; }
.kph-delta.up { background: #2e6b2e; color: #c8ffd8; } .kph-delta.down { background: #7a2020; color: #ffd0d0; }
@keyframes konDelta { 0% { transform: scale(1.5); } 15% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
.kph-map { width: 100%; max-width: 340px; display: block; margin: 6px auto 10px; }
.kph-pbtns .btn { min-height: 44px; }
.kph-tabs button { min-height: 48px; }
.kph-bid input { min-height: 56px; }

/* Koningen: vakken draaien mee met de ring (anders overlappen ze op de schuine stukken) */
.kt { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); width: 7.1%; aspect-ratio: .8; }
.kt.corner { width: 7.5%; aspect-ratio: 1; }
@keyframes konTilePop { 0% { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1); } 35% { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1.45); box-shadow: 0 0 22px #ffd75e; } 100% { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1); } }

.kon-center.busy #kon-c-dice, .kon-center.busy #kon-c-log { display: none; }
.kon-card.compact { min-width: 70%; } .kon-card.compact .kc-pr { margin-left: auto; font-weight: 800; color: #6b4a10; }
.kt-name { word-break: normal; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }

/* =========================================================
   De Indringer
   ========================================================= */
.indr-overlay { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 18px; }
.indr-stage.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.indr-stage.split .geo-sv { position: relative; inset: auto; height: 100%; }
.indr-banner { background: rgba(10, 16, 30, .86); border: 2px solid #ff5f5f; border-radius: 16px; padding: 10px 22px; font-size: 1.8rem; font-weight: 800; text-align: center; }
.indr-banner.small { font-size: 1.35rem; }
.indr-hush { font-size: 2rem; font-weight: 800; margin-top: 10px; }
.indr-two { font-size: 1.6rem; color: #ff6b6b; font-weight: 900; animation: konBob 1.2s ease-in-out infinite; }
.indr-view { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.indr-globe { position: relative; font-size: 9rem; line-height: 1; }
.indr-globe .g { display: inline-block; animation: indrSpin 12s linear infinite; }
.indr-globe .m { position: absolute; font-size: 5rem; left: 50%; top: 50%; animation: indrScan 3.2s ease-in-out infinite; }
@keyframes indrSpin { to { transform: rotate(360deg); } }
@keyframes indrScan { 0%, 100% { transform: translate(-90%, -80%) rotate(-10deg); } 50% { transform: translate(10%, -10%) rotate(15deg); } }
/* Woordenraster */
.indr-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 1500px; }
.indr-col { background: rgba(16, 20, 36, .9); border: 2px solid var(--line); border-top: 6px solid var(--pc); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.indr-col.turn { border-color: #ffd75e; box-shadow: 0 0 0 4px rgba(255, 215, 94, .35); transform: translateY(-6px); transition: transform .25s; }
.indr-col.off { opacity: .55; }
.indr-who { display: flex; align-items: center; gap: 6px; font-size: 1.1rem; min-width: 0; } .indr-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.indr-word { min-height: 54px; display: grid; place-items: center; background: #f4e7c8; color: #2a1d0b; border-radius: 10px; font-size: 1.6rem; font-weight: 800; padding: 4px; overflow: hidden; }
.indr-grid.big .indr-word { min-height: 72px; font-size: 2rem; }
.indr-word span { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.indr-word.fresh span { overflow: hidden; white-space: nowrap; border-right: 3px solid #2a1d0b; width: 0; animation: indrType .9s steps(var(--len)) forwards, indrCaret .5s step-end 4; }
@keyframes indrType { to { width: calc(var(--len) * 1ch + 4px); } }
@keyframes indrCaret { 50% { border-color: transparent; } }
.indr-word.empty { background: rgba(255,255,255,.06); color: var(--muted); }
.indr-word.silent { background: rgba(255,255,255,.12); color: var(--muted); }
/* Uitslag */
.indr-verdict { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.indr-votes { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; max-width: 1300px; }
.indr-arrow { font-size: 1.4rem; background: rgba(10, 16, 30, .85); border-radius: 12px; padding: 6px 14px; opacity: 0; animation: indrIn .4s ease forwards; }
@keyframes indrIn { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
.indr-tally { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; font-size: 1.3rem; opacity: 0; animation: indrIn .4s ease forwards; }
.indr-tally span { background: rgba(255,255,255,.08); border-radius: 10px; padding: 4px 12px; } .indr-tally span.acc { background: #7a2020; } .indr-tally span.re { background: #4a3a10; }
.indr-cards { display: flex; gap: 24px; justify-content: center; perspective: 900px; }
.indr-flip { position: relative; width: 300px; height: 190px; transform-style: preserve-3d; opacity: 0; animation: indrIn .4s ease var(--d) forwards, indrFlip .8s ease calc(var(--d) + 2.2s) forwards; }
.indr-cards .indr-flip { animation-delay: var(--d), calc(var(--d) + 2.2s); }
@keyframes indrFlip { to { transform: rotateY(180deg); } }
.indr-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 1.8rem; font-weight: 900; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.indr-face.front { background: var(--panel); border: 4px solid var(--pc); font-size: 1.6rem; } .indr-face.front small { font-size: .9rem; color: var(--muted); animation: konBob .5s infinite; }
.indr-face.back { transform: rotateY(180deg); } .indr-face.back small { font-size: 1rem; font-weight: 600; }
.indr-face.back.spy { background: linear-gradient(135deg, #c62828, #7a1010); color: #fff; } .indr-face.back.scout { background: linear-gradient(135deg, #6b7280, #3f4652); color: #e5e7eb; }
.indr-cards .indr-nobody { font-size: 1.8rem; opacity: 0; animation: indrIn .4s ease var(--d) forwards; }
.indr-truth { font-size: 1.8rem; font-weight: 900; opacity: 0; animation: indrIn .5s ease forwards; text-align: center; }
.indr-split-labels { position: absolute; left: 0; right: 0; top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px; }
.indr-split-labels div { background: rgba(10, 16, 30, .85); border-radius: 14px; padding: 8px 14px; font-size: 1.25rem; text-align: center; }
.indr-split-labels div:last-child { border: 2px solid #ff5f5f; }
/* Telefoon */
.indr-box #indr-confirm { display: none; } .indr-box.m-map.confirm #indr-confirm { display: block; }
.indr-role { border-radius: 18px; padding: 16px; text-align: center; margin: 8px 0; animation: pop .35s ease; }
.indr-role.scout { background: color-mix(in srgb, #1e88e5 22%, var(--panel)); border: 3px solid #1e88e5; }
.indr-role.spy { background: linear-gradient(135deg, #b71c1c, #5a0c0c); border: 3px solid #ff6b6b; color: #fff; }
.ir-big { font-size: 1.6rem; font-weight: 900; margin: 6px 0; }
.indr-fog { position: relative; height: 52vh; border-radius: 18px; overflow: hidden; background: linear-gradient(#5b6470, #2d3540); display: grid; place-items: center; text-align: center; padding: 20px; }
.indr-fog b { position: relative; font-size: 1.3rem; z-index: 2; }
.indr-fog .fog { position: absolute; inset: -40%; background: radial-gradient(closest-side, rgba(255,255,255,.35), transparent 70%) 0 0 / 50% 50%; animation: indrFog 9s linear infinite; }
.indr-fog .fog.f2 { animation-duration: 14s; animation-direction: reverse; opacity: .7; }
@keyframes indrFog { to { transform: translate(25%, 12%) rotate(20deg); } }
.indr-myturn { background: var(--panel-2); border: 3px solid #ffd75e; border-radius: 18px; padding: 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.indr-myturn input { font-size: 1.6rem; font-weight: 800; padding: 12px; min-height: 56px; border-radius: 12px; border: 2px solid #ffd75e; background: var(--bg-2); color: var(--text); text-align: center; }
.indr-plist { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.indr-prow { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--panel); border-left: 5px solid var(--pc); border-radius: 10px; padding: 6px 10px; }
.indr-prow.turn { outline: 2px solid #ffd75e; }
.indr-prow b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.indr-prow span { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.indr-prow i { font-style: normal; background: #f4e7c8; color: #2a1d0b; border-radius: 6px; padding: 1px 8px; font-weight: 700; font-size: .9rem; }
.indr-prow i.empty, .indr-prow i.silent { background: rgba(255,255,255,.08); color: var(--muted); }
.indr-votehead { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0; } .indr-votehead b { font-size: 1.2rem; } .indr-votehead span { color: var(--muted); }
.indr-vote { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.indr-vbtn { min-height: 64px; border-radius: 14px; border: 2px solid var(--line); border-left: 6px solid var(--pc); background: var(--panel); color: var(--text); display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 1rem; text-align: left; }
.indr-vbtn span { font-size: 1.6rem; } .indr-vbtn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.indr-vbtn.on { border-color: #ff5f5f; background: color-mix(in srgb, #ff5f5f 25%, var(--panel)); box-shadow: 0 0 0 3px rgba(255,95,95,.4); }
.indr-vbtn:disabled { opacity: .7; }

.indr-flag { height: 1em; width: auto; vertical-align: -0.12em; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.indr-pts { width: min(1100px, 94%); }
.indr-prow2 { display: grid; grid-template-columns: 44px minmax(120px, 1fr) 2.2fr 110px; align-items: center; gap: 10px; background: var(--panel); border-left: 6px solid var(--pc); border-radius: 12px; padding: 10px 14px; margin: 6px 0; font-size: 1.2rem; opacity: 0; animation: indrIn .4s ease forwards; }
.ip-role { font-size: 1.6rem; } .ip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-parts { display: flex; flex-wrap: wrap; gap: 6px; } .ip-parts i { font-style: normal; background: rgba(255,255,255,.08); border-radius: 8px; padding: 2px 10px; font-size: 1rem; } .ip-parts i.none { color: var(--muted); }
.ip-total { text-align: right; font-size: 1.5rem; font-weight: 900; color: #ffd75e; }

.indr-overlay .indr-top { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); max-width: 94%; }

/* =========================================================
   Hoger of Lager
   ========================================================= */
.hl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.hl-main { min-height: min(68vh, 760px); border-radius: 22px; background: radial-gradient(circle at 50% 30%, #2a1d4a, #120f22 70%); border: 2px solid #3a2f63; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; position: relative; overflow: hidden; }
.hl-q { font-size: 2rem; font-weight: 900; text-align: center; }
.hl-cards { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; width: 100%; max-width: 1100px; }
.hl-card { background: rgba(255,255,255,.06); border: 3px solid #4a3f7a; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; animation: pop .4s ease; min-width: 0; }
.hl-card img, .hl-noimg { width: min(26vh, 240px); aspect-ratio: 1; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.hl-noimg { display: grid; place-items: center; font-size: 4rem; background: #2a2245; }
.hl-card.a { animation: hlSlideIn .5s ease; }
@keyframes hlSlideIn { from { transform: translateX(60%); opacity: .3; } }
.hl-title { font-size: 1.5rem; font-weight: 900; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-artist { color: var(--muted); font-size: 1.15rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-val { font-size: 3.6rem; font-weight: 900; color: #ffd75e; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hl-val.unknown { color: #b9a8ff; animation: hlPulse 1s ease-in-out infinite; }
@keyframes hlPulse { 50% { transform: scale(1.12); opacity: .7; } }
.hl-val.done { animation: pop .4s ease; }
.hl-card.b.shown { border-color: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.3); }
.hl-card.b.tie { border-color: #ffd75e; }
.hl-vs { font-size: 2.4rem; font-weight: 900; color: #ff8a3d; text-align: center; }
.hl-ans { display: inline-block; font-size: 1.4rem; background: #2e6b2e; border-radius: 14px; padding: 8px 14px; animation: pop .4s ease 1.1s both; }
.hl-dots { display: flex; gap: 8px; } .hl-dots span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-weight: 800; }
.hl-dots span.done { background: #3ddc84; color: #08210f; } .hl-dots span.cur { background: #ffd75e; color: #1a1205; animation: hlPulse 1s infinite; }
.hl-start { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: pop .5s ease; }
.hl-start-n { font-size: 1.4rem; letter-spacing: .2em; color: var(--muted); } .hl-start-icon { font-size: 7rem; line-height: 1; }
.hl-start-cat { font-size: 3.4rem; font-weight: 900; color: #ffd75e; letter-spacing: .05em; } .hl-start-q { font-size: 1.8rem; font-weight: 800; }
.hl-ladder { background: var(--panel); border: 2px solid var(--line); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.hl-ladder-t { font-weight: 900; display: flex; justify-content: space-between; } .hl-ladder-t small { color: var(--muted); font-weight: 500; }
.hl-rung { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 24px 64px; gap: 6px; align-items: center; background: rgba(255,255,255,.05); border-left: 5px solid var(--pc); border-radius: 10px; padding: 6px 8px; transition: transform .3s; }
.hl-rung b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hl-av { font-size: 1.3rem; }
.hl-pot { font-weight: 900; color: #ffd75e; font-variant-numeric: tabular-nums; } .hl-tot { text-align: right; color: var(--muted); font-size: .85rem; } .hl-ic { text-align: center; }
.hl-rung.out { opacity: .55; } .hl-rung.out .hl-pot { color: var(--muted); }
.hl-rung.r-ok { animation: hlJump .6s ease 1.1s; } .hl-rung.r-ok .hl-pot { animation: pop .5s ease 1.1s; }
.hl-rung.r-bad { animation: hlBoom .6s ease 1.1s; }
.hl-rung.r-bank { box-shadow: 0 0 0 2px #ffd75e; }
@keyframes hlJump { 40% { transform: translateY(-8px) scale(1.04); } }
@keyframes hlBoom { 20% { transform: translateX(-6px); background: rgba(198,40,40,.5); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } }
/* Telefoon */
.hl-mypot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: var(--panel); border-radius: 14px; padding: 8px; text-align: center; margin: 6px 0; }
.hl-mypot small { display: block; color: var(--muted); font-size: .72rem; } .hl-mypot b { font-size: 1.2rem; color: #ffd75e; }
.hl-pcards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.hl-pcards > div { background: var(--panel); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hl-pcards small { color: var(--muted); } .hl-pcards b, .hl-pcards span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hl-pcards span { color: var(--muted); font-size: .85rem; }
.hl-pcards em { font-style: normal; font-size: 1.4rem; font-weight: 900; color: #ffd75e; } .hl-pcards .b em { color: #b9a8ff; }
.hl-ask { text-align: center; font-weight: 800; margin: 8px 0; }
.hl-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.hl-btns button { min-height: 120px; border: none; border-radius: 20px; font-size: 1.35rem; font-weight: 900; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.hl-btns.small button { min-height: 64px; font-size: 1rem; opacity: .75; }
.hl-b1 { background: linear-gradient(135deg, #2e9e44, #1f7a33); } .hl-b2 { background: linear-gradient(135deg, #ff8a3d, #e5631a); }
.hl-btns button:active { transform: scale(.96); }
.hl-bank { background: linear-gradient(135deg, #e8b923, #c98a12); color: #1a1205; font-weight: 900; }
.hl-chosen { text-align: center; font-size: 1.3rem; margin: 16px 0; padding: 14px; background: var(--panel); border-radius: 14px; }
.hl-status { text-align: center; font-size: 1.2rem; font-weight: 800; padding: 12px; border-radius: 14px; margin: 6px 0; }
.hl-status.safe { background: #4a3a10; } .hl-status.out { background: #5a1414; }
.hl-result { text-align: center; font-size: 1.5rem; font-weight: 900; padding: 18px; border-radius: 16px; margin: 10px 0; animation: pop .4s ease; }
.hl-result.ok { background: #2e6b2e; } .hl-result.bad, .hl-result.late, .hl-result.out { background: #7a2020; } .hl-result.bank, .hl-result.safe { background: #6b5210; } .hl-result.pass { background: #3a2f5c; }
.hl-pstart { text-align: center; background: var(--panel); border-radius: 16px; padding: 14px; } .hl-pstart-i { font-size: 3rem; }
@media (max-width: 1400px) { .hl-wrap { grid-template-columns: minmax(0, 1fr) 250px; } .hl-val { font-size: 2.8rem; } }

/* Achtergrondmuziek: klein label linksonder op het grote scherm */
.bg-chip { position: fixed; left: 14px; bottom: 14px; z-index: 70; display: flex; align-items: center; gap: 8px; max-width: 40vw; background: rgba(20, 18, 34, .88); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: .85rem; box-shadow: var(--shadow); }
.bg-chip .bg-note { animation: konBob 1.6s ease-in-out infinite; display: inline-block; }
.bg-chip .bg-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bg-chip small { color: var(--muted); }
.bg-chip button { border: 0; background: rgba(255,255,255,.08); color: var(--text); border-radius: 50%; width: 30px; height: 30px; cursor: pointer; }

.hl-ans { color: #fff; }
