/* ===================================================================
   BioQuest — Duolingo-stijl thema (licht, fris, chunky)
   =================================================================== */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
:root {
  --green: #58cc02; --green-d: #46a302;
  --blue: #1cb0f6; --blue-d: #1899d6;
  --purple: #ce82ff; --purple-d: #a568cc;
  --red: #ff4b4b; --red-d: #ea2b2b;
  --gold: #ffc800; --gold-d: #e6a800;
  --orange: #ff9600;
  --ink: #3c3c3c; --ink-2: #4b4b4b; --muted: #afafaf; --muted-2: #777;
  --line: #e5e5e5; --line-d: #cfcfcf;
  --bg: #ffffff; --bg-soft: #f7f7f7;
  --r: 16px; --r-lg: 20px;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  font-weight: 700;
}
h1, h2, h3, h4 { font-weight: 800; color: var(--ink); margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; color: inherit; }
.hidden { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 12px clamp(12px, 3vw, 26px); padding-top: max(12px, env(safe-area-inset-top));
  padding-left: max(clamp(12px, 3vw, 26px), env(safe-area-inset-left));
  padding-right: max(clamp(12px, 3vw, 26px), env(safe-area-inset-right));
  background: #fff; border-bottom: 2px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; cursor: pointer; flex: none; }
.brand .logo { display: inline-grid; place-items: center; transition: transform .35s var(--bounce); }
.brand .logo svg { display: block; }
.brand:hover .logo { transform: rotate(-12deg) scale(1.12); }
.brand-txt { font-weight: 900; font-size: 21px; color: var(--green); letter-spacing: -.5px; }
.spacer { flex: 1; }
.hud { display: flex; align-items: center; gap: 16px; min-width: 0; }
.chip-stat { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 16px; flex: none; }
.chip-stat.streak { color: var(--orange); }
.ic { display: inline-block; vertical-align: middle; flex: none; }
.ic-flame { transform-origin: center bottom; animation: flame 1.7s ease-in-out infinite; }
.ic-flame .flame-out { fill: var(--orange); }
.ic-flame .flame-in { fill: var(--gold); }
.ic-gear { fill: var(--muted-2); transition: fill .15s; }
.icon-btn:hover .ic-gear { fill: var(--ink); }
/* inline icon-uitlijning binnen tekst/labels */
.lab-ic .ic, .dash .goalring .ring i .ic { display: inline-block; vertical-align: -.12em; }
.hearts .h { display: inline-grid; place-items: center; line-height: 0; }
.hearts .h .ic { width: 22px; height: 22px; }
.combo .ic-flame { vertical-align: -.15em; }
@keyframes flame { 0%,100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.13) rotate(2deg); } }
.chip-stat.streak.pulse { animation: streakPulse .7s var(--bounce); }
@keyframes streakPulse { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.lvlring { --p: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--green) calc(var(--p)*1%), var(--line) 0); transition: --p .7s var(--ease); }
.lvlring i { width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 13px; color: var(--green); }
.xpcol { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.xpnum { font-size: 12px; color: var(--gold-d); font-weight: 800; line-height: 1; white-space: nowrap; }
.xpbar { width: 80px; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.xpbar > span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--gold); transition: width .7s var(--ease); }
.icon-btn { background: #fff; border: 2px solid var(--line); width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; transition: transform .3s var(--bounce), background .15s; }
.icon-btn:hover { background: var(--bg-soft); transform: rotate(45deg); }
.icon-btn:active { transform: rotate(45deg) scale(.92); }

/* ---------- layout ---------- */
main { max-width: 680px; margin: 0 auto; padding: 22px clamp(14px, 3vw, 20px) 120px; }
.view { animation: viewIn .4s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted-2); font-weight: 800; margin: 30px 4px 14px; }
.stagger > * { opacity: 0; animation: popIn .5s var(--bounce) forwards; }
.stagger > *:nth-child(1){animation-delay:.04s} .stagger > *:nth-child(2){animation-delay:.1s}
.stagger > *:nth-child(3){animation-delay:.16s} .stagger > *:nth-child(4){animation-delay:.22s}
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.glass { background: #fff; border: 2px solid var(--line); border-radius: var(--r); }

/* ---------- buttons (3D) ---------- */
.btn { background: var(--green); color: #fff; border-radius: var(--r); font-weight: 800; font-size: 15px; text-transform: uppercase;
  letter-spacing: .8px; padding: 14px 22px; box-shadow: 0 4px 0 var(--green-d); transition: transform .07s, box-shadow .07s, filter .15s; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--green-d); }
.btn.ghost { background: #fff; color: var(--blue); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.btn.ghost:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.btn.big { padding: 16px 30px; font-size: 16px; }

/* ---------- HERO / dashboard ---------- */
.hero { background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg); padding: 24px clamp(18px, 4vw, 30px); }
.hero .kicker { display: inline-block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-d);
  background: #d7ffb8; padding: 5px 12px; border-radius: 999px; font-weight: 800; }
