/* Mijn Krachtboek. Alles in #book staat in paginapixels en schaalt mee met het boek;
   alles daarbuiten (balk, speelkaart, strook, feest) staat in schermpunten. */
:root {
  --ink: #3a1d0e; --plum: #4a1a5c; --nacht: #2a1736; --ruby: #c2185b; --leaf: #2e9e4f; --gold: #f2b233; --room: #fff6dc;
  --k: clamp(44px, 8.4vmin, 66px);          /* maat van een ronde knop */
  --tekst: clamp(14px, 2.5vmin, 22px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--nacht); color: var(--ink);
  font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; touch-action: manipulation; }
img { -webkit-user-drag: none; user-select: none; }
[hidden] { display: none !important; }

#app { position: fixed; left: 0; top: 0; width: 100%; height: 100%; display: flex; flex-direction: column; }

/* ---------- Bovenbalk ---------- */
#bar { flex: none; display: flex; align-items: center; gap: clamp(6px, 1.4vmin, 14px);
  padding: 8px max(12px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left));
  padding-top: max(8px, env(safe-area-inset-top)); }
.kn { flex: none; width: var(--k); height: var(--k); border-radius: 50%; }
.kn img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.kn:active, .rond:active { transform: translateY(3px) scale(.96); }
.kn:disabled { opacity: .25; }
.kn.uit img { filter: grayscale(1) opacity(.55); }
.rond { flex: none; width: var(--k); height: var(--k); border-radius: 50%; background: #fff; box-shadow: 0 4px 0 #c9810f; }
#btn-terug { display: none; }
body.speel #btn-terug { display: block; }

#tara { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
#wie { flex: none; width: var(--k); height: var(--k); border-radius: 50%; border: 3px solid var(--gold); object-fit: cover; background: var(--room); }
#wolk { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--room); border: 3px solid var(--gold); border-radius: 20px; border-bottom-left-radius: 6px;
  padding: 6px 14px; min-height: var(--k); font-size: var(--tekst); font-weight: 700; line-height: 1.2; }
#wolk-tekst { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#wolk .hoor { flex: none; font-size: 1.1em; opacity: .75; }
#wolk.plop { animation: plop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes plop { 0% { transform: scale(.94); } 100% { transform: scale(1); } }
#wie.praat { animation: praat .5s ease-in-out infinite; }
@keyframes praat { 50% { transform: scale(1.1) rotate(-4deg); } }

