:root {
  --navy: #0b2a5b; --navy2: #123e8a; --ocean: #1e78d6; --ocean-d: #1560b4; --sky: #e6f3ff; --sky2: #cfe8ff;
  --white: #fff; --ink: #14233f; --muted: #51627f; --ok: #12805c; --ok-bg: #e3f7ee; --no: #a24a00; --no-bg: #fff2e0;
  --star: #f5b301; --radius: 22px; --shadow: 0 6px 20px rgba(11, 42, 91, .12);
  --g-hero: linear-gradient(135deg, #0b2a5b 0%, #1e78d6 70%, #7cc3ff 100%);
  --g-card: linear-gradient(180deg, #fff 0%, #eef7ff 100%);
  --g-btn: linear-gradient(135deg, #1e78d6, #2f95ee);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif; font-size: 18px; line-height: 1.55; color: var(--ink); background: linear-gradient(180deg, #fff 0%, #f1f8ff 100%) fixed; min-height: 100vh; padding-bottom: 92px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); } h2 { font-size: 1.6rem; } h3 { font-size: 1.2rem; }
p { margin: 0 0 .8em; }
a { color: var(--ocean-d); }
:focus-visible { outline: 4px solid #ffb300; outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; left: -9999px; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 20px 16px; }

/* header + nav */
.top { background: var(--g-hero); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.top .wrap { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.brand svg { width: 38px; height: 38px; }
.nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: #fff; text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 700; display: flex; gap: 8px; align-items: center; min-height: 48px; transition: background .2s, transform .15s; }
.nav a:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.nav a[aria-current="page"] { background: #fff; color: var(--navy); }
.bottom { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .top .wrap { justify-content: space-between; }
  .bottom { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 3px solid var(--sky2); z-index: 30; padding: 4px 2px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 14px rgba(11,42,91,.12); }
  .bottom a { text-decoration: none; color: var(--navy); display: flex; flex-direction: column; align-items: center; gap: 0; font-size: .68rem; font-weight: 700; padding: 6px 1px; min-height: 56px; border-radius: 14px; text-align: center; line-height: 1.15; }
  .bottom a span.i { font-size: 1.5rem; }
  .bottom a[aria-current="page"] { background: var(--sky); color: var(--ocean-d); }
  body { font-size: 17px; }
}

/* generic */
.card { background: var(--g-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; border: 2px solid #dcecfb; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--g-btn); color: #fff; font: inherit; font-weight: 800; font-size: 1.15rem; border: 0; border-radius: 999px; padding: 14px 28px; min-height: 56px; cursor: pointer; text-decoration: none; box-shadow: 0 4px 0 var(--ocean-d); transition: transform .12s, box-shadow .12s, filter .2s; }
.btn:hover { filter: brightness(1.07); transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ocean-d); }
.btn.big { font-size: 1.35rem; padding: 18px 36px; min-height: 66px; }
.btn.alt { background: #fff; color: var(--navy); box-shadow: 0 4px 0 #b6d3f1; border: 2px solid var(--sky2); }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: none; border: 2px solid var(--sky2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.pill { display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; background: var(--sky); color: var(--navy); border: 2px solid var(--sky2); }
.pill.done { background: var(--ok-bg); color: var(--ok); border-color: #a9e0c9; }
.pill.busy { background: #fff6d9; color: #7a5a00; border-color: #f4dc8c; }
.pill.extra { background: #f3edff; color: #4d2d9b; border-color: #d9c9fb; }
.bar { height: 14px; background: #dbeafb; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, #1e78d6, #6dbdff); border-radius: 99px; transition: width .5s; }
.back { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 12px; font-weight: 800; text-decoration: none; color: var(--navy); padding: 10px 16px; border-radius: 999px; background: #fff; border: 2px solid var(--sky2); min-height: 48px; }
.note { background: #fff9e6; border: 2px dashed #f0cf6b; border-radius: 16px; padding: 12px 16px; font-size: .95rem; }
.official { background: #fff; border-left: 8px solid var(--navy); border-radius: 12px; padding: 12px 16px; font-size: .95rem; color: var(--ink); }
.official b { color: var(--navy); }
.page { animation: slide .35s ease-out; }
@keyframes slide { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* hero */
.hero { background: var(--g-hero); color: #fff; border-radius: 32px; padding: 34px 28px 120px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero h1 { color: #fff; } .hero p { font-size: 1.2rem; max-width: 560px; }
.hero .art { position: absolute; right: 18px; bottom: 0; width: min(46%, 340px); opacity: .98; }
.hero .waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70px; }
@media (max-width: 640px) { .hero { padding-bottom: 150px; } .hero .art { width: 55%; right: 0; } }

/* competency cards */
.comp { display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s; }
.comp:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(11,42,91,.18); }
.comp .ic { font-size: 2.6rem; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 4px solid #6fdcee; box-shadow: 0 3px 8px rgba(0,0,0,.1); }
.stars { letter-spacing: 2px; color: var(--star); }
.groep { margin: 28px 0 10px; display: flex; align-items: center; gap: 10px; }

/* path */
.path { position: relative; padding-left: 52px; display: grid; gap: 16px; }
.path::before { content: ""; position: absolute; left: 22px; top: 10px; bottom: 10px; width: 8px; border-radius: 8px; background: repeating-linear-gradient(180deg, #9fd0ff 0 14px, transparent 14px 24px); }
.cp { position: relative; }
.cp::before { content: attr(data-n); position: absolute; left: -52px; top: 20px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 4px solid var(--ocean); font-weight: 800; color: var(--navy); }
.cp.done::before { content: "✓"; background: var(--ok); color: #fff; border-color: var(--ok); }
.cp.busy::before { background: #fff6d9; border-color: #e6b800; }

/* learn page */
.step { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 14px 16px; border: 2px solid #dcecfb; }
.step .n { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--g-btn); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step h3 { margin: 0 0 2px; font-size: 1.1rem; } .step p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
a.chip { text-decoration: none; color: var(--navy); background: #fff; border: 2px solid var(--sky2); border-radius: 999px; padding: 8px 14px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
a.chip:hover { background: var(--sky); }

/* exercise */
.ex-top { position: sticky; top: 62px; z-index: 10; background: rgba(255,255,255,.95); padding: 10px 0 8px; backdrop-filter: blur(6px); }
.q { font-size: 1.45rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.opts { display: grid; gap: 12px; }
.opt { display: flex; gap: 12px; align-items: center; text-align: left; font: inherit; font-size: 1.15rem; font-weight: 700; background: #fff; border: 3px solid var(--sky2); border-radius: 18px; padding: 14px 16px; min-height: 64px; cursor: pointer; color: var(--ink); transition: transform .12s, border-color .2s, background .2s; }
.opt:hover:not([disabled]) { border-color: var(--ocean); transform: translateX(4px); }
.opt .l { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; color: var(--navy); font-weight: 800; }
.opt[aria-pressed="true"] { border-color: var(--ocean); background: var(--sky); box-shadow: 0 0 0 3px #b9dbff; }
.opt.right { border-color: var(--ok); background: var(--ok-bg); }
.opt.wrong { border-color: #d98b3a; background: var(--no-bg); }
.opt[disabled] { cursor: default; }
.tfrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fb { margin-top: 18px; border-radius: 18px; padding: 16px 18px; font-size: 1.1rem; display: flex; gap: 14px; align-items: flex-start; animation: slide .3s; }
.fb.ok { background: var(--ok-bg); border: 3px solid #86d5b5; color: #0b5a40; }
.fb.no { background: var(--no-bg); border: 3px solid #f0be86; color: #6b3500; }
.fb .big { font-size: 2.2rem; }
.fb h3 { margin: 0 0 4px; color: inherit; }
.ord { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ord li { display: flex; gap: 10px; align-items: center; background: #fff; border: 3px solid var(--sky2); border-radius: 16px; padding: 10px 12px; font-weight: 700; cursor: grab; }
.ord li.dragging { opacity: .4; }
.ord li .t { flex: 1; }
.ord .mv { display: flex; gap: 6px; }
.ord .mv button { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--sky2); background: var(--sky); font-size: 1.2rem; cursor: pointer; }
.ord .mv button:hover { background: var(--sky2); }
.ord.right li { border-color: var(--ok); background: var(--ok-bg); }
.mt { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mt .col { display: grid; gap: 10px; align-content: start; }
.mt button { font: inherit; font-weight: 700; text-align: left; background: #fff; border: 3px solid var(--sky2); border-radius: 16px; padding: 12px 14px; min-height: 60px; cursor: pointer; color: var(--ink); }
.mt button.sel { border-color: var(--ocean); background: var(--sky); box-shadow: 0 0 0 3px #b9dbff; }
.mt button.paired { border-color: var(--navy2); background: #eef3ff; }
.mt button.right { border-color: var(--ok); background: var(--ok-bg); }
.mt button.wrong { border-color: #d98b3a; background: var(--no-bg); }
.mt .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .85rem; margin-right: 8px; }
@media (max-width: 560px) { .mt { grid-template-columns: 1fr; } .tfrow { grid-template-columns: 1fr; } }

/* results */
.score { font-size: 4rem; font-weight: 900; color: var(--navy); line-height: 1; }
.center { text-align: center; }
.badge { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 12px 16px; border: 3px solid #f3d06a; }
.badge.locked { filter: grayscale(1); opacity: .55; border-color: #ccc; }
.badge .bi { font-size: 2.4rem; }
.stat { text-align: center; } .stat .n { font-size: 2.6rem; font-weight: 900; color: var(--ocean-d); line-height: 1.1; }
.confetti { font-size: 3rem; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* dictionary */
input[type="text"], input[type="search"], input[type="number"], input[type="password"], input[type="date"], select { font: inherit; font-size: 1.15rem; padding: 14px 18px; border-radius: 999px; border: 3px solid var(--sky2); width: 100%; background: #fff; color: var(--ink); min-height: 56px; }
input:focus { border-color: var(--ocean); }
.az { display: flex; flex-wrap: wrap; gap: 6px; }
.az button, .tab { font: inherit; font-weight: 800; border: 2px solid var(--sky2); background: #fff; border-radius: 12px; min-width: 44px; min-height: 44px; padding: 0 12px; cursor: pointer; color: var(--navy); }
.az button.on, .tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.word { display: flex; gap: 14px; }
.word .wi { font-size: 2.4rem; }
.err { color: #a02020; font-weight: 700; margin-top: 6px; }
.empty { text-align: center; padding: 40px 16px; }
.empty .big { font-size: 4rem; }
footer.note-f { margin: 30px auto 0; max-width: 1060px; padding: 0 16px 20px; color: var(--muted); font-size: .9rem; }

/* lessen (doornemen) */
.slide { padding: 28px 24px; min-height: 340px; animation: slide .3s ease-out; }
.big-ic { font-size: 4rem; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 5px solid #6fdcee; box-shadow: 0 4px 12px rgba(0,0,0,.1); margin-bottom: 14px; }
.big-ic.num { font-weight: 900; color: #fff; background: var(--g-btn); border-color: #bfe0ff; }
.lead { font-size: 1.4rem; line-height: 1.5; }
.story { background: #fff; border-left: 8px solid var(--ocean); border-radius: 14px; padding: 16px 18px; }
.check { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.check li { background: #fff; border: 2px solid #dcecfb; border-radius: 14px; padding: 10px 14px 10px 44px; font-weight: 700; position: relative; }
.check li::before { content: "✓"; position: absolute; left: 12px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.lnav { justify-content: space-between; margin-top: 16px; }
.dots { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; }
.dots button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.dots button::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #b9d7f5; }
.dots button.on::after { background: var(--navy); inset: 6px; }
@media (max-width: 560px) { .lnav .btn { flex: 1; } .dots { order: 3; width: 100%; } .lead { font-size: 1.25rem; } }
