/* SE-trainer: dikke knoppen, ronde vormen, vrolijke kleuren. Eigen stijl, systeemlettertype (geen externe fonts). */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface2: #eef0f6;
  --fg: #1f2433;
  --muted: #667085;
  --line: #dfe3ee;
  --green: #22b573;      --green-d: #168a56;  --green-bg: #dcf6ea;
  --blue: #3b82f6;       --blue-d: #2563c9;   --blue-bg: #dbe8fe;
  --red: #ef4444;        --red-d: #c22b2b;    --red-bg: #fde4e4;
  --gold: #ffb020;       --gold-d: #d98e00;   --gold-bg: #fff2d6;
  --purple: #8b5cf6;     --purple-d: #6d3fd6;
  --r: 18px;
  --r-s: 12px;
  --shadow: 0 2px 0 rgba(31, 36, 51, .06), 0 8px 24px rgba(31, 36, 51, .06);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabbar: 68px;
  color-scheme: light;
}
:root[data-thema="donker"] {
  --bg: #11141d; --surface: #1b2030; --surface2: #262d42; --fg: #eef1fa; --muted: #98a2bd; --line: #2e3650;
  --green-bg: #12382a; --blue-bg: #172b52; --red-bg: #3e1d1f; --gold-bg: #3a2c0e;
  --shadow: 0 2px 0 rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="licht"]) {
    --bg: #11141d; --surface: #1b2030; --surface2: #262d42; --fg: #eef1fa; --muted: #98a2bd; --line: #2e3650;
    --green-bg: #12382a; --blue-bg: #172b52; --red-bg: #3e1d1f; --gold-bg: #3a2c0e;
    --shadow: 0 2px 0 rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-weight: 600;
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { font-weight: 800; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
svg { flex: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- knoppen: dik, met rand onderaan ---------- */
.btn {
  --c: var(--green); --cd: var(--green-d); --fg-btn: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 16px; padding: 14px 22px; min-height: 52px;
  background: var(--c); color: var(--fg-btn); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; font-size: 15px;
  box-shadow: 0 4px 0 var(--cd); transition: transform .06s, box-shadow .06s, filter .15s; text-decoration: none; user-select: none;
}
.btn:hover { filter: brightness(1.05); }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--cd); }
.btn:disabled { --c: var(--line); --cd: var(--line); --fg-btn: var(--muted); box-shadow: 0 4px 0 var(--line); cursor: not-allowed; filter: none; }
.btn.blauw { --c: var(--blue); --cd: var(--blue-d); }
.btn.rood { --c: var(--red); --cd: var(--red-d); }
.btn.goud { --c: var(--gold); --cd: var(--gold-d); --fg-btn: #5a3b00; }
.btn.licht { --c: var(--surface); --cd: var(--line); --fg-btn: var(--blue); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.btn.licht.rood-tekst { --fg-btn: var(--red); }
.btn.vol { width: 100%; }
.btn.klein { min-height: 40px; padding: 8px 14px; font-size: 13px; border-radius: 12px; box-shadow: 0 3px 0 var(--cd); }
.btn.klein:active:not(:disabled) { transform: translateY(3px); }
.knop-icoon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--surface); color: var(--muted); box-shadow: 0 3px 0 var(--line);
}
.knop-icoon:active { transform: translateY(3px); box-shadow: none; }

/* ---------- kaarten en lijsten ---------- */
.kaart { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 16px; }
.kaart.klik { cursor: pointer; text-align: left; width: 100%; box-shadow: 0 4px 0 var(--line); transition: transform .06s, box-shadow .06s; }
.kaart.klik:active { transform: translateY(4px); box-shadow: none; }
.stapel { display: flex; flex-direction: column; gap: 12px; }
.rij { display: flex; align-items: center; gap: 12px; }
.rij.tussen { justify-content: space-between; }
.rij.wrap { flex-wrap: wrap; }
.vul { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.klein-tekst { font-size: 13px; }
.kop-sectie { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 22px 4px 10px; }
.pil { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface2); font-weight: 800; font-size: 13px; }
.pil.groen { background: var(--green-bg); color: var(--green-d); }
.pil.rood { background: var(--red-bg); color: var(--red-d); }
.pil.goud { background: var(--gold-bg); color: var(--gold-d); }
.pil.blauw { background: var(--blue-bg); color: var(--blue-d); }
:root[data-thema="donker"] .pil.groen { color: #6fe0a8; } :root[data-thema="donker"] .pil.rood { color: #ff9a9a; }
:root[data-thema="donker"] .pil.goud { color: #ffd37a; } :root[data-thema="donker"] .pil.blauw { color: #9cc2ff; }

/* ---------- app-kader ---------- */
#app { min-height: 100dvh; }
.kader { display: flex; flex-direction: column; min-height: 100dvh; }
.top {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  padding: calc(10px + var(--safe-t)) 16px 10px; border-bottom: 2px solid var(--line);
}
.top-in { max-width: 920px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.merk { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.stat { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; padding: 6px 10px; border-radius: 12px; }
.stat.vuur { color: #f97316; } .stat.xp { color: var(--gold-d); }
.stat.stil { color: var(--muted); }
main { flex: 1; width: 100%; max-width: 920px; margin: 0 auto; padding: 16px 16px calc(var(--tabbar) + 28px + var(--safe-b)); }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 2px solid var(--line);
  padding: 6px 8px calc(6px + var(--safe-b)); display: flex; justify-content: center; gap: 4px;
}
.tab {
  flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px;
  border: 2px solid transparent; background: none; color: var(--muted); font-size: 11px; font-weight: 800; text-decoration: none; letter-spacing: .02em;
}
.tab[aria-current="page"] { color: var(--blue); background: var(--blue-bg); border-color: color-mix(in srgb, var(--blue) 45%, transparent); }
@media (min-width: 900px) {
  .kader { padding-left: 220px; }
  .tabs { top: 0; bottom: 0; right: auto; width: 220px; flex-direction: column; justify-content: flex-start; padding: 24px 14px; border-top: 0; border-right: 2px solid var(--line); }
  .tab { max-width: none; flex: none; flex-direction: row; gap: 14px; font-size: 14px; padding: 12px 16px; }
  main { padding-bottom: 48px; }
  .top-in { max-width: 920px; }
}

/* ---------- vak-keuze ---------- */
.vakken { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.vakken::-webkit-scrollbar { display: none; }
.vak-chip {
  --vc: var(--blue);
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--surface); font-weight: 800; box-shadow: 0 3px 0 var(--line);
}
.vak-chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--vc); }
.vak-chip[aria-pressed="true"] { border-color: var(--vc); background: color-mix(in srgb, var(--vc) 14%, var(--surface)); box-shadow: 0 3px 0 var(--vc); }

/* ---------- vandaag ---------- */
.held { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 2px solid var(--line); border-radius: 24px; padding: 16px; box-shadow: 0 4px 0 var(--line); }
.held h1 { font-size: 21px; overflow-wrap: anywhere; }
.held .vul { min-width: 0; }
.aftel { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.aftel-blok { --vc: var(--blue); flex: 1; min-width: 140px; border: 2px solid color-mix(in srgb, var(--vc) 40%, var(--line)); background: color-mix(in srgb, var(--vc) 9%, var(--surface)); border-radius: 16px; padding: 10px 12px; }
.aftel-blok b { display: block; font-size: 26px; line-height: 1; color: var(--vc); }
.aftel-blok span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.ring { position: relative; width: 64px; height: 64px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .mid { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.taak { --vc: var(--blue); display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); box-shadow: 0 3px 0 var(--line); }
.taak .stip { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--vc) 16%, var(--surface)); color: var(--vc); flex: none; }
.taak.klaar { opacity: .6; } .taak.klaar .titel { text-decoration: line-through; }
.taak .titel { font-weight: 800; }
.vink { width: 30px; height: 30px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; color: transparent; flex: none; }
.vink[aria-pressed="true"] { background: var(--green); border-color: var(--green-d); color: #fff; }

/* ---------- leerpad ---------- */
.unit-banner { --vc: var(--green); background: var(--vc); color: #fff; border-radius: 20px; padding: 14px 18px; margin: 22px 0 10px; box-shadow: 0 4px 0 color-mix(in srgb, var(--vc) 60%, #000); }
.unit-banner small { opacity: .85; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; }
.unit-banner h3 { font-size: 19px; margin-top: 2px; }
.pad { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0 14px; }
.node-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.node {
  --vc: var(--green); position: relative; width: 78px; height: 72px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff;
  background: var(--vc); box-shadow: 0 7px 0 color-mix(in srgb, var(--vc) 58%, #000); transition: transform .08s, box-shadow .08s;
}
.node:active { transform: translateY(6px); box-shadow: 0 1px 0 color-mix(in srgb, var(--vc) 58%, #000); }
.node.nieuw::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 4px solid color-mix(in srgb, var(--vc) 45%, transparent); animation: puls 1.8s ease-in-out infinite; }
@keyframes puls { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: .45; } }
.node.af { --vc: var(--gold); }
.node.uit { --vc: #b8bfd0; box-shadow: 0 7px 0 #9aa3ba; }
.node .sterren { position: absolute; bottom: -20px; display: flex; gap: 2px; color: var(--gold); }
.node .sterren .leeg { color: var(--line); }
.node-label { margin-top: 20px; font-size: 13px; font-weight: 800; text-align: center; max-width: 220px; color: var(--fg); }
.start-bel { position: absolute; top: -34px; background: var(--surface); color: var(--vc); border: 2px solid var(--line); border-radius: 12px; padding: 4px 10px; font-weight: 800; font-size: 13px; letter-spacing: .06em; box-shadow: 0 3px 0 var(--line); }
.start-bel::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 12px; height: 12px; background: var(--surface); border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: translateX(-50%) rotate(45deg); }

/* ---------- blad (sheet) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15, 18, 30, .5); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.blad { width: 100%; max-width: 560px; background: var(--surface); border-radius: 26px 26px 0 0; padding: 20px 18px calc(18px + var(--safe-b)); max-height: 88dvh; overflow: auto; animation: op .2s ease-out; }
@keyframes op { from { transform: translateY(40px); opacity: .6; } }
.blad h2 { font-size: 21px; margin-bottom: 6px; }
@media (min-width: 700px) { .scrim { align-items: center; } .blad { border-radius: 26px; } }

/* ---------- les / oefening (volledig scherm) ---------- */
.speler { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; }
.speler-top { display: flex; align-items: center; gap: 12px; padding: calc(12px + var(--safe-t)) 16px 8px; max-width: 760px; width: 100%; margin: 0 auto; }
.voortgang { flex: 1; height: 16px; border-radius: 99px; background: var(--surface2); overflow: hidden; position: relative; }
.voortgang > i { display: block; height: 100%; background: var(--vc, var(--green)); border-radius: 99px; transition: width .3s ease; position: relative; }
.voortgang > i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 4px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.speler-body { flex: 1; overflow: auto; padding: 8px 16px 24px; max-width: 760px; width: 100%; margin: 0 auto; }
.vraag-kop { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 8px 0 6px; }
.vraag-tekst { font-size: 21px; font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.vraag-tekst .md-p { margin: 0 0 8px; }
.context { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; font-weight: 600; font-size: 15px; }
.opties { display: flex; flex-direction: column; gap: 10px; }
.optie {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line);
  background: var(--surface); box-shadow: 0 4px 0 var(--line); font-weight: 700; font-size: 17px; transition: transform .06s, box-shadow .06s;
}
.optie:active:not(:disabled) { transform: translateY(4px); box-shadow: none; }
.optie .nr { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--muted); flex: none; }
.optie[aria-pressed="true"], .optie.gekozen { border-color: var(--blue); background: var(--blue-bg); box-shadow: 0 4px 0 var(--blue); }
.optie[aria-pressed="true"] .nr { border-color: var(--blue); color: var(--blue); }
.optie.goed { border-color: var(--green); background: var(--green-bg); box-shadow: 0 4px 0 var(--green); }
.optie.fout { border-color: var(--red); background: var(--red-bg); box-shadow: 0 4px 0 var(--red); }
.optie:disabled { cursor: default; }
.invoer {
  width: 100%; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface2); font-size: 20px; font-weight: 800;
}
.invoer:focus { outline: none; border-color: var(--blue); background: var(--surface); }
.invoer.goed { border-color: var(--green); background: var(--green-bg); } .invoer.fout { border-color: var(--red); background: var(--red-bg); }
.invoer-rij { display: flex; align-items: center; gap: 10px; }
.eenheid { font-weight: 800; color: var(--muted); font-size: 18px; }
.paren { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.paren .kol { display: flex; flex-direction: column; gap: 10px; }
.chip { padding: 12px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); box-shadow: 0 3px 0 var(--line); font-weight: 700; text-align: left; font-size: 15.5px; position: relative; }
.chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-bg); box-shadow: 0 3px 0 var(--blue); }
.chip.gepaard { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 16%, var(--surface)); box-shadow: 0 3px 0 var(--pc); }
.chip.goed { border-color: var(--green); background: var(--green-bg); box-shadow: 0 3px 0 var(--green); }
.chip.fout { border-color: var(--red); background: var(--red-bg); box-shadow: 0 3px 0 var(--red); }
.volgorde { display: flex; flex-direction: column; gap: 8px; counter-reset: v; }
.volgorde .item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); box-shadow: 0 3px 0 var(--line); }
.volgorde .item .pos { width: 28px; height: 28px; border-radius: 9px; background: var(--surface2); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--muted); flex: none; }
.volgorde .item.goed { border-color: var(--green); background: var(--green-bg); } .volgorde .item.fout { border-color: var(--red); background: var(--red-bg); }
.volgorde .pijlen { display: flex; flex-direction: column; gap: 4px; }
.volgorde .pijlen button { width: 34px; height: 24px; border: 2px solid var(--line); background: var(--surface); border-radius: 8px; display: grid; place-items: center; color: var(--muted); padding: 0; }
.rekenblok { border: 2px dashed var(--line); border-radius: 14px; padding: 10px 12px; margin-top: 12px; font-size: 14px; }

