:root {
  /* Layout: één kolom op telefoonbreedte, links uitgelijnd, veel wit. Het veld als lijntekening is het enige ornament; de middencirkel is de voortgangsring. Lijsten op haarlijnen, geen kaders tenzij iets een knop of kaart is. */
  --paper: #FAFBF9;
  --sheet: #FFFFFF;
  --soft: #F0F4F1;
  --ink: #101F19;
  --mute: #5F7068;
  --line: #DFE6E1;
  --green: #1C7A52;
  --green-soft: #E4F2EA;
  --amber: #96580A;
  --amber-soft: #FBF1DF;
  --red: #B3261E;
  --red-soft: #FBEAE8;
  --btn: #101F19;
  --on-btn: #FFFFFF;
  --font-display: "Geist", system-ui, -apple-system, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, sans-serif;
  --r: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1411; --sheet: #151E1A; --soft: #19241F; --ink: #E9F0EB; --mute: #98AAA1; --line: #27332E;
    --green: #63C992; --green-soft: #12301F; --amber: #EDB45A; --amber-soft: #33260F; --red: #F0877E; --red-soft: #381A17;
    --btn: #E9F0EB; --on-btn: #0D1411;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0D1411; --sheet: #151E1A; --soft: #19241F; --ink: #E9F0EB; --mute: #98AAA1; --line: #27332E;
  --green: #63C992; --green-soft: #12301F; --amber: #EDB45A; --amber-soft: #33260F; --red: #F0877E; --red-soft: #381A17;
  --btn: #E9F0EB; --on-btn: #0D1411;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: .005em; }
p { margin: 0; }

.app { position: relative; height: 100%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; background: var(--paper); }

/* Kop */
.top { flex: none; padding: 14px 20px 10px; display: flex; align-items: center; gap: 10px; min-height: 56px; }
.top h1 { font-size: 22px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top.tab { padding: 26px 20px 6px; }
.top.tab h1 { font-size: 40px; white-space: normal; }
.top .meta { font-size: 13px; color: var(--mute); white-space: nowrap; }
.back { background: none; border: 0; padding: 8px 8px 8px 0; margin: -8px 0 -8px -4px; display: inline-flex; align-items: center; cursor: pointer; min-height: 44px; min-width: 40px; color: var(--mute); }
.back svg { width: 24px; height: 24px; }

/* Inhoud */
#view { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 20px 48px; display: flex; flex-direction: column; gap: 32px; }
#view > * { flex: none; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.tight { gap: 6px; }
.sec-h { font-size: 26px; }
.lead { color: var(--mute); font-size: 16px; max-width: 58ch; }
.muted { color: var(--mute); }
.small { font-size: 14px; }
svg.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Tabbalk */
.tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--sheet); border-top: 1px solid var(--line); padding: 4px 6px 6px; }
.tabs button { background: none; border: 0; padding: 8px 2px 6px; cursor: pointer; font-size: 12px; color: var(--mute); display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; min-height: 52px; border-radius: 10px; }
.tabs button[aria-current="page"] { color: var(--ink); font-weight: 600; }
.tabs button[aria-current="page"] svg.ic { stroke: var(--green); stroke-width: 2; }
.tabs .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: var(--sheet); font-size: 11px; font-weight: 600; line-height: 18px; }

/* Knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--btn); background: var(--btn); color: var(--on-btn); font-weight: 600; cursor: pointer; text-align: center; line-height: 1.2; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.quiet { border-color: var(--line); background: transparent; color: var(--ink); font-weight: 400; min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn.danger { background: var(--red); border-color: var(--red); color: var(--sheet); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 150px; }

/* Start: het veld */
.hero { display: flex; flex-direction: column; gap: 18px; }
.pitch { display: block; width: 100%; height: auto; }
.pitch .ln { fill: none; stroke: var(--line); stroke-width: 1.5; }
.pitch .ring-bg { fill: var(--paper); stroke: var(--line); stroke-width: 5; }
.pitch .ring { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; }
.pitch .n { font-family: var(--font-display); font-weight: 500; font-size: 46px; fill: var(--ink); }
.pitch .l { font-size: 12px; fill: var(--mute); }
.hero p { font-size: 18px; max-width: 34ch; }

/* Lijstregels */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 0; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; cursor: pointer; min-height: 60px; }
.rows .row:last-child { border-bottom: 1px solid var(--line); }
.row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row .t { font-weight: 600; line-height: 1.3; }
.row .s { font-size: 14px; color: var(--mute); line-height: 1.35; }
.row .chev { width: 18px; height: 18px; color: var(--mute); flex: none; }
.row.static { cursor: default; }
.row.off { opacity: .6; }
.badge-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; flex: none; color: var(--mute); }
.badge-ic.done { background: var(--green-soft); color: var(--green); }
.num { font-family: var(--font-display); font-weight: 500; font-size: 44px; line-height: 1; width: 40px; flex: none; text-align: center; font-variant-numeric: tabular-nums; }
.row.off .num { color: var(--mute); }
.pct { flex: none; width: 40px; height: 40px; }
.pct circle { fill: none; stroke-width: 4; }
.pct .bg { stroke: var(--line); }
.pct .fg { stroke: var(--green); stroke-linecap: round; }
.pct text { font-size: 11px; font-weight: 600; fill: var(--ink); font-family: var(--font-body); }

/* Vakken van de weekherhaling */
.boxes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; }
.boxes div { font-size: 12px; color: var(--mute); text-align: center; display: flex; flex-direction: column; gap: 4px; }
.boxes i { display: block; height: 56px; background: var(--soft); border-radius: 6px; position: relative; overflow: hidden; }
.boxes i b { position: absolute; left: 0; right: 0; bottom: 0; background: var(--green); border-radius: 6px 6px 0 0; }
.boxes span { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }

