/* =========================================================
   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: 70px; font-size: clamp(1rem, 1.6vw, 1.35rem); }

/* 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; }

/* ---------- Kleinere schermen ---------- */
@media (max-width: 860px) {
  .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; }
}