.antwoordbalk { padding: 14px 16px calc(14px + var(--safe-b)); border-top: 2px solid var(--line); background: var(--surface); }
.antwoordbalk.goed { background: var(--green-bg); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.antwoordbalk.fout { background: var(--red-bg); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.antwoordbalk-in { max-width: 760px; margin: 0 auto; }
.feedback { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.feedback .badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.antwoordbalk.goed .badge { background: var(--green); } .antwoordbalk.fout .badge { background: var(--red); }
.feedback h4 { font-size: 19px; } .antwoordbalk.goed h4 { color: var(--green-d); } .antwoordbalk.fout h4 { color: var(--red-d); }
:root[data-thema="donker"] .antwoordbalk.goed h4 { color: #6fe0a8; } :root[data-thema="donker"] .antwoordbalk.fout h4 { color: #ff9a9a; }
.feedback .uitleg { font-size: 15px; font-weight: 600; margin-top: 4px; }
.feedback .uitleg .md-p { margin: 4px 0; }

/* ---------- klaar-scherm ---------- */
.klaar { text-align: center; padding: 28px 8px 8px; }
.klaar h1 { font-size: 28px; margin: 8px 0 4px; }
.cijfers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.cijfer { border-radius: 16px; border: 2px solid var(--vc); padding: 10px 6px; background: color-mix(in srgb, var(--vc) 10%, var(--surface)); }
.cijfer b { display: block; font-size: 24px; color: var(--vc); } .cijfer span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: val 1.9s ease-in forwards; }
@keyframes val { to { transform: translateY(110vh) rotate(540deg); opacity: .8; } }

/* ---------- kaarten (flitskaarten) ---------- */
.flits { perspective: 900px; margin: 6px 0 18px; }
.flits-in { position: relative; min-height: 260px; width: 100%; border: 0; background: none; padding: 0; transform-style: preserve-3d; transition: transform .45s; }
.flits-in.om { transform: rotateY(180deg); }
.zijde { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 24px; border: 2px solid var(--line); background: var(--surface); box-shadow: 0 5px 0 var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; text-align: center; gap: 10px; }
.zijde.achter { transform: rotateY(180deg); background: color-mix(in srgb, var(--vc, var(--blue)) 10%, var(--surface)); }
.zijde .groot { font-size: 24px; font-weight: 800; } .zijde .tag { font-size: 12px; letter-spacing: .1em; font-weight: 800; color: var(--vc, var(--blue)); text-transform: uppercase; }
.zijde .md-p { margin: 4px 0; }

/* ---------- planning ---------- */
.dag { border: 2px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 12px 14px; }
.dag.vandaag { border-color: var(--blue); box-shadow: 0 4px 0 var(--blue); }
.dag.toets { border-color: var(--red); }
.dag-kop { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dag-kop h4 { font-size: 16px; }
.toets-rij { --vc: var(--red); display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--vc) 12%, var(--surface)); border: 2px solid color-mix(in srgb, var(--vc) 45%, var(--line)); font-weight: 800; margin-top: 6px; }
.waarschuwing { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--gold-bg); border: 2px solid var(--gold); color: var(--fg); font-weight: 700; font-size: 14.5px; }
.waarschuwing svg { color: var(--gold-d); margin-top: 2px; }
.cap-rij { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cap-rij label { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--muted); }
.cap-rij input { width: 100%; padding: 8px 2px; text-align: center; border-radius: 10px; border: 2px solid var(--line); background: var(--surface2); font-weight: 800; }
.balk { height: 12px; border-radius: 99px; background: var(--surface2); overflow: hidden; } .balk > i { display: block; height: 100%; background: var(--vc, var(--green)); border-radius: 99px; }

/* ---------- inloggen ---------- */
.inlog { min-height: 100dvh; display: grid; place-items: center; padding: 24px 18px; }
.inlog-in { width: 100%; max-width: 420px; text-align: center; }
.inlog h1 { font-size: 30px; margin: 10px 0 4px; }
.inlog form { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.scheiding { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 800; }
.scheiding::before, .scheiding::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.fout-melding { color: var(--red-d); font-weight: 800; font-size: 14.5px; min-height: 22px; text-align: center; }
:root[data-thema="donker"] .fout-melding { color: #ff9a9a; }

/* ---------- markdown ---------- */
.md-p { margin: 8px 0; } .md-h { margin: 16px 0 6px; font-size: 18px; } h3.md-h { font-size: 19px; }
.md-list { margin: 8px 0; padding-left: 22px; } .md-list li { margin: 4px 0; }
.md-tip { margin: 10px 0; padding: 10px 14px; border-radius: 14px; background: var(--gold-bg); border: 2px solid var(--gold); font-weight: 700; }
.md-pre { margin: 10px 0; padding: 12px; border-radius: 12px; background: var(--surface2); overflow: auto; font: 600 14px ui-monospace, Menlo, monospace; white-space: pre; }
code { background: var(--surface2); padding: 1px 6px; border-radius: 6px; font: 700 .92em ui-monospace, Menlo, monospace; }
.md-table-wrap { overflow-x: auto; margin: 10px 0; }
.md-table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.md-table th, .md-table td { border: 2px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.md-table th { background: var(--surface2); }
@media (max-width: 520px) {
  .md-table { font-size: 13px; }
  .md-table th, .md-table td { padding: 5px 6px; }
}
.uitleg-blok { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 4px 16px 12px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 22px + var(--safe-b)); transform: translateX(-50%); z-index: 90; background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 800; box-shadow: var(--shadow); max-width: 90vw; animation: op .2s; }
.leeg-staat { text-align: center; padding: 34px 12px; color: var(--muted); }
.leeg-staat .titel { color: var(--fg); font-size: 18px; margin: 8px 0 4px; font-weight: 800; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--blue); animation: draai .8s linear infinite; margin: 40px auto; }
@keyframes draai { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* ---------- figuren (histogram, boxplot, normale verdeling, puntenwolk) ---------- */
.fig { margin: 12px 0; padding: 8px 8px 4px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); }
.uitleg-blok .fig { background: var(--bg); }
.fig-svg { display: block; width: 100%; height: auto; max-width: 520px; margin: 0 auto; }
.fig-cap { text-align: center; font-size: 13px; color: var(--muted); padding: 2px 0 4px; }
.fig-t { fill: var(--muted); font-size: 11px; font-family: var(--font); font-weight: 700; }
.fig-l { font-size: 11.5px; fill: var(--fg); }
.fig-b { fill: var(--fg); font-weight: 800; }
.fig-as { stroke: var(--muted); stroke-width: 1.4; }
.fig-raster { stroke: var(--line); stroke-width: 1; }
.fig-balk { fill: var(--blue); stroke: var(--blue-d); stroke-width: 1; }
.fig-lijn { stroke: var(--fg); stroke-width: 2; }
.fig-box { fill: var(--blue-bg); stroke: var(--blue-d); stroke-width: 2; }
.fig-box.c1 { fill: var(--gold-bg); stroke: var(--gold-d); }
.fig-box.c2 { fill: var(--green-bg); stroke: var(--green-d); }
.fig-med { stroke: var(--fg); stroke-width: 3; }
.fig-kromme { stroke: var(--blue-d); stroke-width: 2.4; stroke-linejoin: round; }
.fig-vlak { fill: var(--blue); fill-opacity: .35; stroke: none; }
.fig-stip { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 4 4; }
.fig-rand { stroke: var(--blue-d); stroke-width: 1.6; }
.fig-punt { fill: var(--blue); stroke: var(--surface); stroke-width: 1; }
.fig-trend { stroke: var(--red); stroke-width: 2.2; }

/* ---------- ezelsbruggetjes en kijkvideo's ---------- */
.uitleg-wrap { display: grid; gap: 14px; }
.ezel-lijst { display: grid; gap: 10px; }
.ezel { background: var(--gold-bg); border: 2px solid var(--gold); border-radius: var(--r); padding: 10px 14px 12px; }
.ezel-kop { display: flex; align-items: center; gap: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; color: var(--gold-d); }
.ezel-tekst { margin-top: 4px; font-size: 16px; }
.ezel-tekst p { margin: 2px 0; }
.ezel-bron { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.video-lijst { display: grid; gap: 8px; }
a.kaart.video { text-decoration: none; color: inherit; }


/* ---------- baasronde ---------- */
.levens { display: inline-flex; gap: 2px; align-items: center; }
.leven { color: var(--red); display: inline-flex; transition: color .2s, transform .2s; }
.leven.weg { color: var(--line); transform: scale(.85); }
.voortgang.baas { background: color-mix(in srgb, var(--red) 18%, var(--surface2)); }
.voortgang.baas > i { background: var(--red); }
.node.baas { width: 92px; height: 92px; }
