/* Basisstijl van de motor. Een pakket overschrijft dit met stijl/thema.css (variabelen en klassen). */
:root {
  --achtergrond: #f6f6f4;
  --tekst: #17181b;
  --tekst-zacht: #5b616b;
  --accent: #2f6fde;
  --accent-donker: #1f4fa8;
  --accent-licht: #9bbcf5;
  /* tekstkleur op een vlak in het accent (blokken van een structuur, schalen van een weegschaal) */
  --op-accent: #ffffff;
  --kaart: #ffffff;
  --rand: #dcdfe4;
  --chip: #eef0f3;
  --code-bg: #1b1d22;
  --code-tekst: #e6e8eb;
  --code-zacht: #6b7280;
  --code-kw: #c792ea;
  --code-str: #9ad19a;
  --code-num: #f5b64d;
  --code-fn: var(--code-tekst);
  --code-type: var(--code-tekst);
  --terminal-bg: #0f1114;
  --fout: #e5484d;
  --fout-licht: #ffb3b5;
  --font-titel: system-ui, sans-serif;
  --font-tekst: system-ui, sans-serif;
  --font-code: ui-monospace, "Cascadia Code", Consolas, monospace;
  /* Handschrift in een schetsdiagram; een pakket kan er een eigen font voor zetten (bv. Caveat). */
  --font-hand: var(--font-titel);
  --radius: 14px;
  /* lagen van een reis-vracht, per niveau (1 = onderste); de kern (de inhoud zelf) is neutraal */
  --laag-1: #7d8590;
  --laag-2: #1f9d6b;
  --laag-3: #2f6fde;
  --laag-4: #d9782b;
  --laag-5: #8e5cc4;
  --laag-6: #c2477a;
  --laag-7: #b8901c;
  --laag-8: #138a9c;
  --laag-kern: #3a3f47;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 1920px; height: 1080px; overflow: hidden; background: var(--achtergrond); }
#root { position: relative; width: 1920px; height: 1080px; overflow: hidden; background: var(--achtergrond);
  font-family: var(--font-tekst); color: var(--tekst); }
.clip { position: absolute; inset: 0; }
.scene { padding: 110px 150px 200px; display: flex; flex-direction: column; gap: 36px; }
/* stappenclip: geen ondertitels, dus de ruimte onderaan is vrij */
.scene.stappen { padding-bottom: 90px; }

.kicker { font-family: var(--font-titel); font-weight: 700; font-size: 26px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-donker); }
.titel { font-family: var(--font-titel); font-weight: 700; font-size: 64px; line-height: 1.05; letter-spacing: -0.015em; }
.titel-streep { width: 110px; height: 8px; border-radius: 4px; background: var(--accent); }
.kop { display: flex; flex-direction: column; gap: 14px; }

