/* Topo-quiz: alleen wat niet al in klastools.css staat. */
.tq-app.playing { height: 100vh; height: 100dvh; }
.tq-app .stage { min-height: 240px; }

/* ---------- instellen ---------- */
.tq-setup { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 8px 0 20px; }
.tq-group { width: min(100%, 900px); display: grid; gap: 8px; }
.tq-group h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--gold); text-align: center; }
.tq-seg { flex-wrap: wrap; justify-content: center; }
.tq-seg button { flex: 1 1 160px; display: grid; gap: 2px; padding: 12px 14px; font-size: 20px; text-align: center; }
.tq-seg button small { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--muted); }
.tq-seg button[aria-pressed="true"] small { color: #4a4580; }
.tq-tip { text-align: center; }

/* ---------- vraag ---------- */
.tq-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.tq-teams { display: flex; gap: 6px; flex-wrap: wrap; }
.tq-team { border-radius: 99px; padding: 5px 14px; background: rgba(255,255,255,.08); font-family: var(--font-display); font-weight: 800; font-size: 18px; opacity: .6; white-space: nowrap; }
.tq-team b { color: var(--gold); margin-left: 4px; }
.tq-team.on { opacity: 1; box-shadow: inset 0 0 0 3px var(--tc, var(--gold)); }
.t0 { --tc: #4dabf7; }
.t1 { --tc: #f783ac; }
.tq-who { color: var(--tc); }
.tq-q { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.1; text-align: center; text-wrap: balance; }
.tq-q b { color: var(--gold); }
.tq-progress { justify-self: end; color: var(--muted); font-weight: 800; font-size: 17px; white-space: nowrap; }

/* ---------- kaart ---------- */
.tq-stage { align-items: stretch; }
.tq-map { width: 100%; height: 100%; display: block; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.tq-map .bg { fill: #2a2466; stroke: rgba(255,255,255,.18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tq-map .land path { fill: #463ca8; stroke: rgba(255,255,255,.7); stroke-width: 1.3; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill .2s; }
.tq-stage[data-manier="waar"] .tq-map { cursor: pointer; }
@media (hover: hover) { .tq-stage[data-manier="waar"] .land path:not([class]):hover { fill: #5d52cc; } }
.tq-map .land path.ask { fill: var(--gold); }
.tq-map .land path.good, .tq-map .land path.show { fill: #69db7c; }
.tq-map .land path.bad { fill: #ff6b6b; }
.tq-map .dot { fill: #fff; stroke: #14112e; stroke-width: 2; vector-effect: non-scaling-stroke; }
.tq-map .dot.ask { fill: var(--gold); }
.tq-map .dot.good, .tq-map .dot.show { fill: #69db7c; }
.tq-map .dot.bad { fill: #ff6b6b; }
.tq-map .ring { fill: none; stroke-width: 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.tq-map .ring.ask { stroke: var(--gold); animation: tq-pulse 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.tq-map .ring.good, .tq-map .ring.show { stroke: #69db7c; }
.tq-map .ring.show { animation: tq-pulse 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.tq-map .ring.bad { stroke: #ff6b6b; }
@keyframes tq-pulse { 50% { transform: scale(1.25); opacity: .6; } }

/* ---------- antwoorden ---------- */
.tq-controls { flex-direction: column; gap: 10px; }
.tq-after { width: min(100%, 1000px); display: flex; align-items: center; justify-content: center; gap: 10px 20px; }
.tq-answers { width: min(100%, 1000px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tq-answers button {
  border: 0; border-radius: 16px; padding: 12px 10px; min-height: 64px; background: var(--panel-hi); display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.1; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25);
}
.tq-answers button i { font-style: normal; flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; background: rgba(255,255,255,.14); }
.tq-answers button:hover:not(:disabled) { background: #3d3591; }
.tq-answers button:disabled { cursor: default; opacity: .45; }
.tq-answers button.good { background: #69db7c; color: #08311a; opacity: 1; }
.tq-answers button.bad { background: #ff6b6b; color: #3d0a0a; opacity: 1; }
.tq-feedback { flex: 0 1 auto; min-width: 0; min-height: 2.5em; line-height: 1.25; text-wrap: balance; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); color: var(--muted); }
.tq-feedback.good { color: #69db7c; }
.tq-feedback.bad { color: #ff8787; }
.tq-feedback b { color: var(--ink); }
/* de knop houdt zijn plek, zodat de kaart niet verspringt */
.tq-off { visibility: hidden; }

/* ---------- uitslag ---------- */
.tq-result { max-height: calc(100dvh - 40px); overflow-y: auto; }
.tq-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 6vw, 64px); line-height: 1.05; }
.tq-big b { color: var(--gold); }
.tq-msg { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--muted); }
.tq-vs { display: flex; justify-content: center; gap: 10px 28px; flex-wrap: wrap; font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.tq-vs span { color: var(--tc); }
.tq-vs b { color: var(--ink); }
.tq-fout h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 22px; color: #ff8787; }
.tq-fout ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tq-fout li { background: rgba(0,0,0,.25); border-radius: 12px; padding: 5px 12px; text-align: left; }
.tq-fout li b { font-family: var(--font-display); font-size: 21px; }
.tq-fout li span { margin-left: 6px; font-size: 14px; color: var(--muted); font-weight: 700; }

@media (max-width: 760px) {
  .tq-bar { grid-template-columns: 1fr auto; }
  .tq-q { grid-column: 1 / -1; grid-row: 2; }
  .tq-answers { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tq-answers button { min-height: 54px; }
  .tq-after .go { font-size: 22px; padding: 10px 20px; flex: none; }
  .tq-feedback { font-size: 18px; }
}
@media (max-width: 560px) {
  .tq-team { font-size: 15px; padding: 4px 10px; }
  .tq-progress { font-size: 14px; }
  .tq-seg button { font-size: 17px; flex-basis: 140px; }
  .tq-group h2 { font-size: 20px; }
  .tq-result { gap: 12px; padding: 20px 14px; }
  .tq-fout li b { font-size: 18px; }
  .tq-fout li span { font-size: 13px; }
  .tq-vs, .tq-msg { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tq-map .ring.ask, .tq-map .ring.show { animation: none; }
  .tq-map .land path { transition: none; }
}