#btn-cirkel svg { width: 100%; height: 100%; display: block; }
#btn-cirkel.bons { animation: bons .6s cubic-bezier(.3,1.8,.5,1); }
@keyframes bons { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* ---------- Midden: het open boek ---------- */
#mid { flex: 1; min-height: 0; display: flex; position: relative; }
#stage { flex: 1; min-width: 0; min-height: 0; position: relative; overflow: hidden; }
#book { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
#book.wissel { animation: wissel .35s ease; }
@keyframes wissel { 0% { opacity: 0; } 100% { opacity: 1; } }
body.speel #book { filter: brightness(.55) saturate(.8); transition: filter .3s; }

.page { position: absolute; }
.page > img.blad { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none;
  box-shadow: 0 14px 44px rgba(0,0,0,.5); }
.page.links > img.blad { border-radius: 18px 4px 4px 18px; }
.page.rechts > img.blad { border-radius: 4px 18px 18px 4px; }
.page.links::after, .page.rechts::after { content: ""; position: absolute; top: 0; bottom: 0; width: 46px; pointer-events: none; }
.page.links::after { right: 0; background: linear-gradient(to right, rgba(60,20,0,0), rgba(60,20,0,.22)); }
.page.rechts::after { left: 0; background: linear-gradient(to left, rgba(60,20,0,0), rgba(60,20,0,.22)); }
body.enkel .page > img.blad { border-radius: 18px; }
body.enkel .page::after { display: none; }
body.enkel .page.weg { visibility: hidden; }

/* Levende plekken: raak ze aan en ze komen naar voren */
.leef { position: absolute; z-index: 1; border-radius: 24px; }
.knip { background-repeat: no-repeat; }
.pop { position: absolute; z-index: 6; border-radius: 26px; pointer-events: none;
  box-shadow: 0 0 0 7px #fff, 0 0 0 13px var(--gold), 0 26px 50px rgba(0,0,0,.55); }
.figuur { position: absolute; z-index: 6; pointer-events: none; transform-origin: 50% 100%; }
.figuur img { display: block; height: 100%; width: auto; transform-origin: 50% 100%; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.figuur.zwaai img { animation: zwaai .7s ease-in-out infinite; }
.figuur.spring img { animation: spring .55s ease-in-out infinite; }
@keyframes zwaai { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes spring { 0%, 100% { transform: translateY(0) scale(1, 1); } 45% { transform: translateY(-16%) scale(.97, 1.04); } 80% { transform: translateY(0) scale(1.04, .96); } }

/* Voorleesverhalen: elke zin is een tikvlak; de zin die klinkt krijgt een gele markering */
.zin { position: absolute; z-index: 2; border-radius: 9px; }
.zin:active { background: rgba(255,214,10,.3); }
.zin.klinkt { background: rgba(255,205,0,.5); mix-blend-mode: multiply; box-shadow: 0 0 0 4px rgba(255,205,0,.5); }
.leesknop { position: absolute; z-index: 4; border-radius: 50%; animation: adem 1.5s ease-in-out infinite; }
.leesknop img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 5px 0 rgba(0,0,0,.28)); }
.leesknop i { display: none; position: absolute; inset: 21%; border-radius: 50%; background: #fff7dc;
  box-shadow: inset 0 0 0 5px #c9369a; }
.leesknop i::before, .leesknop i::after { content: ""; position: absolute; top: 27%; bottom: 27%; width: 15%; border-radius: 5px; background: #2e9e4f; }
.leesknop i::before { left: 28%; } .leesknop i::after { right: 28%; }
.leesknop.bezig { animation: none; }
.leesknop.bezig i { display: block; }
.leesknop.nu { z-index: 5; animation: wijsknop 1s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(255,150,20,1)) drop-shadow(0 0 7px #fff); }

/* Een opdracht: de zone is het tikvlak in het open boek */
.zone { position: absolute; border-radius: 30px; z-index: 3; }
/* De gids: de plek waar het kind nu mag tikken licht op en wordt klein en weer iets groter. */
.leef.nu, .zone.nu { z-index: 5; }
.leef.nu::before, .zone.nu::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 11px solid #ff8f1f; pointer-events: none;
  background: rgba(255,225,110,.2);
  box-shadow: 0 0 0 6px #fff, 0 0 50px 18px rgba(255,150,20,.95), inset 0 0 0 5px #fff, inset 0 0 36px rgba(255,200,70,.6);
  animation: wijs 1.05s ease-in-out infinite; }
@keyframes wijs { 0%, 100% { transform: scale(.95); } 50% { transform: scale(1.06); } }
#btn-volgende.nu { animation: wijsknop 1s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(255,170,30,1)) drop-shadow(0 0 6px #fff); }
@keyframes wijsknop { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.16); } }
.zone .lamp { position: absolute; right: -20px; top: -40px; width: 76px; height: 76px; display: none;
  filter: drop-shadow(0 4px 5px rgba(0,0,0,.35)); }
.zone.af .lamp { display: block; }
.zone .lamp svg { width: 100%; height: 100%; }

/* Wat het kind gedaan heeft, staat in het boek */
.veld { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.veld > * { position: absolute; pointer-events: none; }
.vink { width: 78px; height: 78px; overflow: visible; opacity: 0; transform: scale(.4); transition: opacity .15s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.vink.on { opacity: 1; transform: scale(1); }
.ring { border-radius: 26px; background: rgba(242,178,51,.16); box-shadow: 0 0 0 8px var(--gold), 0 0 34px 8px rgba(242,178,51,.75); }
.ring::after { content: "✓"; position: absolute; right: -16px; top: -20px; width: 62px; height: 62px; border-radius: 50%;
  background: var(--leaf); color: #fff; font-size: 44px; font-weight: 900; line-height: 62px; text-align: center; box-shadow: 0 4px 0 #1f7a3a; }
canvas.inkt { border-radius: 18px; }

/* ---------- De speelkaart ---------- */
#kaart { position: absolute; inset: 0; z-index: 10; display: grid; padding: clamp(6px, 1.4vmin, 14px); }
#speelblad { position: relative; min-width: 0; min-height: 0; background: var(--room); border: 5px solid var(--gold); border-radius: clamp(20px, 4vmin, 36px);
  box-shadow: 0 18px 50px rgba(0,0,0,.5); padding: clamp(10px, 2.2vmin, 22px); display: flex; animation: kaartin .4s cubic-bezier(.3,1.4,.5,1); }
@keyframes kaartin { 0% { transform: scale(.82) translateY(30px); opacity: 0; } 100% { transform: none; opacity: 1; } }
#inhoud { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 2vmin, 18px); }
#tara-groot { position: absolute; left: -4px; bottom: -6px; height: clamp(90px, 27vmin, 210px); pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.3)); transform-origin: 50% 100%; animation: wieg 3s ease-in-out infinite; }
@keyframes wieg { 50% { transform: rotate(-3deg) scale(1.02); } }
#tara-groot.juich { animation: spring .5s ease-in-out infinite; }
#speelblad.zonder-tara #tara-groot { display: none; }
@media (max-width: 620px), (max-height: 430px) { #tara-groot { display: none; } }

.plaatvak { flex: 1; min-height: 0; align-self: stretch; display: grid; place-items: center; }
.plaat { border-radius: 22px; box-shadow: 0 0 0 6px #fff, 0 0 0 11px var(--gold), 0 14px 30px rgba(0,0,0,.3); }
.plaat.kom { animation: kom .45s cubic-bezier(.3,1.5,.5,1); }
@keyframes kom { 0% { transform: scale(.5) rotate(-6deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.plaat.schud { animation: schud .5s; }
@keyframes schud { 20% { transform: translateX(-14px) rotate(-2deg); } 50% { transform: translateX(12px) rotate(2deg); } 80% { transform: translateX(-6px); } }
.plaat.goed { box-shadow: 0 0 0 6px #fff, 0 0 0 13px var(--leaf), 0 0 40px 10px rgba(46,158,79,.6); animation: hoera .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes hoera { 40% { transform: scale(1.08) rotate(2deg); } }
.plaat.gaat { animation: gaat .32s ease-in forwards; }
@keyframes gaat { 100% { transform: translateX(-60%) scale(.5) rotate(-10deg); opacity: 0; } }

.keuzes { flex: none; display: flex; gap: clamp(18px, 7vmin, 70px); align-items: flex-start; justify-content: center; }
.keuze { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; font-size: clamp(14px, 2.6vmin, 22px); }
.keuze img { width: clamp(70px, 17vmin, 132px); height: clamp(70px, 17vmin, 132px); border-radius: 50%; display: block;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.22)); transition: transform .15s; animation: adem 2.2s ease-in-out infinite; }
.keuze:nth-child(2) img { animation-delay: 1.1s; }
@keyframes adem { 50% { transform: scale(1.06); } }
.keuze:active img { transform: scale(.9); animation: none; }
.keuze.ja { color: #1f7a3a; } .keuze.nee { color: #b3202a; }
.keuze.raak img { animation: raak .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes raak { 40% { transform: scale(1.3) rotate(10deg); } }
.bolletjes { flex: none; display: flex; gap: 10px; }
.bolletjes i { width: 16px; height: 16px; border-radius: 50%; background: #e6d3a6; }
.bolletjes i.nu { background: var(--gold); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold); }
.bolletjes i.af { background: var(--leaf); }

.rooster { display: grid; gap: clamp(16px, 3vmin, 28px); justify-content: center; align-content: center; justify-items: center; align-items: center; flex: 1; min-height: 0; align-self: stretch; }
.kaartje { border-radius: 18px; box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--gold), 0 8px 16px rgba(0,0,0,.22); animation: adem 2.6s ease-in-out infinite; }
.kaartje:nth-child(2n) { animation-delay: .5s; } .kaartje:nth-child(3n) { animation-delay: 1.1s; }
.kaartje .knip { border-radius: 18px; }
.kaartje:active { transform: scale(.94); animation: none; }
.kaartje.gekozen { animation: hoera .5s; box-shadow: 0 0 0 4px #fff, 0 0 0 11px var(--leaf), 0 0 34px 8px rgba(46,158,79,.6); }
.kaartje { position: relative; }
.kaartje.aan { animation: none; box-shadow: 0 0 0 4px #fff, 0 0 0 11px var(--leaf), 0 0 28px 6px rgba(46,158,79,.5); }
.kaartje.aan::after { content: "✓"; position: absolute; right: -12px; top: -14px; width: 46px; height: 46px; border-radius: 50%; background: var(--leaf); color: #fff;
  font-size: 32px; font-weight: 900; line-height: 46px; text-align: center; box-shadow: 0 3px 0 #1f7a3a; }
.kaartje.schud { animation: schud .5s; }
.onderrij { flex: none; display: flex; justify-content: center; }
.klaarknop { height: calc(var(--k) * 1.05); min-width: calc(var(--k) * 2.6); border-radius: 22px; padding: 0 22px; background: var(--leaf); color: #fff; font-weight: 800;
  font-size: calc(var(--k) * .4); box-shadow: 0 5px 0 #1f7a3a; animation: adem 2.2s ease-in-out infinite; }
.klaarknop.wacht { opacity: .45; animation: none; }
.klaarknop:active { transform: translateY(3px); animation: none; }
.plaatvak.klein { flex: 0 0 38%; }
.zoekplaat { position: relative; cursor: pointer; touch-action: manipulation; }
.zoekring { position: absolute; border-radius: 50%; pointer-events: none; }
.zoekring.goed { box-shadow: 0 0 0 6px #fff, 0 0 0 12px var(--leaf), 0 0 30px 10px rgba(46,158,79,.7); animation: hoera .5s; }
.zoekring.hint { box-shadow: 0 0 0 5px rgba(255,255,255,.95), 0 0 0 10px var(--gold); animation: adem 1s ease-in-out infinite; }
.zoekmis { position: absolute; width: 36px; height: 36px; margin: -18px; border-radius: 50%; border: 4px solid #fff; pointer-events: none; animation: mis .55s ease-out forwards; }
@keyframes mis { 0% { opacity: .95; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.7); } }
.sterrenrij { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: clamp(4px, 2vmin, 18px); }
.ster { font-size: clamp(50px, 15vmin, 124px); line-height: 1; color: #e3cf9f; text-shadow: 0 4px 0 rgba(0,0,0,.12); }
.ster.aan { color: #f2a81d; animation: hoera .4s; }
.boekster { line-height: 1; color: #f2a81d; text-shadow: 0 0 5px #fff, 0 2px 0 rgba(0,0,0,.15); opacity: 0; transform: translate(-50%, -50%) scale(.3); transition: opacity .15s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.boekster.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.geplakt { border-radius: 14px; }
.boeklijn { height: 8px; border-radius: 4px; background: #2b7de9; transform-origin: 0 50%; }
.boekcijfer { transform: translate(-50%, -50%); font-size: 40px; font-weight: 900; line-height: 1; color: #2b7de9; font-family: inherit; }
.taart { border-radius: 50%; opacity: .72; }
.boekstip { width: 34px; height: 34px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px rgba(255,255,255,.8); }
.boekstip.goed { background: #2e9e4f; } .boekstip.fout { background: #e0303a; }
.kaartje.nr::after { content: attr(data-n); background: var(--plum); box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.doolhofdoek { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; border-radius: inherit; }
.zoekplaat { touch-action: none; }
.zoekring.fout { box-shadow: 0 0 0 6px #fff, 0 0 0 12px #e0303a; animation: schud .5s; }
.ring.klein { border-radius: 50%; box-shadow: 0 0 0 6px var(--gold), 0 0 22px 6px rgba(242,178,51,.75); }
.ring.klein::after { right: -10px; top: -12px; width: 40px; height: 40px; font-size: 28px; line-height: 40px; }
.anders { position: absolute; left: clamp(10px, 2vmin, 20px); top: clamp(10px, 2vmin, 20px); width: calc(var(--k) * .85); height: calc(var(--k) * .85); z-index: 2; }
.anders img { width: 100%; height: 100%; }

/* Tekenen op de kaart */
.tekenspel { flex: 1; align-self: stretch; min-height: 0; display: flex; gap: clamp(8px, 1.6vmin, 16px); }
body.enkel .tekenspel { flex-direction: column; }
.tekenspel .links { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: clamp(6px, 1.4vmin, 12px); }
.doekvak { flex: 1; min-height: 0; display: grid; place-items: center; }
.doekvak .doek { position: relative; border-radius: 20px; background-color: #fff; box-shadow: 0 0 0 5px #fff, 0 0 0 9px #9cc3ee, 0 10px 22px rgba(0,0,0,.2); overflow: hidden; }
.doekvak canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.plakrij { flex: none; display: flex; gap: clamp(6px, 1.4vmin, 12px); justify-content: center; align-items: center; flex-wrap: wrap; }
.plakrij button { width: var(--k); height: var(--k); border-radius: 16px; background: #fff; box-shadow: 0 0 0 3px rgba(0,0,0,.12); padding: 5px; }
.plakrij button img { width: 100%; height: 100%; object-fit: contain; display: block; }
.plakrij button.sel, .gereedschap button.sel { box-shadow: 0 0 0 calc(var(--k) * .09) var(--plum); transform: scale(1.08); }
.gereedschap { flex: none; display: grid; grid-template-columns: repeat(2, var(--k)); gap: clamp(6px, 1.3vmin, 10px); align-content: center; justify-content: center; }
@media (max-height: 520px) { body:not(.enkel) .gereedschap { grid-template-columns: repeat(3, var(--k)); } }
/* Liggende telefoon: de plakplaatjes naast het vel i.p.v. eronder, dan wordt het tekenvel hoger. */
@media (max-height: 520px) and (orientation: landscape) {
  body:not(.enkel) .tekenspel .links { flex-direction: row; }
  body:not(.enkel) .plakrij { order: -1; display: grid; grid-template-columns: repeat(2, var(--k)); align-content: center; }
}
body.enkel .gereedschap { display: flex; flex-wrap: wrap; align-items: center; }
.gereedschap button { width: var(--k); height: var(--k); border-radius: 50%; display: grid; place-items: center; background: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,.13); font-size: calc(var(--k) * .44); }
.gereedschap .kleur { border: calc(var(--k) * .09) solid #fff; }
.gereedschap .klaar { grid-column: 1 / -1; width: auto; min-width: calc(var(--k) * 2 + 10px); height: calc(var(--k) * 1.05); border-radius: 22px; padding: 0 16px;
  background: var(--leaf); color: #fff; font-weight: 800; font-size: calc(var(--k) * .38); box-shadow: 0 5px 0 #1f7a3a; animation: adem 2.2s ease-in-out infinite; }
.gereedschap .klaar:active { transform: translateY(3px); animation: none; }

/* ---------- Paginastrook ---------- */
#strip { flex: none; display: flex; align-items: center; gap: 12px;
  padding: 4px max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
body.speel #strip { display: none; }
#plek { flex: 1; min-width: 0; text-align: center; color: #f7e6c2; }
#titels { font-weight: 800; font-size: var(--tekst); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#titels b { color: var(--gold); }
#titels span + span { margin-left: 1.6em; }
#stippen { display: flex; justify-content: center; gap: 9px; margin-top: 6px; flex-wrap: wrap; }
#stippen i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.28); }
#stippen i.nu { background: #fff; box-shadow: 0 0 0 3px var(--gold); }
#stippen i.af { background: var(--gold); }
@media (max-height: 520px) { #titels { display: none; } #stippen { margin-top: 0; } #strip { padding-top: 2px; } }

/* ---------- Feest: een lichtje verdiend ---------- */
#feest { position: fixed; inset: 0; z-index: 80; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #7a3a9a 0%, #3a1650 45%, #1c0a28 100%); animation: feestin .3s ease; }
#feest.uit { animation: feestuit .5s ease forwards; }
@keyframes feestin { 0% { opacity: 0; } } @keyframes feestuit { 100% { opacity: 0; } }
#feest .stralen { position: absolute; left: 50%; top: 45%; width: 200vmax; height: 200vmax; margin: -100vmax 0 0 -100vmax;
  background: repeating-conic-gradient(rgba(255,214,90,.22) 0 9deg, rgba(255,214,90,0) 9deg 18deg); animation: draai 14s linear infinite; }
@keyframes draai { 100% { transform: rotate(360deg); } }
#feest .midden { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(4px, 1.4vmin, 12px); text-align: center; }
#feest .yeeh { font-size: clamp(54px, 17vmin, 150px); font-weight: 900; line-height: 1; color: #ffd84a; letter-spacing: .02em;
  text-shadow: 0 5px 0 #c9810f, 0 10px 0 rgba(0,0,0,.25), 0 0 40px rgba(255,200,60,.8); animation: yeeh .7s cubic-bezier(.3,1.8,.5,1) both, dans 1s ease-in-out .7s infinite; }
@keyframes yeeh { 0% { transform: scale(0) rotate(-14deg); } } @keyframes dans { 50% { transform: scale(1.07) rotate(-3deg); } }
#feest .diya { width: clamp(120px, 34vmin, 300px); height: clamp(120px, 34vmin, 300px); filter: drop-shadow(0 0 40px rgba(255,214,90,.95));
  animation: yeeh .8s cubic-bezier(.3,1.6,.5,1) .15s both; }
#feest .diya svg { width: 100%; height: 100%; overflow: visible; }
#feest .diya .vlam { transform-origin: 24px 26px; animation: vlam .5s ease-in-out infinite alternate; }
@keyframes vlam { 0% { transform: scale(1, 1) rotate(-3deg); } 100% { transform: scale(1.1, 1.18) rotate(3deg); } }
#feest .voor { font-size: clamp(20px, 5vmin, 44px); font-weight: 800; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.35); animation: yeeh .6s cubic-bezier(.3,1.6,.5,1) .35s both; }
#feest .voor b { padding: 0 .3em; border-radius: .4em; background: #fff; text-shadow: none; }
#feest .juicht { position: absolute; bottom: -2vmin; height: clamp(120px, 46vmin, 380px); transform-origin: 50% 100%; animation: spring .5s ease-in-out infinite;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.4)); }
#feest .juicht.l { left: 2vw; } #feest .juicht.r { right: 2vw; animation-delay: .25s; }
#feest .snipper { position: absolute; top: -6vh; width: 14px; height: 22px; border-radius: 4px; animation: val linear forwards; }
@keyframes val { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(115vh) rotate(720deg); } }
@media (max-width: 620px) { #feest .juicht.r { display: none; } #feest .juicht.l { height: 30vmin; } }

.vlieg { position: fixed; left: 0; top: 0; width: 84px; height: 84px; margin: -42px 0 0 -42px; z-index: 90; pointer-events: none;
  filter: drop-shadow(0 0 16px rgba(255,214,90,.95)); }
.vlieg svg { width: 100%; height: 100%; }

/* ---------- Mijn lichtjes ---------- */
#lichtjes { position: fixed; inset: 0; z-index: 70; background: rgba(24,10,34,.72); display: grid; place-items: center; padding: 16px; }
#lichtjes .kaartje2 { background: var(--room); border: 5px solid var(--gold); border-radius: 30px; padding: 18px 22px; width: min(580px, 100%);
  max-height: 100%; overflow: auto; touch-action: pan-y; }
#lichtjes h2 { margin: 0 0 10px; font-size: clamp(22px, 4vmin, 32px); text-align: center; color: var(--plum); }
#lichtjes .rij { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-top: 2px dashed #e9d3a0; }
#lichtjes .rij:first-of-type { border-top: 0; }
#lichtjes .steen { flex: none; width: clamp(40px, 8vmin, 58px); height: clamp(40px, 8vmin, 58px); object-fit: contain; }
#lichtjes .naam { flex: none; width: 6.2em; font-weight: 800; font-size: clamp(17px, 3vmin, 23px); }
#lichtjes .lampjes { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; min-height: 40px; align-items: center; }
#lichtjes .lampjes svg { width: 38px; height: 38px; }
#lichtjes .lampjes .leeg { width: 30px; height: 12px; border-radius: 0 0 16px 16px; background: #e9d9b4; margin: 14px 4px 0; }
#lichtjes .sluit { display: block; margin: 14px auto 0; height: var(--k); padding: 0 34px; border-radius: 20px; background: var(--leaf); color: #fff;
  font-weight: 800; font-size: clamp(18px, 3vmin, 24px); box-shadow: 0 5px 0 #1f7a3a; }

/* ---------- De boekenkast (startscherm) ---------- */
#begin { position: fixed; inset: 0; z-index: 100; overflow: hidden; display: flex; flex-direction: column; align-items: center;
  --ks: .84; --u: 3; --aantal: 3; --plank: clamp(14px, 2.6vh, 26px);   /* --u en --aantal zet het script: hoeveel boekbreedtes er op de plank staan */
  /* hoogte van de kaft: zo groot als kan, maar alle boeken passen naast elkaar */
  --kh: min(46vh, calc((100vw - 72px - var(--aantal) * clamp(10px, 2.6vw, 34px)) / var(--u) / .7076));
  padding: max(12px, env(safe-area-inset-top)) 16px 0;
  background: radial-gradient(120% 80% at 50% 16%, #8f49b3 0%, #4a1d66 46%, #1c0a28 100%); }
/* Staand scherm: de boeken mogen over twee planken verdeeld worden */
@media (max-aspect-ratio: 1/1) { #begin { --kh: min(33vh, 50vw); --ks: .78; } #boeken { flex-wrap: wrap; } }
#begin.uit { animation: feestuit .65s ease forwards; pointer-events: none; }
#vonken { position: absolute; inset: 0; pointer-events: none; }
#vonken i { position: absolute; width: var(--m); height: var(--m); border-radius: 50%; background: #ffe08a; box-shadow: 0 0 10px 3px rgba(255,200,90,.7);
  opacity: 0; animation: vonk var(--d) ease-in-out var(--w) infinite; }
@keyframes vonk { 0% { opacity: 0; transform: translateY(16px) scale(.6); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-48px) scale(1.1); } }

#talen { position: relative; z-index: 6; flex: none; display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(0,0,0,.3); }
#talen button { border: 0; background: none; color: #ffe9a8; font: inherit; font-weight: 800; font-size: clamp(15px, 2.5vmin, 21px); padding: 9px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
#talen button.sel { background: #ffe9a8; color: #2a1736; box-shadow: 0 3px 0 #c9810f; }

#kast-titel { position: relative; flex: none; margin: clamp(8px, 2.6vh, 28px) 0 0; color: #ffe27a; font-size: clamp(30px, 7vmin, 66px); font-weight: 900; line-height: 1; text-align: center;
  text-shadow: 0 4px 0 #b3560d, 0 10px 18px rgba(0,0,0,.45); animation: titelhup 2.8s ease-in-out infinite; }
@keyframes titelhup { 50% { transform: translateY(-5px) rotate(-1deg); } }

#kast { position: relative; z-index: 2; margin: auto 0; padding-bottom: clamp(10px, 7vh, 80px); display: flex; flex-direction: column; align-items: center; }
#boeken { display: flex; align-items: flex-end; justify-content: center; row-gap: calc(var(--plank) + clamp(18px, 4vh, 44px)); padding-bottom: var(--plank); }
/* Elk boek staat in een vak met een stuk plank eronder; de stukken sluiten op elkaar aan. */
.vak { position: relative; flex: none; display: flex; align-items: flex-end; padding: 0 calc(clamp(10px, 2.6vw, 34px) / 2); }
.vak::after { content: ""; position: absolute; left: -12px; right: -12px; top: 100%; height: var(--plank); border-radius: 8px;
  background: linear-gradient(#d79a4a, #96581f); box-shadow: inset 0 3px 0 rgba(255,255,255,.3), 0 6px 0 #5b3511; }
#boeken::after { content: none; }

.kaft { position: relative; flex: none; height: var(--kh); padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; -webkit-tap-highlight-color: transparent; }
.kaft > img { display: block; height: 100%; width: auto; aspect-ratio: 1055 / 1491; border-radius: 8px 14px 14px 8px; box-shadow: 0 0 0 4px #fff3cf, 0 10px 18px rgba(0,0,0,.5); }
.kaft.klaar { z-index: 2; animation: boekwieg 2.4s ease-in-out infinite; }
.kaft.klaar > img { box-shadow: 0 0 0 5px #ffb52e, 0 0 36px 12px rgba(255,170,40,.8), 0 12px 20px rgba(0,0,0,.5); }
@keyframes boekwieg { 0%, 100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.045); } }
.kaft.klaar.open { animation: boekopen .65s ease-in forwards; }
@keyframes boekopen { 0% { transform: scale(1); } 100% { transform: translateY(-8%) scale(1.7); } }
.kaft .speel { position: absolute; left: 34%; bottom: -7%; width: 32%; animation: adem 1.2s ease-in-out infinite; }
.kaft .speel img { display: block; width: 100%; filter: drop-shadow(0 6px 0 rgba(0,0,0,.3)); }
.kaft .licht { position: absolute; left: -7%; top: -5%; display: flex; align-items: center; gap: 2px; padding: 3px 12px 3px 5px; border-radius: 999px;
  background: #2a1736; border: 3px solid #ffb52e; color: #ffe9a8; font-weight: 900; font-size: clamp(14px, 2.8vmin, 24px); box-shadow: 0 4px 8px rgba(0,0,0,.4); }
.kaft .licht svg { width: 1.5em; height: 1.5em; }

.kaft.straks { height: calc(var(--kh) * var(--ks)); transform: rotate(-3deg); }
.vak:nth-child(even) .kaft.straks { transform: rotate(3deg); }
.kaft.straks > img { filter: saturate(.5) brightness(.6); }
.kaft .lint { position: absolute; left: -5%; right: -5%; top: 40%; padding: .38em 0; border-radius: 6px; background: #e8185f; color: #fff; font-weight: 900; text-align: center;
  font-size: clamp(11px, calc(var(--kh) * var(--ks) * .085), 26px); transform: rotate(-8deg); box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.kaft .zzz { position: absolute; right: -4%; top: -16%; color: #cfe3ff; font-weight: 900; font-size: clamp(14px, calc(var(--kh) * .09), 34px); text-shadow: 0 2px 0 rgba(0,0,0,.4); pointer-events: none; }
.kaft .zzz i { display: inline-block; font-style: normal; opacity: 0; animation: zzz 3s ease-in-out infinite; }
.kaft .zzz i:nth-child(2) { animation-delay: .5s; font-size: 1.25em; }
.kaft .zzz i:nth-child(3) { animation-delay: 1s; font-size: 1.5em; }
@keyframes zzz { 0% { opacity: 0; transform: translateY(8px); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }
.kaft.straks.nee { animation: boeknee .5s ease; }
@keyframes boeknee { 20% { transform: rotate(-9deg); } 50% { transform: rotate(7deg); } 80% { transform: rotate(-4deg); } }

#kast-tara, #kast-chiku { position: absolute; z-index: 3; bottom: 0; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; animation: wieg 2.6s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
/* Tara en Chiku staan onder de plank, zodat ze geen boek of speelknop afdekken (ook niet als alle boeken open kunnen). */
#begin { --tara: min(27vh, 22vw); }
@media (min-aspect-ratio: 1/1) { #kast { padding-bottom: clamp(10px, 15vh, 140px); } }
#kast-tara { left: max(1.5vw, env(safe-area-inset-left)); height: var(--tara); }
#kast-chiku { right: max(3vw, env(safe-area-inset-right)); height: calc(var(--tara) * .72); animation-delay: .9s; }
#kast-tara img, #kast-chiku img { display: block; height: 100%; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); }
#kast-tara.hup, #kast-chiku.hup { animation: hup .6s ease; }
@keyframes hup { 30% { transform: translateY(-14%) scale(1.05, .96); } 62% { transform: translateY(0) scale(.96, 1.04); } }
#kast-wolk { position: absolute; z-index: 5; left: calc(var(--tara) * .8 + 2vw); bottom: clamp(8px, 3.5vh, 40px); max-width: min(56vw, 470px);
  background: var(--room); border: 3px solid var(--gold); border-radius: 20px; border-bottom-left-radius: 6px; padding: 8px 14px; font-size: var(--tekst); font-weight: 700; line-height: 1.2; }
#kast-wolk.plop { animation: plop .35s cubic-bezier(.3,1.6,.5,1); }

/* Net gekozen boek: alleen dat boek, groot, wachtend op een tik */
#begin.gekozen #kast-titel, #begin.gekozen #talen { visibility: hidden; }
#begin.gekozen .vak.ander { display: none; }
#begin.gekozen { --kh: min(62vh, 60vw); }

/* Knop in het boek: terug naar de boekenkast */
#btn-kast { flex: none; display: grid; place-items: center; width: var(--k); height: var(--k); padding: 0; border-radius: 50%; font-size: calc(var(--k) * .5); line-height: 1;
  background: radial-gradient(circle at 35% 30%, #fff1c2, #f2a81d); border: 3px solid #fff3cf; box-shadow: 0 4px 0 #c9810f; cursor: pointer; }
#btn-kast:active { transform: translateY(3px) scale(.96); }
body.speel #btn-kast { display: none; }

/* Smalle telefoon: meer ruimte voor de tekst */
@media (max-width: 520px) { #bar { gap: 6px; } body.speel #wie { display: none; } }

/* ---------- Gratis stukje en ouderhoek (verkoopversie) ---------- */
/* Een dichte bladzijde: het wazige voorbeeld, met een slot en de knop om het hele boek te openen (in paginapixels) */
.page > img.blad.dicht { filter: blur(3px) brightness(.92) saturate(.85); }
.slotblad { position: absolute; inset: 0; border-radius: 4px 18px 18px 4px; background: rgba(255,246,220,.5); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 34px; padding: 90px; text-align: center; }
.page.links .slotblad { border-radius: 18px 4px 4px 18px; }
body.enkel .slotblad { border-radius: 18px; }
.slotblad .slotslot { width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center;
  font-size: 150px; box-shadow: 0 0 0 12px var(--gold), 0 20px 50px rgba(0,0,0,.35); }
.slotblad p { margin: 0; padding: 18px 34px; border-radius: 30px; background: rgba(255,255,255,.88); font-size: 54px; line-height: 1.25; font-weight: 900; color: var(--plum); }
.slotblad p.telling { font-size: 44px; font-weight: 800; color: var(--ruby); }
.slotknop { padding: 36px 64px; border-radius: 60px; background: var(--leaf); color: #fff; font-size: 58px; font-weight: 900;
  box-shadow: 0 12px 0 #1d6b34, 0 0 60px 10px rgba(255,220,120,.8); animation: wijsknop 1.2s ease-in-out infinite; }
/* Liggen er twee dichte bladzijden naast elkaar, dan staat de knop alleen rechts en de uitleg alleen links */
body:not(.enkel) .page.links .slotblad .slotknop { display: none; }
body:not(.enkel) .page.rechts .slotblad p { display: none; }
/* Boekenkast: een slotje op een boek dat nog niet gekocht is, en de knop voor ouders */
.kaft .slotje { display: none; position: absolute; right: -6%; top: -4%; padding: .3em .7em; border-radius: 999px; background: #fff3cf; color: var(--plum);
  font-weight: 900; font-size: clamp(11px, 1.8vmin, 16px); white-space: nowrap; box-shadow: 0 3px 0 #c9810f; }
.kaft.dicht .slotje { display: block; }
#kast-ouders { position: absolute; z-index: 7; right: max(12px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top));
  padding: 9px 16px; border-radius: 999px; background: rgba(0,0,0,.3); color: #ffe9a8; font-weight: 800; font-size: clamp(13px, 2.1vmin, 18px); }
#kast-ouders:empty { display: none; }
/* De ouderhoek: een gewone kaart voor volwassenen, met een slot ervoor */
#ouders { position: fixed; inset: 0; z-index: 200; background: rgba(24,10,34,.8); display: grid; place-items: center; padding: 16px; overflow-y: auto;
  touch-action: auto; user-select: text; -webkit-user-select: text; }
.ouderkaart { position: relative; background: var(--room); border: 5px solid var(--gold); border-radius: 26px; padding: 20px 22px; width: min(560px, 100%);
  max-height: calc(100% - 8px); overflow-y: auto; color: var(--ink); font-size: clamp(15px, 2.3vmin, 18px); line-height: 1.4; }
.ouderkaart h2 { margin: 0 34px 8px 0; font-size: clamp(21px, 3.6vmin, 28px); color: var(--plum); }
.ouderkaart h3 { margin: 0 0 4px; font-size: 1.08em; color: var(--plum); }
.ouderkaart section { padding: 12px 0; border-top: 2px dashed #e9d3a0; }
.ouderkaart p { margin: 0 0 8px; }
.ouderkaart .sluit { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border-radius: 50%; background: #efe0bb; font-size: 20px; font-weight: 900; }
.ouderkaart .antwoord { height: 54px; margin: 6px auto 12px; width: 140px; border-radius: 14px; background: #fff; border: 3px solid #e2c98f;
  font-size: 32px; font-weight: 900; text-align: center; line-height: 48px; letter-spacing: 4px; }
.ouderkaart .antwoord.fout { animation: schud .4s; border-color: var(--ruby); }
.ouderkaart .cijfers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(300px, 100%); margin: 0 auto; }
.ouderkaart .cijfer { height: 56px; border-radius: 14px; background: #fff; box-shadow: 0 3px 0 #d8bf86; font-size: 24px; font-weight: 900; }
.ouderkaart .cijfer.ok { background: var(--leaf); color: #fff; box-shadow: 0 3px 0 #1d6b34; }
.ouderkaart .cijfer:active { transform: translateY(2px); }
.coderij { display: flex; gap: 8px; flex-wrap: wrap; }
.coderij input { flex: 1 1 180px; min-width: 0; height: 50px; padding: 0 14px; border-radius: 12px; border: 3px solid #e2c98f; background: #fff;
  font: inherit; font-size: 20px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }
.ouderkaart .groen, .ouderkaart .knop { display: inline-block; height: 50px; padding: 0 20px; border-radius: 12px; background: var(--leaf); color: #fff;
  font-weight: 900; line-height: 50px; text-decoration: none; box-shadow: 0 3px 0 #1d6b34; }
.ouderkaart .groen:disabled { opacity: .5; }
.ouderkaart .groen.klein { height: 36px; line-height: 36px; padding: 0 12px; font-size: .9em; }
/* Inloggen (alleen de webversie): e-mailadres gewoon in kleine letters; de lichte knoppen voor uitloggen / ander adres. */
.ouderkaart .inlogvak input[type="email"] { text-transform: none; letter-spacing: 0; font-size: 17px; font-weight: 700; }
.ouderkaart .inlogvak button.klein:not(.groen) { height: 36px; padding: 0 14px; border-radius: 10px; background: #efe0bb; color: var(--plum); font-weight: 800; box-shadow: 0 2px 0 #d8bf86; }
.ouderkaart .inlogvak button.klein:disabled { opacity: .5; }
.ouderkaart .melding { min-height: 1.4em; margin: 8px 0 0; font-weight: 800; color: var(--leaf); }
.ouderkaart .melding.fout { color: var(--ruby); }
.ouderkaart .balk { height: 14px; border-radius: 999px; background: #efe0bb; overflow: hidden; margin-top: 6px; }
.ouderkaart .balk i { display: block; height: 100%; width: 0; background: var(--leaf); transition: width .2s; }
.ouderkaart .lijst { list-style: none; margin: 0; padding: 0; }
.ouderkaart .lijst li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.ouderkaart .lijst li span { flex: 1; }
.ouderkaart .klein { font-size: .85em; color: #7a5a3a; margin: 10px 0 0; }

/* Gekochte boeken die in deze taal nog gedownload worden (na het wisselen van taal) */
#kast-download { position: absolute; z-index: 8; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom));
  width: min(86vw, 520px); padding: 12px 18px 14px; border-radius: 18px; background: rgba(255, 248, 232, .96); color: #3a2a1a;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .35); font: 600 clamp(14px, 2vw, 18px)/1.3 Georgia, serif; text-align: center; }
#kast-download .balk { margin-top: 8px; height: 12px; border-radius: 8px; background: #ead9b6; overflow: hidden; }
#kast-download .balk i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e8b04a, #d9822b); border-radius: 8px; transition: width .3s; }

/* De volumeschuif onder de geluidsknop */
#volume { position: fixed; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 40px;
  background: rgba(255, 248, 232, .97); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
#volume .dempen { font-size: 30px; line-height: 1; width: 48px; height: 48px; border-radius: 50%; background: #fbe6b8; }
#volume input { width: min(52vw, 260px); height: 40px; accent-color: #d9822b; }

/* ---------- De spelhoek (js/spelen.js) ---------- */
#kast-spel { position: absolute; z-index: 7; left: max(12px, env(safe-area-inset-left)); top: max(12px, env(safe-area-inset-top));
  padding: 10px 20px; border-radius: 999px; background: linear-gradient(180deg, #ffd96a, #f0a722); color: #4a1d66; font-weight: 900;
  font-size: clamp(15px, 2.6vmin, 22px); box-shadow: 0 4px 0 #b4700c, 0 6px 18px rgba(0,0,0,.35); animation: spelwiebel 3.5s ease-in-out infinite; }
#kast-spel:empty { display: none; }
#kast-spel:active { transform: translateY(3px); box-shadow: 0 1px 0 #b4700c; }
@keyframes spelwiebel { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-4deg); } 94% { transform: rotate(4deg); } }
#spelhoek { position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; overflow: hidden; color: #fff;
  background: radial-gradient(120% 80% at 50% 10%, #8f49b3 0%, #4a1d66 50%, #1c0a28 100%);
  padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  font-family: inherit; user-select: none; -webkit-user-select: none; touch-action: none; }
.spel-kop { display: flex; align-items: center; gap: 12px; flex: none; }
.spel-kop h1 { margin: 0; font-size: clamp(20px, 4vmin, 34px); color: #ffe08a; text-shadow: 0 3px 0 #6b2d8c; }
.spel-terug { width: clamp(44px, 8vmin, 60px); height: clamp(44px, 8vmin, 60px); flex: none; }
.spel-terug img { width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(0,0,0,.4)); }
.spel-goden { display: flex; gap: clamp(8px, 2vw, 18px); justify-content: center; margin: clamp(6px, 1.5vh, 14px) 0; flex: none; flex-wrap: wrap; }
.spel-god { display: flex; flex-direction: column; align-items: center; gap: 3px; font-weight: 800; font-size: clamp(12px, 2vmin, 16px); color: #f3dcff; opacity: .7; }
.spel-god img { width: clamp(48px, 10vmin, 78px); height: clamp(48px, 10vmin, 78px); border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.35); background: #fff4dc; }
.spel-god.aan { opacity: 1; color: #ffe08a; } .spel-god.aan img { border-color: #ffd24a; box-shadow: 0 0 0 4px rgba(255,210,74,.35), 0 0 22px rgba(255,210,74,.6); }
.spel-tegels { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 2.2vw, 24px); align-content: center; padding: 0 clamp(4px, 2vw, 30px); min-height: 0; }
@media (max-aspect-ratio: 1/1) { .spel-tegels { grid-template-columns: repeat(2, 1fr); } }
.spel-tegel { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; border-radius: 24px; background: #fff7e6; color: #4a1d66;
  box-shadow: 0 6px 0 #c9810f, 0 10px 24px rgba(0,0,0,.35); font-weight: 900; font-size: clamp(15px, 2.6vmin, 22px); max-height: 100%; }
.spel-tegel:active { transform: translateY(4px); box-shadow: 0 2px 0 #c9810f; }
.spel-tegel .plaat { aspect-ratio: 1; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: #fff; min-height: 0; }
.spel-tegel .plaat img { width: 100%; height: 100%; object-fit: cover; }
.spel-tegel.stickers .plaat img, .spel-tegel.memory .plaat img { object-fit: contain; padding: 6%; }
.spel-niveaus { display: flex; gap: 12px; justify-content: center; margin: 10px 0; flex: none; flex-wrap: wrap; }
.spel-niveau { padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.15); color: #fff; font-weight: 800; font-size: clamp(14px, 2.4vmin, 20px); }
.spel-niveau.aan { background: #ffd24a; color: #4a1d66; box-shadow: 0 4px 0 #b4700c; }
.spel-niveaus.groot { flex: 1; align-items: center; gap: clamp(14px, 4vw, 40px); }
.spel-niveau.groot { display: flex; flex-direction: column; gap: 4px; padding: clamp(18px, 4vmin, 34px) clamp(26px, 6vmin, 50px); border-radius: 28px; font-size: clamp(20px, 4vmin, 34px);
  background: #fff7e6; color: #4a1d66; box-shadow: 0 6px 0 #c9810f, 0 10px 24px rgba(0,0,0,.35); }
.spel-niveau small { font-size: .5em; opacity: .7; }
.spel-platen { flex: 1; display: flex; flex-wrap: wrap; gap: clamp(10px, 2vw, 22px); justify-content: center; align-content: center; overflow-y: auto; touch-action: pan-y; padding: 6px; }
.spel-plaat { position: relative; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 5px 0 #c9810f, 0 8px 20px rgba(0,0,0,.35); }
.spel-plaat img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spel-plaat.breed { width: clamp(150px, 26vw, 330px); aspect-ratio: 3 / 2; }
.spel-plaat.hoog { width: clamp(110px, 17vw, 210px); aspect-ratio: 3 / 4; }
.spel-plaat.dicht img { filter: blur(2px) brightness(.75); }
.spel-plaat i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: clamp(30px, 6vmin, 48px); }
.spel-info { flex: none; text-align: center; font-weight: 900; font-size: clamp(14px, 2.4vmin, 20px); color: #ffe08a; margin: 4px 0; }
.spel-melding { position: fixed; z-index: 170; left: 50%; bottom: 8%; transform: translateX(-50%); padding: 12px 22px; border-radius: 20px; background: #fff7e6; color: #4a1d66;
  font-weight: 800; box-shadow: 0 8px 22px rgba(0,0,0,.4); max-width: 86vw; text-align: center; transition: opacity .4s; }
.spel-melding.weg { opacity: 0; }
/* puzzel */
.puzzelveld { position: relative; flex: 1; min-height: 0; }
.puzzelbord { position: absolute; border-radius: 6px; background-size: 100% 100%; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 0 0 4px rgba(0,0,0,.25); }
.puzzelbord::before { content: ""; position: absolute; inset: 0; background: rgba(40,14,58,.82); border-radius: 6px; transition: opacity 1s; }
.puzzelbord.heel::before { opacity: 0; }
.stukje { position: absolute; left: 0; top: 0; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); touch-action: none; cursor: grab; }
.stukje.pak { filter: drop-shadow(0 10px 12px rgba(0,0,0,.55)); cursor: grabbing; }
.stukje.vast { filter: none; pointer-events: none; transition: transform .15s; }
/* memory */
.memoryveld { flex: 1; min-height: 0; display: grid; gap: clamp(6px, 1.4vmin, 14px); justify-content: center; align-content: center;
  --kz: min(calc((100vh - 170px) / 3), calc((100vw - 60px) / 4.6)); grid-template-columns: repeat(4, var(--kz)); }
.memoryveld.p8 { --kz: min(calc((100vh - 180px) / 4), calc((100vw - 60px) / 4.6)); }
@media (min-aspect-ratio: 3/2) { .memoryveld.p6 { --kz: min(calc((100vh - 160px) / 2), calc((100vw - 80px) / 6.4)); grid-template-columns: repeat(6, var(--kz)); }
  .memoryveld.p8 { --kz: min(calc((100vh - 160px) / 2), calc((100vw - 80px) / 8.5)); grid-template-columns: repeat(8, var(--kz)); } }
.mkaart { width: var(--kz); height: var(--kz); perspective: 700px; }
.mkaart .binnen { position: relative; display: block; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.mkaart.om .binnen, .mkaart.weg .binnen { transform: rotateY(180deg); }
.mkaart .voor, .mkaart .achter { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.mkaart .achter { background: url(../assets/spel/achterkant.webp) center / cover; border: 3px solid #ffd24a; }
.mkaart .voor { transform: rotateY(180deg); background: #fff7e6; border: 3px solid #fff; }
.mkaart .voor img { width: 100%; height: 100%; object-fit: cover; }
.mkaart.weg .voor { animation: gevonden .6s ease forwards; border-color: #7ed957; }
@keyframes gevonden { 40% { transform: rotateY(180deg) scale(1.12); } 100% { transform: rotateY(180deg) scale(.96); opacity: .55; } }
/* kleurplaat */
.kleurveld { flex: 1; min-height: 0; display: flex; gap: 12px; align-items: center; justify-content: center; }
@media (max-aspect-ratio: 1/1) { .kleurveld { flex-direction: column; } }
.kleurdoek { position: relative; flex: none; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.kleurdoek canvas, .kleurdoek img { position: absolute; inset: 0; width: 100%; height: 100%; }
.kleurdoek img { mix-blend-mode: multiply; pointer-events: none; }
.kleurbalk { display: flex; flex-direction: column; gap: 10px; align-items: center; width: 250px; flex: none; }
@media (max-aspect-ratio: 1/1) { .kleurbalk { width: 100%; } }
.kleurbalk .gereedschap { display: flex; gap: 6px; }
.gr { display: flex; flex-direction: column; align-items: center; font-size: 22px; padding: 6px 6px; border-radius: 14px; background: rgba(255,255,255,.14); min-width: 52px; }
.gr span { font-size: 11px; font-weight: 800; }
.gr.aan { background: #ffd24a; color: #4a1d66; }
.palet { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
@media (max-aspect-ratio: 1/1) { .palet { grid-template-columns: repeat(9, 1fr); } }
.verfpot { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.6); box-shadow: 0 2px 0 rgba(0,0,0,.3); }
.verfpot.aan { transform: scale(1.25); border-color: #fff; box-shadow: 0 0 0 3px #ffd24a; }
/* knoppen en feest */
.spel-knop { padding: 12px 22px; border-radius: 999px; background: #fff; color: #4a1d66; font-weight: 900; font-size: clamp(15px, 2.4vmin, 20px); box-shadow: 0 4px 0 #c9810f; }
.spel-knop.groen { background: #7ed957; color: #1e4d12; box-shadow: 0 4px 0 #3f8f2a; }
.spel-knoppen { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.spel-feest { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; background: rgba(24,10,34,.55); overflow: hidden; }
.spel-feest i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 3px; animation: snipper 2s linear forwards; }
@keyframes snipper { to { transform: translateY(110vh) rotate(var(--dr)); } }
.spel-feestkaart { position: relative; background: #fff7e6; color: #4a1d66; border: 5px solid #ffd24a; border-radius: 30px; padding: 22px 30px; text-align: center;
  max-width: 88vw; animation: plop .4s cubic-bezier(.3,1.6,.5,1); box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.spel-feestkaart h2 { margin: 0 0 6px; font-size: clamp(26px, 5vmin, 44px); }
.spel-feestkaart p { margin: 0; font-weight: 800; opacity: .75; }
.nieuwesticker { display: flex; flex-direction: column; align-items: center; margin-top: 10px; transform: scale(0); transition: transform .5s cubic-bezier(.3,1.8,.5,1); }
.nieuwesticker.op { transform: scale(1) rotate(-6deg); }
.nieuwesticker img { width: clamp(90px, 18vmin, 150px); filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.nieuwesticker span { font-weight: 900; color: #d9822b; }
/* stickerboek */
.stickerblad { position: relative; flex: 1; min-height: 0; border-radius: 22px; overflow: hidden; background: #fff7e6 center / cover; border: 5px solid #ffd24a;
  box-shadow: 0 8px 26px rgba(0,0,0,.4); touch-action: none; }
.stickerblad::before { content: ""; position: absolute; inset: 0; background: rgba(255,247,230,.72); }
.stickeruitleg { position: absolute; left: 0; right: 0; top: 10px; margin: 0; text-align: center; color: #9a6a2b; font-weight: 800; font-size: clamp(13px, 2.2vmin, 18px); pointer-events: none; }
.geplakt { position: absolute; width: 14%; transform: rotate(var(--d, 0deg)); filter: drop-shadow(0 4px 5px rgba(0,0,0,.3)); touch-action: none; cursor: grab; }
.geplakt.pak { filter: drop-shadow(0 12px 12px rgba(0,0,0,.4)); transform: rotate(var(--d, 0deg)) scale(1.12); z-index: 5; }
.stickerbak { flex: none; display: flex; gap: clamp(6px, 1.4vw, 14px); justify-content: center; padding: 10px 6px 2px; }
.stickerpot { position: relative; width: clamp(54px, 10vmin, 86px); height: clamp(54px, 10vmin, 86px); border-radius: 18px; background: rgba(255,255,255,.14); touch-action: none; }
.stickerpot img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.stickerpot.nog img { filter: brightness(0) opacity(.3); }
.stickerpot i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 26px; color: #ffe08a; }

/* Gekocht, maar in deze taal nog niet gedownload: een pijltje (het boek komt binnen zodra het opengaat) */
.kaft.laden .slotje { display: block; }

/* Een net gekozen boek gaat meteen open, zonder het openklap-filmpje */
#begin.snel.uit { animation: none; visibility: hidden; }

/* =====================================================================
   Het nieuwe uiterlijk (premium-pakket, assets/ui/ via tools/maak-ui.sh):
   lichtpaarse achtergronden met lotussen, crème kaarten met een gouden rand, paarse tekst.
   ===================================================================== */
:root { --ui-paars: #6f438f; --ui-donker: #3a174f; --ui-goud: #f2b84b; --ui-room: #fff4cf; --ui-roze: #ef6c9a; }
#begin { background: url(../assets/ui/bg-books.webp) center / cover, radial-gradient(120% 80% at 50% 16%, #c9a3e6 0%, #8a5bb5 60%, #4a1d66 100%);
  padding: max(12px, env(safe-area-inset-top)) 16px 0; }
#begin.thuis { background-image: url(../assets/ui/bg-home.webp), radial-gradient(120% 80% at 50% 16%, #c9a3e6 0%, #8a5bb5 60%, #4a1d66 100%); }
#begin.thuis #kast-tara, #begin.thuis #kast-chiku { display: none; }
#vonken i { background: #fff3c4; box-shadow: 0 0 8px 2px rgba(255,230,150,.7); }

/* Ronde knoppen (terug, ouders, muziek) */
.ronde { flex: none; width: clamp(44px, 7.6vmin, 58px); height: clamp(44px, 7.6vmin, 58px); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fffaf0, var(--ui-room) 60%, #f6dfa0); border: 3px solid var(--ui-goud);
  box-shadow: 0 4px 0 #c98a2a, 0 6px 14px rgba(58,23,79,.3); }
.ronde img { width: 66%; height: 66%; filter: none; }
.ronde:active { transform: translateY(3px); box-shadow: 0 1px 0 #c98a2a; }
.ronde.uit img { opacity: .55; }
#kast-ouders.ronde { position: static; padding: 0; font-size: 0; }

/* ---------- Hoofdmenu ---------- */
#thuis { display: none; position: absolute; inset: 0; z-index: 6;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  display: none; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; justify-items: center; }
#begin.thuis #thuis { display: grid; }
#begin.thuis #kast, #begin.thuis #kast-titel, #begin.thuis #kast-terug, #begin.thuis #kast-wolk { display: none; }
#kast-spel { display: none !important; }
.thuiskop { position: relative; z-index: 3; width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.thuisrechts { display: flex; align-items: flex-start; gap: 8px; }
/* De taal: een pilletje met de gekozen taal; tik erop en de andere taal klapt eronder uit */
.thuiskop #talen { position: relative; flex-direction: column; gap: 4px; padding: 4px; border-radius: 24px; background: var(--ui-room);
  border: 3px solid var(--ui-goud); box-shadow: 0 4px 0 #c98a2a, 0 6px 14px rgba(58,23,79,.3); }
.thuiskop #talen button { display: none; color: var(--ui-paars); font-size: clamp(14px, 2.3vmin, 19px); padding: 7px 12px; text-align: left; }
.thuiskop #talen button.sel { display: block; order: -1; background: none; box-shadow: none; color: var(--ui-donker); }
.thuiskop #talen button.sel::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .55em; border: solid var(--ui-paars);
  border-width: 0 3px 3px 0; transform: translateY(-.2em) rotate(45deg); transition: transform .2s; }
.thuiskop #talen.open button { display: block; }
.thuiskop #talen.open button:not(.sel) { background: #fff; border-radius: 16px; }
.thuiskop #talen.open button.sel::after { transform: translateY(.05em) rotate(225deg); }

.thuismidden { display: flex; flex-direction: column; align-items: center; min-height: 0; width: 100%; margin-top: calc(-1 * clamp(36px, 6vmin, 52px)); }
.thuisnaam { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; flex: none; }
.thuisnaam .lotus { width: clamp(46px, 8vmin, 74px); margin-bottom: -4px; filter: drop-shadow(0 2px 2px rgba(58,23,79,.3)); }
.thuisnaam b { font-size: clamp(38px, 9.4vmin, 84px); font-weight: 900; line-height: 1; letter-spacing: .5px; white-space: nowrap;
  background: linear-gradient(180deg, #fff6d6 0%, #ffd66b 45%, #e89a2c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px #7a3f95; paint-order: stroke fill; filter: drop-shadow(0 4px 0 #5a2878) drop-shadow(0 8px 12px rgba(58,23,79,.35)); }
.thuisnaam span { margin-top: clamp(6px, 1.2vmin, 10px); padding: .3em 1.2em; border-radius: 999px; background: linear-gradient(#fffaf0, var(--ui-room));
  border: 2px solid var(--ui-goud); color: var(--ui-donker); font-weight: 900; font-size: clamp(14px, 2.6vmin, 22px); box-shadow: 0 3px 0 #d7a24a, 0 6px 12px rgba(58,23,79,.25); }
.thuisheld { flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; align-items: flex-end; width: 100%; cursor: pointer; }
.thuisheld img { display: block; max-width: min(100%, 560px); max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(58,23,79,.35)); }
.thuisheld.hup { animation: hup .6s ease; }
.thuistegels { position: relative; z-index: 2; width: min(100%, 470px); display: flex; flex-direction: column; justify-content: center; gap: clamp(10px, 1.8vh, 18px); padding: clamp(8px, 1.6vh, 16px) 4px clamp(30px, 6vh, 60px); }
.thuistegel { position: relative; display: flex; align-items: center; gap: clamp(10px, 2vmin, 16px); height: clamp(58px, 9.5vh, 100px); padding: 0 46px 0 clamp(14px, 3vmin, 22px);
  border-radius: 26px; background: linear-gradient(180deg, #fffbef 0%, var(--ui-room) 70%, #f8e2a8 100%); border: 3px solid var(--ui-goud);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 5px 0 #d29a3e, 0 10px 22px rgba(58,23,79,.3); color: var(--ui-donker); text-align: left; animation: plop .4s backwards; }
.thuistegel:nth-child(2) { animation-delay: .06s; } .thuistegel:nth-child(3) { animation-delay: .12s; } .thuistegel:nth-child(4) { animation-delay: .18s; }
.thuistegel:active { transform: translateY(4px); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 1px 0 #d29a3e; }
.thuistegel .icoon { width: clamp(40px, 7vmin, 60px); height: auto; flex: none; filter: drop-shadow(0 2px 1px rgba(58,23,79,.25)); }
.thuistegel b { flex: 1; font-size: clamp(20px, 4.2vmin, 34px); font-weight: 900; white-space: nowrap; }
.thuistegel .plaat { position: absolute; right: 34px; bottom: 0; height: 128%; width: auto; max-width: 42%; object-fit: contain; object-position: bottom; pointer-events: none;
  filter: drop-shadow(0 4px 4px rgba(58,23,79,.25)); }
.thuistegel .pijl { position: absolute; right: 14px; top: 50%; transform: translateY(-52%); font-style: normal; font-weight: 900; font-size: clamp(24px, 4vmin, 34px); color: var(--ui-paars); }
.thuislotus { position: absolute; z-index: 1; bottom: 0; width: clamp(110px, 24vmin, 220px); pointer-events: none; }
.thuislotus.links { left: 0; } .thuislotus.rechts { right: 0; transform: scaleX(-1); }
/* Liggend scherm: titel en Tara & Chiku links, de drie kaarten rechts */
@media (min-aspect-ratio: 1/1) {
  #thuis { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(10px, 3vw, 40px); }
  .thuiskop { grid-column: 1 / -1; }
  .thuismidden { grid-row: 2; grid-column: 1; margin-top: clamp(4px, 1.4vh, 12px); }      /* niet omhoog onder de knoppen: daar staat Premium */
  .thuistegels { grid-row: 2; grid-column: 2; align-self: center; margin-top: calc(-1 * clamp(36px, 6vmin, 52px)); padding-bottom: clamp(10px, 4vh, 40px); }
  .thuistegel { height: clamp(50px, 14vh, 110px); }
}

/* ---------- Boekenkast ---------- */
#kast-terug.ronde { position: absolute; z-index: 7; left: max(14px, env(safe-area-inset-left)); top: max(12px, env(safe-area-inset-top)); width: clamp(44px, 7.6vmin, 58px); height: clamp(44px, 7.6vmin, 58px); }
#kast-titel { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; font-size: clamp(30px, 6.4vmin, 58px);
  color: transparent; background: linear-gradient(180deg, #fff6d6 0%, #ffd66b 45%, #e89a2c 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 1.5px #7a3f95; paint-order: stroke fill; filter: drop-shadow(0 3px 0 #5a2878) drop-shadow(0 6px 10px rgba(58,23,79,.3)); text-shadow: none; }
#kast-titel img { width: clamp(34px, 6vmin, 52px); }
#kast-titel span { display: flex; align-items: center; gap: .35em; }
#kast-titel span::before, #kast-titel span::after { content: ""; width: 1.4em; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #e7a83a); }
#kast-titel span::after { transform: scaleX(-1); }
#begin {
  /* --kg: hoogte van het grote boek, --kk: van de kleine; --pil: hoogte van het naambordje */
  --pil: clamp(26px, 4.4vmin, 36px); --gat: clamp(10px, 2vmin, 18px);
  --kk: min(calc((100vw - 40px - 3 * var(--gat)) / 4 / .7076), 19vh);
  --kg: min(36vh, calc(62vw / .7076));
}
@media (min-aspect-ratio: 1/1) {
  #begin { --kg: min(calc(100vh - 2 * var(--pil) - clamp(110px, 24vh, 190px)), calc(32vw / .7076));
    --kk: calc((var(--kg) + var(--pil) - var(--gat)) / 2 - var(--pil)); }
}
#kast { margin: clamp(4px, 2vh, 20px) 0 auto; padding-bottom: 0; }
#boeken { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: var(--gat); padding: 0; max-width: 100%; }
#boeken .vak.huidig { flex: 0 0 100%; justify-content: center; margin-bottom: calc(var(--gat) * .4); }
@media (min-aspect-ratio: 1/1) {
  #boeken { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; align-items: start; justify-content: center; column-gap: calc(var(--gat) * 1.6); row-gap: var(--gat); }
  #boeken .vak.huidig { grid-row: 1 / span 2; margin: 0 calc(var(--gat) * .8) 0 0; }
}
.vak { flex-direction: column; align-items: center; padding: 0; }
.vak::after { content: none; }
#begin .kaft { height: var(--kk); }
#begin .vak.huidig .kaft { height: var(--kg); }
.kaft > img { border-radius: 6px 12px 12px 6px; box-shadow: 0 0 0 3px var(--ui-room), 0 0 0 5px var(--ui-goud), 0 8px 16px rgba(58,23,79,.35); }
.kaft.klaar { animation: none; }
.kaft.klaar > img { box-shadow: 0 0 0 3px var(--ui-room), 0 0 0 5px var(--ui-goud), 0 8px 16px rgba(58,23,79,.35); }
.vak.huidig .kaft.klaar { animation: boekwieg 3.2s ease-in-out infinite; }
.vak.huidig .kaft.klaar > img { box-shadow: 0 0 0 5px #fff1c2, 0 0 0 10px var(--ui-goud), 0 0 34px 10px rgba(255,214,107,.75), 0 14px 24px rgba(58,23,79,.4); }
.vak.ander .kaft .speel { display: none; }
.kaft .speel { left: 33%; bottom: -10%; width: 34%; }
.kaft:active > img { transform: scale(.97); }
.vak .naam { position: relative; z-index: 3; margin-top: calc(var(--pil) * -.35); padding: 0 1em; height: var(--pil); display: grid; place-items: center; border-radius: 999px;
  background: linear-gradient(#fffbef, var(--ui-room)); border: 2px solid var(--ui-goud); color: var(--ui-donker); font-weight: 900; white-space: nowrap;
  font-size: clamp(12px, 2.3vmin, 18px); box-shadow: 0 3px 0 #d29a3e, 0 5px 10px rgba(58,23,79,.25); pointer-events: none; max-width: calc(var(--kk) * .7076 + 24px); overflow: hidden; text-overflow: ellipsis; }
.vak.huidig .naam { display: none; }
#kast-wolk { background: linear-gradient(#fffbef, var(--ui-room)); color: var(--ui-donker); border: 3px solid var(--ui-goud); }
.kaft .slotje { background: var(--ui-room); color: var(--ui-paars); border: 2px solid var(--ui-goud); }

/* ---------- Spelhoek ---------- */
#spelhoek { background: url(../assets/ui/bg-games.webp) center / cover, linear-gradient(#c9a3e6, #8a5bb5); color: var(--ui-donker); }
#spelhoek[data-scherm="kies"].stickers { background-image: url(../assets/ui/bg-stickers.webp); }
.spel-kop { position: relative; justify-content: center; min-height: clamp(48px, 9vmin, 70px); }
.spel-kop .spel-terug { position: absolute; left: 0; top: 0; }
.spel-kop h1 { display: flex; align-items: center; gap: .3em; font-size: clamp(26px, 5.6vmin, 50px); font-weight: 900; color: transparent;
  background: linear-gradient(180deg, #fff6d6 0%, #ffd66b 45%, #e89a2c 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 1.5px #7a3f95; paint-order: stroke fill; filter: drop-shadow(0 3px 0 #5a2878) drop-shadow(0 6px 10px rgba(58,23,79,.3)); text-shadow: none; }
.spel-kop h1 img { width: 1.05em; height: 1.05em; filter: none; }
.spel-tegels { grid-template-columns: repeat(4, minmax(0, min(23vw, 50vh))); justify-content: center; }
@media (max-aspect-ratio: 1/1) { .spel-tegels { grid-template-columns: repeat(2, minmax(0, min(44vw, 30vh))); align-content: center; } }
.spel-tegel { padding: 8px; border-radius: 26px; background: linear-gradient(180deg, #fffbef 0%, var(--ui-room) 70%, #f8e2a8 100%); border: 3px solid var(--ui-goud);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 5px 0 #d29a3e, 0 10px 22px rgba(58,23,79,.3); color: var(--ui-donker); animation: plop .4s backwards; }
.spel-tegel:nth-child(2) { animation-delay: .05s; } .spel-tegel:nth-child(3) { animation-delay: .1s; } .spel-tegel:nth-child(4) { animation-delay: .15s; }
.spel-tegel .plaat { border-radius: 20px; background: none; }
.spel-tegel .plaat img, .spel-tegel.stickers .plaat img, .spel-tegel.memory .plaat img { object-fit: cover; padding: 0; }
.spel-tegel b { display: flex; align-items: center; justify-content: center; gap: .35em; font-size: clamp(17px, 3.4vmin, 28px); font-weight: 900; padding: 2px 0 4px; }
.spel-tegel b img { width: 1.3em; height: 1.3em; }
.spel-niveau { background: var(--ui-room); color: var(--ui-paars); border: 2px solid var(--ui-goud); box-shadow: 0 3px 0 #d29a3e; }
.spel-niveau.aan { background: var(--ui-goud); color: var(--ui-donker); box-shadow: 0 4px 0 #b4700c; }
.spel-niveau.groot { background: linear-gradient(180deg, #fffbef 0%, var(--ui-room) 70%, #f8e2a8 100%); color: var(--ui-donker); border: 3px solid var(--ui-goud); }
.spel-plaat { border: 3px solid var(--ui-goud); box-shadow: 0 4px 0 #d29a3e, 0 8px 18px rgba(58,23,79,.3); }
.spel-plaat .godnaam { position: absolute; left: 6px; bottom: 6px; padding: 2px 9px; border-radius: 999px; background: rgba(255,244,207,.92); color: var(--ui-paars);
  font-size: clamp(11px, 1.8vmin, 14px); font-weight: 900; pointer-events: none; }
.spel-info { color: var(--ui-donker); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.stickerbak { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; touch-action: pan-x; padding: 10px 6px 4px; scrollbar-width: none; }
.stickerbak::-webkit-scrollbar { display: none; }
.stickerpot { flex: none; background: rgba(255,244,207,.75); border: 2px solid var(--ui-goud); }
.stickerpot i { color: var(--ui-paars); }
.stickerblad { border-color: var(--ui-goud); }
@media (prefers-reduced-motion: reduce) { .thuistegel, .spel-tegel, .vak.huidig .kaft.klaar { animation: none; } }
.stickerblad::before { background: rgba(255,247,230,.2); }
/* bijstellingen na de eerste schermafdrukken */
.thuistegel .plaat { border-radius: 0; box-shadow: none; animation: none; }
.spel-tegel .plaat { box-shadow: none; }
.thuisnaam b, #kast-titel, .spel-kop h1 { background: none; -webkit-text-stroke: 0; filter: none; color: #ffd659;
  text-shadow: 2px 2px 0 #6b2d8c, -2px 2px 0 #6b2d8c, 2px -2px 0 #6b2d8c, -2px -2px 0 #6b2d8c, 0 2px 0 #6b2d8c, 0 -2px 0 #6b2d8c, 2px 0 0 #6b2d8c, -2px 0 0 #6b2d8c,
    0 6px 0 #4a1d66, 0 10px 18px rgba(58,23,79,.4); }
.thuisnaam b { color: #ffd659; text-shadow: 3px 3px 0 #6b2d8c, -3px 3px 0 #6b2d8c, 3px -3px 0 #6b2d8c, -3px -3px 0 #6b2d8c, 0 3px 0 #6b2d8c, 0 -3px 0 #6b2d8c, 3px 0 0 #6b2d8c, -3px 0 0 #6b2d8c,
    0 8px 0 #4a1d66, 0 12px 22px rgba(58,23,79,.45); }
#kast-titel img, .spel-kop h1 img { filter: drop-shadow(0 2px 2px rgba(58,23,79,.35)); }
@media (max-aspect-ratio: 1/1) {
  .thuismidden { margin-top: 4px; }
  #begin { --kg: min(44vh, calc(70vw / .7076)); }
}
.spel-platen { align-content: safe center; }
/* kleine kaften zonder code: alleen een slotje (de tekst "4 bladzijden gratis" staat op het grote boek) */
.vak.ander .kaft.dicht .slotje { font-size: 0; padding: 3px 6px; right: -8px; top: -8px; }
.vak.ander .kaft.dicht .slotje::before { content: "🔒"; font-size: 15px; }

/* ---------- Het introfilmpje ---------- */
#intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;
  background: #2a1736 url(../assets/intro/intro.webp) center / cover; transition: opacity .55s ease; }
#intro::before { content: ""; position: absolute; inset: -20px; background: inherit; filter: blur(18px) brightness(.8); }
#intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-aspect-ratio: 3/4) { #intro video { object-fit: contain; } }
#intro.weg { opacity: 0; pointer-events: none; }
.intro-verder { position: absolute; z-index: 2; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  padding: 10px 20px; border-radius: 999px; background: rgba(255,244,207,.92); border: 2px solid #f2b84b; color: #3a174f; font-weight: 900;
  font-size: clamp(15px, 2.4vmin, 20px); box-shadow: 0 3px 0 #d29a3e; opacity: 0; transition: opacity .4s; }
.intro-verder.zie { opacity: 1; }
.intro-geluid { white-space: nowrap; position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 26px; border-radius: 999px;
  background: rgba(255,244,207,.95); border: 3px solid #f2b84b; color: #3a174f; font-weight: 900; font-size: clamp(17px, 3vmin, 24px);
  box-shadow: 0 4px 0 #d29a3e, 0 8px 20px rgba(58,23,79,.35); animation: introadem 1.4s ease-in-out infinite; }
@keyframes introadem { 50% { transform: translate(-50%, -50%) scale(1.06); } }

/* ---------- Het stickeralbum ---------- */
.album-balk { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
.album-teller { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,244,207,.92); border: 2px solid var(--ui-goud);
  color: var(--ui-donker); font-weight: 900; font-size: clamp(14px, 2.4vmin, 19px); }
.album-meter { display: inline-block; width: clamp(60px, 14vw, 140px); height: 10px; border-radius: 6px; background: #ead9b6; overflow: hidden; }
.album-meter i { display: block; height: 100%; background: linear-gradient(90deg, #ffd659, #e89a2c); border-radius: 6px; transition: width .5s; }
.album-maak { display: flex; align-items: center; gap: 6px; background: linear-gradient(#fffbef, var(--ui-room)); border: 2px solid var(--ui-goud); color: var(--ui-donker); }
.album-maak img { width: 1.4em; height: 1.4em; }
.album-boek { flex: 1; min-height: 0; display: flex; align-items: center; gap: clamp(4px, 1.5vw, 14px); }
.album-pijl { flex: none; }
.album-pijl.rechts img { transform: scaleX(-1); }
.album-pijl:disabled { opacity: .3; }
.album-blad { flex: 1; align-self: stretch; min-width: 0; display: flex; flex-direction: column; border-radius: 24px; padding: clamp(8px, 2vmin, 18px);
  background: linear-gradient(135deg, #fffaf0, #fff1cf); border: 4px solid var(--ui-goud); box-shadow: inset 0 0 0 3px #fff, 0 6px 0 #d29a3e, 0 12px 26px rgba(58,23,79,.3); overflow: hidden; touch-action: pan-y; }
.album-blad.slar { animation: slar .35s ease; } .album-blad.slal { animation: slal .35s ease; }
@keyframes slar { from { transform: translateX(30px); opacity: .3; } } @keyframes slal { from { transform: translateX(-30px); opacity: .3; } }
.album-blad h2 { margin: 0 0 6px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ui-paars); font-size: clamp(20px, 4vmin, 34px); }
.album-blad h2 img { width: 1.6em; height: 1.6em; border-radius: 50%; object-fit: cover; border: 3px solid var(--ui-goud); }
.album-blad h2 small { font-size: .6em; opacity: .7; }
.album-vakken { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(70px, 15vmin, 140px), 1fr)); gap: clamp(6px, 1.6vmin, 14px); align-content: center; justify-items: center; }
.album-vak { position: relative; width: 100%; max-width: clamp(80px, 18vmin, 170px); aspect-ratio: 1; border-radius: 18px; border: 3px dashed #e3c27e; display: grid; place-items: center; background: rgba(255,255,255,.5); }
.album-vak img { width: 86%; height: 86%; object-fit: contain; filter: brightness(0) opacity(.13); }
.album-vak.vol { border-style: solid; border-color: transparent; background: none; }
.album-vak.vol img { filter: drop-shadow(0 4px 4px rgba(58,23,79,.3)); }
.album-vak.plop img { animation: plop .45s cubic-bezier(.3,1.7,.5,1); }
.album-vak.goud { border-color: var(--ui-goud); background: radial-gradient(circle, #fff6d6, #ffe7a3); }
.album-vak.goud i { position: absolute; font-style: normal; font-size: clamp(26px, 5vmin, 44px); color: #e8a93a; }
.album-vak.goud.vol img, .nieuwesticker.goud img { filter: sepia(1) saturate(4) hue-rotate(-12deg) brightness(1.15) drop-shadow(0 0 10px rgba(255,200,60,.9)); animation: goudglans 2.4s ease-in-out infinite; }
@keyframes goudglans { 50% { filter: sepia(1) saturate(4) hue-rotate(-12deg) brightness(1.4) drop-shadow(0 0 18px rgba(255,220,90,1)); } }
.album-stipjes { flex: none; display: flex; justify-content: center; gap: 8px; margin: 8px 0 2px; }
.album-stipjes i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,244,207,.6); border: 1px solid var(--ui-goud); }
.album-stipjes i.aan { background: var(--ui-goud); transform: scale(1.3); }
.album-nieuw { flex: none; text-align: center; padding: 4px 0 2px; }
.album-nieuw p { margin: 0 0 4px; font-weight: 900; color: var(--ui-donker); font-size: clamp(13px, 2.2vmin, 17px); text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.album-nieuwrij { display: flex; gap: 10px; justify-content: center; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.album-nieuwe { flex: none; width: clamp(56px, 10vmin, 84px); height: clamp(56px, 10vmin, 84px); border-radius: 16px; background: rgba(255,244,207,.9); border: 3px solid var(--ui-goud);
  box-shadow: 0 0 0 4px rgba(255,214,89,.35), 0 0 18px rgba(255,214,89,.7); animation: adem 1.3s ease-in-out infinite; }
.album-nieuwe img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.album-vlieg { position: fixed; z-index: 400; object-fit: contain; pointer-events: none; transition: all .6s cubic-bezier(.5,-.2,.4,1.2); }
.glitter { position: fixed; z-index: 401; width: 9px; height: 9px; margin: -4px; border-radius: 50%; background: #ffe27a; box-shadow: 0 0 8px 2px #ffd24a; pointer-events: none; animation: glitter .85s ease-out forwards; }
@keyframes glitter { to { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; } }
/* een nieuwe sticker in het boek */
.sticker-melding { position: fixed; z-index: 300; left: 50%; top: max(16px, env(safe-area-inset-top)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: 999px; background: linear-gradient(#fffbef, var(--ui-room)); border: 3px solid var(--ui-goud); color: var(--ui-donker); font-weight: 900;
  box-shadow: 0 5px 0 #d29a3e, 0 10px 24px rgba(58,23,79,.35); animation: plop .45s cubic-bezier(.3,1.6,.5,1); transition: opacity .5s, transform .5s; pointer-events: none; }
.sticker-melding img { width: 54px; height: 54px; object-fit: contain; }
.sticker-melding.weg { opacity: 0; transform: translate(-50%, -30px); }
.thuistegel .nieuwtje { position: absolute; z-index: 3; left: clamp(36px, 6vmin, 52px); top: -8px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center;
  background: var(--ui-roze); color: #fff; font-weight: 900; font-size: 15px; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(58,23,79,.3); animation: adem 1.3s ease-in-out infinite; }

/* ---------- Maak een plaatje ---------- */
.galerij .nieuw { display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,244,207,.9); color: var(--ui-paars); font-weight: 900; }
.galerij .nieuw b { font-size: clamp(40px, 8vmin, 64px); line-height: 1; }
.maakveld { flex: 1; min-height: 0; display: flex; gap: clamp(8px, 2vw, 18px); margin-top: 6px; }
.podium { position: relative; flex: none; height: 100%; aspect-ratio: 3 / 4; max-width: 62%; border-radius: 22px; overflow: hidden; border: 4px solid var(--ui-goud);
  background: #f3e3ff center / cover; box-shadow: 0 6px 0 #d29a3e, 0 12px 26px rgba(58,23,79,.3); touch-action: none; align-self: center; }
.maaksticker { position: absolute; touch-action: none; cursor: grab; filter: drop-shadow(0 4px 4px rgba(58,23,79,.3)); }
.maaksticker.aan { outline: 3px dashed #fff; outline-offset: 2px; border-radius: 8px; }
.maakgereed { position: absolute; z-index: 5; left: 50%; bottom: 10px; transform: translateX(-50%); display: none; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255,244,207,.95); border: 2px solid var(--ui-goud); }
.maakgereed.zie { display: flex; }
.maakknop { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ui-paars); font-size: 22px; font-weight: 900; box-shadow: 0 3px 0 #d29a3e; }
.maakzij { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.maakuitleg { margin: 0; font-weight: 900; color: var(--ui-donker); font-size: clamp(13px, 2.2vmin, 17px); text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.maakachters { display: flex; gap: 8px; flex: none; }
.maakachter { width: clamp(44px, 9vmin, 70px); aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; border: 3px solid transparent; }
.maakachter img { width: 100%; height: 100%; object-fit: cover; }
.maakachter.aan { border-color: var(--ui-goud); box-shadow: 0 0 0 3px rgba(255,214,89,.5); }
.maakbak { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; touch-action: pan-y; }
.maakzij .spel-knop { flex: none; }
@media (max-aspect-ratio: 1/1) {
  .maakveld { flex-direction: column; }
  .podium { height: auto; width: min(100%, calc((100vh - 330px) * .75)); max-width: none; }
  .maakbak { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; touch-action: pan-x; flex: none; }
  .maakzij { flex: none; }
}
.album-vakken { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.album-vak { max-width: min(26vh, 190px); }
@media (max-aspect-ratio: 1/1) { .album-vakken { grid-template-columns: repeat(3, minmax(0, 1fr)); } .album-vak { max-width: min(16vh, 150px); } }

/* ---------- Premium en de winkel (js/winkel.js) ---------- */
.thuislinks { display: flex; align-items: flex-start; gap: 8px; }
.premiumknop { display: flex; align-items: center; gap: .35em; height: clamp(44px, 7.6vmin, 58px); padding: 0 clamp(12px, 2vmin, 18px) 0 clamp(8px, 1.4vmin, 12px);
  border-radius: 999px; background: linear-gradient(180deg, #ffe9a3 0%, #f7c552 55%, #e89a2c 100%); border: 3px solid #fff1c2;
  box-shadow: 0 4px 0 #b4700c, 0 6px 16px rgba(58,23,79,.35), 0 0 18px rgba(255,214,107,.6); color: var(--ui-donker);
  font-size: clamp(15px, 2.5vmin, 20px); animation: premiumglans 3s ease-in-out infinite; }
.premiumknop .kroon { font-size: 1.35em; line-height: 1; filter: drop-shadow(0 1px 0 #fff6); }
.premiumknop b { font-weight: 900; letter-spacing: .3px; }
.premiumknop i { font-style: normal; font-weight: 900; color: #1d6b34; }
.premiumknop:active { transform: translateY(3px); box-shadow: 0 1px 0 #b4700c; }
.premiumknop.aan { animation: none; }
@keyframes premiumglans { 0%, 100% { box-shadow: 0 4px 0 #b4700c, 0 6px 16px rgba(58,23,79,.35), 0 0 10px rgba(255,214,107,.4); }
  50% { box-shadow: 0 4px 0 #b4700c, 0 6px 16px rgba(58,23,79,.35), 0 0 26px rgba(255,214,107,.95); } }
/* Smalle telefoon rechtop: alleen een rond gouden kroontje, anders past de rij knoppen niet (en valt de taal van het scherm) */
@media (max-width: 460px) and (max-aspect-ratio: 1/1) {
  .premiumknop { width: clamp(44px, 7.6vmin, 58px); padding: 0; justify-content: center; border-radius: 50%; position: relative; }
  .premiumknop b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .premiumknop .kroon { font-size: 1.45em; }
  .premiumknop i { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--leaf); color: #fff;
    font-size: 12px; display: grid; place-items: center; border: 2px solid #fff; }
}
#thuis { grid-template-columns: minmax(0, 1fr); }
@media (min-aspect-ratio: 1/1) { #thuis { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }

.winkelkaart { width: min(620px, 100%); overflow-x: hidden; }
.winkelkaart h2 { text-align: center; margin-right: 34px; margin-left: 34px; }
.proefband { margin: -6px 30px 10px 0; padding: 6px 10px; border-radius: 10px; background: repeating-linear-gradient(-45deg, #ffe08a 0 10px, #ffd25e 10px 20px);
  color: #6a3b00; font-weight: 900; font-size: .8em; text-align: center; }
.winkel-premium { position: relative; padding: 18px 18px 14px; border-radius: 22px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #fff6d6 0%, #ffe08a 55%, #f2b84b 100%); border: 3px solid #e89a2c;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 5px 0 #c98a2a, 0 10px 24px rgba(58,23,79,.25); }
.winkel-premium .lint { position: absolute; top: -12px; right: 14px; padding: 4px 12px; border-radius: 999px; background: var(--ui-roze); color: #fff;
  font-weight: 900; font-size: .85em; box-shadow: 0 3px 0 #b8456e; transform: rotate(3deg); }
.winkel-kop { display: flex; align-items: center; justify-content: center; gap: .3em; font-size: clamp(26px, 5vmin, 36px); color: var(--ui-donker); }
.winkel-kop b { font-weight: 900; }
.kroon { line-height: 1; }
.winkel-premium ul { list-style: none; margin: 8px auto 12px; padding: 0; display: inline-block; text-align: left; font-weight: 800; color: var(--ui-donker); }
.winkel-premium li { padding: 3px 0 3px 1.7em; position: relative; }
.winkel-premium li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--leaf);
  color: #fff; font-size: .85em; display: grid; place-items: center; font-weight: 900; }
.winkel-premium .klein { margin: 8px 0 0; color: #6a4a1a; }
.winkel-knop { display: block; width: 100%; min-height: 52px; padding: 8px 16px; border-radius: 16px; background: var(--leaf); color: #fff;
  font-weight: 900; font-size: 1.1em; box-shadow: 0 4px 0 #1d6b34; }
.winkel-knop.goud { background: linear-gradient(180deg, #8a55b3, var(--ui-paars)); box-shadow: 0 4px 0 #3a174f, 0 0 18px rgba(255,255,255,.6); font-size: 1.2em; }
.winkel-knop:active { transform: translateY(3px); box-shadow: 0 1px 0 #1d6b34; }
.winkel-rij { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (max-width: 380px) { .winkel-rij { grid-template-columns: 1fr; } }
.winkel-los { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 18px; background: #fff; border: 3px solid #e9d3a0; text-align: center; }
.winkel-los b { font-size: 1.2em; color: var(--ui-donker); }
.winkel-los p { flex: 1; margin: 0; font-size: .9em; color: #6b5340; }
.winkel-los .prijs { font-size: 1.35em; font-weight: 900; color: var(--ui-donker); margin: 4px 0; }
.winkel-los .prijs small { display: block; font-size: .55em; font-weight: 700; color: #8a6a4a; }
.winkel-los .winkel-knop { min-height: 44px; font-size: 1em; }
.winkel-status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: linear-gradient(#fff6d6, #ffe08a); border: 3px solid #e89a2c; }
.winkel-status .kroon { font-size: 40px; }
.winkel-status b { font-size: 1.2em; color: var(--ui-donker); }
.winkel-status p { margin: 2px 0 0; }
.winkel-munten { display: block; width: 100%; margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 3px dashed var(--ui-goud);
  font-weight: 900; color: var(--ui-donker); font-size: 1em; }
.winkel-munten u { color: var(--ui-paars); }
.winkelkaart .melding { text-align: center; color: var(--ui-paars); }
.winkel-onder { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 4px; }
.winkel-onder button, .winkel-link { background: none; box-shadow: none; padding: 6px 2px; color: var(--ui-paars); font-weight: 800; text-decoration: underline; font-size: .95em; }
.winkel-vakrij { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.winkel-vakrij .groen { height: 44px; }
/* Het (proef)betaalblad onderin, zoals Google Play het straks laat zien */
.betaalblad { position: fixed; inset: 0; z-index: 260; background: rgba(0,0,0,0); display: flex; align-items: flex-end; justify-content: center; transition: background .25s; }
.betaalblad.op { background: rgba(0,0,0,.45); }
.betaalvel { width: min(520px, 100%); padding: 18px 20px max(18px, env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; color: #202124;
  font-family: system-ui, -apple-system, Roboto, sans-serif; transform: translateY(100%); transition: transform .25s; display: flex; flex-direction: column; gap: 10px; }
.betaalblad.op .betaalvel { transform: none; }
.betaalkop { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #5f6368; }
.betaalkop .gp { color: #01875f; font-size: 1.1em; }
.betaalkop em { font-style: normal; margin-left: auto; padding: 2px 8px; border-radius: 6px; background: #ffe08a; color: #6a3b00; font-size: .8em; font-weight: 800; }
.betaalvel > b { font-size: 1.15em; }
.betaalregel { display: flex; justify-content: space-between; color: #3c4043; border-bottom: 1px solid #eee; padding-bottom: 6px; }
.betaalvel .winkel-knop { background: #01875f; box-shadow: none; border-radius: 999px; font-family: inherit; }
.betaalvel .winkel-knop.goud { background: #01875f; }
.betaalnee { background: none; box-shadow: none; color: #01875f; font-weight: 700; padding: 8px; }
/* Welkom bij Premium */
.winkel-welkom { position: relative; z-index: 1; text-align: center; padding: 10px 0 4px; }
.winkel-welkom .kroon.groot { font-size: 72px; animation: plop .6s backwards; }
.winkel-welkom .winkel-knop { margin-top: 14px; }
.winkel-ster { position: absolute; z-index: 0; color: #f2b84b; font-style: normal; pointer-events: none; animation: winkelster 1.6s ease-out infinite; }
@keyframes winkelster { 0% { opacity: 0; transform: scale(.3) rotate(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3) rotate(90deg) translateY(-30px); } }
/* Boeken kiezen met muntjes */
.winkel-tel { text-align: center; font-weight: 800; }
.kiesboeken { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin: 10px 0; }
.kiesboek { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 14px; background: #fff;
  border: 3px solid #e9d3a0; color: var(--ui-donker); font-weight: 900; }
.kiesboek img { width: 100%; aspect-ratio: 1039 / 1513; object-fit: cover; border-radius: 4px 8px 8px 4px; }
.kiesboek.heb { border-color: var(--leaf); }
.kiesboek.heb img { opacity: .55; }
.kiesboek i { position: absolute; top: 34%; left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 999px; background: var(--leaf); color: #fff;
  font-style: normal; font-size: .8em; white-space: nowrap; }
.kiesboek.tip { border-color: var(--ui-goud); box-shadow: 0 0 0 3px #fff1c2, 0 0 16px rgba(242,184,75,.8); }
.kiesboek.gekozen { border-color: var(--ui-paars); box-shadow: 0 0 0 3px var(--ui-paars); transform: translateY(-3px); }
.kiesvraag { position: sticky; bottom: -20px; z-index: 2; padding: 12px; border-radius: 16px; background: #fff; border: 3px solid var(--ui-goud); text-align: center;
  box-shadow: 0 -8px 24px rgba(58,23,79,.25); }
.kiesvraag p { margin: 0 0 8px; }
@media (prefers-reduced-motion: reduce) { .premiumknop, .winkel-ster { animation: none; } }
@media (max-width: 340px) { .thuiskop, .thuislinks, .thuisrechts { gap: 5px; } .thuiskop #talen button { font-size: 13px; padding: 6px 7px; } }

/* ---------- Laadscherm (index.html) ---------- */
#laden { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; transition: opacity .4s;
  background: url(../assets/ui/bg-home.webp) center / cover, radial-gradient(120% 80% at 50% 30%, #8a5bb5 0%, #4a1d66 70%, #2a1736 100%); }
#laden::before { content: ""; position: absolute; inset: 0; background: rgba(42,23,54,.35); }
#laden.weg { opacity: 0; pointer-events: none; }
.laadmidden { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(320px, 76vw); }
.laadmidden img { width: clamp(56px, 12vmin, 90px); animation: laadlotus 1.6s ease-in-out infinite; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.laadmidden b { font-size: clamp(34px, 8vmin, 64px); font-weight: 900; color: #ffd659; white-space: nowrap;
  text-shadow: 3px 3px 0 #6b2d8c, -3px 3px 0 #6b2d8c, 3px -3px 0 #6b2d8c, -3px -3px 0 #6b2d8c, 0 6px 0 #4a1d66, 0 10px 18px rgba(0,0,0,.4); }
.laadbalk { width: 100%; height: 16px; margin-top: 10px; border-radius: 999px; background: rgba(255,244,207,.35); border: 3px solid #fff1c2; overflow: hidden;
  box-shadow: 0 3px 0 rgba(58,23,79,.5); }
.laadbalk i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #ffe08a, #f2b84b, #e89a2c); transition: width .25s ease-out; }
@keyframes laadlotus { 50% { transform: translateY(-6px) scale(1.06); } }
/* Een ander boek gekozen: de kaft van dat boek op het laadscherm, in plaats van de lotus en de naam */
#laden.metkaft .laadmidden b { display: none; }
.laadmidden img.laadkaft { width: min(52vw, 36vh); aspect-ratio: 1039 / 1513; object-fit: cover; animation: none; border-radius: 6px 12px 12px 6px;
  box-shadow: 0 0 0 4px #ffd659, 0 0 28px 6px rgba(255,214,89,.45), 0 10px 24px rgba(0,0,0,.45); filter: none; }
@media (prefers-reduced-motion: reduce) { .laadmidden img { animation: none; } }

/* Staand zoeken: de plaat is groter dan het scherm en schuift opzij */
.plaatvak.veeg { display: flex; align-items: center; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.plaatvak.veeg::-webkit-scrollbar { display: none; }
.plaatvak.veeg > .zoekplaat { flex: none; margin: 0 16px; touch-action: pan-x; }
.veegpijl { position: absolute; left: 50%; bottom: clamp(44px, 9vh, 80px); transform: translateX(-50%); z-index: 3; pointer-events: none;
  padding: 8px 18px; border-radius: 999px; background: rgba(58,23,79,.82); color: #fff; font-size: 26px; font-weight: 900;
  animation: veeg 1.2s ease-in-out infinite; transition: opacity .4s; }
.veegpijl.weg { opacity: 0; }
@keyframes veeg { 0%, 100% { margin-left: -22px; } 50% { margin-left: 22px; } }
/* Staand: minder rand rond de speelkaart, dan krijgen tekenvel en plaat de volle breedte */
@media (orientation: portrait) and (max-width: 600px) {
  #kaart { padding: 4px; }
  #speelblad { padding: 8px 6px; border-width: 3px; }
}

/* ---------- Mijn mandir (js/mandir.js) ---------- */
.mandir-spel { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 0 4px 6px; }
.mandir-veld { flex: 1; min-height: 0; min-width: 0; display: grid; place-items: center; overflow: hidden; }
.mandir-podium { position: relative; overflow: hidden; border-radius: 20px; background: #bfe3ff center / cover no-repeat; container-type: size;
  box-shadow: 0 0 0 3px #fff3cf, 0 0 0 6px var(--ui-goud, #f2b84b), 0 10px 26px rgba(0,0,0,.3); touch-action: none; user-select: none; -webkit-user-select: none; }
.mandir-podium.glans { animation: glans 1s ease-out; }
@keyframes glans { 30% { filter: brightness(1.25) saturate(1.2); } }
.mandir-stuk, .mandir-laag, .mandir-stof, .mandir-puja { position: absolute; }
.mandir-laag, .mandir-stof { inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mandir-stuk { display: block; pointer-events: none; -webkit-user-drag: none; }
.mandir-stuk.binnen { border-radius: 50% 50% 4% 4% / 32% 32% 4% 4%; background: radial-gradient(ellipse at 50% 55%, #ffcf7a 0%, #b5541d 38%, #3a1408 80%); }
.mandir-stuk.valt { animation: mvalt .7s cubic-bezier(.3, 1.35, .5, 1) both; }
@keyframes mvalt { 0% { transform: translateY(-40%) scale(.9); opacity: 0; } 55% { opacity: 1; } 100% { transform: none; } }

.mandir-ding { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; touch-action: none; cursor: grab; }
.mandir-ding img { width: 100%; height: 100%; display: block; -webkit-user-drag: none; pointer-events: none; filter: drop-shadow(0 5px 5px rgba(0,0,0,.3)); }
.mandir-ding.vast { transform: translate(-50%, -50%) scale(1.08); z-index: 200 !important; }
.mandir-ding.vast img { filter: drop-shadow(0 12px 12px rgba(0,0,0,.35)); }
.mandir-ding.kom { animation: mkom .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes mkom { 0% { transform: translate(-50%, -50%) scale(.2); } 100% { transform: translate(-50%, -50%) scale(1); } }
.mandir-ding.wiebel { animation: wiebel .5s; }
@keyframes wiebel { 25% { transform: translate(-50%, -50%) rotate(-8deg); } 60% { transform: translate(-50%, -50%) rotate(6deg); } }
.mandir-laag.dingen { z-index: 3; }

/* De diya: bakje + vlam (hetzelfde plaatje, in twee stukken). Uit = alleen het bakje. */
.diya .bakje, .diya .vlam { position: absolute; inset: 0; width: 100%; height: 100%; }
.diya .bakje { clip-path: inset(45% 0 0 0); }
.diya .vlam { clip-path: inset(0 0 54% 0); opacity: 0; transform-origin: 50% 46%; transition: opacity .3s; }
.diya.aan .vlam { opacity: 1; animation: flakker .9s ease-in-out infinite alternate; }
.diya .gloed { position: absolute; left: 50%; top: 24%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 210, 110, .75), rgba(255, 170, 40, .25) 40%, transparent 68%); opacity: 0; transition: opacity .5s; }
.diya.aan .gloed { opacity: 1; animation: gloei 1.6s ease-in-out infinite alternate; }
@keyframes flakker { 0% { transform: scale(1, 1) rotate(-1.5deg); } 50% { transform: scale(.94, 1.06) rotate(1deg); } 100% { transform: scale(1.03, .96) rotate(2deg); } }
@keyframes gloei { from { opacity: .75; } to { opacity: 1; } }
.mandir-puja { z-index: 2; cursor: pointer; pointer-events: auto; }

/* Wierook: een stokje met een gloeiend puntje en krullende rook */
.mandir-wierook .houder { position: absolute; left: 15%; right: 15%; bottom: 0; height: 13%; border-radius: 40% 40% 20% 20%; background: linear-gradient(#ffd56b, #b8860b); box-shadow: 0 2px 3px rgba(0,0,0,.3); }
.mandir-wierook .stok { position: absolute; left: 46%; width: 9%; min-width: 3px; bottom: 11%; height: 80%; background: linear-gradient(#5a2d0c 0 70%, #c58a4b 70%); border-radius: 2px; transform-origin: 50% 100%; transform: rotate(8deg); }
.mandir-wierook .punt, .mandir-wierook .rook { opacity: 0; }
.mandir-wierook.brandt .stok { animation: brandaf 60s linear forwards; }
@keyframes brandaf { to { height: 30%; } }
.mandir-wierook.brandt .punt { opacity: 1; position: absolute; left: 46%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: #ff5a1f; box-shadow: 0 0 6px 2px #ffb347;
  bottom: 88%; transform: translateX(15%); animation: brandaf2 60s linear forwards, gloei .6s ease-in-out infinite alternate; }
@keyframes brandaf2 { to { bottom: 38%; } }
.mandir-wierook.brandt .rook { opacity: 1; position: absolute; left: -30%; bottom: 80%; width: 160%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,245,250,.95) 0 25%, rgba(200,200,215,.6) 45%, rgba(200,200,215,0) 70%); animation: rook 3.2s ease-out infinite; }
.mandir-wierook.brandt .r2 { animation-delay: 1.05s; } .mandir-wierook.brandt .r3 { animation-delay: 2.1s; }
@keyframes rook { 0% { transform: translate(0, 0) scale(.4); opacity: .9; } 50% { transform: translate(40%, -200%) scale(1.3); opacity: .6; } 100% { transform: translate(-30%, -420%) scale(2.2); opacity: 0; } }

/* Aarti: de schaal staat onderaan; een tik en hij zwaait in rondjes voor de tempel */
.mandir-thali { z-index: 6; }
.mandir-thali .baan { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.mandir-thali .schaal { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.mandir-thali img { position: absolute; width: 15cqw; transform: translate(-50%, -50%); filter: drop-shadow(0 0 6px #ffcf5a); }
.mandir-thali.zwaai .baan { top: calc(50% - var(--omhoog, 30cqh)); animation: rondje 1.5s linear 3; }
.mandir-thali.zwaai .schaal { top: -24cqw; }
.mandir-thali.zwaai img { filter: drop-shadow(0 0 10px #ffcf5a) drop-shadow(0 0 24px rgba(255,190,60,.9)); animation: tegenrondje 1.5s linear 3; }
@keyframes rondje { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes tegenrondje { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* Bovenin: slinger en bellen */
.mandir-toran { position: absolute; left: -2%; top: -1.5%; width: 104%; z-index: 7; pointer-events: none; filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
.mandir-bel { position: absolute; top: 1%; width: 13%; aspect-ratio: .5; z-index: 8; padding: 0; background: none; transform-origin: 50% 0; animation: bengel 3s ease-in-out infinite; }
.mandir-bel.links { left: 9%; } .mandir-bel.rechts { right: 9%; animation-delay: 1.4s; }
.mandir-bel img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0,0,0,.3)); }
@keyframes bengel { 50% { transform: rotate(4deg); } }
.mandir-bel.luid { animation: luid 1.2s ease-in-out; }
@keyframes luid { 15% { transform: rotate(26deg); } 35% { transform: rotate(-22deg); } 55% { transform: rotate(14deg); } 75% { transform: rotate(-8deg); } 100% { transform: none; } }

.mandir-bloemen { position: absolute; pointer-events: none; z-index: 2; }
.mandir-bloemen i { position: absolute; bottom: 0; width: 5%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #ffe066 0 22%, #ff8a1f 24% 60%, #e8590c 62%); box-shadow: 0 2px 2px rgba(0,0,0,.25); }
.mandir-bloemen i:nth-child(2n) { background: radial-gradient(circle, #fff3a8 0 22%, #ff5fa2 24% 60%, #d6336c 62%); bottom: 25%; }
.mandir-bloemen i:nth-child(1) { left: 22%; } .mandir-bloemen i:nth-child(2) { left: 29%; } .mandir-bloemen i:nth-child(3) { left: 36%; }
.mandir-bloemen i:nth-child(4) { left: 43%; } .mandir-bloemen i:nth-child(5) { left: 50%; } .mandir-bloemen i:nth-child(6) { left: 57%; }
.mandir-bloemen i:nth-child(7) { left: 64%; } .mandir-bloemen i:nth-child(8) { left: 71%; } .mandir-bloemen i:nth-child(9) { left: 78%; }
.mandir-laag.regen { z-index: 9; }
.blaadje { position: absolute; width: 2.4%; aspect-ratio: .7; border-radius: 50% 50% 50% 0; animation: valblad 2s ease-in forwards; opacity: 0; }
@keyframes valblad { 0% { opacity: 0; transform: translateY(0) rotate(0); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--val)) rotate(var(--draai)); } }

/* Stof en rommel liggen over alles; de bellen en de schaal blijven erboven, zodat je ze altijd kunt aantikken */
.mandir-stof { z-index: 5; }
.mandir-laag.rommel { z-index: 5; }
.mandir-rommel { position: absolute; transform: translate(-50%, -50%) rotate(var(--d)); font-size: 7cqw; line-height: 1; pointer-events: none; transition: transform .6s ease-in, opacity .6s; }
.mandir-rommel.web { font-size: 11cqw; opacity: .85; }
.mandir-rommel.weg { transform: translate(120%, -160%) rotate(200deg) scale(.4); opacity: 0; }
.mandir-doekje { position: absolute; transform: translate(-30%, -70%); font-size: 44px; pointer-events: none; z-index: 12; filter: drop-shadow(0 3px 3px rgba(0,0,0,.3)); }
.mandir-laag.feest { z-index: 11; }
.mandir-ster { position: absolute; color: #ffd84a; text-shadow: 0 0 8px #fff, 0 0 16px #ffb000; animation: mster 1.6s ease-out both; }
@keyframes mster { 0% { transform: scale(0) rotate(0); opacity: 0; } 40% { transform: scale(1.4) rotate(90deg); opacity: 1; } 100% { transform: scale(.6) rotate(200deg) translateY(-40px); opacity: 0; } }
.mandir-wolk { position: absolute; left: 22%; right: 22%; top: 15%; z-index: 13; padding: 8px 12px; border-radius: 16px; background: rgba(255, 251, 239, .95); color: var(--ui-donker, #3a174f);
  font-weight: 800; font-size: clamp(13px, 4cqw, 20px); text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,.2); pointer-events: none; }
.mandir-wolk.kom { animation: plop .35s cubic-bezier(.3, 1.6, .5, 1); }
.mandir-spook { position: fixed; z-index: 400; object-fit: contain; transform: translate(-50%, -50%) scale(1.05); pointer-events: none; filter: drop-shadow(0 10px 12px rgba(0,0,0,.35)); }

/* De strook onderaan: groot en makkelijk */
.mandir-strook { flex: none; display: flex; gap: 8px; align-items: stretch; overflow-x: auto; padding: 8px; border-radius: 22px; background: rgba(255, 251, 239, .93);
  box-shadow: 0 6px 18px rgba(0,0,0,.2); scrollbar-width: none; touch-action: pan-x; transition: background .2s, box-shadow .2s; }
.mandir-strook::-webkit-scrollbar { display: none; }
.mandir-keus, .mandir-knop { flex: none; width: clamp(84px, 24vw, 112px); height: clamp(96px, 27vw, 124px); padding: 6px; border-radius: 18px; background: #fff;
  box-shadow: 0 0 0 2px #ecd9ad, 0 3px 0 #d8b86a; touch-action: pan-x; }
.mandir-keus img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.mandir-keus.god { background: radial-gradient(circle at 50% 60%, #fff1c4, #fff 70%); }
.mandir-keus:active, .mandir-knop:active { transform: scale(.94); }
.mandir-knop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #3a174f; font-weight: 900; font-size: 12px; line-height: 1.1; }
.mandir-knop span { font-size: 40px; line-height: 1; }
.mandir-knop img { width: 70%; height: 60%; object-fit: cover; border-radius: 10px; }
.mandir-knop.bloem { background: linear-gradient(#fff0f6, #ffd6e7); }
.mandir-tussen { flex: none; width: 3px; border-radius: 2px; background: #ecd9ad; margin: 10px 2px; }
@media (min-aspect-ratio: 1/1) { .mandir-spel { flex-direction: row; } .mandir-strook { flex-direction: column; overflow-x: hidden; overflow-y: auto; width: clamp(110px, 16vw, 150px); touch-action: pan-y; }
  .mandir-keus, .mandir-knop { width: 100%; touch-action: pan-y; } .mandir-tussen { width: auto; height: 3px; margin: 2px 10px; } }
/* Terugzetten: de strook licht goud op als je er een beeldje boven houdt; een getikt beeldje krijgt een klein gouden terug-knopje */
.mandir-strook.terug { background: #fff4cc; box-shadow: 0 0 0 4px #f2b84b, 0 0 22px 6px rgba(242,184,75,.6); }
.mandir-terugknop { position: absolute; z-index: 15; width: 10cqw; height: 10cqw; border-radius: 50%; background: linear-gradient(#ffe08a, #f2a81d); color: #5a2d0c;
  font-size: 6cqw; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff, 0 4px 8px rgba(0,0,0,.3); animation: plop .3s cubic-bezier(.3, 1.8, .5, 1); }
/* Poetsen: dan pakt je vinger geen beeldjes, maar poetst hij overal */
.mandir-podium.poetsen .mandir-ding, .mandir-podium.poetsen .mandir-puja { pointer-events: none; }
.mandir-podium.poetsen { cursor: crosshair; }
.mandir-knop.poets { background: linear-gradient(#f2fbff, #cdeefe); }
.mandir-knop.poets.aan { box-shadow: 0 0 0 4px #2b7de9, 0 3px 0 #1d5fb8; background: #d8ecff; }
.mandir-knop.wijs:not(.aan) { animation: adem 1s ease-in-out infinite; box-shadow: 0 0 0 4px #ffb000, 0 0 18px 4px rgba(255,176,0,.6); }

/* Alleen met Premium: de melding met een knop naar de winkel (js/winkel.js, vraagPremium) */
.premium-slot { position: fixed; z-index: 400; left: 50%; bottom: 7%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  padding: 14px 18px; border-radius: 22px; background: #fff7e6; color: #4a1d66; box-shadow: 0 10px 28px rgba(0,0,0,.45); border: 3px solid #e8b04a;
  width: min(340px, calc(100vw - 32px)); text-align: center; animation: premiumOp .3s ease-out; transition: opacity .4s; }
.premium-slot.weg { opacity: 0; }
.premium-slot .kroon { font-size: 30px; }
.premium-slot b { font-size: 18px; }
.premium-slot .winkel-knop { margin: 0; width: auto; }
@keyframes premiumOp { from { transform: translate(-50%, 30px); opacity: 0; } }
/* een god met een slotje in de strook van de mandir */
.mandir-keus.dicht { position: relative; }
.mandir-keus.dicht img { filter: grayscale(.6) brightness(.6); }
.mandir-keus.dicht i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 28px; }
