:root {
  --achtergrond: #fdf8ef;
  --kaart: #ffffff;
  --tekst: #3b3a4a;
  --zacht: #7a7889;
  --rood: #e8687a;
  --groen: #4cb38a;
  --blauw: #4a9fd8;
  --geel: #e8b84d;
  --rand: #ece4d4;
  --schaduw: 0 4px 0 rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--achtergrond);
  color: var(--tekst);
  font-family: 'Baloo Bhaijaan 2', system-ui, sans-serif;
  font-size: 18px;
  -webkit-tap-highlight-color: transparent;
}

#app { max-width: 720px; margin: 0 auto; padding: 16px; }

button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[lang="ar"] { font-family: 'Baloo Bhaijaan 2', 'Noto Naskh Arabic', serif; }

.knop {
  display: inline-block;
  padding: 10px 22px;
  border: 0;
  border-radius: 14px;
  background: var(--kaart);
  box-shadow: var(--schaduw), inset 0 0 0 2px var(--rand);
  font-weight: 700;
}
.knop.hoofd { background: var(--geel); color: #fff; box-shadow: var(--schaduw); }
.knop:active { transform: translateY(2px); }

/* ---------- Menu ---------- */

.kop { text-align: center; margin: 8px 0 24px; }
.kop h1 { font-size: 64px; margin: 0; line-height: 1.2; }
.kop h1 span:nth-child(1) { color: var(--rood); }
.kop h1 span:nth-child(2) { color: var(--groen); }
.kop h1 span:nth-child(3) { color: var(--blauw); }
.kop p { margin: 0; color: #c98a3c; font-size: 20px; }

.thema { margin-bottom: 52px; }
.thema h2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; font-size: 22px; margin: 0 0 12px; }
.themanr {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--groen); color: #fff; font-size: 18px;
}
.thema-ar { color: var(--blauw); font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: 6px; }

.lessen { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.les {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--kaart);
  border-radius: 16px;
  box-shadow: var(--schaduw), inset 0 0 0 2px var(--rand);
}
.les:active { transform: translateY(2px); }
.les .nr {
  position: relative; flex: none; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: #e3f1fb; font-size: 28px;
  box-shadow: inset 0 0 0 2px #cfe6f6;
}
.les .nr::after {
  content: attr(data-nr); position: absolute; top: -6px; left: -6px;
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blauw); color: #fff; font-size: 12px; font-weight: 700;
}
.les .titel { flex: 1; font-weight: 700; line-height: 1.25; }
.les .titel small { display: block; margin-top: 2px; color: var(--zacht); font-size: 15px; font-weight: 500; }
.sterren { flex: none; white-space: nowrap; }
.ster { color: #ddd5c4; font-size: 20px; }
.ster.aan { color: var(--geel); }

/* ---------- Spelscherm ---------- */

.spelkop { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 20px; margin: 8px 0 24px; }
.spelkop h2 { margin: 0; font-size: 22px; }
.terug {
  flex: none; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--kaart); box-shadow: var(--schaduw), inset 0 0 0 2px var(--rand);
  font-size: 22px;
}

.opdracht { font-size: 20px; margin: 8px 0; text-align: center; }
.teller { text-align: center; color: var(--zacht); font-weight: 700; margin-bottom: 8px; }

/* Kennismaken */
.kaarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 16px 0 24px; }
.letterkaart {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px; border: 0; border-radius: 22px;
  background: var(--kaart); box-shadow: var(--schaduw), inset 0 0 0 3px var(--rand);
}
.letterkaart.gehoord { box-shadow: var(--schaduw), inset 0 0 0 3px var(--groen); }
.letterkaart .groot { font-size: 110px; line-height: 1.3; color: var(--rood); }
.letterkaart:nth-child(2) .groot { color: var(--groen); }
.letterkaart .naam { font-weight: 700; font-size: 20px; }
.letterkaart .vormen { font-size: 34px; color: var(--zacht); letter-spacing: 6px; }
.spel > .knop.hoofd { display: block; margin: 0 auto; font-size: 22px; }

