/* OPTIQUEST huisstijl. Candara is geen webfont dat we mogen meeleveren (Microsoft-licentie):
   op Windows (de presentatorlaptop) staat het lokaal; op gsm's valt het terug op een systeemlettertype.
   Geen enkel extern lettertype of CDN. */
:root {
  --teal: #394f57;
  --teal-d: #2b3c43;
  --teal-l: #4b6670;
  --yellow: #fec837;
  --coral: #ff9a7a;
  --sky: #8fd0dc;
  --cream: #f4f1e8;
  --ink: #1d2a2f;
  --ok: #5fd08a;
  --bad: #ff6b6b;
  --font: Candara, "Segoe UI", Calibri, "Helvetica Neue", Roboto, Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--teal); color: #fff; font-family: var(--font); line-height: 1.35; -webkit-text-size-adjust: 100%; }
a { color: var(--yellow); }
button, input { font-family: inherit; font-size: inherit; }
.hidden { display: none !important; }
.muted { opacity: .75; }
.small { font-size: .85rem; }

/* ---------- Deelnemer (gsm) ---------- */
.p-wrap { max-width: 560px; margin: 0 auto; padding: 12px 16px 32px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p-top img { height: 40px; }
.lang { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; padding: 6px 10px; font-size: .9rem; }
.badge { margin: 10px 0 14px; background: var(--yellow); color: var(--ink); border-radius: 14px; text-align: center; padding: 8px 12px; }
.badge .lbl { font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.badge .num { font-size: 2.6rem; font-weight: 700; line-height: 1.05; }
.screen { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.center { text-align: center; }
h1, h2 { margin: .2em 0; line-height: 1.2; }
.p-q { font-size: 1.3rem; font-weight: 700; }
.timer { font-size: 1.1rem; font-weight: 700; color: var(--yellow); text-align: center; }
.timerbar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.2); overflow: hidden; }
.timerbar > div { height: 100%; background: var(--yellow); width: 100%; }
.answers { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ans { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; border: 0; border-radius: 16px; padding: 12px 16px; font-size: 1.15rem; font-weight: 700; text-align: left; color: var(--ink); cursor: pointer; touch-action: manipulation; }
.ans .l { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.ans:disabled { opacity: .35; }
.ans.picked { outline: 5px solid #fff; opacity: 1; }
.c0 { background: var(--yellow); } .c1 { background: var(--coral); } .c2 { background: var(--sky); } .c3 { background: var(--cream); }
.num-in { width: 100%; font-size: 2rem; padding: 14px; border-radius: 14px; border: 0; text-align: center; color: var(--ink); }
.btn { display: inline-block; border: 0; border-radius: 14px; padding: 16px 22px; font-size: 1.2rem; font-weight: 700; background: var(--yellow); color: var(--ink); cursor: pointer; min-height: 56px; touch-action: manipulation; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn:disabled { opacity: .5; }
.card { background: var(--teal-d); border-radius: 16px; padding: 16px; }
.feedback { border-radius: 16px; padding: 20px; text-align: center; font-size: 1.6rem; font-weight: 700; }
.feedback.ok { background: var(--ok); color: var(--ink); }
.feedback.bad { background: var(--bad); color: var(--ink); }
.feedback.neutral { background: var(--teal-l); }
.privacy { font-size: .9rem; opacity: .9; border-top: 1px solid rgba(255,255,255,.25); padding-top: 10px; }
.concept { display: inline-block; background: var(--coral); color: var(--ink); font-weight: 700; font-size: .75rem; padding: 1px 6px; border-radius: 4px; margin-right: 4px; }
.optin { display: flex; gap: 12px; align-items: flex-start; font-size: 1.1rem; cursor: pointer; }
.optin input { width: 28px; height: 28px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--yellow); }
.email-in { width: 100%; font-size: 1.2rem; padding: 14px; border-radius: 12px; border: 0; color: var(--ink); }
.err { color: var(--ink); background: var(--coral); border-radius: 10px; padding: 8px 12px; }
.conn { position: fixed; left: 0; right: 0; bottom: 0; background: var(--coral); color: var(--ink); text-align: center; padding: 6px; font-size: .9rem; z-index: 10; }
.big-score { font-size: 3.2rem; font-weight: 700; color: var(--yellow); text-align: center; }

/* ---------- Presentator / beamer ---------- */
.h-body { min-height: 100vh; display: flex; flex-direction: column; }
.h-stage { flex: 1; padding: 2.5vh 3vw; display: flex; flex-direction: column; gap: 2vh; }
.h-head { display: flex; align-items: center; justify-content: space-between; gap: 2vw; }
.h-head img.logo { height: 9vh; }
.h-head .meta { font-size: 2.6vh; text-align: right; }
.h-head .meta b { color: var(--yellow); font-size: 4vh; }
.h-title { font-size: 6vh; font-weight: 700; margin: 0; }
.h-q { font-size: 5.4vh; font-weight: 700; line-height: 1.2; margin: 0; }
.h-sub { font-size: 3vh; opacity: .85; }
.lobby { display: grid; grid-template-columns: auto 1fr; gap: 4vw; align-items: center; flex: 1; }
.qr { background: #fff; padding: 1.5vh; border-radius: 2vh; }
.qr img { display: block; height: 52vh; width: 52vh; }
.url { font-size: 5.5vh; font-weight: 700; color: var(--yellow); word-break: break-all; }
.count { font-size: 12vh; font-weight: 700; line-height: 1; }
.count small { font-size: 4vh; font-weight: 400; display: block; }
.h-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 2vh 2vw; }
.h-opt { border-radius: 2vh; padding: 2.2vh 2vw; color: var(--ink); font-size: 4vh; font-weight: 700; display: flex; gap: 1.5vw; align-items: center; position: relative; overflow: hidden; }
.h-opt .l { font-size: 5vh; width: 7vh; height: 7vh; border-radius: 50%; background: rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.h-opt.dim { opacity: .3; }
.h-opt.right { outline: 1vh solid #fff; }
.h-timer { display: flex; align-items: center; gap: 2vw; font-size: 4vh; }
.h-timer .t { font-size: 9vh; font-weight: 700; color: var(--yellow); min-width: 14vh; text-align: center; }
.h-timer .bar { flex: 1; height: 2vh; background: rgba(255,255,255,.2); border-radius: 1vh; overflow: hidden; }
.h-timer .bar > div { height: 100%; background: var(--yellow); }
.bars { display: flex; align-items: flex-end; gap: 3vw; height: 40vh; padding: 0 2vw; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 1vh; }
.bars .n { font-size: 4.5vh; font-weight: 700; }
.bars .b { width: 100%; border-radius: 1vh 1vh 0 0; min-height: .6vh; }
.bars .lab { font-size: 4vh; font-weight: 700; }
.bars .col.dim .b { opacity: .3; }
.bars .col.right .lab::after { content: " ✔"; color: var(--ok); }
.correct-line { font-size: 4.6vh; font-weight: 700; background: var(--yellow); color: var(--ink); border-radius: 2vh; padding: 1.6vh 2vw; }
.podium { display: flex; flex-direction: column; gap: 2vh; }
.podium .row { display: flex; align-items: center; gap: 3vw; background: var(--teal-d); border-radius: 2vh; padding: 2vh 2vw; font-size: 4.5vh; }
.podium .row.first { background: var(--yellow); color: var(--ink); font-size: 6vh; }
.podium .rk { font-weight: 700; width: 9vh; text-align: center; }
.podium .who { font-weight: 700; flex: 1; }
.podium .det { font-size: .7em; }
.h-ctrl { background: var(--teal-d); border-top: 3px solid var(--yellow); padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.h-ctrl .btn { font-size: 1rem; padding: 10px 16px; min-height: 44px; }
.h-ctrl .sep { flex: 1; }
.h-ctrl select, .h-ctrl input { font-size: 1rem; padding: 8px; border-radius: 8px; border: 0; }
.notes { background: var(--cream); color: var(--ink); padding: 12px 16px; font-size: 1.05rem; }
.notes b { color: var(--teal); }
.panel { background: var(--teal-d); padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.2); }
.plist { display: flex; flex-wrap: wrap; gap: 6px; max-height: 30vh; overflow: auto; }
.plist button { background: var(--teal-l); color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.plist button:hover { background: var(--bad); color: var(--ink); }
.login { max-width: 420px; margin: 15vh auto; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.login input { font-size: 1.2rem; padding: 12px; border-radius: 10px; border: 0; }
.msg { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); background: var(--coral); color: var(--ink); padding: 10px 18px; border-radius: 10px; font-weight: 700; z-index: 20; }

/* ---------- Privacypagina ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 16px 16px 48px; }
.doc table { border-collapse: collapse; width: 100%; font-size: .9rem; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid rgba(255,255,255,.3); padding: 6px 8px; vertical-align: top; text-align: left; }
.banner { background: var(--coral); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.ph { background: var(--yellow); color: var(--ink); padding: 0 4px; border-radius: 3px; }
.app { display: flex; flex-direction: column; min-height: 100vh; }
.login-logo { height: 80px; align-self: center; }
.full { width: 100%; }
.mt { margin-top: 12px; }
.mb { margin-bottom: 6px; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tgrid textarea { font-family: inherit; font-size: 1rem; border-radius: 8px; border: 0; padding: 8px; }
.tprev { margin: 0; padding-left: 1.6em; max-height: 25vh; overflow: auto; }
.spacer { height: 12px; }
.ans-count { font-size: 4vh; }
.h-footer { font-size: 2.4vh; opacity: .8; }
.warn { background: var(--coral); color: var(--ink); padding: 8px 16px; font-weight: 700; }
.mini { border: 0; border-radius: 6px; padding: 2px 10px; margin-left: 4px; background: var(--teal); color: #fff; cursor: pointer; }
.h-opts.n3 { grid-template-columns: 1fr; gap: 1.6vh; }