/* Lesblokken */
.lesson { display: flex; flex-direction: column; gap: 18px; max-width: 62ch; }
.lesson > h2 { font-size: 36px; }
.lesson > h2 + p { font-size: 19px; line-height: 1.5; }
.lesson h3 { font-size: 23px; margin-top: 10px; }
.lesson ul, .lesson ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.lesson li::marker { color: var(--green); font-weight: 600; }
.note { padding: 2px 0 2px 16px; border-left: 3px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.note .lab { font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: .02em; color: var(--mute); }
.note.upd { border-left-color: var(--amber); }
.note.upd .lab { color: var(--amber); }
.note.warn { border-left-color: var(--red); }
.note.warn .lab { color: var(--red); }
.note.tip { border-left-color: var(--green); }
.note.tip .lab { color: var(--green); }
.note.man { border-left-style: dashed; color: var(--mute); }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; }
.srcs a, .srcs span { background: var(--soft); border-radius: 999px; padding: 2px 10px; text-decoration: none; color: var(--mute); }
.srcs a { color: var(--ink); }
.pref { font-size: 13px; color: var(--mute); }

.tbl { overflow-x: auto; margin: 0 -4px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.4; }
th, td { text-align: left; vertical-align: top; padding: 10px 10px 10px 4px; border-top: 1px solid var(--line); }
thead th { border-top: 0; font-size: 13px; font-weight: 400; color: var(--mute); padding-bottom: 6px; }
tbody tr:last-child td { border-bottom: 1px solid var(--line); }
tbody td:first-child { font-weight: 600; }
th, td { overflow-wrap: anywhere; hyphens: auto; }
thead th:first-child, tbody td:first-child { overflow-wrap: break-word; hyphens: manual; }
.tbl.dense table { font-size: 14px; }
.tbl.dense th, .tbl.dense td { padding-right: 8px; }

.flow { list-style: none; margin: 0; padding: 0 !important; counter-reset: f; gap: 0 !important; }
.flow li { counter-increment: f; position: relative; padding: 3px 0 18px 46px; min-height: 44px; }
.flow li::before { content: counter(f); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); font-family: var(--font-display); font-weight: 500; font-size: 17px; display: grid; place-items: center; background: var(--paper); z-index: 1; }
.flow li::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: 0; width: 1.5px; background: var(--line); }
.flow li:last-child { padding-bottom: 0; }
.flow li:last-child::after { display: none; }

.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.path { background: var(--sheet); border: 1px solid var(--line); border-top: 4px solid; border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.path.red { border-top-color: var(--red); }
.path.green { border-top-color: var(--green); }
.path h4 { font-size: 21px; }
.path ul { font-size: 15px; gap: 6px; }
.path .then { font-weight: 600; font-size: 15px; }

/* Tikbare schema's */
.figure { display: flex; flex-direction: column; gap: 12px; }
.figure svg { display: block; width: 100%; height: auto; max-width: 400px; margin: 0 auto; }
.figure .cap { font-size: 13px; color: var(--mute); }
svg text { font-family: var(--font-body); fill: var(--ink); }
.hit { cursor: pointer; }
.hit .halo { fill: none; stroke: var(--ink); stroke-width: 2; opacity: 0; }
.hit.on .halo { opacity: 1; }
.detail { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; animation: rise .18s ease-out; }
.detail h4 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.detail dl { margin: 0; display: grid; gap: 8px; }
.detail dt { font-size: 13px; color: var(--mute); }
.detail dd { margin: 0; }
.dot { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 14px; flex: none; }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.strip button { background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 0 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; }
.strip button b { font-family: var(--font-display); font-size: 34px; line-height: .95; }
.strip button span { font-size: 10.5px; color: var(--mute); }
.strip button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.strip button[aria-pressed="true"] span { color: inherit; opacity: .8; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }

/* Tempo-trainer */
.tempo { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.tempo-read { display: flex; align-items: baseline; gap: 8px; }
.tempo-n { font-family: var(--font-display); font-weight: 500; font-size: 64px; line-height: .9; font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.gauge { position: relative; height: 14px; border-radius: 7px; background: var(--soft); }
.gauge .band { position: absolute; top: 0; bottom: 0; left: 40%; width: 20%; background: var(--green-soft); border-left: 2px solid var(--green); border-right: 2px solid var(--green); }
.gauge .needle { position: absolute; top: -5px; width: 4px; height: 24px; border-radius: 2px; background: var(--ink); left: 0; margin-left: -2px; transition: left .15s; opacity: 0; }
.gauge-l { position: relative; height: 18px; margin-top: 5px; font-size: 12px; color: var(--mute); }
.gauge-l span { position: absolute; transform: translateX(-50%); }
.gauge-l span:first-child, .gauge-l span:last-child { transform: none; }
.pad { align-self: center; width: 148px; height: 148px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sheet); font-family: var(--font-display); font-weight: 500; font-size: 26px; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; display: grid; place-items: center; line-height: 1.1; }
.pad:active, .pad.hit-now { background: var(--ink); color: var(--paper); }
.pad.beat { box-shadow: 0 0 0 8px var(--green-soft); }
.tempo-msg { min-height: 3em; }

/* Oefenen */
.steps { display: flex; gap: 5px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.done { background: var(--ink); }
.steps i.s2 { background: var(--green); }
.steps i.s1 { background: var(--amber); }
.steps i.s0 { background: var(--red); }
.tag { display: inline-block; font-size: 13px; font-weight: 600; border: 1.5px solid var(--ink); padding: 1px 10px; border-radius: 999px; }
.situation { font-size: 21px; line-height: 1.4; max-width: 56ch; }
.intro { font-size: 16px; color: var(--mute); padding-left: 16px; border-left: 3px solid var(--line); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { text-align: left; background: var(--sheet); border: 1.5px solid var(--line); border-radius: var(--r); padding: 15px 16px; cursor: pointer; min-height: 56px; display: flex; flex-direction: column; gap: 6px; line-height: 1.4; }
.opt:not([disabled]):active { border-color: var(--ink); }
.opt[disabled] { cursor: default; color: inherit; opacity: 1; }
.opt .verdict { font-size: 13px; font-weight: 600; }
.opt .fb { font-size: 15px; color: var(--mute); }
.opt.s2, .opt.s1, .opt.s0, .opt.best { animation: rise .18s ease-out; }
.opt.s2 { border-color: var(--green); background: var(--green-soft); }
.opt.s2 .verdict { color: var(--green); }
.opt.s1 { border-color: var(--amber); background: var(--amber-soft); }
.opt.s1 .verdict { color: var(--amber); }
.opt.s0 { border-color: var(--red); background: var(--red-soft); }
.opt.s0 .verdict { color: var(--red); }
.opt.s2 .fb, .opt.s1 .fb, .opt.s0 .fb { color: var(--ink); }
.opt.best { border-color: var(--green); border-style: dashed; }
.opt.best .verdict { color: var(--green); }
.opt.dim { opacity: .5; }

.placed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; counter-reset: d; }
.placed li { counter-increment: d; padding: 10px 0 10px 44px; position: relative; border-top: 1px solid var(--line); }
.placed.live li:last-child { animation: rise .18s ease-out; }
.placed li:first-child { border-top: 0; }
.placed li::before { content: counter(d); position: absolute; left: 0; top: 9px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--sheet); font-family: var(--font-display); font-weight: 500; font-size: 16px; display: grid; place-items: center; }
.placed li small { display: block; color: var(--mute); font-size: 14px; margin-top: 2px; }
.pool { display: flex; flex-direction: column; gap: 10px; }
.tile { text-align: left; background: var(--sheet); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px; cursor: pointer; min-height: 54px; line-height: 1.4; }
.tile.wrong { border-color: var(--red); background: var(--red-soft); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.hint { color: var(--red); font-size: 15px; min-height: 1.5em; }

.result { display: flex; flex-direction: column; gap: 14px; }
.score { font-family: var(--font-display); font-weight: 500; font-size: 84px; line-height: .85; font-variant-numeric: tabular-nums; }
.score small { font-size: 28px; color: var(--mute); font-weight: 600; }
.result ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.result li::marker { color: var(--green); }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tally div { border-top: 3px solid var(--line); padding-top: 8px; font-size: 13px; color: var(--mute); }
.tally b { display: block; font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--ink); }
.tally .y { border-color: var(--green); } .tally .m { border-color: var(--amber); } .tally .n { border-color: var(--red); }

.rolegrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rolebtn { display: flex; align-items: center; gap: 10px; background: var(--sheet); border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px; cursor: pointer; min-height: 56px; text-align: left; font-weight: 600; }
.rolebtn[disabled] { cursor: default; color: inherit; }
.rolebtn.s2 { border-color: var(--green); background: var(--green-soft); }
.rolebtn.s0 { border-color: var(--red); background: var(--red-soft); }

/* Kaart die omdraait */
.flip { perspective: 1200px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; display: block; width: 100%; }
.flip-in { display: grid; transition: transform .45s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; }
.flip.on .flip-in { transform: rotateY(180deg); }
.face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--sheet); border: 1.5px solid var(--line); border-radius: 18px; padding: 24px 20px; min-height: 250px; display: flex; flex-direction: column; gap: 14px; }
.face.rear { transform: rotateY(180deg); border-color: var(--ink); }
.face .side { font-size: 13px; color: var(--mute); }
.face .q { font-size: 22px; line-height: 1.35; font-weight: 600; flex: 1; }
.face .a { font-size: 18px; flex: 1; }
.face .turn { font-size: 14px; color: var(--mute); display: flex; align-items: center; gap: 6px; }
.rate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rate .btn { padding: 10px 4px; font-size: 15px; color: var(--ink); min-height: 54px; }
.rate .no { background: var(--red-soft); border-color: var(--red); }
.rate .mid { background: var(--amber-soft); border-color: var(--amber); }
.rate .yes { background: var(--green-soft); border-color: var(--green); }