.hero h1 { font-size: clamp(24px, 5vw, 36px); margin: 12px 0 6px; line-height: 1.1; }
.hero h1 .grad { color: var(--green); }
.hero p { color: var(--muted-2); margin: 0; max-width: 48ch; font-weight: 700; }
.dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.dash .tile { background: var(--bg-soft); border: 2px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.dash .tile .lab { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .5px; font-weight: 800; }
.dash .tile .val { font-size: 24px; font-weight: 900; margin-top: 3px; color: var(--ink); }
.dash .goalring { display: flex; align-items: center; gap: 12px; }
.dash .goalring .ring { --p: 0; width: 50px; height: 50px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--gold) calc(var(--p)*1%), var(--line) 0); display: grid; place-items: center; }
.dash .goalring .ring i { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; font-size: 18px; }

/* ---------- theme accents ---------- */
.t-green { --acc: #58cc02; --acc-d: #46a302; --acc-soft: #d7ffb8; }
.t-blue  { --acc: #1cb0f6; --acc-d: #1899d6; --acc-soft: #ddf4ff; }
.t-purple{ --acc: #ce82ff; --acc-d: #a568cc; --acc-soft: #f3e3ff; }
.t-orange{ --acc: #ff9600; --acc-d: #e07f00; --acc-soft: #ffe9c9; }
.t-pink  { --acc: #ff5b9e; --acc-d: #e23d81; --acc-soft: #ffe0ec; }
.t-teal  { --acc: #14b8a6; --acc-d: #0e9484; --acc-soft: #cff6f0; }
.t-red   { --acc: #ff4b4b; --acc-d: #e02b2b; --acc-soft: #ffdede; }
.t-indigo{ --acc: #6c8cff; --acc-d: #4d6ce0; --acc-soft: #e2e8ff; }
.t-lime  { --acc: #7cb518; --acc-d: #649413; --acc-soft: #eaf7cd; }
.t-amber { --acc: #f0a500; --acc-d: #cf8b00; --acc-soft: #ffeec2; }
.t-brown { --acc: #c1741a; --acc-d: #9c5c12; --acc-soft: #f6e6cf; }
.t-rose  { --acc: #f43f5e; --acc-d: #d92544; --acc-soft: #ffe0e6; }
.t-sky   { --acc: #0ea5e9; --acc-d: #0284c7; --acc-soft: #d6f0fd; }

/* section title with a count */
.section-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 30px 4px 14px; flex-wrap: wrap; }
.st-count { font-size: 12px; font-weight: 800; color: var(--muted-2); background: var(--bg-soft); border: 2px solid var(--line); padding: 3px 10px; border-radius: 999px; }

/* ---------- onboarding / setup ---------- */
.setup-hero { background: linear-gradient(160deg, #f2fff0, #ffffff); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 26px clamp(18px, 4vw, 32px); }
.setup-hero .kicker { display: inline-block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-d);
  background: #d7ffb8; padding: 5px 12px; border-radius: 999px; font-weight: 800; }
.setup-hero h1 { font-size: clamp(26px, 5.5vw, 40px); margin: 14px 0 8px; line-height: 1.08; }
.setup-hero h1 .grad { color: var(--green); }
.setup-hero p { color: var(--muted-2); margin: 0; max-width: 56ch; font-weight: 700; line-height: 1.6; }
.pick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pick-card { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg); padding: 20px; cursor: pointer;
  box-shadow: 0 4px 0 var(--line); transition: transform .1s, border-color .15s, box-shadow .1s; }
.pick-card:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.pick-card.sel { border-color: var(--green); box-shadow: 0 4px 0 var(--green); background: #f6fff0; }
.pick-card .pick-emoji { font-size: 30px; width: 54px; height: 54px; border-radius: 15px; background: var(--bg-soft); display: grid; place-items: center; }
.pick-card .pick-emoji .ic { width: 30px; height: 30px; }
.pick-card h3 { margin: 12px 0 4px; font-size: 19px; }
.pick-card p { margin: 0; color: var(--muted-2); font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.setup-foot { display: flex; gap: 12px; justify-content: flex-end; margin-top: 26px; }
.btn:disabled { opacity: .45; filter: grayscale(.3); cursor: not-allowed; }

/* ---------- hero context chip ---------- */
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ctx-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-soft); border: 2px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 800; color: var(--ink-2); box-shadow: 0 3px 0 var(--line); transition: transform .1s; }
.ctx-chip:active { transform: translateY(3px); box-shadow: 0 0 0 var(--line); }
.ctx-chip .dot { color: var(--muted); }
.ctx-chip .ctx-edit { color: var(--blue); text-transform: uppercase; font-size: 10px; letter-spacing: .5px; margin-left: 4px; }

/* ---------- chapters grid ---------- */
.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.chapter { position: relative; border-radius: var(--r-lg); padding: 20px; cursor: pointer; background: #fff;
  border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line); transition: transform .1s, box-shadow .1s; overflow: hidden; }
.chapter::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--acc, var(--green)); }
.chapter:active { transform: translateY(5px); box-shadow: 0 0 0 var(--line); }
.chapter .ch-top { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.chapter .ch-num { font-size: 13px; font-weight: 900; color: #fff; background: var(--acc, var(--green)); min-width: 30px; height: 30px; padding: 0 8px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.chapter.soon .ch-num { background: var(--line-d); color: #fff; }
.chapter .ch-emoji { font-size: 26px; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--acc-soft, var(--bg-soft)); flex: none; }
.chapter .ch-domain { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--acc-d, var(--muted-2)); background: var(--acc-soft, var(--bg-soft)); padding: 4px 10px; border-radius: 999px; }
.chapter h3 { margin: 14px 0 4px; font-size: 19px; line-height: 1.15; }
.chapter .ch-meta { color: var(--muted-2); font-size: 12.5px; font-weight: 700; }
.chapter .ch-bar { margin-top: 14px; height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.chapter .ch-bar > span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--acc, var(--green)); transition: width .8s var(--ease); }
.chapter .ch-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.chapter .ch-pct { font-size: 12px; font-weight: 800; color: var(--acc-d, var(--muted-2)); }
.chapter .ch-go { font-size: 12px; font-weight: 900; color: var(--acc-d, var(--ink)); }
.chapter.soon { cursor: default; background: var(--bg-soft); box-shadow: 0 5px 0 var(--line); }
.chapter.soon::before { background: var(--line-d); }
.chapter.soon .ch-emoji { background: #ececec; filter: grayscale(.3); }
.chapter.soon .ch-domain { color: var(--muted-2); background: #ececec; }
.soon-pill { font-size: 11px; font-weight: 800; color: var(--muted-2); background: #ececec; border: 2px solid var(--line); padding: 4px 12px; border-radius: 999px; }

/* ---------- chapter banner + tabs ---------- */
.ch-banner { display: flex; gap: 16px; align-items: flex-start; border-radius: var(--r-lg); padding: 22px clamp(18px, 3vw, 26px);
  margin: 14px 0 16px; color: #fff; background: var(--acc, var(--green)); box-shadow: 0 5px 0 var(--acc-d, var(--green-d)); }
.ch-banner-ic { font-size: 40px; width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.25); flex: none; }
.ch-banner-txt { min-width: 0; }
.ch-banner-txt h2 { color: #fff; font-size: clamp(22px, 4vw, 28px); margin-bottom: 6px; }
.ch-banner-txt p { color: rgba(255,255,255,.95); font-weight: 700; font-size: 13.5px; line-height: 1.55; margin: 0 0 12px; }
.ch-banner-bar { height: 10px; background: rgba(0,0,0,.18); border-radius: 999px; overflow: hidden; max-width: 340px; }
.ch-banner-bar > span { display: block; height: 100%; border-radius: 999px; background: #fff; }
.ch-banner-meta { color: rgba(255,255,255,.95); font-weight: 800; font-size: 12px; margin-top: 7px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; padding-bottom: 4px; margin-bottom: 18px; }
.tab { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; background: #fff; border: 2px solid var(--line);
  color: var(--muted-2); padding: 10px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; box-shadow: 0 3px 0 var(--line); transition: transform .1s, border-color .15s, color .15s; }
.tab .ic { width: 18px; height: 18px; }
.tab:hover { border-color: var(--blue); }
.tab.on { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 3px 0 var(--green-d); }
.tab.on .ic { color: #fff; }
.tab-lead { color: var(--muted-2); font-weight: 700; line-height: 1.6; margin: 0 4px 18px; font-size: 14px; }

/* ---------- videoleerlijn ---------- */
.vid-progress { display: flex; align-items: center; gap: 14px; background: #fff; border: 2px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 0 0 22px; box-shadow: 0 3px 0 var(--line); }
.vid-prog-bar { flex: 1; height: 12px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.vid-prog-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--acc, var(--green)); transition: width .6s var(--ease); }
.vid-prog-lab { font-size: 12.5px; font-weight: 800; color: var(--muted-2); white-space: nowrap; }

.vid-section { margin-bottom: 30px; }
.vid-sec-head { display: flex; align-items: flex-start; gap: 14px; margin: 0 4px 16px; }
.vid-sec-id { flex: none; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; background: var(--acc, var(--green)); color: #fff; font-weight: 900; font-size: 15px; display: grid; place-items: center; }
.vid-sec-title { font-size: 18px; margin: 4px 0 2px; }
.vid-sec-intro { margin: 0; color: var(--muted-2); font-weight: 700; font-size: 13px; line-height: 1.5; }

.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.vid-card { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 3px 0 var(--line); transition: border-color .2s, box-shadow .2s; }
.vid-card.watched { border-color: var(--acc, var(--green)); box-shadow: 0 3px 0 var(--acc-d, var(--green-d)); }
.vid-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.vid-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; text-decoration: none; }
.vid-info { display: flex; flex-direction: column; gap: 9px; padding: 14px 16px 16px; flex: 1; }
.vid-head { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; }
.vid-title { font-size: 15.5px; line-height: 1.3; }
.vid-dur { flex: none; font-size: 11.5px; font-weight: 800; color: var(--muted-2); background: var(--bg-soft); border-radius: 999px; padding: 3px 9px; }
.vid-desc { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.5; }
.vid-note { font-size: 12px; font-weight: 800; color: var(--acc-d, var(--green-d)); background: var(--acc-soft, var(--bg-soft)); border-radius: 10px; padding: 6px 10px; }
.vid-terms { display: flex; flex-wrap: wrap; gap: 6px; }
.vid-term { font-size: 11.5px; font-weight: 800; color: var(--acc-d, var(--muted-2)); background: var(--acc-soft, var(--bg-soft)); border-radius: 999px; padding: 4px 10px; }
.vid-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; }
.vid-watch { flex: 1; }
.vid-card.watched .vid-watch { color: var(--green-d); border-color: var(--green); }
.vid-open { font-size: 12.5px; font-weight: 800; color: var(--blue); text-decoration: none; white-space: nowrap; }
.vid-open:hover { text-decoration: underline; }

/* ---------- theorie accordion ---------- */
.para-acc { background: #fff; border: 2px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; box-shadow: 0 3px 0 var(--line); }
.para-acc > summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 800; color: var(--ink); }
.para-acc > summary::-webkit-details-marker { display: none; }
.para-acc .pa-id { width: 30px; height: 30px; border-radius: 9px; background: var(--bg-soft); color: var(--muted-2); display: grid; place-items: center; font-size: 13px; font-weight: 900; flex: none; }
.para-acc .pa-title { flex: 1; font-size: 16px; }
.para-acc .pa-done { font-size: 11px; font-weight: 800; color: var(--green-d); background: #d7ffb8; padding: 3px 9px; border-radius: 999px; }
.para-acc .pa-chev { color: var(--muted); transition: transform .25s; }
.para-acc[open] .pa-chev { transform: rotate(180deg); }
.para-acc[open] .pa-id { background: var(--green); color: #fff; }
.para-acc.done .pa-id { background: var(--green); color: #fff; }
.para-inner { padding: 0 18px 18px; border-top: 2px solid var(--line); }
.para-inner .goalbox { margin: 16px 0 16px; }
.para-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn.small { padding: 10px 16px; font-size: 13px; }
.ai-optin-note { font-size: 12px; color: var(--muted-2); font-weight: 700; background: #f3e3ff; border: 2px dashed #e0bcff; border-radius: 12px; padding: 8px 12px; margin: 14px 0 8px; }

/* ---------- launch cards (flitskaarten/oefenvragen) ---------- */
.card-launch { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 6px; }
.launch-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: var(--r); background: #fff;
  border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); transition: transform .1s; }
.launch-card:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.launch-card .lc-ic { font-size: 22px; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; font-weight: 900; color: var(--green-d); flex: none; }
.launch-card h4 { margin: 0 0 2px; font-size: 15px; } .launch-card p { margin: 0; color: var(--muted-2); font-size: 12px; font-weight: 700; }
.launch-card.small .lc-ic { font-size: 18px; width: 40px; height: 40px; }

/* ---------- examenopgaven ---------- */
.exam-item { background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; box-shadow: 0 4px 0 var(--line); }
.exam-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.exam-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--blue); }
.exam-badge .ic { width: 16px; height: 16px; }
.exam-pts { font-size: 11px; font-weight: 800; color: var(--gold-d); background: #fff7d6; border: 2px solid #ffe08a; padding: 3px 10px; border-radius: 999px; }
.exam-title { font-size: 18px; margin-bottom: 8px; }
.exam-context { background: var(--bg-soft); border-left: 4px solid var(--blue); border-radius: 10px; padding: 12px 15px; color: var(--ink-2); font-weight: 700; line-height: 1.55; font-size: 14px; margin-bottom: 12px; }
.exam-q { font-weight: 800; color: var(--ink); line-height: 1.5; margin-bottom: 14px; }
.exam-model { background: #f6fff0; border: 2px solid var(--green); border-radius: var(--r); padding: 14px 18px; margin-top: 14px; animation: slideUp .3s var(--ease); }
.exam-model .fb-model-tag { font-size: 12px; font-weight: 800; color: var(--green-d); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.exam-model ol { margin: 0; padding-left: 20px; color: var(--ink-2); font-weight: 700; line-height: 1.55; display: grid; gap: 8px; }
.ai-fb-slot:not(:empty) { margin-top: 16px; }
.fb-detail { display: grid; gap: 10px; margin-bottom: 14px; }
.fb-block { background: var(--bg-soft); border: 2px solid var(--line); border-radius: var(--r); padding: 12px 15px; }
.fb-block b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; }
.fb-block p { margin: 0; color: var(--ink-2); font-weight: 700; line-height: 1.5; font-size: 14px; }

/* quick actions */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qcard { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r); cursor: pointer;
  background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); transition: transform .1s; }
.qcard:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.qcard .qi { font-size: 28px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--bg-soft); flex: none; }
.qcard h4 { margin: 0 0 3px; font-size: 16px; } .qcard p { margin: 0; color: var(--muted-2); font-size: 12.5px; font-weight: 700; }

/* ---------- back & headers ---------- */
.backbtn { background: #fff; border: 2px solid var(--line); padding: 9px 16px; border-radius: var(--r); font-weight: 800; font-size: 14px;
  color: var(--muted-2); display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 3px 0 var(--line); transition: transform .1s; }
.backbtn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--line); }
/* nette tussenruimte tussen de terugknop en het volgende paneel (lees, quiz, flashcards, proces, open, tutor) */
.backbtn + .panel { margin-top: 16px; }
.world-banner { border-radius: var(--r-lg); padding: 22px clamp(18px, 3vw, 26px); margin: 14px 0 8px; color: #fff; }
.world-banner.world-brain { background: var(--green); box-shadow: 0 5px 0 var(--green-d); }
.world-banner.world-senses { background: var(--blue); box-shadow: 0 5px 0 var(--blue-d); }
.world-banner.world-immune { background: var(--purple); box-shadow: 0 5px 0 var(--purple-d); }
.world-banner .big { font-size: 42px; }
.world-banner h2 { margin: 6px 0 4px; font-size: 26px; color: #fff; }
.world-banner .wmeta { color: rgba(255, 255, 255, .92); font-weight: 800; font-size: 13px; }

/* ---------- goalbox (in accordion) ---------- */
.goalbox { padding: 16px 18px; border-left: 6px solid var(--green); }
.goalbox .gt { font-weight: 800; margin-bottom: 9px; color: var(--ink); }
.goalbox ul { margin: 0; padding-left: 20px; color: var(--ink-2); line-height: 1.7; font-weight: 700; }

/* ===================================================================
   PANEL / shared
   =================================================================== */
.panel { background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 26px); }
.topline { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pbar { flex: 1; height: 16px; background: var(--line); border-radius: 999px; overflow: hidden; }
.pbar > span { display: block; height: 100%; border-radius: 999px; background: var(--green); width: 0;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .08), inset 0 4px 0 rgba(255, 255, 255, .35); transition: width .4s var(--ease); }
.combo { font-weight: 900; color: var(--orange); white-space: nowrap; min-width: 44px; text-align: right; transition: transform .2s var(--bounce); }
.combo.bump { transform: scale(1.4); }
.hearts { display: flex; gap: 4px; font-size: 20px; }
.hearts .h.lost { filter: grayscale(1); opacity: .35; transition: all .3s; }
.fc-meta { color: var(--muted-2); font-size: 13px; font-weight: 800; }

/* ---------- quiz ---------- */
.qtext { font-size: clamp(20px, 3.6vw, 26px); font-weight: 800; margin: 4px 0 22px; line-height: 1.3; color: var(--ink); }
.options { display: grid; gap: 12px; }
.opt { text-align: left; padding: 15px 18px; border-radius: var(--r); background: #fff; border: 2px solid var(--line);
  box-shadow: 0 3px 0 var(--line); font-size: 16px; font-weight: 800; color: var(--ink-2); display: flex; align-items: center; gap: 13px;
  transition: transform .07s, border-color .12s, background .12s, box-shadow .07s; }
.opt .key { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--muted-2); flex: none; }
.opt:hover { background: #f7feff; border-color: #84d8ff; box-shadow: 0 3px 0 #b3e6ff; }
.opt:active { transform: translateY(3px); box-shadow: 0 0 0 var(--line); }
.opt.correct { border-color: var(--green); background: #d7ffb8; color: var(--green-d); box-shadow: 0 3px 0 var(--green); animation: pop .35s var(--bounce); }
.opt.correct .key { border-color: var(--green); background: var(--green); color: #fff; }
.opt.wrong { border-color: var(--red); background: #ffdfe0; color: var(--red-d); box-shadow: 0 3px 0 var(--red); }
.opt.wrong .key { border-color: var(--red); background: var(--red); color: #fff; }
.opt.dim { opacity: .5; }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.04); } 100% { transform: scale(1); } }
.explain { margin-top: 20px; padding: 16px 18px; border-radius: var(--r); font-size: 15px; font-weight: 700; animation: slideUp .3s var(--ease); }
.explain b { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 900; }
.explain b.ok { color: var(--green-d); } .explain b.no { color: var(--red-d); }
.explain.good { background: #d7ffb8; color: #4a8a1d; }
.explain.bad { background: #ffdfe0; color: #c63a3a; }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.qfoot { display: flex; justify-content: flex-end; margin-top: 22px; }

/* ---------- LEER ---------- */
.lesson { display: grid; place-items: center; gap: 18px; text-align: center; min-height: 300px; }
.lesson .emoji { font-size: 56px; animation: pop .5s var(--bounce); }
.lesson .badge { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); font-weight: 800; }
.lesson .term { font-size: clamp(26px, 6vw, 38px); font-weight: 900; line-height: 1.1; color: var(--green); }
.lesson .def { font-size: clamp(16px, 3.2vw, 20px); color: var(--ink-2); max-width: 52ch; line-height: 1.55; font-weight: 700; }
.dots { display: flex; gap: 7px; justify-content: center; }
.dots .d { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: all .3s; }
.dots .d.on { background: var(--green); width: 24px; border-radius: 999px; }
.lesson-nav { display: flex; gap: 12px; justify-content: center; }

/* ---------- flashcards ---------- */
.fc-stage { display: grid; place-items: center; gap: 20px; }
.flashcard { width: min(560px, 100%); height: 300px; perspective: 1500px; cursor: pointer; }
.fc-inner { position: relative; width: 100%; height: 100%; transition: transform .55s var(--bounce); transform-style: preserve-3d; }
.flashcard.flipped .fc-inner { transform: rotateY(180deg); }
.fc-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--r-lg); padding: 30px; display: grid; place-items: center; text-align: center; }
.fc-front { background: #fff; border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line); }
.fc-front .cn { position: absolute; top: 16px; left: 18px; font-size: 26px; opacity: .35; }
.fc-front .term { font-size: clamp(26px, 5vw, 36px); font-weight: 900; color: var(--ink); }
.fc-front .hint { position: absolute; bottom: 18px; left: 0; right: 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.fc-back { background: #d7ffb8; border: 2px solid var(--green); box-shadow: 0 5px 0 var(--green); transform: rotateY(180deg); }
.fc-back .def { font-size: clamp(16px, 3.4vw, 21px); line-height: 1.55; font-weight: 700; color: #3a6b16; }
.fc-rate { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.fc-rate button { padding: 13px 22px; border-radius: var(--r); font-weight: 800; font-size: 14px; box-shadow: 0 4px 0 var(--line); border: 2px solid var(--line); background: #fff; transition: transform .08s; }
.fc-rate button:active { transform: translateY(4px); box-shadow: none; }
.rate-again { color: var(--red); } .rate-hard { color: var(--gold-d); } .rate-good { color: var(--green); }

/* ---------- sequence ---------- */
.seq-list { display: grid; gap: 10px; margin-top: 12px; }
.seq-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: #fff;
  border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); cursor: grab; user-select: none; transition: border-color .2s, background .2s, transform .1s; }
.seq-item:active { cursor: grabbing; }
.seq-item.dragging { opacity: .5; transform: scale(1.02); }
.seq-item.over { border-color: var(--blue); }
.seq-item .grip { color: var(--muted); font-size: 18px; }
.seq-item .idx { width: 28px; height: 28px; border-radius: 9px; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.seq-item .txt { flex: 1; font-weight: 800; color: var(--ink-2); }
.seq-item.ok { border-color: var(--green); background: #d7ffb8; }
.seq-item.no { border-color: var(--red); background: #ffdfe0; }
.seq-controls { display: flex; gap: 6px; margin-left: auto; }
.seq-controls button { width: 32px; height: 32px; border-radius: 9px; background: var(--bg-soft); border: 2px solid var(--line); font-weight: 800; color: var(--muted-2); }
.seq-controls button:hover { background: #ececec; }

/* ---------- AI tutor ---------- */
.chat { display: flex; flex-direction: column; height: min(560px, 68vh); }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.msg { max-width: 88%; padding: 12px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; font-weight: 700; animation: popIn .25s var(--bounce); }
.msg.user { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 5px; }
.msg.ai { align-self: flex-start; background: var(--bg-soft); border: 2px solid var(--line); color: var(--ink-2); border-bottom-left-radius: 5px; }
.msg.sys { align-self: center; color: var(--muted-2); font-size: 13px; background: transparent; text-align: center; }
.chat-suggest { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip { background: #fff; border: 2px solid var(--line); color: var(--blue); padding: 8px 13px; border-radius: 999px; font-size: 13px; font-weight: 800; transition: border-color .2s; }
.chip:hover { border-color: var(--blue); }
.chat-input { display: flex; gap: 10px; margin-top: 12px; }
.chat-input textarea { flex: 1; resize: none; background: #fff; color: var(--ink); border: 2px solid var(--line);
  border-radius: var(--r); padding: 12px 14px; font-size: 15px; min-height: 48px; max-height: 120px; font-family: inherit; font-weight: 700; }
.chat-input textarea:focus { outline: none; border-color: var(--blue); }
.typing span { display: inline-block; width: 8px; height: 8px; margin: 0 1px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2){animation-delay:.2s} .typing span:nth-child(3){animation-delay:.4s}
@keyframes blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- result ---------- */
.result { text-align: center; padding: 26px 20px; }
.result .big { font-size: 72px; animation: pop2 .6s var(--bounce); }
@keyframes pop2 { 0% { transform: scale(0); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.result .rank { font-size: 66px; font-weight: 900; line-height: 1; color: var(--gold); -webkit-text-stroke: 2px var(--gold-d); }
.result .stars { font-size: 34px; letter-spacing: 6px; margin: 6px 0; color: var(--gold); }
.result .stars .dim { color: var(--line); }
.result h2 { margin: 8px 0; font-size: 30px; }
.result .score { font-size: 17px; color: var(--muted-2); font-weight: 800; }
.result .xpgain { display: inline-block; margin-top: 16px; background: #fff7d6; color: var(--gold-d); font-weight: 900; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--gold); }
.result .actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------- mascot ---------- */
.mascot { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 25; background: none; border: none; padding: 0;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); animation: bob 3.4s ease-in-out infinite; }
.mascot:hover { transform: scale(1.08); }
.mascot.cheer { animation: cheer .7s var(--bounce); }
@keyframes cheer { 0% { transform: scale(1) rotate(0); } 25% { transform: scale(1.18) rotate(-10deg); } 55% { transform: scale(1.1) rotate(10deg); } 100% { transform: scale(1) rotate(0); } }
.mascot.cheer .meyes { animation: blinkEyes .3s; }
@keyframes blinkEyes { 50% { transform: scaleY(.15); } }
.bubble { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 78px); z-index: 26;
  max-width: min(260px, calc(100vw - 32px)); font-weight: 800; font-size: 13px; line-height: 1.4; color: var(--ink-2); cursor: pointer;
  background: #fff; border: 2px solid var(--line); padding: 12px 15px; border-radius: 16px; box-shadow: 0 4px 0 var(--line); animation: popIn .3s var(--bounce); }
.bubble::after { content: ""; position: absolute; right: 24px; bottom: -9px; border: 9px solid transparent; border-top-color: #fff; }
.bubble::before { content: ""; position: absolute; right: 22px; bottom: -13px; border: 11px solid transparent; border-top-color: var(--line); }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 40; display: grid; place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); animation: viewIn .2s; }
.modal { width: min(480px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg); padding: clamp(20px, 4vw, 26px); background: #fff; border: 2px solid var(--line); box-shadow: 0 8px 0 var(--line); }
.modal h3 { margin: 0 0 6px; font-size: 22px; display: flex; align-items: center; gap: 8px; }
.modal p.sub { color: var(--muted-2); font-size: 13.5px; margin: 0 0 18px; font-weight: 700; }
.field { margin-bottom: 16px; }
.field label { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 800; margin-bottom: 7px; color: var(--ink); }
.field input, .field select { width: 100%; background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; font-family: inherit; font-weight: 700; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); }
.field .help { font-size: 12px; color: var(--muted-2); margin-top: 7px; font-weight: 700; line-height: 1.5; }
.field .help code { background: var(--bg-soft); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 2px solid var(--line); font-weight: 800; color: var(--ink); }
.note { background: #ddf4ff; border: 2px solid #b3e6ff; padding: 13px 15px; border-radius: 14px; font-size: 12.5px; color: #0b6a9e; font-weight: 700; line-height: 1.55; margin-bottom: 16px; overflow-wrap: anywhere; }
.note code, .field .help code { overflow-wrap: anywhere; word-break: break-word; }
.badge-ok { color: var(--green); font-weight: 800; font-size: 12px; }
.badge-warn { color: var(--orange); font-weight: 800; font-size: 12px; }
.switch { appearance: none; width: 48px; height: 28px; background: var(--line); border-radius: 999px; position: relative; cursor: pointer; transition: background .2s; }
.switch:checked { background: var(--green); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--bounce); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch:checked::after { transform: translateX(20px); }

/* ---------- confetti & toast ---------- */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.xp-float { position: fixed; z-index: 61; transform: translate(-50%, -50%); pointer-events: none;
  font-weight: 900; font-size: 20px; color: var(--gold-d); text-shadow: 0 2px 0 #fff, 0 0 8px rgba(255,200,0,.5);
  animation: xpFloat 1s var(--ease) forwards; }
@keyframes xpFloat { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -90%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -220%) scale(1); } }
.toast { position: fixed; left: 50%; top: 78px; transform: translateX(-50%) translateY(-26px); z-index: 55;
  background: var(--green); color: #fff; font-weight: 900; padding: 14px 28px; border-radius: 999px; box-shadow: 0 5px 0 var(--green-d); opacity: 0; transition: all .45s var(--bounce); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- AI: spinner, notities, knoppen ---------- */
.ai-loading { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-weight: 800; padding: 16px 0; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-note { margin-top: 14px; padding: 14px 16px; border-radius: var(--r); background: #f0f9ff; border: 2px solid #c9ecff; color: #0b5d86; font-weight: 700; line-height: 1.55; animation: slideUp .3s var(--ease); }
.ai-tag { font-size: 11px; font-weight: 800; letter-spacing: .5px; color: var(--blue); text-transform: uppercase; margin-bottom: 5px; }
.why-btn { display: inline-block; margin-top: 14px; background: #fff; border: 2px solid var(--blue); color: var(--blue); padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; box-shadow: 0 3px 0 #b3e6ff; transition: transform .1s; }
.why-btn:active { transform: translateY(3px); box-shadow: 0 0 0 #b3e6ff; }

/* ---------- samenvatting-lezer ---------- */
.summary .badge { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--green); font-weight: 800; }
.sum-title { font-size: 22px; margin: 6px 0 14px; color: var(--ink); }
.summary p { color: var(--ink-2); line-height: 1.65; font-weight: 700; margin: 0 0 12px; }
.sum-list { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.sum-list li { position: relative; padding: 11px 14px 11px 40px; background: var(--bg-soft); border: 2px solid var(--line); border-radius: 12px; font-weight: 700; color: var(--ink-2); }
.sum-list li::before { content: "•"; position: absolute; left: 16px; top: 7px; color: var(--green); font-size: 22px; font-weight: 900; }

/* ---------- open oefenen ---------- */
.open-head { margin-bottom: 10px; }
.open-input { width: 100%; background: #fff; border: 2px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-size: 16px; font-family: inherit; font-weight: 700; color: var(--ink); resize: vertical; min-height: 120px; }
.open-input:focus { outline: none; border-color: var(--blue); }
.open-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

/* ---------- AI-feedback ---------- */
.fb-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.score-ring { --p: 0; --col: var(--green); width: 86px; height: 86px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--col) calc(var(--p)*1%), var(--line) 0); animation: ringIn .8s var(--ease); }
@keyframes ringIn { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.score-ring i { width: 68px; height: 68px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; font-size: 25px; font-weight: 900; color: var(--ink); }
.score-ring i small { font-size: 12px; }
.fb-verdict { font-size: 20px; font-weight: 900; color: var(--ink); }
.fb-fb { color: var(--ink-2); font-weight: 700; line-height: 1.5; margin-top: 3px; }
.fb-lists { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.fb-good, .fb-miss { border-radius: var(--r); padding: 12px 15px; font-weight: 700; font-size: 14px; line-height: 1.45; }
.fb-good { background: #d7ffb8; color: #3a6b16; } .fb-miss { background: #fff3d6; color: #8a6713; }
.fb-good b, .fb-miss b { display: block; margin-bottom: 5px; }
.fb-good ul, .fb-miss ul { margin: 0; padding-left: 18px; }
.fb-model { background: var(--bg-soft); border: 2px solid var(--line); border-radius: var(--r); padding: 2px 16px; margin-bottom: 6px; }
.fb-model summary { font-weight: 800; cursor: pointer; padding: 12px 0; color: var(--blue); }
.fb-model p { color: var(--ink-2); font-weight: 700; line-height: 1.55; margin: 0 0 12px; }

/* ---------- aanbeveling ---------- */
.rec-banner { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg); cursor: pointer;
  background: linear-gradient(135deg, #fff3d6, #ffe7b3); border: 2px solid #ffd778; box-shadow: 0 4px 0 #ffcf57; transition: transform .1s; }
.rec-banner:active { transform: translateY(4px); box-shadow: 0 0 0 #ffcf57; }
.rec-ic { font-size: 28px; width: 54px; height: 54px; display: grid; place-items: center; background: #fff; border-radius: 14px; flex: none; }
.rec-txt { flex: 1; } .rec-txt h4 { margin: 0 0 2px; color: #7a5a00; } .rec-txt p { margin: 0; color: #9a7a20; font-weight: 800; font-size: 13px; }
.rec-go { font-weight: 900; color: #7a5a00; white-space: nowrap; }

@media (max-width: 620px) {
  .dash { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr; }
  .fb-lists { grid-template-columns: 1fr; }
  .pick-row { grid-template-columns: 1fr; }
  .chapters { grid-template-columns: 1fr; }
  .card-launch { grid-template-columns: 1fr; }
  .vid-grid { grid-template-columns: 1fr; }
  .ch-banner { flex-direction: column; }
  .setup-foot .btn { flex: 1; }
  .hud { gap: 12px; }
  .xpbar { width: 64px; }
  /* kleinere mascotte zodat hij actieknoppen niet blokkeert */
  .mascot svg { width: 50px; height: 50px; }
  /* volledige-breedte CTA's: grote taptargets, vrij van de mascotte in de hoek */
  .qfoot { justify-content: stretch; }
  .qfoot .btn { flex: 1; }
  .lesson-nav { width: 100%; }
  .lesson-nav .btn { flex: 1; }
  .result .actions .btn { flex: 1 1 140px; }
}
/* smalle telefoons: comprimeer de HUD zodat niets afgekapt wordt */
@media (max-width: 500px) {
  .topbar { gap: 8px; }
  .hud { gap: 10px; }
  .xpbar { display: none; }
  .xpcol { flex-direction: row; align-items: center; gap: 6px; }
}
@media (max-width: 380px) {
  .brand-txt { display: none; }
  .hud { gap: 9px; }
  .chip-stat { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto !important; }
}