/* titel */
.scene-titel { flex-direction: row; align-items: center; gap: 90px; padding-bottom: 150px; }
.scene-titel .links { flex: 1 1 0; display: flex; flex-direction: column; gap: 26px; }
.scene-titel .titel { font-size: 112px; }
.scene-titel .ondertitel { font-size: 38px; line-height: 1.4; color: var(--tekst-zacht); max-width: 900px; }
.scene-titel .rechts { width: 720px; flex-shrink: 0; }
.scene-titel .titel-icoon { display: block; width: 420px; height: 420px; margin: 0 auto; object-fit: contain; }
.scene-titel .kop-icoon { width: 130px; height: 130px; object-fit: contain; object-position: left center; }
/* EU-basisicoon "AI" (met menselijke regie): rechtsboven, naast de voortgangsbalk en boven stickers (het mag niet onder iets anders liggen) */
.ai-label { position: absolute; top: 34px; right: 50px; z-index: 6; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ai-label img { height: 80px; }
.ai-label span { font-size: 24px; font-weight: 600; color: var(--tekst-zacht); text-align: right; max-width: 380px; }

/* kaart met beeld */
.beeldkaart { background: var(--kaart); border-radius: var(--radius); border-top: 6px solid var(--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,.07); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.beeldkaart img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; display: block; background: #eee; }
.chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip { font-weight: 600; font-size: 26px; background: var(--chip); border-radius: 999px; padding: 8px 22px; }
.scene-beeld .midden { flex: 1 1 0; display: flex; justify-content: center; align-items: flex-start; min-height: 0; }
/* De prent krijgt de volle ruimte tussen kop en ondertitel; de chips liggen op de prent in plaats van eronder. */
.scene-beeld .beeldkaart { position: relative; width: 1180px; margin-top: -20px; padding: 14px; }
.scene-beeld .midden:first-child .beeldkaart { width: 1380px; margin-top: 0; }
.scene-beeld .beeldkaart img { aspect-ratio: 16 / 9; }
.scene-beeld .chips { position: absolute; left: 34px; bottom: 34px; right: 34px; }
.scene-beeld .chip { box-shadow: 0 2px 8px rgba(0,0,0,.18); }

/* code */
.scene-code .midden { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 26px; align-items: center; justify-content: center; }
.codeblok { width: 1620px; background: var(--code-bg); border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.codeblok .kopje { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-code); font-size: 24px; color: var(--code-zacht); padding: 16px 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
.codeblok .run { font-size: 26px; color: var(--code-zacht); display: inline-block; }
.codeblok .regels { padding: 22px 0; position: relative; }
.coderegel { position: relative; display: flex; font-family: var(--font-code); font-size: var(--code-px, 34px); line-height: 1.7; color: var(--code-tekst); white-space: pre; padding: 0 30px; }
.coderegel .nr { width: 2.2em; color: var(--code-zacht); flex-shrink: 0; position: relative; }
.coderegel .licht { position: absolute; inset: 0; background: color-mix(in srgb, var(--accent) 22%, transparent); border-left: 6px solid var(--accent); }
.coderegel .licht.fout { background: color-mix(in srgb, var(--fout) 26%, transparent); border-left-color: var(--fout); }
.coderegel .tekst { position: relative; display: inline-block; }
/* Typen: de breedte groeit in stappen van één teken; de rechterrand is de cursor. */
.coderegel .typ { display: inline-block; overflow: hidden; vertical-align: top; box-sizing: content-box; border-right: .12em solid transparent; }
.coderegel svg { position: absolute; overflow: visible; pointer-events: none; }
.coderegel svg path { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
.coderegel .cirkel { top: -.12em; height: 1.95em; }
.coderegel .cirkel path { stroke: var(--accent); stroke-width: 8; }
.coderegel .kronkel { bottom: .08em; height: .32em; }
/* ingeklapte methode (code.inklappen), zoals in een editor */
.coderegel .vouw { color: var(--code-zacht); }
.coderegel .kronkel path { stroke: var(--fout); stroke-width: 7; }

/* notities naast de code (stappenclip): posities en pijlen berekent compositie.ts (notitieOpbouw) */
.nt-zone { position: relative; width: 1620px; }
.nt-pijlen { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 2; }
.nt-pijlen path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.nt-pijlen .lijn { stroke-dasharray: 1; stroke-dashoffset: 1; }
.nt-blok { position: absolute; box-sizing: border-box; padding: 20px 22px; font-size: 30px; line-height: 1.3; font-weight: 600;
  color: var(--tekst); background: var(--kaart); border-left: 6px solid var(--accent); border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.08); }

/* terminal onder de code */
.terminal { width: 1620px; background: var(--terminal-bg); color: var(--code-tekst); border-radius: var(--radius); overflow: hidden;
  font-family: var(--font-code); box-shadow: 0 10px 30px rgba(0,0,0,.12); display: flex; flex-direction: column; min-height: 0; }
/* Past de uitvoer niet, dan valt (zoals in een echte terminal) de bovenkant weg, niet de laatste regel. */
.terminal .uitregels { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.terminal .kopbalk { flex-shrink: 0; }
.terminal .kopbalk { display: flex; align-items: center; gap: 14px; padding: 12px 28px; font-size: 26px; letter-spacing: .08em; color: var(--code-zacht); border-bottom: 1px solid rgba(255,255,255,.08); }
.terminal .prompt { color: var(--accent); font-weight: 600; }
.terminal .uitregels { padding: 18px 28px 22px; font-size: 32px; line-height: 1.45; }
.terminal .uitregel { white-space: pre-wrap; word-break: break-word; }
.terminal.fout { border: 3px solid var(--fout); }
.terminal.fout .kopbalk { background: var(--fout); color: #fff; font-weight: 700; border-bottom: 0; }
.terminal.fout .uitregels { color: var(--fout-licht); font-size: 32px; }
.waarschuwing { width: 34px; height: 34px; overflow: visible; transform-origin: 50% 60%; }
.waarschuwing path { fill: #fff; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.waarschuwing .uitroep { fill: none; stroke: var(--fout); stroke-width: 2.6; stroke-linecap: round; }
.flits { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, transparent 30%, var(--fout) 100%); pointer-events: none; }

/* kerncijfer */
.scene-kerncijfer { align-items: center; justify-content: center; text-align: center; padding-bottom: 210px; }
.scene-kerncijfer .titel { font-size: 52px; color: var(--tekst-zacht); font-weight: 600; }
.kernrij { display: flex; align-items: center; justify-content: center; gap: 48px; }
.kern-icoon { width: 240px; height: 240px; object-fit: contain; flex-shrink: 0; }
.kernwaarde { font-family: var(--font-titel); font-weight: 700; font-size: 300px; line-height: .95; color: var(--accent); }
.kernlabel { font-size: 46px; line-height: 1.35; color: var(--tekst-zacht); max-width: 1200px; }

/* personage */
.scene-personage { flex-direction: row; align-items: center; justify-content: center; gap: 70px; }
.personage-img { width: 520px; height: 620px; object-fit: contain; image-rendering: pixelated; }
.ballon { position: relative; max-width: 900px; background: var(--kaart); border: 5px solid var(--tekst); border-radius: 22px;
  padding: 40px 48px; font-size: 52px; font-weight: 650; line-height: 1.3; box-shadow: 10px 10px 0 var(--tekst); }
.ballon .naam { display: block; font-family: var(--font-code); font-size: 24px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-donker); margin-bottom: 12px; font-weight: 600; }
/* typende ballon: de tekens staan er al (onzichtbaar), drie bollen tonen dat het personage typt */
.ballon-tekst { position: relative; display: block; }
.ballon .woord { white-space: nowrap; }
.ballon .typt { position: absolute; left: 0; top: .45em; display: flex; gap: 12px; }
.ballon .typt i { width: 18px; height: 18px; border-radius: 50%; background: var(--tekst-zacht); }

/* onderbreking: een personage schuift rechts binnen, de scène vervaagt even (zie beurtAnimatie in compositie.ts) */
.onderbreking { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.ob-waas { position: absolute; inset: 0; background: color-mix(in srgb, var(--achtergrond) 78%, transparent); }
.onderbreking .ob-fig { position: absolute; right: 110px; bottom: 150px; width: 400px; height: 470px; }
.ob-ballon { position: absolute; right: 540px; bottom: 400px; max-width: 860px; transform-origin: 100% 100%; }
.ob-ballon::after { content: ""; position: absolute; right: -34px; bottom: 34px; width: 0; height: 0;
  border-left: 34px solid var(--tekst); border-top: 18px solid transparent; border-bottom: 18px solid transparent; }
.zin .spreker { font-family: var(--font-code); font-size: 26px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-donker); align-self: center; margin-right: 6px; }

/* opsomming */
/* Eén punt tegelijk is actief (ster in het accent); vorige punten zakken weg, zie compositie.ts. */
.punten { display: flex; flex-direction: column; margin-top: 10px; border-top: 2px solid var(--rand); }
.punt { display: flex; align-items: center; gap: 34px; padding: 28px 0; border-bottom: 2px solid var(--rand); font-size: 48px; line-height: 1.25; }
.punt .pnr { display: flex; align-items: center; gap: 18px; width: 120px; flex-shrink: 0; font-family: var(--font-code); font-size: 30px; color: var(--tekst-zacht); }
.punt .ster { position: relative; color: var(--rand); font-size: 34px; line-height: 1; }
.punt .ster-aan { position: absolute; left: 0; top: 0; color: var(--accent); }
.punten.met-iconen .pnr { width: 160px; }
.punt .picoon { width: 72px; height: 72px; object-fit: contain; }
.punt .ptekst { flex: 1 1 auto; min-width: 0; }
.punt .ptekst b { font-weight: 750; }
.punt .pcode { flex-shrink: 0; font-family: var(--font-code); font-size: 32px; white-space: nowrap; color: var(--tekst);
  background: color-mix(in srgb, var(--accent) 8%, var(--kaart)); border: 2px solid var(--rand); border-radius: 10px; padding: 12px 24px; }

/* sticker: icoon dat rechtsboven op een woord inspringt (zie compositie.ts) */
.sticker { position: absolute; top: 60px; right: 120px; width: 210px; height: 210px; display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 5; filter: drop-shadow(0 6px 12px rgba(0,0,0,.14)); }
.sticker img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ondertitels */
.ondertitels { pointer-events: none; }
.zin { position: absolute; left: 0; right: 0; bottom: 64px; display: flex; justify-content: center; }
.zin .pil { background: var(--kaart); border: 1px solid var(--rand); border-radius: 999px; padding: 16px 40px; display: flex; gap: 14px;
  font-family: var(--font-tekst); font-size: 40px; font-weight: 500; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.zin .w { position: relative; color: var(--tekst); }
.zin .w .ul { position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; border-radius: 3px; background: var(--accent); transform-origin: left center; }

/* camera rond het codeblok (de camera schaalt, het codeblok zelf schudt bij een fout) */
.camera { position: relative; }

/* prent: kader dat de zoom bijsnijdt; het masker laat de prent zich van links naar rechts tekenen */
.beeldkaart .raam { overflow: hidden; border-radius: 8px; }
.beeldkaart .raam img { border-radius: 0;
  --onthul: 125%;
  -webkit-mask-image: linear-gradient(100deg, #000 calc(var(--onthul) - 22%), transparent var(--onthul));
  mask-image: linear-gradient(100deg, #000 calc(var(--onthul) - 22%), transparent var(--onthul)); }

/* voortgangsbalk met een stip per scène */
.voortgang { pointer-events: none; }
.vg-spoor { position: absolute; left: 150px; right: 150px; top: 46px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--tekst) 9%, transparent); }
.vg-vul { position: absolute; inset: 0; border-radius: 3px; background: var(--accent); transform-origin: left center; }
.vg-spoor .stip { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--achtergrond); border: 3px solid color-mix(in srgb, var(--tekst) 22%, transparent); }

/* geheugen: variabelen links, blokken rechts, pijlen voor verwijzingen (vaste posities, zie geheugenOpbouw) */
.geheugen { position: absolute; inset: 0; }
.gh-pijlen { position: absolute; inset: 0; width: 1920px; height: 1080px; overflow: visible; pointer-events: none; }
.gh-pijlen .lijn { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.gh-pijlen .kop { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.gh-var { position: absolute; display: flex; border-radius: var(--radius); overflow: hidden;
  background: var(--kaart); border: 3px solid var(--tekst); box-shadow: 6px 6px 0 color-mix(in srgb, var(--tekst) 15%, transparent); }
.gh-var .naam { flex: 1; display: flex; align-items: center; padding-left: 26px; font-family: var(--font-code); font-weight: 600; white-space: nowrap; }
.gh-var .vak { position: relative; flex-shrink: 0; border-left: 3px solid var(--tekst); background: color-mix(in srgb, var(--tekst) 5%, transparent); }
.gh-var .bol { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--accent); transform: scale(0); }
.gh-blok { position: absolute; }
.gh-blok .label { height: 40px; font-family: var(--font-code); font-size: 24px; letter-spacing: .06em; text-transform: uppercase; color: var(--tekst-zacht); }
.gh-blok .cellen { display: flex; }
.gh-blok .cel { position: relative; background: var(--kaart); border: 3px solid var(--tekst); margin-left: -3px; }
.gh-blok .cel:first-child { margin-left: 0; border-radius: var(--radius) 0 0 var(--radius); }
.gh-blok .cel:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.gh-blok .idx { position: absolute; left: 0; right: 0; top: calc(100% + 8px); text-align: center; font-family: var(--font-code); font-size: 24px; color: var(--tekst-zacht); }
.geheugen .w { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-code); font-weight: 600; white-space: nowrap; }
.w.scr { color: var(--accent-donker); }
/* een gekopieerde waarde die van haar bron naar haar plek vliegt (MotionPath, zie compositie.ts) */
.gh-vlieger { position: absolute; left: 0; top: 0; z-index: 4; padding: .15em .5em; border-radius: 12px; background: var(--kaart);
  border: 4px solid var(--accent); font-family: var(--font-code); font-weight: 700; white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.gh-blok .ring { position: absolute; inset: -12px; border: 6px solid var(--accent); border-radius: 18px; }

/* zonder stem: de ondertitel is de tekst, een hele zin tegelijk en groter */
.ondertitels.lezen .zin { bottom: 56px; }
.ondertitels.lezen .zin .pil { border-radius: 20px; font-size: 46px; line-height: 1.3; max-width: 1560px; text-align: center; display: block; padding: 18px 44px; }

/* geheugen naast code: blokken onder de variabelen, het label rechts zodat de pijl van boven vrij binnenkomt */
.geheugen.smal .gh-blok .label { text-align: right; }

/* doorlopen: code links (meteen volledig), paneel rechts. De balk volgt de stappen, gelopen regels blijven getint. */
.naast { position: absolute; left: 150px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.naast .codeblok, .naast .terminal { width: 100%; }
.naast .codeblok { overflow: visible; }
.naast .uitregels { overflow: hidden; }
.coderegel .gelopen { position: absolute; inset: 0; background: color-mix(in srgb, var(--accent) 9%, transparent); }
/* Evaluatie: ballon onder (of boven) de regel; de versies liggen op elkaar, zodat de ballon niet verspringt. */
.eval { position: absolute; z-index: 3; top: calc(100% - .15em); display: grid; padding: .1em .5em; border-radius: 12px;
  background: var(--kaart); color: var(--tekst); border: 4px solid var(--accent); font-weight: 700; white-space: pre;
  box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.eval.boven { top: auto; bottom: calc(100% - .15em); }
.eval > span { grid-area: 1 / 1; }
.eval .waar { color: var(--waar, #23955a); }
.eval .onwaar { color: var(--fout); }
.eval .scr { color: var(--accent-donker); }

/* flowchart (vaste posities uit dagre, zie flowchartOpbouw) */
.flowchart { position: absolute; overflow: visible; }
.fc-knoop .vorm { fill: var(--kaart); stroke: var(--tekst); stroke-width: 3.5; stroke-linejoin: round; }
.fc-start .vorm, .fc-einde .vorm { fill: color-mix(in srgb, var(--tekst) 7%, var(--kaart)); }
.fc-keuze .vorm { fill: color-mix(in srgb, var(--accent) 7%, var(--kaart)); }
.fc-knoop .aan { fill: color-mix(in srgb, var(--accent) 22%, var(--kaart)); stroke: var(--accent); stroke-width: 6; stroke-linejoin: round; }
.fc-tekst { fill: var(--tekst); font-family: var(--font-tekst); font-weight: 600; }
.fc-tekst.code { font-family: var(--font-code); }
.fc-pijl .lijn, .fc-spoor .lijn { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.fc-pijl .lijn { stroke: var(--tekst-zacht); stroke-width: 3.5; }
.fc-pijl .kop { fill: none; stroke: var(--tekst-zacht); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.fc-pijl .label rect { fill: var(--achtergrond); }
.fc-pijl .label text { fill: var(--tekst-zacht); font-family: var(--font-code); font-weight: 700; }
.fc-spoor .lijn { stroke: var(--accent); stroke-width: 7; }
.fc-stip { fill: var(--accent); stroke: var(--kaart); stroke-width: 5; }
.fc-spoor .kop { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }

/* voorspel: vraag en keuzes, een timer tijdens de bedenktijd, dan het antwoord op dezelfde plek (zie voorspelAnimatie) */
.vs { position: absolute; display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.vs-vraag { font-family: var(--font-titel); font-weight: 700; font-size: 56px; line-height: 1.2; }
.vs-keuzes { display: grid; gap: 22px; }
.vs-keuzes.rooster { grid-template-columns: 1fr 1fr; }
.vs-keuze { position: relative; display: flex; align-items: center; gap: 24px; padding: 22px 30px; background: var(--kaart);
  border: 3px solid var(--rand); border-radius: var(--radius); font-size: 40px; line-height: 1.25; }
.vs-keuze .aan { position: absolute; inset: -3px; border: 5px solid var(--accent); border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 14%, transparent); }
.vs-keuze .letter { position: relative; flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: var(--chip); font-family: var(--font-code); font-weight: 700; font-size: 30px; }
.vs-keuze .ktekst { position: relative; flex: 1 1 auto; min-width: 0; }
.vs-keuze .ok { position: relative; flex-shrink: 0; font-size: 52px; font-weight: 800; color: var(--accent); }
.vs-onder { display: grid; justify-items: start; align-items: center; min-height: 160px; }
.vs-onder > * { grid-area: 1 / 1; }
.vs-timer { display: flex; align-items: center; gap: 30px; }
.vs-klok { position: relative; width: 150px; height: 150px; }
.vs-klok svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; rotate: -90deg; }
.vs-klok circle { fill: none; stroke-width: 10; }
.vs-klok .spoor { stroke: var(--rand); }
.vs-klok .rest { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.vs-klok .cijfer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-code); font-weight: 700; font-size: 60px; }
.vs-timer .hint { font-size: 40px; font-weight: 600; color: var(--tekst-zacht); }
.vs-antwoord { display: flex; flex-direction: column; gap: 6px; background: var(--kaart); border-left: 10px solid var(--accent);
  border-radius: var(--radius); padding: 22px 36px; box-shadow: 0 6px 18px rgba(0,0,0,.08); max-width: 100%; }
.vs-antwoord .label { font-family: var(--font-code); font-size: 24px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-donker); font-weight: 600; }
.vs-antwoord .waarde { font-size: 52px; font-weight: 700; line-height: 1.2; }
/* naast code: smaller, keuzes onder elkaar */
.vs.smal { gap: 30px; }
.vs.smal .vs-vraag { font-size: 46px; }
.vs.smal .vs-keuze { font-size: 34px; padding: 16px 24px; gap: 20px; }
.vs.smal .vs-keuze .letter { width: 52px; height: 52px; font-size: 26px; }
.vs.smal .vs-klok { width: 120px; height: 120px; }
.vs.smal .vs-klok .cijfer { font-size: 48px; }
.vs.smal .vs-antwoord .waarde { font-size: 44px; }

/* tracetabel: kop vast, rijen schuiven op als ze niet meer passen */
.tt { position: absolute; font-family: var(--font-code); }
.tt-kop, .tt-rij { display: flex; position: relative; }
.tt-kop > div { display: flex; align-items: center; justify-content: center; font-weight: 700; border-bottom: 4px solid var(--tekst); white-space: nowrap; }
.tt-raam { position: relative; overflow: hidden; }
.tt-rij { border-bottom: 2px solid var(--rand); }
.tt-aan { position: absolute; inset: 0; background: color-mix(in srgb, var(--accent) 16%, transparent); border-left: 6px solid var(--accent); }
.tt-cel { position: relative; }
.tt .w { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 600; white-space: nowrap; }

/* schets: handgetekend schema (rough.js, vaste paden uit schetsOpbouw); elke pennentrek tekent zich apart.
   Dash "1 2", niet "1": anders staat er bij offset 1 een streepje van lengte 0 op het einde, en dat toont een
   ronde lijnkap als stip. */
.schets { position: absolute; overflow: visible; }
.schets .pen { fill: none; stroke: var(--tekst); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; }
.schets .sk-lijn .pen { stroke: var(--tekst-zacht); stroke-width: 3; }
.schets .sk-kleur .pen { stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 4; }
.schets .sk-ring .pen { stroke: var(--accent); stroke-width: 6; }
.schets .sk-tekst { fill: var(--tekst); font-family: var(--font-hand); font-weight: 600; }
.schets .sk-label { fill: var(--tekst-zacht); font-family: var(--font-hand); font-weight: 600;
  paint-order: stroke; stroke: var(--achtergrond); stroke-width: 12px; stroke-linejoin: round; }

/* structuur: groepen met blokken die binnenvallen (server/structuur.ts). Alles staat op vaste posities in één raam,
   dat de camera kan verschuiven. Geen transform inline: GSAP zet de beginstanden. */
.stru-raam { position: absolute; overflow: hidden; }
.stru { position: absolute; inset: 0; transform-origin: 0 0; }
.stru-groep { position: absolute; inset: 0; }
.stru-vlak { position: absolute; background: var(--kaart); border: 2px solid var(--rand); border-radius: 12px; }
.stru-label { position: absolute; width: 250px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.stru-titel { font-family: var(--font-titel); font-weight: 800; font-size: 34px; line-height: 1.05; color: var(--accent-donker); overflow-wrap: anywhere; }
.stru-duur { font-weight: 600; font-size: 24px; color: var(--tekst-zacht); }
.stru-blok { position: absolute; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 14px 18px; border-radius: 10px;
  color: var(--op-accent); transform-origin: 50% 100%; box-shadow: 0 6px 0 rgba(0,0,0,.12); }
.stru-blok.tint-accent { background: var(--accent); }
.stru-blok.tint-donker { background: var(--tekst-zacht); }
.stru-blok.tint-licht { background: var(--accent-licht); color: var(--tekst); }
.stru-blok.compact { flex-direction: row; align-items: center; gap: 14px; padding: 8px 14px; }
.stru-icoon { flex: none; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.88); padding: 10px; display: block; }
.stru-icoon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.stru-blok.compact .stru-icoon { width: 52px; height: 52px; padding: 8px; }
.stru-naam { font-family: var(--font-titel); font-weight: 800; font-size: 28px; line-height: 1.1; }
.stru-sub { font-weight: 600; font-size: 21px; line-height: 1.15; margin-top: 4px; opacity: .88; }
.stru-blok.compact .stru-naam { font-size: 25px; }
.stru-blok.compact .stru-sub { font-size: 19px; margin-top: 2px; }
.stru-haak { position: absolute; height: 34px; border: 4px solid var(--accent-donker); border-bottom: 0; border-radius: 8px 8px 0 0; transform-origin: 0 50%; }
.stru-haaklabel { position: absolute; padding: 0 10px; background: var(--kaart); font-family: var(--font-titel); font-weight: 800; font-size: 24px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent-donker); line-height: 32px; white-space: nowrap; }
.stru-pijlen { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.stru-pijlen path { fill: none; stroke: var(--tekst); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.stru-pijlen path.kop { stroke-dasharray: none; stroke-dashoffset: 0; }
.stru-badgevak { position: absolute; }
.stru-badgevak.midden { width: 240px; text-align: center; }
.stru-badgevak:not(.midden) { margin-top: -22px; }
.stru-badge { display: inline-block; background: var(--kaart); border: 3px solid var(--accent); border-radius: 999px; padding: 4px 16px;
  font-family: var(--font-titel); font-weight: 800; font-size: 26px; white-space: nowrap; }

/* weegschaal: twee zaken afgewogen (server/weegschaal.ts) */
.scene-weegschaal .ws { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ws-svg { height: 560px; width: auto; overflow: visible; transform-origin: 50% 50%; }
.ws-paal { fill: var(--tekst); }
.ws .touw { stroke: var(--tekst-zacht); stroke-width: 4; }
.ws-schaal { fill: var(--tekst-zacht); }
.ws-tekst { fill: var(--op-accent); font-family: var(--font-titel); font-weight: 800; font-size: 31px; }
.ws-slot { font-family: var(--font-titel); font-weight: 800; font-size: 56px; color: var(--accent-donker); border-bottom: 8px solid var(--accent); padding: 0 12px 4px; }

/* miniatuur: thumbnail van de clip voor een videolijst (server/miniatuur.ts), 1280x720 of 1080x1080. Op klein formaat
   moet de titel leesbaar blijven: groot, vet, op een effen vlak, nooit over de prent. Een pakket mag dit overschrijven. */
.miniatuur { position: absolute; inset: 0; display: flex; overflow: hidden; background: var(--achtergrond); color: var(--tekst); font-family: var(--font-tekst); }
.miniatuur.vierkant { flex-direction: column; }
.mn-tekst { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 22px; padding: 60px 56px 56px 68px; }
.miniatuur.vierkant .mn-tekst { padding: 48px 64px 60px; }
.mn-kicker { font-family: var(--font-titel); font-weight: 700; font-size: 26px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-donker);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-titelvak { flex: 1 1 0; min-height: 0; display: flex; align-items: center; }
.mn-titel { font-family: var(--font-titel); font-weight: 700; line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; hyphens: auto; hyphenate-limit-chars: 12 6 6; }
.mn-voet { display: flex; align-items: center; gap: 16px; }
.mn-streep { width: 120px; height: 12px; border-radius: 6px; background: var(--accent); margin-right: auto; }
.mn-chip { font-family: var(--font-titel); font-weight: 700; font-size: 28px; padding: 6px 20px; border-radius: 999px; background: var(--tekst); color: var(--achtergrond); }
.mn-beeld { position: relative; order: 2; width: 50%; flex-shrink: 0; overflow: hidden; }
.miniatuur.vierkant .mn-beeld { order: 0; width: 100%; height: 50%; }
.mn-beeld img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Een prent vult haar vlak; de accentrand scheidt ze van de titel. */
.mn-beeld.prent { border-left: 12px solid var(--accent); }
.miniatuur.vierkant .mn-beeld.prent { border-left: 0; border-bottom: 12px solid var(--accent); }
.mn-beeld.prent img { object-fit: cover; }
/* Een personage staat onderaan in zijn vlak, een icoon in het midden, op een zachte accentvlek. */
.mn-beeld.personage, .mn-beeld.icoon { background: radial-gradient(circle closest-side at 50% 55%, color-mix(in srgb, var(--accent) 22%, transparent) 0 80%, transparent 80.5%); }
.mn-beeld.personage img { inset: 8% 6% 0; width: 88%; height: 92%; object-fit: contain; object-position: center bottom; }
.mn-beeld.icoon img { inset: 18%; width: 64%; height: 64%; object-fit: contain; }
/* Zonder beeld: de titel krijgt de hele breedte, met een grote accentvorm in de hoek. */
.mn-vorm { position: absolute; right: -170px; bottom: -230px; width: 560px; height: 560px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 20%, transparent); }
.miniatuur.zonder .mn-tekst { padding-right: 120px; }

/* reis: stations, lijnen, een vracht in lagen die reist; binnenkant van een station; de vracht opengeklapt (zie reis.ts) */
.rs-raam { position: absolute; overflow: hidden; }
.rs-wereld { position: absolute; inset: 0; transform-origin: 0 0; }
.rs-lijnen { position: absolute; left: 0; top: 0; overflow: visible; }
.rs-draad { stroke: color-mix(in srgb, var(--tekst) 30%, transparent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rs-gloed { fill: none; stroke: var(--accent); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 70%, transparent)); }
.rs-etiket { position: absolute; width: 240px; text-align: center; font-family: var(--font-code); font-size: 21px; color: var(--tekst-zacht); }
.rs-station { position: absolute; width: 300px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rs-toestel { position: relative; display: flex; align-items: center; justify-content: center; background: var(--kaart);
  border: 3px solid var(--tekst); border-radius: 22px; box-shadow: 6px 6px 0 color-mix(in srgb, var(--tekst) 14%, transparent); padding: 12%; }
.rs-toestel img { position: absolute; left: 14%; top: 14%; width: 72%; height: 72%; object-fit: contain; display: block; }
.rs-letter { font-family: var(--font-titel); font-weight: 800; font-size: 56px; color: var(--accent-donker); }
.rs-ring { position: absolute; inset: -16px; border: 6px solid var(--accent); border-radius: 30px; }
.rs-naam { margin-top: 8px; padding: 0 10px; border-radius: 8px; background: var(--achtergrond); font-family: var(--font-titel); font-weight: 800; font-size: 30px; line-height: 1.1; text-align: center; }
.rs-sub { padding: 0 8px; border-radius: 6px; background: var(--achtergrond); font-family: var(--font-code); font-size: 21px; color: var(--tekst-zacht); text-align: center; white-space: nowrap; }
.rs-vracht { position: absolute; left: 0; top: 0; border-radius: 10px; background: var(--kaart); border: 3px solid var(--tekst);
  box-shadow: 0 6px 14px rgba(0,0,0,.18); overflow: visible; }
.rs-streep { position: absolute; left: 0; top: 5px; bottom: 5px; width: 20px; border-radius: 4px; }
.rs-streep.kern { width: 40px; }
.rs-kruis { position: absolute; left: 50%; top: 50%; margin: -34px 0 0 -26px; font-size: 60px; line-height: 1; font-weight: 900; color: var(--fout);
  text-shadow: 0 0 4px var(--kaart), 0 0 10px var(--kaart); }
.rs-bit { position: absolute; left: 0; top: 0; font-family: var(--font-code); font-weight: 800; font-size: 34px; color: var(--accent-donker);
  text-shadow: 0 0 6px var(--achtergrond), 0 0 12px var(--achtergrond); }

.rs-binnen { position: absolute; left: 0; top: 0; background: var(--kaart); border: 3px solid var(--tekst); border-radius: 24px;
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--tekst) 12%, transparent); display: flex; flex-direction: column; padding: 18px 40px 22px; }
.rs-binnenkop { height: 66px; display: flex; align-items: center; gap: 18px; font-family: var(--font-titel); font-weight: 800; font-size: 36px; }
.rs-toestel.klein { width: 60px; height: 60px; border-radius: 14px; padding: 8px; box-shadow: none; border-width: 2px; }
.rs-toestel.klein .rs-letter { font-size: 30px; }
.rs-binnensub { font-family: var(--font-code); font-weight: 500; font-size: 24px; color: var(--tekst-zacht); }
.rs-binnenlijf { flex: 1; min-height: 0; display: flex; gap: 70px; align-items: center; justify-content: center; }
.rs-stapel { position: relative; width: 460px; display: flex; flex-direction: column; }
.rs-niveau { position: relative; height: var(--rij); display: flex; align-items: center; gap: 18px; padding: 0 22px; font-size: calc(var(--rij) * .46); font-weight: 700; }
.rs-niveau::before { content: ""; position: absolute; inset: 3px 0; border-radius: 10px; border: 3px solid var(--kleur);
  background: color-mix(in srgb, var(--kleur) 12%, var(--kaart)); }
.rs-niveau.uit { color: var(--tekst-zacht); opacity: .45; }
.rs-niveau.uit::before { border-style: dashed; border-color: var(--rand); background: transparent; }
.rs-nnr, .rs-nnaam { position: relative; z-index: 1; }
.rs-nnr { width: 1.4em; font-family: var(--font-code); color: var(--kleur); }
.rs-niveau.uit .rs-nnr { color: var(--tekst-zacht); }
.rs-nlicht { position: absolute; inset: 3px 0; border-radius: 10px; background: color-mix(in srgb, var(--kleur) 38%, transparent); }
.rs-klimmer { position: absolute; right: -54px; top: 0; height: var(--rij); width: 40px; display: flex; align-items: center; }
.rs-klimmer::after { content: ""; width: 0; height: 0; border-top: 16px solid transparent; border-bottom: 16px solid transparent; border-right: 26px solid var(--accent); }
.rs-tabel { position: relative; min-width: 520px; }
.rs-ttitel { font-family: var(--font-code); font-size: 24px; letter-spacing: .06em; text-transform: uppercase; color: var(--tekst-zacht); margin-bottom: 12px; }
.rs-tabel table { border-collapse: separate; border-spacing: 0; font-family: var(--font-code); font-size: 30px; }
.rs-tabel th { text-align: left; font-family: var(--font-tekst); font-size: 24px; color: var(--tekst-zacht); padding: 6px 26px; border-bottom: 3px solid var(--tekst); }
.rs-tabel tr { position: relative; }
.rs-tabel td { position: relative; z-index: 1; padding: 10px 26px; border-bottom: 2px solid var(--rand); white-space: nowrap; }
.rs-tabel td.rs-rlicht { position: absolute; z-index: 0; left: 0; right: 0; top: 0; bottom: 0; padding: 0; border: 0;
  background: color-mix(in srgb, var(--accent) 22%, transparent); border-left: 6px solid var(--accent); }
.rs-leeg { position: absolute; left: 0; top: 96px; padding: 10px 26px; font-size: 26px; font-style: italic; color: var(--tekst-zacht); }

.rs-balk { position: absolute; }
.rs-laag { position: absolute; left: 0; top: 0; height: 100%; display: flex; flex-direction: column; border-radius: 14px; overflow: visible;
  background: color-mix(in srgb, var(--kleur) 9%, var(--kaart)); border: 3px solid var(--kleur); }
.rs-laagkop { padding: 10px 18px; background: var(--kleur); color: #fff; font-family: var(--font-titel); font-weight: 800; font-size: 28px;
  border-radius: 10px 10px 0 0; white-space: nowrap; }
.rs-velden { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 10px 18px; }
.rs-veld { position: relative; display: flex; align-items: baseline; gap: 12px; }
.rs-veldnaam { font-size: 21px; font-weight: 600; color: var(--tekst-zacht); white-space: nowrap; }
.rs-veldwaarde { display: grid; font-family: var(--font-code); font-weight: 700; font-size: 27px; white-space: nowrap; }
.rs-veldwaarde > span { grid-area: 1 / 1; }
.rs-veldring { position: absolute; inset: -6px -10px; border: 4px solid var(--accent); border-radius: 10px; }