/* Mondeling */
.oral { gap: 18px; }
.vchip { display: inline-block; font-weight: 600; font-size: 14px; padding: 3px 14px; border-radius: 999px; }
.vchip.yes { background: var(--green-soft); color: var(--green); }
.vchip.mid { background: var(--amber-soft); color: var(--amber); }
.vchip.no { background: var(--red-soft); color: var(--red); }
.vchip.none { background: var(--soft); color: var(--mute); }
.mic-on { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mic-on i { width: 12px; height: 12px; border-radius: 50%; background: var(--red); animation: pulse 1.1s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.heard { font-size: 19px; min-height: 3.2em; padding-left: 16px; border-left: 3px solid var(--line); }
.rate .sug { outline: 2.5px solid var(--ink); outline-offset: 2px; }
kbd { font: inherit; font-size: 13px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; background: var(--sheet); white-space: nowrap; }

/* Open vraag */
textarea { width: 100%; min-height: 180px; font: inherit; color: var(--ink); background: var(--sheet); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px; resize: vertical; }
textarea:focus { border-color: var(--ink); outline: none; }
.rubric { list-style: none; margin: 0; padding: 0; }
.rubric li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); align-items: start; }
.rubric li:last-child { border-bottom: 1px solid var(--line); }
.rubric input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green); }
.rubric .ai { display: inline-block; font-size: 12px; font-weight: 600; padding: 0 8px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.ai.y { background: var(--green-soft); color: var(--green); }
.ai.h { background: var(--amber-soft); color: var(--amber); }
.ai.n { background: var(--red-soft); color: var(--red); }
.answer { white-space: pre-wrap; }

/* Naslag */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--soft); border-radius: 999px; padding: 4px; }
.seg button { background: none; border: 0; padding: 9px 2px; cursor: pointer; font-size: 14px; min-height: 40px; border-radius: 999px; color: var(--mute); }
.seg button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 31, 25, .12); }
.diff { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.diff h4 { font-size: 23px; }
.diff .was { color: var(--mute); font-size: 15px; padding-left: 14px; border-left: 3px dashed var(--line); }
.diff .now { padding-left: 14px; border-left: 3px solid var(--amber); }
.diff .lab { font-size: 13px; display: block; color: var(--mute); }
.diff .now .lab { color: var(--amber); font-weight: 600; }
.srclist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; overflow-wrap: anywhere; }
.field { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
select { font: inherit; color: var(--ink); background: var(--sheet); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; min-height: 44px; }

.toast { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--btn); color: var(--on-btn); padding: 10px 18px; border-radius: 999px; font-size: 15px; max-width: calc(100% - 40px); z-index: 5; text-align: center; animation: rise .2s ease-out; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .flip-in, .gauge .needle { transition: none; }
}
@media (max-width: 370px) {
  body { font-size: 16px; }
  .top.tab h1 { font-size: 34px; }
  .strip button b { font-size: 28px; }
  #view { padding-left: 16px; padding-right: 16px; }
  .top { padding-left: 16px; padding-right: 16px; }
}

