@font-face { font-family: "Krijt"; src: url(fonts/patrick-hand.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito-var.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --nacht: #0f1724; --paneel: #182234; --lijn: #2a3750; --tekst: #e9eef7; --zacht: #9fb0c8;
  --bord: #24493a; --bord2: #1d3d30; --krijt: #f4f1e8; --geel: #ffe27a; --roze: #ff9fb3; --accent: #ffb347;
  --schaal: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--nacht); color: var(--tekst); font-family: Nunito, system-ui, sans-serif; display: flex; flex-direction: column; overflow-x: hidden; }
button { font: inherit; }

.kop { display: flex; align-items: center; gap: 16px; padding: 10px 20px; border-bottom: 1px solid var(--lijn); }
.merk { font-weight: 800; letter-spacing: .2px; white-space: nowrap; }
.merkblok { background: var(--accent); color: var(--nacht); padding: 2px 6px; border-radius: 5px; margin-right: 2px; }
.merk b { color: var(--accent); }
.lesnaam { flex: 1; color: var(--zacht); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proef { font-size: 12px; border: 1px solid var(--lijn); color: var(--zacht); padding: 3px 8px; border-radius: 99px; white-space: nowrap; }

.voortgang { list-style: none; display: flex; gap: 6px; margin: 0; padding: 10px 20px 0; overflow-x: auto; scrollbar-width: none; }
.voortgang li { flex: 1 0 auto; min-width: 28px; font-size: 12px; color: var(--zacht); padding: 6px 10px; border-radius: 99px; background: var(--paneel); text-align: center; white-space: nowrap; transition: background .3s, color .3s; }
.voortgang li.nu { background: var(--accent); color: var(--nacht); font-weight: 800; }
.voortgang li.af { background: #2f5a45; color: #d6f2e2; }

.podium { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(280px, 2fr) 3fr; gap: 16px; padding: 14px 20px; }

.beeld { position: relative; border-radius: 16px; overflow: hidden; background: #111a29; box-shadow: 0 10px 30px rgba(0,0,0,.35); min-height: 0; }
.docent, .docent svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#ogen.knip { transform: scaleY(.1); }
#hoofd { transition: transform .05s linear; }
.live { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.45); font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 6px; letter-spacing: 1px; }
.live i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; margin-right: 6px; animation: knipper 1.4s infinite; }
@keyframes knipper { 50% { opacity: .25; } }
.naamkaart { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.55); padding: 6px 12px; border-radius: 8px; font-weight: 800; }
.naamkaart small { font-weight: 600; color: var(--accent); margin-left: 6px; }
.ondertitel { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); width: min(92%, 560px); margin: 0; text-align: center; font-size: 17px; line-height: 1.35; background: rgba(0,0,0,.62); padding: 8px 14px; border-radius: 10px; opacity: 0; transition: opacity .25s; }
.ondertitel.aan { opacity: 1; }

.bord { position: relative; border-radius: 16px; min-height: 0; overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.06), transparent 60%), linear-gradient(160deg, var(--bord), var(--bord2));
  border: 12px solid #7a5434; box-shadow: inset 0 0 40px rgba(0,0,0,.45), 0 10px 30px rgba(0,0,0,.35); }
.bordinhoud { position: absolute; inset: 0 0 34px 0; padding: 22px 30px; display: flex; flex-direction: column; gap: calc(6px * var(--schaal));
  font-family: Krijt, "Comic Sans MS", cursive; color: var(--krijt); font-size: calc(clamp(26px, 3.4vw, 46px) * var(--schaal)); line-height: 1.15;
  text-shadow: 0 0 1px rgba(255,255,255,.6), 0 0 6px rgba(255,255,255,.12); transition: opacity .25s; }
