/* ui.css: basis voor alle pagina's (Stage, remote, telefoon). Kleuren uit het thema. */
@font-face { font-family: 'Bagel Fat One'; src: url('fonts/BagelFatOne.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('fonts/BricolageGrotesque.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  background-image: radial-gradient(ellipse at 50% -10%, var(--bg-2), var(--bg) 70%);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
kbd { font-family: var(--font-ui); font-weight: 700; padding: .05em .45em; border-radius: .35em; border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.center { text-align: center; }
.row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.ic { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; }
.ic svg { width: 100%; height: 100%; display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  border: 2px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06);
  border-radius: 999px; padding: .55em 1.1em; font-weight: 700; text-decoration: none; color: var(--ink);
  transition: transform .08s, background .15s;
  min-height: 44px;
}
.btn:hover { background: rgba(255,255,255,.14); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .opt:focus-visible, .tbtn:focus-visible, .hb:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #2a1d05; }
.btn.primary:hover { background: #f6cf78; }
.btn.warn { border-color: var(--bad); color: #ffd6d6; }
.btn.big { font-size: 1.15em; padding: .7em 1.4em; }
.btn.small { min-height: 36px; padding: .3em .8em; font-size: .9em; }
.btn[style*="--tc"] { border-color: var(--tc); }
.btn.on { background: rgba(239,192,90,.2); border-color: var(--gold); }

.inp {
  width: 100%; border-radius: 14px; border: 2px solid rgba(255,255,255,.28); background: rgba(0,0,0,.25);
  padding: .7em .9em; font-size: 1.1em; color: var(--ink); min-height: 48px;
}
.inp:focus { outline: none; border-color: var(--gold); background: rgba(0,0,0,.35); }
.inp.small { font-size: .95em; padding: .4em .6em; min-height: 38px; }
.inp.big { font-size: 1.35em; }
.inp.code { text-align: center; letter-spacing: .3em; font-size: 2em; text-transform: uppercase; font-family: var(--font-display); }
.sel { border-radius: 10px; border: 2px solid rgba(255,255,255,.25); background: var(--panel); padding: .35em .5em; max-width: 100%; }
.shake { animation: shake .3s; border-color: var(--bad); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.err { color: #ffc2c2; font-weight: 700; }

.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo .l1 { font-family: var(--font-display); color: var(--gold); font-size: 2.6em; letter-spacing: .01em; text-shadow: 0 .06em 0 var(--berry-2); }
.logo .l2 { margin-top: .35em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8em; color: var(--muted); }

.langs { display: flex; gap: .4rem; justify-content: center; margin: .6rem 0; }
.lang { border: 2px solid rgba(255,255,255,.25); background: transparent; border-radius: 999px; padding: .25em .9em; font-weight: 700; }
.lang.on { background: var(--gold); color: #2a1d05; border-color: var(--gold); }

/* ------------------------------------------------------------ telefoon (gast + remote) */
.pscr { max-width: 560px; margin: 0 auto; padding: 14px 16px 90px; display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.pscr.center { justify-content: center; min-height: 100vh; align-items: stretch; }
.pscr h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.7em; margin: .2em 0; line-height: 1.1; }
.pbrand { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pbrand .l1 { font-family: var(--font-display); color: var(--gold); font-size: 1.8em; }
.pbrand .l2 { color: var(--muted); font-weight: 700; }
.plang { border: 2px solid rgba(255,255,255,.25); background: transparent; border-radius: 999px; padding: .15em .7em; font-weight: 700; font-size: .85em; min-height: 32px; }
.phead { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; background: rgba(0,0,0,.25); border-left: 6px solid var(--tc); }
.phead .pname { font-weight: 800; }
.phead .pteam { color: var(--muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phead .pscore { font-family: var(--font-display); color: var(--gold); font-size: 1.3em; }
.ptimer { font-family: var(--font-display); font-size: 1.4em; min-width: 1.6em; text-align: right; }
.ptimer.low { color: var(--bad); }
.pq { font-size: 1.3em; font-weight: 800; line-height: 1.25; padding: 4px 2px; }
.pq.big { font-size: 1.6em; }
.pbig { padding: 18px 6px; }
.pbig.win h2 { color: var(--gold); }
.pbig .ok { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--good); color: #062; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-weight: 800; color: var(--gold); font-size: .85em; }
.lbl { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tbtns { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tbtns.small .tbtn { padding: .5em; min-height: 44px; font-size: .95em; }
.tbtn { border: 3px solid var(--tc); background: rgba(0,0,0,.2); border-radius: 16px; padding: .9em .6em; font-weight: 800; min-height: 60px; }
.tbtn.on { background: var(--tc); color: #111; }
.buzz {
  margin: 10px auto; width: min(78vw, 360px); aspect-ratio: 1; border-radius: 50%;
  border: 8px solid rgba(255,255,255,.85); background: var(--tc); color: #111; font-family: var(--font-display); font-size: 3em;
  box-shadow: 0 12px 0 rgba(0,0,0,.35), 0 0 0 10px rgba(255,255,255,.08); touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
.buzz:active { transform: translateY(8px); box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.buzz.sent { opacity: .6; font-size: 1.6em; }
.pstatus { color: var(--muted); text-align: center; min-height: 1.4em; }
.pstrikes { display: flex; justify-content: center; gap: 12px; font-size: 38px; }
.pstrikes span { color: rgba(255,255,255,.2); }
.pstrikes span.on { color: var(--bad); }
.mine { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mine li { background: rgba(255,255,255,.1); border-radius: 999px; padding: .3em .8em; }
.rsitem { display: flex; flex-direction: column; gap: 6px; }
.rsok { color: var(--good); font-size: 1.2em; visibility: hidden; }
.rsok.on { visibility: visible; }
.prank { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: r; }
.prank li { display: flex; justify-content: space-between; padding: .6em .9em; border-radius: 12px; background: rgba(0,0,0,.22); border-left: 6px solid var(--tc); counter-increment: r; }
.prank li::before { content: counter(r) '.'; font-weight: 800; margin-right: .6em; color: var(--muted); }
.prank li span { flex: 1; }
.prank li.me { outline: 2px solid var(--gold); }
.pconn { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); background: #5a1320; color: #fff; padding: .4em 1em; border-radius: 999px; font-weight: 700; z-index: 20; }
.final .row .btn { flex: 1; }

/* ------------------------------------------------------------ remote */
.remote { max-width: 720px; gap: 10px; }
.rhead { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 6px 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.rtools { display: flex; gap: 6px; }
.rq { font-size: 1.25em; font-weight: 800; }
.rinfo { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.rbank { color: var(--gold); font-weight: 800; }
.rx { color: var(--bad); display: inline-flex; gap: 4px; }
.ranswers { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ra { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border-radius: 12px; border: 2px solid rgba(255,255,255,.18); background: var(--berry-2); padding: .6em .8em; min-height: 52px; }
.ranswers li.open .ra { background: rgba(251,241,221,.12); border-color: rgba(251,241,221,.35); opacity: .75; }
.ranswers li.late .ra { opacity: .5; }
.ra .rn { font-family: var(--font-display); color: var(--gold); width: 1.4em; }
.ra .rt { flex: 1; font-weight: 800; }
.ra .rsub { color: var(--muted); font-size: .85em; }
.ra .rp { font-family: var(--font-display); }
.rhits, .rstrip, .rpls { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0 2px; }
.chip { border: 2px solid var(--tc, rgba(255,255,255,.3)); background: transparent; border-radius: 999px; padding: .2em .7em; font-weight: 700; font-size: .85em; min-height: 32px; }
.chip.on { background: var(--tc); color: #111; }
.rrow { display: flex; flex-wrap: wrap; gap: 8px; }
.rrow .btn.big { flex: 1 1 40%; }
.rnext { width: 100%; margin-top: 4px; }
.rstrip { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(8,24,18,.95); padding: 8px 12px; justify-content: center; border-top: 1px solid rgba(255,255,255,.12); }
.rteams { display: grid; gap: 10px; }
.rteam { border-left: 6px solid var(--tc); padding: 6px 10px; background: rgba(0,0,0,.2); border-radius: 12px; }
.rguesses { display: flex; flex-direction: column; gap: 8px; }
.rg { border-left: 6px solid var(--tc); padding: 6px 10px; background: rgba(0,0,0,.2); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gx { padding: .15em .6em; border-radius: 999px; background: rgba(255,255,255,.08); }
.gx.hit { background: rgba(79,194,125,.25); }
.gxw { display: inline-flex; gap: 4px; align-items: center; }
.rsblock { background: rgba(0,0,0,.2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.tally { display: flex; flex-direction: column; gap: 6px; }
.trow { display: grid; grid-template-columns: 1fr auto 2em auto; gap: 6px; align-items: center; }
.trow b { text-align: center; }
.rgroups { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.rgroups li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rgroups li.hid .gt { text-decoration: line-through; opacity: .5; }
.rgroups .gt { font-weight: 800; flex: 1; }
.rgroups .gn { color: var(--gold); }
.rfinal { display: flex; flex-direction: column; gap: 8px; }
.rfinal .frow { display: grid; grid-template-columns: 1fr; gap: 4px; background: rgba(0,0,0,.2); padding: 8px; border-radius: 10px; }
.rfinal .fc { display: grid; grid-template-columns: 1fr 1.3fr; gap: 6px; align-items: center; }
.rfinal .ft { font-weight: 800; }
.rmenu { background: var(--panel); border-radius: 12px; padding: 10px; }
.stepper { display: flex; align-items: center; gap: 12px; justify-content: center; }
.adjust { display: flex; flex-direction: column; gap: 8px; }
.adj { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; border-left: 6px solid var(--tc); padding-left: 10px; }
.adj .tn { flex: 1 1 8em; font-weight: 800; }
.wrap { flex-wrap: wrap; }