/* invoervelden */
input[type="text"], input[type="date"] { width: 100%; font: inherit; color: var(--ink); background: var(--sheet); border: 1.5px solid var(--line); border-radius: var(--r); padding: 10px 14px; min-height: 48px; }
input[type="text"]:focus, input[type="date"]:focus { border-color: var(--ink); outline: none; }
textarea.low { min-height: 96px; }
.watch { margin-top: 28px; }

/* opstelling op het startscherm */
.pitch .pl { cursor: pointer; }
.pitch .pl-bg { fill: var(--paper); stroke: var(--line); stroke-width: 3.5; }
.pitch .pl-fg { fill: none; stroke: var(--green); stroke-width: 3.5; stroke-linecap: round; }
.pitch .pl text { font-family: var(--font-display); font-weight: 500; font-size: 18px; fill: var(--ink); }
.pitch .pl.off { cursor: default; }
.pitch .pl.off .pl-bg { stroke-dasharray: 3 4; stroke-width: 1.5; }
.pitch .pl.off text { fill: var(--mute); }
.pitch .gk .pl-bg { fill: var(--ink); stroke: var(--ink); }
.pitch .gk text { fill: var(--paper); }
.pitch .gk-ok { fill: none; stroke: var(--paper); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pitch .pl:focus-visible { outline: none; }
.pitch .pl:focus-visible .pl-bg { stroke: var(--ink); }
.pitch-cap { font-size: 13px; color: var(--mute); margin-top: -8px; }

/* hoofdstukomslag */
.cover { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: end; }
.cover-n { font-family: var(--font-display); font-weight: 500; font-size: 112px; line-height: .78; color: var(--green); font-variant-numeric: tabular-nums; }
.cover .sec-h { font-size: 34px; }
.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: -8px; }
.meter { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meter b { font-family: var(--font-display); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.meter b small { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--mute); }
.meter span { font-size: 13px; color: var(--mute); }
.meter i { display: block; height: 4px; background: var(--line); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.meter em { display: block; height: 100%; background: var(--green); border-radius: 2px; }
.grp { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--mute); padding: 20px 0 8px; letter-spacing: 0; }
.rows .grp:first-child { padding-top: 0; }

/* lesblokken: kerngetal, tijdlijn, aantikbare kaart, beslishulp */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.stats.one { grid-template-columns: 1fr; }
.stat { border-top: 3px solid var(--ink); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat b { font-family: var(--font-display); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-weight: 600; font-size: 15px; line-height: 1.3; }
.stat small { font-size: 13.5px; color: var(--mute); line-height: 1.35; }
.stat.red { border-top-color: var(--red); } .stat.red b { color: var(--red); }
.stat.amber { border-top-color: var(--amber); } .stat.amber b { color: var(--amber); }
.stat.green { border-top-color: var(--green); } .stat.green b { color: var(--green); }
.time { list-style: none; margin: 0; padding: 0; }
.time li { display: grid; grid-template-columns: 78px 1fr; gap: 0 16px; }
.time .when { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.2; text-align: right; padding-top: 1px; }
.time li > div { position: relative; border-left: 2px solid var(--line); padding: 0 0 20px 18px; display: flex; flex-direction: column; gap: 4px; }
.time li:last-child > div { border-left-color: transparent; padding-bottom: 0; }
.time li > div::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); box-sizing: border-box; }
.time p { margin: 0; color: var(--mute); font-size: 15px; }
.spot-n { fill: var(--paper); font-weight: 600; font-size: 13px; font-family: var(--font-body); }
.dotn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--paper); font-family: var(--font-body); font-size: 13px; font-weight: 600; flex: none; }
.detail ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.decide { display: flex; flex-direction: column; gap: 12px; }
.decide .dq { font-weight: 600; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 15px; color: var(--ink); background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 15px; min-height: 44px; cursor: pointer; text-align: left; }
.chip.out { border-color: var(--amber); background: var(--amber-soft); }
.chip.red { border-color: var(--red); background: var(--red-soft); }
.verdict-box { border-left: 3px solid var(--line); padding: 4px 0 4px 16px; display: flex; flex-direction: column; gap: 4px; }
.verdict-box h4 { font-size: 22px; }
.verdict-box p { margin: 0; }
.verdict-box.v1 { border-left-color: var(--amber); } .verdict-box.v1 h4 { color: var(--amber); }
.verdict-box.v2 { border-left-color: var(--red); } .verdict-box.v2 h4 { color: var(--red); }

.stat b, .stat span, .stat small { overflow-wrap: anywhere; }
.stat.long b { font-size: 30px; line-height: 1.1; }
.time li > div { min-width: 0; overflow-wrap: anywhere; }
.detail { min-width: 0; overflow-wrap: anywhere; }

h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }

ol.time > li { margin: 0; }

