/* Wie ben ik? — aanvulling op klastools.css */
.wbi-themes { width: min(100%, 760px); }
.wbi-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.wbi-bar .seg button { min-width: 44px; }
.small-ghost { font-size: 16px; padding: 8px 16px; }

/* scorebord */
.wbi-scores { display: flex; justify-content: center; gap: 12px; }
.sc { display: flex; align-items: center; gap: 12px; padding: 6px 18px; border-radius: 16px; background: var(--panel); font-family: var(--font-display); font-weight: 800; box-shadow: inset 0 -5px 0 var(--tc, var(--gold)); transition: transform .2s; }
.sc span { font-size: 20px; }
.sc b { font-size: 34px; line-height: 1; min-width: 1.2em; text-align: center; font-variant-numeric: tabular-nums; }
.sc.t0 { --tc: #ff6b6b; }
.sc.t1 { --tc: #4dabf7; }
.sc.lead { background: var(--panel-hi); transform: scale(1.05); }

/* het raadsel */
.wbi-stage { align-items: stretch; min-height: 0; }
.riddle { width: min(1000px, 100%); display: flex; flex-direction: column; gap: 10px; }
.riddle-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--muted); }
.tag { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 99px; background: var(--panel-hi); color: var(--ink); font-size: 16px; }
.worth { color: var(--ink); }
.worth b { color: var(--gold); font-size: 1.3em; }
.stars { color: var(--gold); letter-spacing: .05em; margin-right: 4px; }
.stars i { font-style: normal; color: rgba(255,255,255,.18); }

.hints { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hints li {
  display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 18px; background: var(--panel);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, min(3.2vw, 4.4vh), 42px); line-height: 1.15;
}
.hints li b {
  flex: none; width: 1.5em; height: 1.5em; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); font-size: .7em;
}
.hints li span { min-width: 0; text-wrap: balance; overflow-wrap: anywhere; }
.hints li.off { background: rgba(255,255,255,.04); color: rgba(255,255,255,.22); border: 2px dashed rgba(255,255,255,.12); }
.hints li.new { background: #fff; color: var(--bg); box-shadow: 0 0 0 4px var(--gold), 0 12px 30px rgba(0,0,0,.35); animation: popin .4s cubic-bezier(.3,1.5,.5,1); }
.hints li.new b { background: var(--gold); color: var(--gold-ink); }

/* antwoord typen */
.wbi-guess { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: min(760px, 100%); margin: 0 auto; }
.wbi-guess input {
  flex: 1 1 260px; min-width: 0; border: 3px solid rgba(255,255,255,.18); border-radius: 16px; padding: 10px 16px; background: #120f30; color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 3vw, 30px);
}
.wbi-guess input:focus { outline: none; border-color: var(--gold); }
.wbi-guess .go { font-size: 24px; padding: 10px 28px; }
.wbi-guess.wrong input { border-color: #ff6b6b; animation: shakex .4s; }
.wbi-guess-msg { flex-basis: 100%; text-align: center; min-height: 1.3em; font-weight: 700; color: #ffb3b3; }
@keyframes shakex { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* onthulling */
.wbi-card { gap: 10px; }
.wbi-emoji { font-size: clamp(90px, 22vh, 200px); line-height: 1.05; animation: popin .5s cubic-bezier(.3,1.5,.5,1) both; }
.wbi-answer { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 8vw, 92px); line-height: 1; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; text-wrap: balance; }
.wbi-info { margin: 0; color: var(--muted); font-weight: 700; font-size: clamp(16px, 2.2vw, 22px); }
.wbi-award { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.aw {
  border: 0; border-radius: 16px; padding: 10px 20px; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1;
  background: var(--tc, rgba(255,255,255,.12)); color: #fff; box-shadow: inset 0 -5px 0 rgba(0,0,0,.2);
}
.aw small { font-size: .8em; opacity: .85; }
.aw.t0 { --tc: #e8364f; }
.aw.t1 { --tc: #1c7ed6; }
.aw.none { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.aw[aria-pressed="true"] { outline: 4px solid var(--gold); outline-offset: 2px; }
.aw[aria-pressed="true"]::before { content: "✓ "; }
.aw:hover { filter: brightness(1.12); }

@media (max-width: 560px) {
  .wbi-themes button { font-size: 13px; }
  .sc { padding: 4px 12px; gap: 8px; }
  .sc span { font-size: 15px; }
  .sc b { font-size: 26px; }
  .riddle-head { font-size: 16px; }
  .hints li { padding: 8px 12px; gap: 10px; border-radius: 14px; }
  .controls .ghost { font-size: 18px; padding: 10px 16px; }
  .controls .go { padding: 10px 20px; }
  .aw { font-size: 18px; padding: 9px 14px; }
  .wbi-bar { gap: 6px; }
  .wbi-bar .seg { padding: 4px; }
  .wbi-bar .seg button { padding: 8px 10px; font-size: 15px; min-width: 36px; }
  .seg-label { display: none; }
  .small-ghost { font-size: 14px; padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hints li.new, .wbi-emoji, .wbi-guess.wrong input { animation: none; }
  .sc { transition: none; }
}
.seg-label { align-self: center; padding: 0 6px 0 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
@media (hover: none) { .wbi-keys { display: none; } }
