:root { --g:#4BAA35; --g2:#5DC245; --p:#A88BC8; --pl:#C9A4DE; --dk:#141414; --card:#1E1E1E; --line:rgba(255,255,255,.1);
        --muted:#A3A3A3; --lm:'Lemon Milk','LEMON MILK','League Spartan',sans-serif; --ls:'League Spartan',sans-serif; }
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body { margin:0; background:var(--dk); color:#fff; font-family:var(--ls); -webkit-text-size-adjust:100%; }
body { min-height:100dvh; padding:max(16px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
       max-width:520px; margin:0 auto;
       background:radial-gradient(120% 60% at 100% 0%, rgba(168,139,200,.16), transparent 60%),
                  radial-gradient(90% 50% at 0% 100%, rgba(75,170,53,.12), transparent 60%), var(--dk);
       background-attachment:fixed; }

/* kop */
.top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:6px 0 22px; }
.top img { height:28px; display:block; }
.live { display:flex; align-items:center; gap:8px; padding:7px 12px; border-radius:999px; background:rgba(255,255,255,.06);
        font-family:var(--lm); font-size:11px; letter-spacing:.08em; color:#D2D2D2; }
.live i { width:8px; height:8px; border-radius:50%; background:var(--g); animation:pulse 1.6s infinite; }
.live.off i { background:#777; animation:none; }
@keyframes pulse { 0% { box-shadow:0 0 0 0 rgba(75,170,53,.7); } 70% { box-shadow:0 0 0 8px rgba(75,170,53,0); } 100% { box-shadow:0 0 0 0 rgba(75,170,53,0); } }

/* teksten */
h1 { font-family:var(--lm); font-weight:700; font-size:40px; line-height:1.02; margin:10px 0 14px; letter-spacing:.01em; }
h1 span { color:var(--pl); }
p.lead { font-size:18px; line-height:1.45; color:#D2D2D2; margin:0 0 26px; }
label, .lbl { display:block; font-family:var(--lm); font-size:11px; letter-spacing:.1em; color:var(--g); margin:22px 0 8px; }
.small { font-size:13px; color:var(--muted); line-height:1.5; margin-top:18px; }
.err { color:#FF8A80; font-size:15px; min-height:20px; margin-top:12px; }

/* invoer */
input[type=text], input[type=email], input[type=url] { width:100%; height:56px; font:500 18px var(--ls); padding:0 18px;
  border-radius:16px; border:1.5px solid rgba(255,255,255,.14); background:rgba(255,255,255,.05); color:#fff; outline:none;
  transition:border-color .15s, box-shadow .15s, background .15s; }
input::placeholder { color:#7A7A7A; }
input:focus { border-color:var(--g); background:rgba(255,255,255,.07); box-shadow:0 0 0 4px rgba(75,170,53,.18); }
.check { display:flex; gap:14px; align-items:flex-start; margin:18px 0 6px; padding:14px 16px; border-radius:16px;
  background:rgba(255,255,255,.04); border:1px solid var(--line); font-size:15px; line-height:1.45; color:#D2D2D2; }
.check input { width:22px; height:22px; accent-color:var(--g); flex:none; margin:1px 0 0; }

/* knoppen */
.btn { display:block; width:100%; height:58px; margin-top:22px; border-radius:999px; border:0; cursor:pointer;
  background:linear-gradient(180deg, var(--g2), var(--g)); color:#fff; font:500 16px var(--lm); letter-spacing:.06em;
  box-shadow:0 10px 24px rgba(75,170,53,.28), inset 0 0 0 2px rgba(255,255,255,.25); transition:transform .1s, opacity .15s; }
.btn:active { transform:scale(.98); }
.btn:disabled { opacity:.5; }

/* meedoen */
.hello { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:999px; background:rgba(75,170,53,.14);
  font-family:var(--lm); font-size:11px; color:var(--g2); letter-spacing:.08em; }
.hello::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--g2); }
.mirror { position:relative; width:100%; aspect-ratio:16/9; border-radius:18px; overflow:hidden; background:#000;
  border:1px solid var(--line); box-shadow:0 18px 40px rgba(0,0,0,.45); margin:16px 0 22px; }
.mirror .stage { position:absolute; left:0; top:0; width:1920px; height:1080px; transform-origin:0 0; }
.mirror section { position:absolute !important; left:0; top:0; width:1920px; height:1080px; overflow:hidden; visibility:visible !important; opacity:1 !important; }
.mirror .placeholder { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center;
  padding:20px; font-family:var(--lm); font-size:13px; letter-spacing:.06em; color:#BDBDBD; }

.panel { border-radius:24px; background:var(--card); border:1px solid var(--line); padding:22px 20px 20px;
  box-shadow:0 18px 40px rgba(0,0,0,.35); }
.panel h2 { font-family:var(--lm); font-size:20px; line-height:1.25; margin:0 0 18px; letter-spacing:.01em; }
.watch { display:flex; align-items:center; justify-content:center; gap:10px; color:var(--muted); font-size:16px; padding:14px 0; }
.watch::before { content:""; width:10px; height:10px; border-radius:50%; border:2px solid var(--muted); }
.closed { display:inline-block; margin:0 0 14px; padding:5px 12px; border-radius:999px; background:rgba(255,255,255,.08);
  font-family:var(--lm); font-size:10px; color:#C8C8C8; letter-spacing:.1em; }
.closed:empty { display:none; }
.sent { margin-top:14px; color:var(--g2); font-weight:700; font-size:15px; min-height:20px; }

/* keuzes */
.opt { display:flex; align-items:center; gap:14px; width:100%; min-height:60px; text-align:left; margin:10px 0 0; padding:12px 18px;
  border-radius:16px; cursor:pointer; border:1.5px solid rgba(255,255,255,.14); background:rgba(255,255,255,.04); color:#fff;
  font:700 18px var(--ls); transition:background .15s, border-color .15s, transform .1s; }
.opt::before { content:""; flex:none; width:22px; height:22px; border-radius:50%; border:2px solid rgba(255,255,255,.4); transition:.15s; }
.opt.on { background:rgba(75,170,53,.18); border-color:var(--g); }
.opt.on::before { border-color:var(--g2); background:var(--g2); box-shadow:inset 0 0 0 4px var(--card); }
.opt:active { transform:scale(.99); }
.opt:disabled, .yn button:disabled, .chips button:disabled { opacity:.45; }

/* stellingen */
.stm { margin-top:12px; padding:16px; border-radius:18px; background:rgba(255,255,255,.04); border:1px solid var(--line); }
.stm p { margin:0 0 12px; font-size:17px; font-weight:700; line-height:1.35; }
.yn { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.yn button { height:48px; border-radius:999px; border:1.5px solid rgba(255,255,255,.2); background:transparent; color:#fff;
  font:500 13px var(--lm); letter-spacing:.05em; cursor:pointer; transition:.15s; }
.yn button.on[data-v=ja] { background:var(--g); border-color:var(--g); }
.yn button.on[data-v=nee] { background:var(--p); border-color:var(--p); }

/* scanformulier */
.q { margin:20px 0 10px; font-weight:700; font-size:16px; line-height:1.35; }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chips button { min-height:42px; padding:8px 16px; border-radius:999px; border:1.5px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.03); color:#fff; font:700 15px var(--ls); cursor:pointer; transition:.15s; }
.chips button.on { background:var(--p); border-color:var(--p); }
.panel form input[type=text], .panel form input[type=url], .panel form input[type=email] { height:54px; }

/* scanresultaat */
.res-kop { text-align:center; padding:22px 16px 20px; margin:-4px -2px 18px; border-radius:20px;
  background:linear-gradient(160deg, rgba(168,139,200,.22), rgba(75,170,53,.16)); border:1px solid rgba(201,164,222,.3); }
.res-kop .lbl { margin:0 0 6px; color:#D8C6EA; }
.res-niveau { font-family:var(--lm); font-size:38px; line-height:1.05; color:#fff; margin:2px 0 6px; }
.res-dom { color:#CFCFCF; font-size:15px; }
.meter { margin:14px 0; }
.meter .row { display:flex; justify-content:space-between; font-weight:700; font-size:15px; margin-bottom:7px; }
.meter .row span:last-child { color:var(--muted); font-weight:500; }
.meter .track { height:10px; border-radius:5px; background:rgba(255,255,255,.1); overflow:hidden; }
.meter .fill { height:100%; border-radius:5px; background:var(--g); width:0; transition:width 1s cubic-bezier(.2,.9,.3,1.1); }
.meter:nth-of-type(even) .fill { background:var(--p); }
.lst { list-style:none; padding:0; margin:6px 0 0; }
.lst li { display:flex; gap:12px; padding:11px 0; font-size:16px; line-height:1.4; border-top:1px solid var(--line); }
.lst li:first-child { border-top:0; }
.lst .ic { flex:none; width:24px; height:24px; margin-top:1px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:13px; }
.lst.goed .ic { background:var(--g); } .lst.kans .ic { background:var(--p); }
.spin { width:52px; height:52px; border-radius:50%; border:5px solid rgba(255,255,255,.12); border-top-color:var(--g2);
  animation:rot 1s linear infinite; margin:14px auto 16px; }
@keyframes rot { to { transform:rotate(360deg); } }

#melding { padding-top:12vh; }
.hidden { display:none !important; }

/* Lege QR-plek van de slide niet tonen op de telefoon */
.mirror div:has(> img[data-live="qr"]) { visibility:hidden; }

/* Stap voor stap */
.stap { font-family:var(--lm); font-size:11px; letter-spacing:.1em; color:var(--muted); margin-bottom:8px; }
.balk { height:6px; border-radius:3px; background:rgba(255,255,255,.1); overflow:hidden; margin-bottom:18px; }
.balk i { display:block; height:100%; background:var(--g2); border-radius:3px; transition:width .4s ease; }
.stelling { font-size:22px; font-weight:700; line-height:1.35; margin:4px 0 18px; padding:18px; border-radius:16px;
  background:rgba(255,255,255,.05); border:1px solid var(--line); }
.kies .opt:first-child { margin-top:0; }
.opt.on:disabled { opacity:1; }
.btn.klaar { background:rgba(75,170,53,.18); color:var(--g2); box-shadow:inset 0 0 0 2px var(--g2); opacity:1; }
.nav { display:flex; gap:10px; align-items:center; margin-top:22px; }
.nav .btn { margin-top:0; flex:1; }
.terug { height:58px; padding:0 20px; border-radius:999px; border:1.5px solid rgba(255,255,255,.25); background:transparent;
  color:#fff; font:500 13px var(--lm); letter-spacing:.06em; cursor:pointer; }
.klaar-blok { padding:18px; border-radius:16px; background:rgba(75,170,53,.14); color:var(--g2); font-weight:700; font-size:17px; }

/* vraag stellen: rond knopje rechtsonder */
.vraagknop { position:fixed; right:max(18px, env(safe-area-inset-right)); bottom:max(18px, env(safe-area-inset-bottom)); z-index:50;
  width:60px; height:60px; border-radius:50%; border:3px solid #fff; cursor:pointer;
  background:linear-gradient(180deg, var(--g2), var(--g)); color:#fff; font:700 28px var(--lm); line-height:1;
  box-shadow:0 10px 26px rgba(0,0,0,.45), 0 0 0 6px rgba(75,170,53,.18); }
.vraagknop:active { transform:scale(.94); }
.vraagvenster { position:fixed; inset:0; z-index:60; background:rgba(10,10,10,.72); display:flex; align-items:flex-end; justify-content:center; }
.vraagblad { position:relative; width:100%; max-width:520px; border-radius:28px 28px 0 0; background:var(--card); border:1px solid var(--line);
  padding:26px 20px max(26px, env(safe-area-inset-bottom)); animation:va-up .35s cubic-bezier(.2,.8,.2,1); }
.vraagblad h2 { font-family:var(--lm); font-weight:700; font-size:26px; margin:4px 0 10px; }
.vraagblad h2 span { color:var(--pl); }
.vraagblad .lead { font-size:16px; margin-bottom:16px; }
.vraagblad .sluit { position:absolute; right:14px; top:12px; width:40px; height:40px; border-radius:50%; border:0; cursor:pointer;
  background:rgba(255,255,255,.08); color:#fff; font-size:26px; line-height:1; }
.vraagblad textarea { width:100%; font:500 17px/1.4 var(--ls); padding:14px 16px; border-radius:16px; resize:vertical;
  border:1.5px solid rgba(255,255,255,.14); background:rgba(255,255,255,.05); color:#fff; outline:none; }
.vraagblad textarea:focus { border-color:var(--g); box-shadow:0 0 0 4px rgba(75,170,53,.18); }
.vraagblad .btn { margin-top:16px; }
.vraagblad .bedankt { font-size:17px; line-height:1.45; color:#D2D2D2; margin:6px 0 4px; }

/* ruimte onder de inhoud, zodat het vraagrondje nooit over een knop valt */
#app { padding-bottom:96px; }

/* ── telefoon: rustig en compact ── */
.live i { animation:none; }
.hello::before { display:none; }
.mirror *, .mirror *::before, .mirror *::after { animation:none !important; transition:none !important; }
body { padding-top:max(10px, env(safe-area-inset-top)); }
.top { padding:2px 0 10px; }
.hello { padding:6px 12px; }
.mirror { width:min(100%, calc(26dvh * 16 / 9)); margin:10px auto 12px; border-radius:14px; }
.panel { padding:16px 16px 16px; border-radius:20px; }
.panel h2 { font-size:18px; margin:0 0 12px; }
.opt { min-height:50px; padding:10px 14px; margin-top:8px; font-size:16px; border-radius:14px; gap:12px; }
.opt::before { width:20px; height:20px; }
.btn { height:52px; margin-top:14px; }
.stelling { font-size:19px; padding:14px; margin:2px 0 12px; }
.yn button { height:46px; }
.balk { margin-bottom:12px; }
.q { margin:12px 0 8px; }
.nav { margin-top:14px; }
.terug { height:52px; }
#app { padding-bottom:80px; }
.vraagknop { width:54px; height:54px; font-size:24px; right:max(14px, env(safe-area-inset-right)); bottom:max(14px, env(safe-area-inset-bottom)); }
@media (max-height: 720px) {
  .mirror { width:min(100%, calc(22dvh * 16 / 9)); margin:6px auto 10px; }
  .hello { display:none; }
  .panel h2 { font-size:16px; margin-bottom:10px; }
  .opt { min-height:44px; padding:8px 12px; font-size:15px; margin-top:6px; }
  .btn { height:48px; margin-top:10px; font-size:15px; }
  .stelling { font-size:17px; padding:12px; }
  .yn button { height:42px; }
}