/* zoeken */
.top-btn { margin-left: auto; flex: none; background: none; border: 0; color: var(--ink); min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; cursor: pointer; }
.top-btn svg { width: 26px; height: 26px; }
.top.tab .top-btn { align-self: flex-start; margin-top: 4px; }
.top-btn:focus-visible, .chip:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.sbox { position: sticky; top: -12px; z-index: 2; background: var(--paper); padding: 12px 0 8px; margin-top: -12px; }
.sbox svg { position: absolute; left: 14px; top: 50%; margin-top: 2px; transform: translateY(-50%); width: 22px; height: 22px; color: var(--mute); pointer-events: none; }
input[type="search"] { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--sheet); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px 10px 46px; min-height: 52px; -webkit-appearance: none; appearance: none; }
input[type="search"]:focus { border-color: var(--ink); outline: none; }
.search .sec-h { font-size: 22px; }
.sfil .chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip[disabled] { opacity: .4; cursor: default; }
.chip .cnt { font-variant-numeric: tabular-nums; color: inherit; opacity: .7; }
.rows .sr > .row { border-bottom: 0; }
.rows .sr:last-child { border-bottom: 1px solid var(--line); }
.sr .snip { font-size: 14px; color: var(--ink); line-height: 1.45; margin-top: 3px; overflow-wrap: anywhere; }
.sr .chev { transition: transform .15s; }
.sr .chev.dn { transform: rotate(90deg); }
.sexp { display: flex; flex-direction: column; gap: 10px; padding: 0 0 18px 54px; }
.sexp p { margin: 0; }
mark.hit { background: var(--amber-soft); color: inherit; border-radius: 3px; box-shadow: 0 0 0 1px var(--amber); padding: 0 1px; }
mark.hit.cur { background: var(--amber); color: var(--paper); }
.hitbar { position: sticky; top: -12px; z-index: 3; display: flex; align-items: center; gap: 8px; background: var(--sheet); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; font-size: 14px; box-shadow: 0 2px 8px rgba(16, 31, 25, .08); }
.hitbar .hb-t { flex: 1; min-width: 0; color: var(--mute); }
.hitbar .chip { min-height: 36px; padding: 5px 13px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .sr .chev { transition: none; } }
.sfil { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 2px 20px; scrollbar-width: none; }
.sfil::-webkit-scrollbar { display: none; }
.sfil .chip { flex: none; min-height: 40px; padding: 7px 14px; }
@media (max-width: 380px) { .sfil { margin: 0 -16px; padding: 2px 16px; } }
input[type="search"]::-webkit-search-cancel-button { filter: grayscale(1); opacity: .6; }