/* Ballonnen */
.doel {
  border: 0; border-radius: 12px; padding: 0 14px;
  background: var(--geel); color: #fff; font-size: 30px; line-height: 1.4;
  vertical-align: middle;
}
.lucht {
  position: relative; height: 62vh; min-height: 360px; overflow: hidden;
  border-radius: 22px; background: linear-gradient(#bfe3fb, #eef8ff);
  touch-action: manipulation;
  container-type: inline-size;
}
.ballon {
  position: absolute; bottom: -100px;
  width: 76px; height: 92px; padding: 0; border: 0; background: none;
  animation: stijg linear forwards;
}
.ballon::after {
  content: ''; position: absolute; left: 50%; top: 100%;
  width: 2px; height: 26px; background: rgba(0, 0, 0, .2);
}
.ballon .bol {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  border-radius: 50% 50% 46% 46%;
  background: var(--kleur);
  color: #fff; font-size: 42px; line-height: 1;
  box-shadow: inset -8px -10px 0 rgba(0, 0, 0, .1);
}
.ballon.weg .bol { animation: knal .3s forwards; }
/* Jasje: vliegers */
.jas-vlieger .bol { border-radius: 0; clip-path: polygon(50% 0, 100% 42%, 50% 100%, 0 42%); box-shadow: none; padding-bottom: 14px; animation: wieg 1.6s ease-in-out infinite; }
.jas-vlieger .bol:not(.schud) { animation: wieg 1.6s ease-in-out infinite; }
.jas-vlieger .ballon.weg .bol { animation: knal .3s forwards; }
@keyframes wieg { 50% { transform: rotate(9deg); } }

/* Jasje: vissen zwemmen van rechts naar links */
.jas-vis { background: linear-gradient(#a8e0f4, #3f9fd0); }
.jas-vis .ballon { bottom: auto; width: 104px; height: 66px; animation-name: zwem; }
.jas-vis .ballon::after { display: none; }
.jas-vis .bol { position: relative; border-radius: 55% 45% 45% 55% / 55% 50% 50% 55%; font-size: 34px; padding-left: 8px; }
.jas-vis .bol::after {
  content: ''; position: absolute; right: -20px; top: 50%; margin-top: -17px;
  border-right: 26px solid var(--kleur); border-top: 17px solid transparent; border-bottom: 17px solid transparent;
}
.jas-vis .bol::before {
  content: ''; position: absolute; left: 12px; top: 14px; width: 8px; height: 8px;
  border-radius: 50%; background: #3b3a4a; box-shadow: 0 0 0 2px #fff;
}
@keyframes zwem { to { transform: translateX(calc(-100cqw - 240px)); } }

@keyframes stijg { to { transform: translateY(calc(-62vh - 140px)); } }
@keyframes knal { to { transform: scale(1.7); opacity: 0; } }

/* Meerkeuze */
.vraag { display: flex; flex-direction: column; align-items: center; min-height: 150px; justify-content: center; }
.luister { font-size: 22px; }
.vorm { font-size: 110px; line-height: 1.3; }
.positie { margin: 0; color: var(--zacht); }
.keuzes { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 16px; }
.keuze {
  width: 120px; height: 120px; border: 0; border-radius: 24px;
  background: var(--kaart); box-shadow: var(--schaduw), inset 0 0 0 3px var(--rand);
  font-size: 64px; line-height: 1;
}
.keuze.goed { background: var(--groen); color: #fff; box-shadow: var(--schaduw); }

/* Slepen */
.vakken { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 12px 0; }
.vak {
  min-height: 150px; padding: 8px; border-radius: 20px;
  border: 3px dashed var(--rand); background: var(--kaart);
}
.vakletter { display: block; text-align: center; font-size: 48px; line-height: 1.2; color: var(--blauw); }
.vak .inhoud { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.vak .woordkaart { width: 64px; padding: 4px; font-size: 14px; }
.vak .woordkaart .beeld { font-size: 28px; }
.stapel { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.woordkaart {
  display: flex; flex-direction: column; align-items: center;
  width: 92px; padding: 8px 4px; border-radius: 16px;
  background: var(--kaart); box-shadow: var(--schaduw), inset 0 0 0 2px var(--rand);
  font-size: 20px; touch-action: none; user-select: none; cursor: grab;
}
.woordkaart .beeld { font-size: 44px; line-height: 1.1; }
.woordkaart.sleept { position: relative; z-index: 10; cursor: grabbing; box-shadow: 0 10px 20px rgba(0, 0, 0, .15); }

/* Resultaat */
.resultaat { text-align: center; padding: 40px 0; }
.grote-sterren .ster { font-size: 72px; }
.lof { font-size: 30px; font-weight: 700; margin: 8px 0 24px; }
.knoppen { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50;
  width: min(92vw, 420px); padding: 12px 16px; border-radius: 16px;
  background: var(--tekst); color: #fff; font-size: 16px; text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

.schud { animation: schud .35s; }
@keyframes schud {
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* ---------- Spelachtergronden ---------- */

/* Lucht: wolken die langs drijven, zon en heuvels op de voorgrond */
.lucht::before, .lucht::after { content: ''; position: absolute; left: 0; right: 0; pointer-events: none; }
.lucht::before {
  top: 0; bottom: 0; z-index: 0;
  background: radial-gradient(circle at 90% 11%, #fff4b0 0 26px, rgba(255, 255, 255, .45) 27px 58px, transparent 59px),
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='150' viewBox='0 0 600 150'%3E%3Cg fill='white' opacity='.95'%3E%3Cpath transform='translate(20 14) scale(.9)' d='M30 62a22 22 0 0 1 2-44 30 30 0 0 1 56-4 26 26 0 0 1 44 20 18 18 0 0 1-4 28z'/%3E%3Cpath transform='translate(270 60) scale(.6)' d='M30 62a22 22 0 0 1 2-44 30 30 0 0 1 56-4 26 26 0 0 1 44 20 18 18 0 0 1-4 28z'/%3E%3Cpath transform='translate(430 6) scale(.75)' d='M30 62a22 22 0 0 1 2-44 30 30 0 0 1 56-4 26 26 0 0 1 44 20 18 18 0 0 1-4 28z'/%3E%3C/g%3E%3C/svg%3E") 0 8% / 600px 150px repeat-x;
  animation: wolken 70s linear infinite;
}
.lucht::after {
  bottom: 0; height: 90px; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='90' viewBox='0 0 400 90' preserveAspectRatio='none'%3E%3Cpath d='M0 48Q100 8 200 38T400 28V90H0z' fill='%239ad9a6'/%3E%3Cpath d='M0 68Q120 38 240 60T400 52V90H0z' fill='%236cc48a'/%3E%3Cg fill='white'%3E%3Ccircle cx='50' cy='78' r='3.5'/%3E%3Ccircle cx='170' cy='72' r='3.5'/%3E%3Ccircle cx='300' cy='76' r='3.5'/%3E%3Ccircle cx='370' cy='70' r='3.5'/%3E%3C/g%3E%3Cg fill='%23f2b84b'%3E%3Ccircle cx='50' cy='78' r='1.5'/%3E%3Ccircle cx='170' cy='72' r='1.5'/%3E%3Ccircle cx='300' cy='76' r='1.5'/%3E%3Ccircle cx='370' cy='70' r='1.5'/%3E%3C/g%3E%3C/svg%3E") bottom / 100% 90px no-repeat;
}
.ballon { z-index: 1; }
@keyframes wolken { to { background-position: 0 0, 600px 8%; } }

/* Onder water: bubbels stijgen op, zandbodem met zeewier */
.jas-vis { background: linear-gradient(#b4e6f7 0%, #5db4dc 55%, #2f86bd 100%); }
.jas-vis::before {
  background: repeating-linear-gradient(100deg, rgba(255, 255, 255, .13) 0 40px, transparent 40px 110px),
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='320' viewBox='0 0 240 320'%3E%3Cg fill='white' fill-opacity='.18' stroke='white' stroke-opacity='.65' stroke-width='2'%3E%3Ccircle cx='30' cy='40' r='9'/%3E%3Ccircle cx='150' cy='90' r='5'/%3E%3Ccircle cx='95' cy='150' r='12'/%3E%3Ccircle cx='205' cy='200' r='7'/%3E%3Ccircle cx='50' cy='250' r='6'/%3E%3Ccircle cx='170' cy='290' r='10'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 240px 320px repeat;
  animation: bubbels 14s linear infinite;
}
.jas-vis::after { height: 80px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='80' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%233fa37a' stroke-width='6' stroke-linecap='round'%3E%3Cpath d='M50 66Q35 48 50 32T48 6'/%3E%3Cpath d='M62 68Q75 52 62 38T66 18'/%3E%3Cpath d='M310 68Q295 50 310 34T306 10'/%3E%3Cpath d='M324 70Q338 56 325 42'/%3E%3C/g%3E%3Cpath d='M0 52Q100 36 200 50T400 42V80H0z' fill='%23f2dfae'/%3E%3Cpath d='M0 64Q150 52 400 62V80H0z' fill='%23e6cd92'/%3E%3Cpath d='M150 60q8-12 16 0z' fill='%23ff9aa8'/%3E%3Cpath d='M240 64q7-10 14 0z' fill='%23fff'/%3E%3C/svg%3E") bottom / 100% 80px no-repeat; }
@keyframes bubbels { to { background-position: 0 0, 0 -320px; } }

/* De andere spelletjes: een vrolijk vlak met een zacht patroon */
.type-kennismaken, .type-luisterEnKies, .type-kiesDeVorm, .type-sleepNaarVak {
  padding: 14px 14px 24px; border-radius: 28px; min-height: 60vh;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .05);
}
.type-kennismaken   { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23f6d98a' opacity='.55'%3E%3Cpath transform='translate(14 16) scale(.8)' d='M12 0l3.5 8 8.5.8-6.5 5.7 2 8.5L12 18.5 4.5 23l2-8.5L0 8.8 8.5 8z'/%3E%3Cpath transform='translate(92 60) scale(.6)' d='M12 0l3.5 8 8.5.8-6.5 5.7 2 8.5L12 18.5 4.5 23l2-8.5L0 8.8 8.5 8z'/%3E%3Cpath transform='translate(40 92) scale(.5)' d='M12 0l3.5 8 8.5.8-6.5 5.7 2 8.5L12 18.5 4.5 23l2-8.5L0 8.8 8.5 8z'/%3E%3Cpath transform='translate(108 8) scale(.5)' d='M12 0l3.5 8 8.5.8-6.5 5.7 2 8.5L12 18.5 4.5 23l2-8.5L0 8.8 8.5 8z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 140px, linear-gradient(#fff6dc, #ffeebd); }
.type-luisterEnKies { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23cdbdf2' stroke='%23cdbdf2' stroke-width='3' opacity='.6'%3E%3Cg transform='translate(14 30)'%3E%3Cellipse cx='6' cy='20' rx='7' ry='5' stroke='none'/%3E%3Cpath d='M12 18V-4l10 4' fill='none'/%3E%3C/g%3E%3Cg transform='translate(80 78) scale(.8)'%3E%3Cellipse cx='6' cy='20' rx='7' ry='5' stroke='none'/%3E%3Cpath d='M12 18V-4l10 4' fill='none'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 0 0 / 140px, linear-gradient(#f4eeff, #e6dcfb); }
.type-kiesDeVorm    { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23b9e3cb' opacity='.7'%3E%3Cpath transform='translate(16 18) rotate(-30)' d='M0 12Q12 -6 24 12Q12 24 0 12z'/%3E%3Cpath transform='translate(88 66) rotate(25) scale(.8)' d='M0 12Q12 -6 24 12Q12 24 0 12z'/%3E%3Ccircle cx='100' cy='20' r='5'/%3E%3Ccircle cx='34' cy='96' r='4'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 140px, linear-gradient(#eefaf2, #d8f1e2); }
.type-sleepNaarVak  { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23a8d4f2' stroke-width='4' stroke-linecap='round' opacity='.7'%3E%3Cpath d='M20 14v16M12 22h16'/%3E%3Cpath d='M92 80v16M84 88h16'/%3E%3C/g%3E%3Cg fill='%23f5c9a8' opacity='.7'%3E%3Ccircle cx='100' cy='24' r='5'/%3E%3Ccircle cx='30' cy='100' r='5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 140px, linear-gradient(#edf7ff, #d9ecfb); }

/* ---------- Extra jasjes voor "Vang de letter": ster, vlinder, raket ---------- */

/* Vallende sterren in een nachthemel */
.jas-ster { background: linear-gradient(#1b2559, #3b4a99 60%, #6a5fb0); }
.jas-ster::before {
  background: radial-gradient(circle at 12% 15%, #fff6c9 0 20px, rgba(255, 246, 201, .25) 21px 44px, transparent 45px),
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='white'%3E%3Ccircle cx='20' cy='30' r='2'/%3E%3Ccircle cx='90' cy='70' r='1.5'/%3E%3Ccircle cx='160' cy='20' r='2.2'/%3E%3Ccircle cx='200' cy='110' r='1.6'/%3E%3Ccircle cx='50' cy='140' r='1.8'/%3E%3Ccircle cx='130' cy='170' r='2'/%3E%3Ccircle cx='180' cy='200' r='1.4'/%3E%3Ccircle cx='15' cy='205' r='1.6'/%3E%3Cpath d='M110 100l2.5 6 6 2.5-6 2.5-2.5 6-2.5-6-6-2.5 6-2.5z' fill='%23fff3b0'/%3E%3Cpath d='M40 60l2 5 5 2-5 2-2 5-2-5-5-2 5-2z' fill='%23fff3b0'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 220px 220px repeat;
  animation: twinkel 3s ease-in-out infinite alternate;
}
.jas-ster::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='90' viewBox='0 0 400 90' preserveAspectRatio='none'%3E%3Cpath d='M0 46Q100 10 200 40T400 26V90H0z' fill='%233a3f86'/%3E%3Cpath d='M0 68Q120 42 240 62T400 54V90H0z' fill='%232a2e6b'/%3E%3Cg fill='%23ffe58a'%3E%3Crect x='70' y='60' width='6' height='6' rx='1'/%3E%3Crect x='84' y='62' width='6' height='6' rx='1'/%3E%3Crect x='300' y='60' width='6' height='6' rx='1'/%3E%3C/g%3E%3C/svg%3E") bottom / 100% 90px no-repeat; }
@keyframes twinkel { from { opacity: .65; } to { opacity: 1; } }
.jas-ster .ballon { bottom: auto; top: -110px; width: 90px; height: 90px; animation-name: val; }
.jas-ster .ballon::after { display: none; }
.jas-ster .bol {
  background: #f6c453; color: #3b3a4a; font-size: 38px; padding-top: 8px; box-shadow: none;
  border-radius: 0; clip-path: polygon(50% 0, 62% 34%, 98% 36%, 69% 58%, 80% 94%, 50% 72%, 20% 94%, 31% 58%, 2% 36%, 38% 34%);
}
.jas-ster .bol:not(.schud) { animation: wieg 2s ease-in-out infinite; }
.jas-ster .ballon.weg .bol { animation: knal .3s forwards; }
@keyframes val { to { transform: translateY(calc(62vh + 220px)); } }

/* Vlinders fladderen door een bloementuin, van rechts naar links */
.jas-vlinder { background: linear-gradient(#ffe9f2, #fff6d6 55%, #e5f6d4); }
.jas-vlinder::before {
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, .8) 0 30px, transparent 31px),
              radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .7) 0 40px, transparent 41px);
  animation: none;
}
.jas-vlinder::after { height: 90px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='90' viewBox='0 0 400 90' preserveAspectRatio='none'%3E%3Cpath d='M0 56Q100 36 200 54T400 44V90H0z' fill='%238bd48f'/%3E%3Cpath d='M0 74Q150 58 400 72V90H0z' fill='%235fbf7a'/%3E%3Cg stroke='%234aa866' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M40 80V50'/%3E%3Cpath d='M120 82V44'/%3E%3Cpath d='M210 80V52'/%3E%3Cpath d='M290 82V46'/%3E%3Cpath d='M360 80V54'/%3E%3C/g%3E%3Ccircle cx='40' cy='48' r='8' fill='%23e8687a'/%3E%3Ccircle cx='120' cy='42' r='9' fill='%23f2b84b'/%3E%3Ccircle cx='210' cy='50' r='8' fill='%239b7ad8'/%3E%3Ccircle cx='290' cy='44' r='9' fill='%23ff9aa8'/%3E%3Ccircle cx='360' cy='52' r='8' fill='%234a9fd8'/%3E%3Cg fill='%23fff6d8'%3E%3Ccircle cx='40' cy='48' r='2.5'/%3E%3Ccircle cx='120' cy='42' r='2.5'/%3E%3Ccircle cx='210' cy='50' r='2.5'/%3E%3Ccircle cx='290' cy='44' r='2.5'/%3E%3Ccircle cx='360' cy='52' r='2.5'/%3E%3C/g%3E%3C/svg%3E") bottom / 100% 90px no-repeat; }
.jas-vlinder .ballon { bottom: auto; width: 124px; height: 104px; animation-name: zwem; }
.jas-vlinder .ballon::after { display: none; }
.jas-vlinder .bol {
  position: relative; display: grid; place-items: center;
  border-radius: 0; background: none; box-shadow: none;
  animation: bob 1.1s ease-in-out infinite alternate;
}
.jas-vlinder .bol:not(.schud) { animation: bob 1.1s ease-in-out infinite alternate; }
.jas-vlinder .ballon.weg .bol { animation: knal .3s forwards; }
.vflap { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: fladder .5s ease-in-out infinite alternate; }
.vw { fill: var(--kleur); }
.vr { fill: none; stroke: rgba(0, 0, 0, .18); stroke-width: 2.5; stroke-linejoin: round; }
.vs { fill: rgba(255, 255, 255, .75); }
.vl { fill: #4a3b57; }
.va { fill: none; stroke: #4a3b57; stroke-width: 2.2; stroke-linecap: round; }
.vletter {
  position: relative; display: grid; place-items: center; width: 50px; height: 50px; margin-top: 5px;
  border-radius: 50%; background: rgba(255, 255, 255, .94); color: #3b3a4a;
  font-size: 34px; font-weight: 700; line-height: 1; box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
}
@keyframes fladder { from { transform: scaleX(1); } to { transform: scaleX(.72); } }
@keyframes bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-9px) rotate(3deg); } }

/* Raketten in de ruimte */
.jas-raket { background: linear-gradient(#0e1540, #232b78 70%, #3a3a96); }
.jas-raket::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='white'%3E%3Ccircle cx='20' cy='30' r='2'/%3E%3Ccircle cx='90' cy='70' r='1.5'/%3E%3Ccircle cx='160' cy='20' r='2.2'/%3E%3Ccircle cx='200' cy='110' r='1.6'/%3E%3Ccircle cx='50' cy='140' r='1.8'/%3E%3Ccircle cx='130' cy='170' r='2'/%3E%3Ccircle cx='180' cy='200' r='1.4'/%3E%3Ccircle cx='15' cy='205' r='1.6'/%3E%3Cpath d='M110 100l2.5 6 6 2.5-6 2.5-2.5 6-2.5-6-6-2.5 6-2.5z' fill='%23fff3b0'/%3E%3Cpath d='M40 60l2 5 5 2-5 2-2 5-2-5-5-2 5-2z' fill='%23fff3b0'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 220px 220px repeat;
  animation: ruimte 12s linear infinite;
}
.jas-raket::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='90' viewBox='0 0 400 90' preserveAspectRatio='none'%3E%3Cpath d='M0 50Q100 24 200 46T400 36V90H0z' fill='%239d97d4'/%3E%3Cpath d='M0 72Q150 52 400 70V90H0z' fill='%237c76bb'/%3E%3Cg fill='%238a84c6'%3E%3Cellipse cx='80' cy='68' rx='16' ry='4'/%3E%3Cellipse cx='250' cy='62' rx='20' ry='5'/%3E%3Cellipse cx='340' cy='76' rx='12' ry='3'/%3E%3C/g%3E%3C/svg%3E") bottom / 100% 90px no-repeat; }
@keyframes ruimte { to { background-position: 0 220px; } }
.jas-raket .ballon { width: 70px; height: 100px; }
.jas-raket .ballon::after { display: none; }
.jas-raket .bol {
  position: relative; font-size: 34px; padding-bottom: 14px;
  border-radius: 50% 50% 10px 10px / 70% 70% 10px 10px; box-shadow: inset -7px 0 0 rgba(0, 0, 0, .15);
}
.jas-raket .bol::after {
  content: ''; position: absolute; left: 50%; top: 100%; margin-left: -14px;
  border-top: 26px solid #f6a33d; border-left: 14px solid transparent; border-right: 14px solid transparent;
  animation: vlam .25s ease-in-out infinite alternate;
}
.jas-raket .bol::before {
  content: ''; position: absolute; left: -12px; right: -12px; bottom: -4px; height: 34px; z-index: -1;
  background: var(--kleur); filter: brightness(.78);
  clip-path: polygon(0 100%, 8% 20%, 24% 55%, 24% 100%, 76% 100%, 76% 55%, 92% 20%, 100% 100%);
}
@keyframes vlam { to { border-top-width: 36px; border-top-color: #f6d453; } }

@media (prefers-reduced-motion: reduce) {
  .lucht::before { animation: none; }
}

@media (max-width: 480px) {
  .kop h1 { font-size: 52px; }
  .keuze { width: 104px; height: 104px; font-size: 56px; }
  .letterkaart .groot { font-size: 90px; }
}

/* ---------- Inloggen ---------- */

.inlog { max-width: 320px; margin: 12vh auto 0; text-align: center; display: grid; gap: 14px; }
.inlog h1 { font-size: 72px; margin: 0; line-height: 1.2; }
.inlog h1 span:nth-child(1) { color: var(--rood); }
.inlog h1 span:nth-child(2) { color: var(--groen); }
.inlog h1 span:nth-child(3) { color: var(--blauw); }
.inlog p { margin: 0; color: #c98a3c; font-size: 20px; }
.inlog input {
  font: inherit; font-size: 22px; text-align: center;
  padding: 12px 14px; border: 0; border-radius: 14px;
  background: var(--kaart); color: var(--tekst);
  box-shadow: var(--schaduw), inset 0 0 0 2px var(--rand);
}
.inlog input:focus { outline: 3px solid var(--blauw); }
.inlog .fout { color: var(--rood); font-size: 17px; }
.uitloggen { text-align: center; margin: 0 0 24px; }
.uitloggen button { border: 0; background: none; color: var(--zacht); font-size: 16px; text-decoration: underline; }

.home {
  display: inline-block; padding: 6px 14px; border-radius: 12px;
  background: var(--kaart); font-weight: 700; color: var(--zacht);
  box-shadow: var(--schaduw), inset 0 0 0 2px var(--rand);
}
.home:active { transform: translateY(2px); }
.inlog { margin-top: 8vh; }

/* ---------- Themaoverzicht ---------- */

.themas { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.themakaart {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--kaart); border-radius: 20px;
  box-shadow: var(--schaduw), inset 0 0 0 2px var(--rand);
}
.themakaart:active { transform: translateY(2px); }
.themakaart .themanr { flex: none; width: 44px; height: 44px; font-size: 22px; }
.themainfo { flex: 1; display: grid; gap: 4px; min-width: 0; }
.thematitel { font-size: 22px; font-weight: 700; line-height: 1.2; }
.themainfo small { color: var(--zacht); font-size: 15px; }
.themavoortgang { height: 10px; border-radius: 5px; background: var(--rand); overflow: hidden; }
.themavoortgang span { display: block; height: 100%; background: var(--groen); border-radius: 5px; }
.themakaart .thema-ar { flex: none; font-size: 34px; }
.spelkop h2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.spelkop .thema-ar { font-size: 28px; }

/* ---------- Schrijven ---------- */

.schrijfveld {
  position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 12px auto;
  background: var(--kaart); border-radius: 24px;
  box-shadow: var(--schaduw), inset 0 0 0 3px var(--rand);
}
.schrijfveld canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; border-radius: 24px; }
.schrijfveld .sjabloon { pointer-events: none; }
.schrijfveld.goed { box-shadow: var(--schaduw), inset 0 0 0 4px var(--groen); }
.type-schrijven .knoppen { display: flex; justify-content: center; gap: 12px; }

/* ---------- Hoofdcategorieën ---------- */

.categorieen { gap: 18px; }
.themakaart.categorie { padding: 20px; gap: 18px; }
.categorie-icoon {
  flex: none; display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 22px; font-size: 42px;
}
.categorie.letters .categorie-icoon { background: #e3f1fb; box-shadow: inset 0 0 0 2px #cfe6f6; }
.categorie.schrijven .categorie-icoon { background: #fdf0cf; box-shadow: inset 0 0 0 2px #f3dca0; }
.themakaart.categorie .thematitel { font-size: 26px; }
.themanr.icoon { background: none; font-size: 28px; width: auto; }
.vormnaam { text-align: center; margin: 0; color: var(--blauw); font-weight: 700; min-height: 1.4em; }

/* ---------- Kleuren ---------- */

.schrijfveld .verf, .schrijfveld .omlijning { pointer-events: auto; }
.schrijfveld .verf { pointer-events: none; }
.woordplaatje {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 8px auto; padding: 8px 18px; border: 0; border-radius: 16px;
  background: var(--kaart); box-shadow: var(--schaduw), inset 0 0 0 2px var(--rand);
  font-size: 20px; font-weight: 700;
}
.woordplaatje[hidden] { display: none; }
.woordplaatje .beeld { font-size: 34px; line-height: 1; }
.potloden { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 14px; }
.potlood {
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--kleur); box-shadow: 0 3px 0 rgba(0, 0, 0, .15);
}
.potlood.gekozen { outline: 4px solid var(--tekst); outline-offset: 2px; }

.sterrenrij { display: flex; justify-content: center; gap: 10px; margin: 6px 0; }
.sterrenrij .ster { font-size: 40px; line-height: 1; color: #ece7dd; }
.sterrenrij .ster.aan { color: var(--geel); }

/* ---------- Introductie voor een les ---------- */

.intro {
  max-width: 420px; margin: 40px auto 0; padding: 36px 24px 28px; text-align: center;
  background: var(--kaart); border-radius: 28px;
  box-shadow: var(--schaduw), inset 0 0 0 3px var(--rand);
}
.intro-icoon { font-size: 88px; line-height: 1.1; }
.intro-tekst { margin: 12px 0 24px; font-size: 26px; font-weight: 700; }
.intro .knop { font-size: 22px; padding: 12px 40px; }

/* ---------- Schrijfblad: letter links, woorden rechts ---------- */

.schrijfblad { display: grid; grid-template-columns: 3fr 1fr; grid-template-rows: auto 1fr; gap: 10px 12px; max-width: 640px; margin: 8px auto; }
.schrijfblad .blad-links { display: contents; }
.schrijfblad .sterrenrij { grid-column: 1; grid-row: 1; }
.schrijfblad .schrijfveld { grid-column: 1; grid-row: 2; }
.schrijfblad .schrijfveld { width: 100%; margin: 0; }
.schrijfblad .sterrenrij { margin: 0; }
/* de kaartjes lopen over de hoogte van het schrijfvlak: bovenste bovenaan, onderste onderaan */
.zijkolom { grid-column: 2; grid-row: 2; display: grid; align-content: space-between; gap: 10px; }
.zijkolom[hidden] { display: none; }
.zijkaart {
  width: 92%; justify-self: center; aspect-ratio: 1; border: 0; border-radius: 20px;
  background: #efece6; color: #4a82ad; font-size: clamp(44px, 13vw, 80px); font-weight: 700; line-height: 1;
}
.zijkaart.getoond { background: var(--kaart); box-shadow: var(--schaduw), inset 0 0 0 2px var(--rand); animation: verschijn .5s; }
@keyframes verschijn { from { transform: scale(.2) translateX(-160px); opacity: 0; } to { transform: none; opacity: 1; } }
.woordscherm {
  position: absolute; inset: 0; z-index: 2; border-radius: 24px; background: var(--kaart);
  display: grid; place-content: center; text-align: center; gap: 6px; animation: verschijn .35s;
}
.woordscherm[hidden] { display: none; }
.woord-ar { font-size: clamp(56px, 16vw, 88px); line-height: 1.5; color: var(--blauw); font-weight: 700; }
.woord-ar .rood { color: var(--rood); }
.woord-nl { margin: 0; font-size: 24px; font-weight: 700; }
.sterrenrij .ster.klaar.aan:nth-child(4n+1) { color: #a9a5d2; }
.sterrenrij .ster.klaar.aan:nth-child(4n+2) { color: #d7e6b5; }
.sterrenrij .ster.klaar.aan:nth-child(4n+3) { color: #e3b0c8; }
.sterrenrij .ster.klaar.aan:nth-child(4n+4) { color: #b9dfe8; }

/* ---------- Feest na een les ---------- */

.feest { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.feest .ballon, .feest .confetti { position: absolute; left: var(--x); }
.feest .ballon { bottom: -80px; font-size: var(--maat); animation: opstijgen var(--duur) ease-in var(--wacht) forwards; }
.feest .confetti { top: -20px; width: 10px; height: 16px; background: var(--kleur); border-radius: 2px; animation: vallen var(--duur) linear var(--wacht) forwards; }
@keyframes opstijgen { to { transform: translate(var(--drift), -120vh); } }
@keyframes vallen { to { transform: translate(var(--drift), 110vh) rotate(720deg); } }
@media (prefers-reduced-motion: reduce) { .feest { display: none; } }

/* Beginpunt van het schrijven: klein, in de kleur van de pen, en weg zodra het kind begint */
.beginstip {
  position: absolute; z-index: 1; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: #4a9fd8; pointer-events: none; animation: stip 1.4s ease-in-out infinite;
}
.beginstip[hidden], .beginstip.gestart { display: none; }
@keyframes stip { 50% { transform: scale(1.25); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .beginstip { animation: none; } }

/* zonder woordkaartjes (vormenlessen) krijgt het schrijfvlak de hele breedte */
.schrijfblad.zonder-zijkolom { grid-template-columns: minmax(0, 1fr); max-width: 440px; }

/* ---------- Kleurplaat van een plaatje ---------- */

.kleurblad { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 420px; margin: 8px auto; }
.kleurblad .kleurveld { width: 100%; margin: 0; }
.kleurblad .potloden, .kleurblad .woordplaatje { margin: 0; }
.kleurveld canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.kleurveld .verf { border-radius: 24px; }
.kleurveld .foto { opacity: 0; pointer-events: none; transition: opacity .8s; }
.kleurveld.goed .foto { opacity: 1; }
.kleurveld .omlijning { touch-action: manipulation; cursor: pointer; }
.kleurveld.goed .omlijning { opacity: 0; transition: opacity .8s; }
.letterkaart-rood { width: 84px; height: 84px; border: 0; border-radius: 20px; background: var(--kaart); box-shadow: var(--schaduw), inset 0 0 0 2px var(--rand); font-size: 56px; display: grid; place-items: center; }
.letterkaart-rood .rood { color: var(--rood); font-weight: 700; line-height: 1; }

.woordscherm .woord-beeld { font-size: clamp(56px, 16vw, 88px); line-height: 1.1; }

/* ---------- Vormenblad: rondjes in het vlak, vorm en woord rechts ---------- */

.schrijfblad.vormblad { grid-template-columns: 3fr 2fr; max-width: 700px; grid-template-rows: auto; }
.vormblad .schrijfveld { grid-row: 1; }
.vormblad .zijkolom { grid-row: 1; align-content: start; gap: 14px; }
.cirkels { position: absolute; z-index: 1; top: 14px; bottom: 14px; right: 12px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.cirkel { width: 42px; height: 42px; border-radius: 50%; background: #e7e4de; display: grid; place-items: center; font-size: 24px; color: #fff; transition: background .3s; }
.cirkel.aan { background: var(--geel); }
.cirkel.eindster { background: #e7e4de; color: #fff; }
.cirkel.eindster.aan { background: var(--geel); }
.vormkaart { display: grid; place-items: center; aspect-ratio: 1.5; border-radius: 18px; background: #5b8fb4; color: #fff; font-size: clamp(56px, 16vw, 84px); font-weight: 700; line-height: 1; }
.vormwoord { border: 0; background: none; display: grid; justify-items: center; gap: 2px; padding: 0; }
.vormwoord .woord-beeld { font-size: clamp(48px, 14vw, 76px); line-height: 1.1; }
.vormwoord .woord-ar { font-size: clamp(32px, 9vw, 46px); line-height: 1.4; }

/* ---------- Startscherm en leerpad ---------- */

.categorie.leerpad .categorie-icoon { background: #e6f5ec; box-shadow: inset 0 0 0 2px #c4e6d1; }
.categorie.oefeningen .categorie-icoon { background: #efe8fb; box-shadow: inset 0 0 0 2px #dccff3; }

.begroeting { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; }
.mascotte { flex: none; width: 84px; height: 84px; }
.ballon-tekst {
  position: relative; flex: 1; padding: 14px 18px; border-radius: 22px;
  background: var(--kaart); box-shadow: var(--schaduw), inset 0 0 0 2px var(--rand);
}
.ballon-tekst::before {
  content: ''; position: absolute; left: -9px; top: 28px; width: 18px; height: 18px;
  background: var(--kaart); transform: rotate(45deg); box-shadow: -2px 2px 0 var(--rand);
}
.ballon-tekst p { margin: 0 0 10px; font-size: 20px; font-weight: 700; line-height: 1.25; }

.pad { position: relative; margin: 0 auto; }
.pad svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pad-thema {
  position: absolute; left: 50%; transform: translate(-50%, -50%); z-index: 1;
  display: flex; align-items: center; gap: 10px; padding: 4px 18px; border-radius: 999px; white-space: nowrap;
  max-width: 260px; overflow: hidden; text-overflow: ellipsis;
  background: var(--kl, #4a9fd8); color: #fff; font-weight: 700; box-shadow: 0 4px 0 color-mix(in srgb, var(--kl, #4a9fd8) 70%, #000);
}
.pad-thema span { font-size: 28px; line-height: 1.3; }
.pad-versiering { position: absolute; z-index: 0; transform: translate(-50%, -50%); pointer-events: none; opacity: .8; }
.pad-versiering svg { width: 100%; height: 100%; overflow: visible; }
.v-wolk svg { animation: pad-drijf 9s ease-in-out infinite alternate; }
@keyframes pad-drijf { from { transform: translateX(-8px); } to { transform: translateX(8px); } }

.pad-stap {
  position: absolute; z-index: 2; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: var(--kaart); box-shadow: 0 6px 0 var(--rand), inset 0 0 0 3px var(--rand); font-size: 30px;
  animation: pad-pop .4s backwards; animation-delay: min(calc(var(--i, 0) * 18ms), 500ms);
}
.pad-stap:active { transform: translate(-50%, calc(-50% + 3px)); }
.pad-stap.klaar {
  background: color-mix(in srgb, var(--kl) 14%, #fff);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--kl) 45%, #fff), inset 0 0 0 3px var(--kl);
}
.pad-stap.klaar.oefen { box-shadow: 0 6px 0 #f3d9a6, inset 0 0 0 3px #e8a33d; }
.pad-stap.later .pad-icoon { filter: grayscale(.7); opacity: .65; }
.pad-stap.nu {
  width: 88px; height: 88px; font-size: 40px; background: #fff3d6;
  box-shadow: 0 7px 0 #e8b84d, inset 0 0 0 4px var(--geel); animation: pad-wieg 2.4s ease-in-out infinite;
}
.pad-stap.nu::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 4px solid var(--geel);
  opacity: 0; animation: pad-ring 2.4s ease-out infinite; pointer-events: none;
}
.pad-start {
  position: absolute; top: calc(100% - 6px); left: 50%; transform: translateX(-50%);
  padding: 2px 12px; border-radius: 12px; background: var(--geel); color: #fff; font-weight: 800; font-size: 15px;
}
.pad-mascotje { position: absolute; top: -16px; right: -16px; width: 38px; height: 38px; pointer-events: none; animation: pad-hupje 1.6s ease-in-out infinite; }
.pad-mascotje .mascotte { width: 100%; height: 100%; }
.pad-herhaal {
  position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 0 var(--rand), inset 0 0 0 2px #e8a33d; font-size: 14px;
}
.pad-sterren { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; line-height: 1; }
.pad-sterren .ster { font-size: 15px; }
.pad-beker {
  position: absolute; z-index: 2; transform: translate(-50%, -50%); display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%; font-size: 40px; background: #fff3d6;
  box-shadow: 0 6px 0 #e8b84d, inset 0 0 0 4px var(--geel); filter: grayscale(.8) opacity(.7);
}
.pad-beker.klaar { filter: none; animation: pad-wieg 2.4s ease-in-out infinite; }
.pad path.gedaan { transition: stroke-dasharray .6s; }
@keyframes pad-wieg { 50% { transform: translate(-50%, calc(-50% - 5px)); } }
@keyframes pad-pop { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } }
@keyframes pad-ring { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes pad-hupje { 50% { transform: translateY(-4px) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
  .pad-stap, .pad-stap.nu, .pad-stap.nu::after, .pad-mascotje, .pad-beker.klaar, .pad-versiering svg { animation: none; }
}
.themaklaar { margin: 0 0 14px; font-weight: 700; color: #2f8a66; }
.naar-pad { margin: 14px 0 0; text-align: center; }
.naar-pad a { color: var(--zacht); font-size: 17px; text-decoration: underline; }

/* ---------- Feest aan het einde van een thema ---------- */

.themafeest {
  display: grid; justify-items: center; gap: 4px; margin: 0 auto 18px; padding: 8px 24px; border: 0; background: none;
  animation: feest-pop .7s cubic-bezier(.3, 1.6, .5, 1) both;
}
.feest-woord {
  font-size: 84px; line-height: 1.3; font-weight: 800;
  background: linear-gradient(90deg, #e8687a, #e8a33d, #4cb38a, #4a9fd8, #9b7ad8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.feest-letters { font-size: 40px; line-height: 1.3; color: var(--zacht); letter-spacing: .1em; }
@keyframes feest-pop { from { transform: scale(.2) rotate(-8deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .themafeest { animation: none; } }

/* ---------- Losse oefeningen als kaarten ---------- */

.kaarten { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.spelkaart, .leskaart {
  display: grid; height: 100%; overflow: hidden; border-radius: 24px; background: var(--kaart);
  box-shadow: 0 6px 0 var(--rand), inset 0 0 0 2px var(--rand);
}
.spelkaart:active, .leskaart:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--rand), inset 0 0 0 2px var(--rand); }
.spelkaart { grid-template-rows: 120px 1fr; }
.spelkaart-plaat {
  display: grid; place-items: center; font-size: 64px;
  background: color-mix(in srgb, var(--kl) 18%, #fff); box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--kl) 30%, #fff);
}
.spelkaart-info { display: grid; gap: 4px; align-content: start; padding: 12px 14px 14px; }
.spelkaart-titel { font-size: 20px; font-weight: 700; line-height: 1.2; }
.spelkaart-info small { color: var(--zacht); font-size: 14px; }
.spelkaart-info .themavoortgang { margin-top: 4px; }
.lessenkaarten { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.leskaart { position: relative; justify-items: center; align-content: center; gap: 6px; padding: 18px 10px 14px; text-align: center; }
.leskaart.gedaan { background: color-mix(in srgb, var(--kl) 8%, #fff); }
.leskaart-icoon {
  position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: color-mix(in srgb, var(--kl) 18%, #fff); font-size: 18px;
}
.leskaart-letters { font-size: 50px; line-height: 1.4; color: var(--kl); font-weight: 700; word-spacing: .1em; }
.leskaart-titel { font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--tekst); }
.leskaart .sterren { line-height: 1; }