.bordinhoud.wissen { opacity: 0; }
.bregel { white-space: pre-wrap; }
.bregel.geel { color: var(--geel); } .bregel.roze { color: var(--roze); }
.bregel.titel { font-size: 1.25em; color: var(--geel); }
.cursor::after { content: ""; display: inline-block; width: .08em; height: .9em; background: rgba(255,255,255,.5); margin-left: 2px; vertical-align: -0.1em; }
.cirkel { position: relative; display: inline-block; }
.cirkel::before { content: ""; position: absolute; inset: -0.08em -0.28em; border: 3px solid var(--roze); border-radius: 50%; transform: rotate(-4deg); animation: teken .5s ease-out both; }
@keyframes teken { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.splits { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 1.6em; row-gap: .1em; margin: .1em 0 .2em .4em; }
.splits .boven { grid-column: 1 / 3; justify-self: center; }
.splits svg { grid-column: 1 / 3; width: 3.2em; height: .9em; justify-self: center; overflow: visible; }
.splits svg path { stroke: var(--krijt); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 60; animation: lijn .5s .2s ease-out both; }
.splits .onder { opacity: 0; animation: verschijn .3s ease-out forwards; }
.splits .onder:nth-of-type(2) { animation-delay: .5s; } .splits .onder:nth-of-type(3) { animation-delay: .75s; }
@keyframes verschijn { to { opacity: 1; } }
@keyframes lijn { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }

.glijn { width: 100%; max-width: 760px; height: auto; overflow: visible; margin: .1em 0; }
.glijn text { font-family: Krijt, cursive; fill: var(--krijt); }
.glijn .as, .glijn .streep { stroke: var(--krijt); stroke-width: 2.5; stroke-linecap: round; }
.glijn .boog { fill: none; stroke: var(--geel); stroke-width: 3.5; stroke-linecap: round; }
.glijn .landing { fill: var(--geel); }
.glijn .sprong { fill: var(--geel); font-size: 26px; }

.krijtbak { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: linear-gradient(#8a6040, #6a4529); display: flex; align-items: center; gap: 10px; padding: 0 30px; }
.krijtbak i { width: 34px; height: 8px; border-radius: 3px; background: var(--krijt); }
.krijtbak i.geel { background: var(--geel); } .krijtbak i.roze { background: var(--roze); }
.wisser { margin-left: auto; width: 70px; height: 14px; border-radius: 3px; background: linear-gradient(#ddd 0 40%, #3a3a46 40%); }

.invoer { position: absolute; right: 18px; bottom: 40px; background: rgba(15,23,36,.92); border: 1px solid var(--lijn); border-radius: 14px; padding: 12px; width: 236px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.antwoord { font-family: Krijt, cursive; font-size: 40px; text-align: center; background: var(--bord2); border-radius: 8px; padding: 2px 0; margin-bottom: 10px; min-height: 56px; color: var(--geel); }
.toetsen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.toetsen button { padding: 10px 0; font-size: 20px; font-weight: 800; border: 0; border-radius: 9px; background: #26344c; color: var(--tekst); cursor: pointer; }
.toetsen button:hover { background: #31425f; }
.toetsen .klaar { background: var(--accent); color: var(--nacht); }
.toetsen .weg { font-size: 15px; }

.start { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,15,25,.72); backdrop-filter: blur(3px); z-index: 5; padding: 20px; }
.startkaart { background: var(--paneel); border: 1px solid var(--lijn); border-radius: 18px; padding: 28px 30px; max-width: 460px; text-align: center; }
.startkaart h1 { margin: 4px 0 10px; font-size: 32px; }
.startkaart p { color: var(--zacht); line-height: 1.5; }
.label { color: var(--accent) !important; font-weight: 800; margin: 0; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
.klein { font-size: 13px; }

.knop { background: #26344c; color: var(--tekst); border: 1px solid var(--lijn); padding: 10px 18px; border-radius: 10px; font-weight: 800; cursor: pointer; }
.knop:hover:not(:disabled) { background: #31425f; }
.knop:disabled { opacity: .45; cursor: default; }
.knop.groot { background: var(--accent); color: var(--nacht); border: 0; font-size: 20px; padding: 14px 30px; margin: 8px 0; }
.knop:focus-visible, .toetsen button:focus-visible { outline: 3px solid var(--geel); outline-offset: 2px; }

.bediening { display: flex; gap: 10px; align-items: center; padding: 0 20px 14px; }
.score { margin-left: auto; color: var(--zacht); font-weight: 700; }

@media (max-width: 860px) {
  .podium { grid-template-columns: 1fr; grid-template-rows: 34vh minmax(330px, 1fr); padding: 10px 12px; gap: 10px; }
  .kop { padding: 8px 12px; gap: 10px; } .lesnaam { display: none; }
  .voortgang { padding: 8px 12px 0; }
  .voortgang li { font-size: 0; padding: 0; height: 8px; min-width: 0; }
  .bordinhoud { padding: 14px 16px; font-size: calc(28px * var(--schaal)); }
  .bord { border-width: 9px; }
  .ondertitel { font-size: 15px; bottom: 50px; }
  .invoer { left: 50%; right: auto; transform: translateX(-50%); bottom: 30px; width: min(260px, 92%); }
  .bediening { padding: 0 12px 12px; } .bediening .knop { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; } }
.start[hidden], .invoer[hidden] { display: none; }