/* zwakke plekken en toets */
.rank { font-family: var(--font-display); font-weight: 500; font-size: 22px; width: 40px; flex: none; text-align: center; color: var(--mute); font-variant-numeric: tabular-nums; }
.dots { display: flex; gap: 4px; margin-top: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dots i.y { background: var(--green); } .dots i.m { background: var(--amber); } .dots i.n { background: var(--red); }
.cscore .bar { display: block; height: 6px; border-radius: 3px; background: var(--soft); margin: 6px 0 3px; overflow: hidden; }
.cscore .bar i { display: block; height: 100%; border-radius: 3px; background: var(--green); }
.cscore.weakest .bar i { background: var(--red); }
.cscore.weakest .num { color: var(--red); }
.cscore .pctv { font-family: var(--font-display); font-weight: 500; font-size: 20px; min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.cscore.weakest .pctv { color: var(--red); }
.wtag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--red); background: var(--red-soft); border-radius: 999px; padding: 1px 9px; margin-left: 4px; vertical-align: 2px; white-space: nowrap; }
.tsel .chip { text-align: left; }
.tsel .chip b { font-variant-numeric: tabular-nums; margin-right: 2px; }
.tsel .chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.thead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ttime { font-family: var(--font-display); font-weight: 500; font-size: 22px; font-variant-numeric: tabular-nums; }
.ttime.over { color: var(--amber); }
.steps i.now { outline: 2px solid var(--ink); outline-offset: 1px; }
.opt.sel { border-color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.no-b { background: var(--red-soft); border-color: var(--red); color: var(--ink); }
.chs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: var(--mute); }
.chs b { color: var(--ink); font-variant-numeric: tabular-nums; }
.fouten { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 20px; }
.fouten p { margin: 0; }
.fouten li::marker { color: var(--red); font-weight: 600; }
.hist { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; align-items: end; max-width: 520px; }
.hist div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--mute); min-width: 0; }
.hist span { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hist i { display: block; width: 100%; max-width: 34px; height: 72px; background: var(--soft); border-radius: 6px; position: relative; overflow: hidden; }
.hist i b { position: absolute; left: 0; right: 0; bottom: 0; background: var(--green); }
.hist em { font-style: normal; white-space: nowrap; }
.hlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hlist li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.hlist li:last-child { border-bottom: 1px solid var(--line); }
.hlist b { font-variant-numeric: tabular-nums; }
.fouten p { font-size: 16px; }
.fouten p.small { font-size: 14px; }

/* geanimeerde stap-figuren */
.anim svg .tr { transition: transform .9s cubic-bezier(.4, 0, .2, 1), opacity .5s ease, stroke-dashoffset 1.1s cubic-bezier(.4, 0, .2, 1), fill .5s ease; }
.anim.still svg .tr { transition: none; }
.anim-dots { display: flex; gap: 5px; max-width: 400px; width: 100%; margin: 0 auto; }
.anim-dots i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s; }
.anim-dots i.done { background: var(--mute); } .anim-dots i.now { background: var(--ink); }
.anim-cap { min-height: 104px; display: flex; flex-direction: column; gap: 4px; }
.anim-cap h4 { font-size: 18px; margin: 0; } .anim-cap p { margin: 0; }
.anim-ctl { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.anim-ctl .btn { padding: 8px 6px; }
@media (prefers-reduced-motion: reduce) { .anim svg .tr, .anim-dots i { transition: none; } }

/* figuurstijl: vaste kleuren en lijnen voor anatomische tekeningen */
:root { --fig-skin: #E3EBE6; --fig-edge: #9DB1A7; --fig-shade: #C9D7CF; --fig-hair: #B9C8C0; --fig-ink: #4E6158; --fig-eye: #FFFFFF; --fig-lip: #CDB8B3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fig-skin: #26332D; --fig-edge: #4C5E56; --fig-shade: #1F2A25; --fig-hair: #34433C; --fig-ink: #A8BAB1; --fig-eye: #DCE5E0; --fig-lip: #5A4B48; } }
:root[data-theme="dark"] { --fig-skin: #26332D; --fig-edge: #4C5E56; --fig-shade: #1F2A25; --fig-hair: #34433C; --fig-ink: #A8BAB1; --fig-eye: #DCE5E0; --fig-lip: #5A4B48; }
.f-skin { fill: var(--fig-skin); stroke: var(--fig-edge); stroke-width: 2; stroke-linejoin: round; }
.f-shade { fill: var(--fig-shade); opacity: .7; }
.f-hair { fill: var(--fig-hair); stroke: var(--fig-edge); stroke-width: 1.5; stroke-linejoin: round; }
.f-line { fill: none; stroke: var(--fig-edge); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f-ink { fill: none; stroke: var(--fig-ink); stroke-linecap: round; }
.f-eye { fill: var(--fig-eye); stroke: var(--fig-ink); stroke-width: 1.8; stroke-linejoin: round; }
.f-iris { fill: var(--fig-ink); }
.f-lip { fill: var(--fig-lip); stroke: var(--fig-edge); stroke-width: 1.5; stroke-linejoin: round; }

/* realistische huidtinten voor anatomische figuren */
:root { --sk-hi: #F4E6DB; --sk: #E7D0C0; --sk-lo: #D0B19D; --sk-shadow: #A6826E; --sk-line: #8E6E5D; --hair: #3F322B; --hair-hi: #6A5649; --lip: #C99389; --lip-lo: #AC7269; --iris: #5D7280; --sclera: #FBF7F3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sk-hi: #C9B3A4; --sk: #B39A89; --sk-lo: #977D6C; --sk-shadow: #6A5244; --sk-line: #5C463A; --hair: #2A211D; --hair-hi: #463830; --lip: #9E6F67; --lip-lo: #82574F; --iris: #4C5D67; --sclera: #E2DAD3; } }
:root[data-theme="dark"] { --sk-hi: #C9B3A4; --sk: #B39A89; --sk-lo: #977D6C; --sk-shadow: #6A5244; --sk-line: #5C463A; --hair: #2A211D; --hair-hi: #463830; --lip: #9E6F67; --lip-lo: #82574F; --iris: #4C5D67; --sclera: #E2DAD3; }
.hd-fold { fill: none; stroke: var(--sk-lo); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hd-line { fill: none; stroke: var(--sk-line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hd-lid { fill: none; stroke: var(--sk-line); stroke-width: 2.4; stroke-linecap: round; }
.hd-strand { fill: none; stroke: var(--hair-hi); stroke-width: 1.2; stroke-linecap: round; opacity: .55; }

/* kleuren voor kleding, organen en bot in de figuren */
:root { --kit: #2F3D47; --kit-hi: #4A5A66; --kit-line: #1E2930; --o-lung: #DFA49B; --o-lung-hi: #F1C7BF; --o-lung-l: #B06F66; --o-heart: #A9473F; --o-heart-hi: #C9665C; --o-heart-l: #7E2F29; --o-liver: #9A4B3D; --o-liver-l: #6E3127; --o-stom: #D79A88; --o-stom-l: #A8695A; --o-spleen: #7E3D4C; --o-spleen-l: #5A2835; --o-kid: #B0604F; --o-kid-l: #7F3F32; --o-gut: #EBC3AB; --o-gut-l: #B98C74; --o-dia: #A0605A; --o-gut-hi: #F7DFCF; --o-col: #DDA98E; --o-col-l: #A9775F; --o-bone: #F2EADB; --o-bone-l: #B6A68C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --kit: #4E606C; --kit-hi: #677B88; --kit-line: #2B373F; --o-lung: #B47E77; --o-lung-hi: #C9978F; --o-lung-l: #8A5650; --o-heart: #8E3E37; --o-heart-hi: #A9544B; --o-heart-l: #652621; --o-liver: #7E3F33; --o-liver-l: #5A271F; --o-stom: #AF7D6F; --o-stom-l: #84564A; --o-spleen: #693443; --o-spleen-l: #47202C; --o-kid: #8F4F41; --o-kid-l: #66342A; --o-gut: #BC9A87; --o-gut-l: #8D6E5D; --o-dia: #84504B; --o-gut-hi: #CDB2A2; --o-col: #A9806C; --o-col-l: #7D5A49; --o-bone: #D9D0C1; --o-bone-l: #9A8C74; } }
:root[data-theme="dark"] { --o-gut-hi: #CDB2A2; --o-col: #A9806C; --o-col-l: #7D5A49; --kit: #4E606C; --kit-hi: #677B88; --kit-line: #2B373F; --o-lung: #B47E77; --o-lung-hi: #C9978F; --o-lung-l: #8A5650; --o-heart: #8E3E37; --o-heart-hi: #A9544B; --o-heart-l: #652621; --o-liver: #7E3F33; --o-liver-l: #5A271F; --o-stom: #AF7D6F; --o-stom-l: #84564A; --o-spleen: #693443; --o-spleen-l: #47202C; --o-kid: #8F4F41; --o-kid-l: #66342A; --o-gut: #BC9A87; --o-gut-l: #8D6E5D; --o-dia: #84504B; --o-bone: #D9D0C1; --o-bone-l: #9A8C74; }

/* Hoofdstukillustratie (Canva) onder de kop */
.cover-art { margin: 4px 0 0; }
.cover-art img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r); background: var(--green-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cover-art img { filter: brightness(.86) saturate(.92); } }
:root[data-theme="dark"] .cover-art img { filter: brightness(.86) saturate(.92); }

/* luchtstroom in de jaw thrust-animatie */
@keyframes airflow { to { stroke-dashoffset: -24; } }
.anim svg .jw-air:first-of-type, .anim svg path.jw-air[d^="M300"] { animation: airflow 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .anim svg path.jw-air { animation: none; } }

/* ---------- spelelement ---------- */
.season .lvl { display: grid; gap: 6px; }
.lvl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lvl-top b { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: .2px; }
.lvl-bar, .pstat-bar, .penclock { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.lvl-bar i, .pstat-bar i, .penclock i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.pstat-bar i { transition: width .7s ease, background-color .4s; }
.pstat { display: grid; gap: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); }
.pstat-top { display: flex; justify-content: space-between; align-items: baseline; }
.pstat-top b { font-size: 15px; text-transform: none; }
.pstat.ok b { color: var(--green); } .pstat.warn b { color: var(--amber); } .pstat.bad b { color: var(--red); }
.pstat.warn .pstat-bar i { background: var(--amber); } .pstat.bad .pstat-bar i { background: var(--red); }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ladder li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; color: var(--mute); background: var(--soft); }
.ladder li.done { color: var(--ink); }
.ladder li.now { color: var(--on-btn); background: var(--green); font-weight: 600; }
.ladder li small { font-variant-numeric: tabular-nums; }
.prizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 10px; }
.prize { display: grid; justify-items: center; align-content: start; text-align: center; gap: 3px; }
.prize b { font-size: 13px; line-height: 1.25; }
.prize span { font-size: 11.5px; line-height: 1.3; color: var(--mute); }
.prize:not(.on) b { color: var(--mute); }
.medal { width: 46px; height: 58px; }
.medal .rib { fill: var(--line); } .medal .disc { fill: var(--soft); stroke: var(--line); stroke-width: 2; } .medal .ring { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 2 2; }
.medal text { font: 700 13px var(--font-body); fill: var(--mute); }
.medal.on .rib { fill: var(--green); } .medal.on .disc { fill: #E3B21C; stroke: #B98A0E; } .medal.on .ring { stroke: #FFF3C4; stroke-dasharray: none; } .medal.on text { fill: #5A4300; }
/* penaltyserie */
.goal { position: relative; border-radius: var(--r); overflow: hidden; background: var(--green-soft); }
.goal img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; }
.goal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.goal .ball circle { fill: #fff; stroke: #1b1b1b; stroke-width: 1; } .goal .ball path { fill: #1b1b1b; }
.goal .ball { transform-box: fill-box; transform-origin: center; }
.goal.scored .ball { animation: kick-in .7s cubic-bezier(.2,.7,.3,1) forwards; }
.goal.saved .ball { animation: kick-saved .6s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes kick-in { to { transform: translate(-64px, -62px) scale(.55); } }
@keyframes kick-saved { to { transform: translate(-1px, -40px) scale(.6); } }
.goal-msg { position: absolute; top: 10px; right: 12px; padding: 4px 12px; border-radius: 99px; background: var(--green); color: #fff; font-weight: 500; font-family: var(--font-display); font-size: 20px; letter-spacing: .3px; }
.goal-msg.miss { background: var(--red); }
.pens { display: flex; gap: 8px; flex-wrap: wrap; }
.pens i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--sheet); }
.pens i.now { border-color: var(--ink); }
.pens i.in { background: var(--green); border-color: var(--green); }
.pens i.out { background: var(--red); border-color: var(--red); }
.penclock { height: 6px; } .penclock i { transition: width .2s linear; }
@media (prefers-reduced-motion: reduce) {
  .goal.scored .ball, .goal.saved .ball { animation-duration: .01s; }
  .pstat-bar i, .penclock i { transition: none; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .goal img { filter: brightness(.86) saturate(.92); } }
:root[data-theme="dark"] .goal img { filter: brightness(.86) saturate(.92); }

/* jeugdlaag */
.note.jeugd { border-left-color: #2F80C9; background: color-mix(in srgb, #2F80C9 7%, var(--sheet)); }
.note.jeugd .lab { color: #1F6AA8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .note.jeugd .lab { color: #7DB8EA; } }
:root[data-theme="dark"] .note.jeugd .lab { color: #7DB8EA; }

/* Met z'n tweeën: draaiboeken arts en fysio */
.seg.three { grid-template-columns: repeat(3, 1fr); }
.dotn.duo-a { background: var(--ink); }
.dotn.duo-f { background: var(--green); }
.dotn.duo-o { background: var(--mute); font-size: 10px; letter-spacing: -.02em; }
.duo-roles { display: flex; flex-direction: column; gap: 10px; }
.duo-roles > div { display: flex; gap: 12px; align-items: flex-start; }
.duo-roles p { margin: 0; }
.duo-ph { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.duo-ph > li { padding: 18px 0 22px; border-top: 1px solid var(--line); }
.duo-ph > li:first-child { border-top: 0; padding-top: 6px; }
.duo-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.duo-h h3 { font-size: 23px; margin: 0; }
.duo-h .when { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--mute); }
.duo-n { font-family: var(--font-display); font-weight: 500; font-size: 15px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-grid; place-items: center; align-self: center; flex: none; }
.duo-in { display: flex; flex-direction: column; gap: 14px; }
.duo-lane { display: grid; grid-template-columns: 26px 1fr; gap: 4px 12px; }
.duo-who { display: contents; }
.duo-who b { grid-column: 2; font-family: var(--font-display); font-size: 17px; letter-spacing: .02em; line-height: 26px; }
.duo-who .dotn { grid-row: 1; grid-column: 1; }
.duo-body { grid-column: 2; display: flex; flex-direction: column; gap: 8px; }
.duo-body ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.duo-body li::marker { color: var(--mute); }
.say { margin: 0; padding: 7px 13px; background: var(--soft); border-radius: 4px 16px 16px 16px; font-weight: 600; align-self: flex-start; max-width: 100%; }
.say::before { content: "\201C"; color: var(--mute); margin-right: 2px; }
.say::after { content: "\201D"; color: var(--mute); margin-left: 1px; }
.duo-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.duo-idle { margin: 0 0 0 38px; }
.duo-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; cursor: pointer; font-size: 15px; }
.duo-link .chev { width: 16px; height: 16px; flex: none; color: var(--mute); }
.duo-q { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.duo-q li::marker { color: var(--green); font-weight: 600; }

/* ---------- Typografie: rust (nov 2026) ----------
   Geist voor koppen en tekst: strak en modern.
   Leesregels rond 65 tekens, ruimere regelafstand, minder vet, meer lucht tussen blokken. */
body { font-size: 17.5px; line-height: 1.62; font-feature-settings: "kern", "liga"; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { line-height: 1.16; letter-spacing: -0.012em; font-variation-settings: "opsz" 48; }
strong, b { font-weight: 600; }
.top h1 { font-size: 21px; }
.top.tab h1 { font-size: 34px; }
.sec-h { font-size: 23px; }
.lead { font-size: 16.5px; line-height: 1.55; max-width: 60ch; }
#view { gap: 40px; padding-top: 16px; }
.stack { gap: 16px; }
.lesson { gap: 20px; max-width: 34em; }
.lesson > h2 { font-size: 31px; line-height: 1.12; }
.lesson > h2 + p { font-size: 19px; line-height: 1.55; color: var(--ink); }
.lesson h3 { font-size: 22px; margin-top: 16px; }
.lesson ul:not([class]), .lesson ol:not([class]) { padding-left: 1.15em; }
.lesson ul:not([class]) > li, .lesson ol:not([class]) > li { padding-left: 2px; }
.lesson li::marker { font-weight: 600; }
.note { gap: 6px; padding-top: 2px; padding-bottom: 2px; }
.note .lab { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.note p { font-size: 16.5px; line-height: 1.58; }
.row .t { font-weight: 600; }
.btn { font-weight: 600; letter-spacing: .005em; }
.num { font-size: 34px; width: 44px; font-variant-numeric: lining-nums tabular-nums; }
.pitch .n { font-size: 40px; }
.strip button b { font-size: 30px; }
.tempo-n { font-size: 58px; }
.score { font-size: 76px; }
.cover-n { font-size: 100px; }
.face .q { font-size: 21px; font-weight: 500; font-family: var(--font-display); line-height: 1.3; letter-spacing: -0.005em; }
.situation { font-size: 20px; line-height: 1.5; }
table { font-size: 15.5px; line-height: 1.45; }
tbody td:first-child { font-weight: 600; }
.srcs { font-size: 13px; }
.pref, .small { line-height: 1.5; }
@media (max-width: 370px) {
  body { font-size: 16.5px; }
  .top.tab h1 { font-size: 30px; }
  .lesson > h2 { font-size: 27px; }
}
.lesson li { line-height: 1.52; }
.note p { line-height: 1.52; }

h1, h2, h3, h4 { font-variation-settings: normal; line-height: 1.12; }
.note .lab { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; }
.face .q { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }

body { font-size: 17px; line-height: 1.6; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.028em; }

/* ---------- Knoppen met druk-effect (nov 2026) ----------
   Speels maar rustig: knoppen hebben een onderrand en zakken in bij indrukken, zoals in een game-menu.
   De primaire knop is groen; lesstof en lijsten blijven rustig. */
:root { --pbtn: #1C7A52; --pbtn-edge: #0F4F34; --on-pbtn: #FFFFFF; --edge: #C9D3CC; --press: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pbtn: #4FBF86; --pbtn-edge: #2A7A52; --on-pbtn: #0D1411; --edge: #33413A; } }
:root[data-theme="dark"] { --pbtn: #4FBF86; --pbtn-edge: #2A7A52; --on-pbtn: #0D1411; --edge: #33413A; }

.btn { background: var(--pbtn); border-color: var(--pbtn); color: var(--on-pbtn); box-shadow: 0 var(--press) 0 var(--pbtn-edge); transform: translateY(0); transition: transform .07s ease-out, box-shadow .07s ease-out, filter .15s, background-color .15s; margin-bottom: var(--press); -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.btn:not([disabled]):hover { filter: brightness(1.06); }
.btn:not([disabled]):active { transform: translateY(var(--press)); box-shadow: 0 0 0 var(--pbtn-edge); }
.btn.ghost, .btn.quiet { background: var(--sheet); border-color: var(--edge); color: var(--ink); box-shadow: 0 3px 0 var(--edge); margin-bottom: 3px; }
.btn.ghost:not([disabled]):active, .btn.quiet:not([disabled]):active { transform: translateY(3px); box-shadow: 0 0 0 var(--edge); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 var(--press) 0 color-mix(in srgb, var(--red) 60%, #000); }
.btn[disabled] { box-shadow: none; transform: none; }

/* beoordelen: gekleurde knoppen met een rand in hun eigen kleur */
.rate .btn { color: var(--ink); }
.rate .no, .btn.no-b { box-shadow: 0 var(--press) 0 color-mix(in srgb, var(--red) 55%, var(--paper)); }
.rate .mid { box-shadow: 0 var(--press) 0 color-mix(in srgb, var(--amber) 55%, var(--paper)); }
.rate .yes { box-shadow: 0 var(--press) 0 color-mix(in srgb, var(--green) 55%, var(--paper)); }

/* keuzes in scenario's, vragen, drills en rollen */
.opt, .tile, .rolebtn, .chip { box-shadow: 0 3px 0 var(--edge); transform: translateY(0); transition: transform .07s ease-out, box-shadow .07s ease-out, border-color .15s, background-color .15s; margin-bottom: 3px; touch-action: manipulation; }
.opt:not([disabled]):active, .tile:not([disabled]):active, .rolebtn:not([disabled]):active, .chip:not([disabled]):active { transform: translateY(3px); box-shadow: 0 0 0 var(--edge); }
.opt:not([disabled]):hover, .tile:not([disabled]):hover, .rolebtn:not([disabled]):hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.opt.s2, .opt.best, .rolebtn.s2 { box-shadow: 0 3px 0 color-mix(in srgb, var(--green) 60%, var(--paper)); }
.opt.s1 { box-shadow: 0 3px 0 color-mix(in srgb, var(--amber) 60%, var(--paper)); }
.opt.s0, .rolebtn.s0, .tile.wrong { box-shadow: 0 3px 0 color-mix(in srgb, var(--red) 60%, var(--paper)); }
.opt.sel { box-shadow: 0 3px 0 var(--ink); }
.opt.s2 .verdict::before { content: "✓ "; }
.opt.s0 .verdict::before { content: "✕ "; }
.opt.s2 { animation: pop .28s cubic-bezier(.3, 1.6, .5, 1); }
.opt.s0, .rolebtn.s0 { animation: shake .3s; }
.chip[disabled] { box-shadow: none; }

/* lijstregels: licht indrukken */
.row { transition: background-color .12s, transform .07s; }
.row:not(.static):active { background: var(--soft); transform: scale(.985); }
.row .badge-ic { transition: transform .15s cubic-bezier(.3, 1.6, .5, 1); }
.row:not(.static):hover .badge-ic { transform: scale(1.08); }

/* tabbalk: het actieve icoon veert even op */
.tabs button[aria-current="page"] svg { animation: pop .3s cubic-bezier(.3, 1.6, .5, 1); }
.tabs button:active svg { transform: scale(.88); }

@keyframes pop { 0% { transform: scale(.96); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .btn, .opt, .tile, .rolebtn, .chip, .row { transition: none; }
  .btn:active, .opt:active, .tile:active, .rolebtn:active, .chip:active, .row:active { transform: none; }
  .opt.s2, .opt.s0, .rolebtn.s0, .tabs button[aria-current="page"] svg { animation: none; }
}
