/* Vonkenveld — mobiel eerst. Grote tapdoelen, hoog contrast, weinig tekst. */
:root {
  --nacht: #16233B;
  --nacht-licht: #22324f;
  --vonk: #FFC531;
  --vonk-diep: #E9A900;
  --mint: #3ED6B0;
  --koraal: #FF8A5C;
  --wit: #FFFFFF;
  --grijs: #9BA7B8;
  --grijs-licht: #E8EDF3;
  --fout: #E5484D;
  --radius: 16px;
  --tap: 52px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--nacht);
  color: var(--wit);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--vonk); }

/* ------------------------------------------------------------- kop/voet */
.kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--nacht-licht);
  position: sticky;
  top: 0;
  z-index: 10;
}
.merk {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--wit);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.merk-vonk { color: var(--vonk); }
.kop-nav { display: flex; align-items: center; gap: 10px; }
.kop-vonken {
  background: var(--vonk);
  color: var(--nacht);
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.kop-naam { color: var(--grijs-licht); font-size: 0.95rem; }

.inhoud { padding: 16px; max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }

/* ---------------------------------------------------------- achtergrond */
.achtergrond {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.kop, .voet { position: relative; z-index: 1; }
.kop { position: sticky; }
.ag-draai { transform-box: fill-box; transform-origin: center; animation: draai 60s linear infinite; }
.ag-draai-terug { transform-box: fill-box; transform-origin: center; animation: draai 90s linear infinite reverse; }
.ag-drijf-1 { animation: drijf 14s ease-in-out infinite; }
.ag-drijf-2 { animation: drijf 18s ease-in-out infinite 3s; }
.ag-drijf-3 { animation: drijf 22s ease-in-out infinite 6s; }
@keyframes drijf { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (prefers-reduced-motion: reduce) { .ag-draai, .ag-draai-terug, .ag-drijf-1, .ag-drijf-2, .ag-drijf-3 { animation: none; } }

.voet {
  padding: 24px 16px 40px;
  color: var(--grijs);
  font-size: 0.85rem;
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* --------------------------------------------------------------- tekst */
h1 { font-size: 1.6rem; margin: 8px 0 4px; }
h2 { font-size: 1.25rem; margin: 24px 0 8px; }
h3 { font-size: 1.05rem; margin: 16px 0 6px; }
p { margin: 8px 0; }
.leidend { color: var(--grijs-licht); }
.klein { font-size: 0.85rem; color: var(--grijs); }

/* -------------------------------------------------------------- knoppen */
.knop, .knop-uit, .knop-klein {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 12px 20px;
  border-radius: var(--radius);
  border: none;
  font-size: 1.05rem;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.knop { background: var(--vonk); color: var(--nacht); }
.knop:active { background: var(--vonk-diep); }
.knop-uit { background: transparent; color: var(--wit); border: 2px solid var(--grijs); }
.knop-klein {
  min-height: 40px;
  padding: 6px 12px;
  font-size: 0.85rem;
  background: transparent;
  color: var(--grijs-licht);
  border: 1px solid var(--grijs);
  border-radius: 999px;
}
.knop-breed { width: 100%; }
.knop[disabled], .knop-uit[disabled] { opacity: 0.45; cursor: not-allowed; }

/* --------------------------------------------------------------- kaarten */
.kaart {
  background: rgba(34,50,79,0.92);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0;
}
.kaart-rij { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.tegels { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .tegels { grid-template-columns: 1fr 1fr; } }

.tegel {
  display: block;
  border-radius: var(--radius);
  padding: 16px 16px 16px 96px;
  text-decoration: none;
  color: var(--nacht);
  min-height: 120px;
  position: relative;
  overflow: hidden;
  background: var(--tegelkleur, var(--nacht-licht));
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: transform 0.15s ease;
}
.tegel-open:hover, .tegel-open:focus-visible { transform: translateY(-2px); }
.tegel h3 { margin: 0 0 4px; font-size: 1.2rem; }
.tegel p { margin: 0; font-size: 0.9rem; opacity: 0.85; }
.tegel-icoon { position: absolute; left: 12px; top: 50%; width: 72px; height: 72px; transform: translateY(-50%); color: rgba(22,35,59,0.85); }
.tegel-dicht { background: var(--nacht-licht); color: var(--grijs); border: 1px dashed rgba(255,255,255,0.15); box-shadow: none; }
.tegel-dicht .tegel-icoon { color: var(--tegelkleur); opacity: 0.35; }
.tegel-slot { position: absolute; top: 14px; right: 16px; font-size: 1.2rem; }

.balk { height: 10px; border-radius: 999px; background: rgba(0,0,0,0.18); margin-top: 10px; overflow: hidden; }
.balk span { display: block; height: 100%; background: var(--nacht); border-radius: 999px; }

/* -------------------------------------------------------------- formulier */
label { display: block; margin: 14px 0 4px; font-weight: bold; }
input[type="text"], input[type="password"], input[type="email"], select {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  background: var(--wit);
  color: var(--nacht);
  font-size: 1.05rem;
  font-family: inherit;
}
input:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}
.melding { border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.melding-fout { background: rgba(229,72,77,0.15); border: 2px solid var(--fout); }
.melding-ok { background: rgba(62,214,176,0.15); border: 2px solid var(--mint); }
.leeg-staat { color: var(--grijs); font-style: italic; padding: 12px 0; }

/* ------------------------------------------------------------ kringspel */
.speelveld { margin: 16px 0; }
.raster { touch-action: none; user-select: none; -webkit-user-select: none; margin: 0 auto; max-width: 440px; }
.kring-svg { width: 100%; height: auto; display: block; border-radius: 12px; border: 3px solid #3a5a8f; box-shadow: inset 0 0 30px rgba(0,0,0,0.35); }
.kring-svg .kcel { cursor: pointer; }
.kring-kortsluiting { border-color: var(--fout); }
.k-gloed { animation: gloei 1.4s ease-in-out infinite; }
.k-stralen { transform-box: fill-box; transform-origin: center; animation: draai 8s linear infinite; }
.k-vonk { animation: knipper 0.35s steps(2) infinite; }
@keyframes knipper { 50% { opacity: 0; } }
.k-hendel { transition: all 0.15s; }

.lade { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.lade-knop {
  min-height: var(--tap);
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 2px solid var(--grijs);
  background: transparent;
  color: var(--wit);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.lade-knop[aria-pressed="true"] { background: var(--vonk); color: var(--nacht); border-color: var(--vonk); }

/* --------------------------------------------------------------- sorteer */
.sorteer-bakken { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.bak { background: var(--nacht-licht); border-radius: var(--radius); padding: 10px; min-height: 120px; }
.bak h3 { font-size: 0.95rem; margin: 0 0 8px; }
.bak.over { outline: 3px dashed var(--mint); }
.item {
  background: var(--wit);
  color: var(--nacht);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 6px 0;
  font-size: 0.95rem;
  min-height: 46px;
  display: flex;
  align-items: center;
  cursor: grab;
}
.item[aria-pressed="true"] { outline: 3px solid var(--mint); }
.voorraad { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.voorraad .item { margin: 0; }

/* ---------------------------------------------------------------- keuze */
.keuzes { display: grid; gap: 10px; margin: 12px 0; }
.keuze {
  background: var(--nacht-licht);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 14px;
  text-align: left;
  color: var(--wit);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  min-height: var(--tap);
}
.keuze[aria-pressed="true"] { border-color: var(--vonk); }
.keuze .raster { max-width: 180px; margin: 8px 0 0; }

/* -------------------------------------------------------------- feedback */
.feedback { margin: 16px 0; padding: 14px; border-radius: var(--radius); font-weight: bold; }
.feedback-goed { background: rgba(62,214,176,0.2); border: 2px solid var(--mint); }
.feedback-mis { background: rgba(255,138,92,0.18); border: 2px solid var(--koraal); }
.tip { background: rgba(255,255,255,0.06); border-radius: var(--radius); padding: 12px; margin: 12px 0; }

/* ---------------------------------------------------------------- robot */
.robot-lijst { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .robot-lijst { grid-template-columns: repeat(3, 1fr); } }
.onderdeel {
  background: var(--nacht-licht);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.onderdeel-uit { opacity: 0.4; }
.onderdeel-icoon { font-size: 2rem; display: block; }

/* --------------------------------------------------------------- tabellen */
table { width: 100%; border-collapse: collapse; margin: 12px 0; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--nacht-licht); font-size: 0.95rem; }
th { color: var(--grijs); font-weight: normal; }

.code-groot {
  font-family: "Courier New", monospace;
  font-size: 1.6rem;
  letter-spacing: 4px;
  background: var(--wit);
  color: var(--nacht);
  padding: 10px 16px;
  border-radius: var(--radius);
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .cel-lamp-aan { transition: background 0.15s ease, box-shadow 0.15s ease; }
}

/* ------------------------------------------------------------ tipladder */
.tiplijst { margin: 8px 0 12px; padding-left: 20px; }
.tip-stap { margin: 6px 0; }
#waarom { border: 2px solid var(--mint); }

/* --------------------------------------------------------------- brugspel */
.brugveld {
  width: 100%; height: auto; max-height: 60vh; display: block;
  border-radius: var(--radius); border: 3px solid #3a5a8f;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.35); background: #1b2f55; touch-action: manipulation;
}
.brug-punt { cursor: pointer; }
.brug-gekozen circle:first-child { animation: puls 0.9s ease-in-out infinite; }
.brug-schip { animation: deinen 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes deinen { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-0.04px) rotate(1deg); } }
.budget-vol { color: var(--koraal); font-weight: bold; }

/* ------------------------------------------------------------ tipladder */
.tiplijst { margin: 8px 0 12px; padding-left: 20px; }
.tip-stap { margin: 6px 0; }
#waarom { border: 2px solid var(--mint); }

/* --------------------------------------------------------------- brugspel */
.brugveld {
  width: 100%;
  height: auto;
  max-height: 58vh;
  display: block;
  background: linear-gradient(180deg, #1d2c47 0%, #16233B 100%);
  border-radius: var(--radius);
  touch-action: manipulation;
}
.brug-punt { fill: var(--grijs); cursor: pointer; }
.brug-punt:hover { fill: var(--wit); }
.brug-dekpunt { fill: var(--grijs-licht); }
.brug-anker { fill: var(--koraal); }
.brug-gekozen { fill: var(--mint); stroke: var(--mint); stroke-width: 0.08; stroke-opacity: 0.4; }
.brug-balk { stroke: var(--mint); stroke-width: 0.09; stroke-linecap: round; }
.brug-balk-vast { stroke: var(--grijs-licht); stroke-width: 0.12; }
.brug-verboden { fill: rgba(229,72,77,0.16); stroke: rgba(229,72,77,0.4); stroke-width: 0.03; }
.brug-truck { fill: var(--vonk); }
.budget-vol { color: var(--koraal); font-weight: bold; }

/* ---------------------------------------------------------------- uitleg */
.intro {
  background: rgba(62,214,176,0.10);
  border: 2px solid rgba(62,214,176,0.45);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 12px 0;
}
.intro summary { font-weight: bold; cursor: pointer; min-height: 36px; display: flex; align-items: center; gap: 8px; }
.intro p { margin: 8px 0 0; }
.intro-wereld { border: 2px solid rgba(255,197,49,0.45); }
.weetje {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: normal;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------ werkplaats */
.blauwdruk {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 3px solid #3a5a8f;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.35);
  background: #16233B;
}
.bouwsel-mini { width: 100%; height: auto; border-radius: 12px; border: 2px solid #3a5a8f; display: block; }
.slot { fill: rgba(62,214,176,0.12); stroke: var(--mint); stroke-width: 1.2; stroke-dasharray: 3 2; cursor: pointer; }
.slot-past { fill: rgba(62,214,176,0.35); stroke-width: 2; stroke-dasharray: none; animation: puls 1s ease-in-out infinite; }
.slot-past-niet { opacity: 0.3; }
.geplaatst { cursor: pointer; }
.geplaatst:hover { filter: brightness(1.2); }
@keyframes puls { 0%,100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.4; } }

.bouwsels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .bouwsels { grid-template-columns: repeat(3, 1fr); } }
.bouwsel-kaart {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--nacht-licht); border-radius: var(--radius); padding: 10px;
  text-decoration: none; color: var(--wit);
}
.tegel-blauwdruk { background: var(--nacht-licht); color: var(--wit); }
.tegel-blauwdruk h3 { margin-top: 8px; }
.tegel-blauwdruk p { color: var(--grijs-licht); }

.kist { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.kist-item {
  background: var(--nacht-licht); border: 2px solid transparent; border-radius: 12px;
  padding: 8px 4px; color: var(--wit); font-family: inherit; font-size: 0.8rem;
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; min-height: var(--tap);
}
.kist-item svg { width: 44px; height: 44px; }
.kist-item[aria-pressed="true"] { border-color: var(--vonk); background: rgba(255,197,49,0.12); }

.werking { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.werking span { font-size: 0.85rem; padding: 4px 10px; border-radius: 999px; background: var(--nacht-licht); color: var(--grijs); }
.werking span.aan { background: rgba(62,214,176,0.2); color: var(--mint); font-weight: bold; }

#bouwsel-naam { outline: none; border-bottom: 2px dashed transparent; }
#bouwsel-naam:focus { border-bottom-color: var(--vonk); }

.winkel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .winkel { grid-template-columns: repeat(3, 1fr); } }
.winkel-item {
  background: var(--nacht-licht); border-radius: var(--radius); padding: 12px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
}
.winkel-item svg { width: 64px; height: 64px; }
.winkel-item p { flex: 1; }
.winkel-bezit { opacity: 0.75; border: 2px solid var(--mint); }
.winkel-licentie { border: 2px solid var(--vonk); }
.prijs { font-weight: bold; padding: 8px 12px; }
.prijs-bezit { color: var(--mint); }

/* Onderdelen die iets doen als het bouwsel werkt */
.os-gloed { opacity: 0; transition: opacity 0.4s; }
.os-licht { transition: fill 0.3s; }
.werkt-licht .os-gloed { opacity: 1; animation: gloei 1.6s ease-in-out infinite; }
.werkt-licht .os-licht { fill: #FFE38A; }
.werkt-licht .os-bundel { opacity: 0.55; }
.os-bundel { opacity: 0; transition: opacity 0.4s; }
@keyframes gloei { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }
.os-draai { transform-box: fill-box; transform-origin: center; }
.werkt-beweging .os-draai { animation: draai 1.2s linear infinite; }
@keyframes draai { to { transform: rotate(360deg); } }
.os-vlam { opacity: 0; }
.werkt-beweging .os-vlam { opacity: 1; animation: gloei 0.3s ease-in-out infinite; }
.os-golf { opacity: 0; }
.werkt-geluid .os-golf { opacity: 1; animation: gloei 0.6s ease-in-out infinite; }
.os-rook { transform-box: fill-box; transform-origin: center; }
.werkt-beweging .os-rook { animation: stijg 2s ease-out infinite; }
@keyframes stijg { from { transform: translateY(0); opacity: 0.7; } to { transform: translateY(-6px); opacity: 0; } }
.os-wapper { transform-box: fill-box; transform-origin: left center; animation: wapper 1.4s ease-in-out infinite; }
@keyframes wapper { 0%,100% { transform: skewY(0); } 50% { transform: skewY(6deg); } }
@media (prefers-reduced-motion: reduce) {
  .werkt-beweging .os-draai, .os-wapper, .werkt-licht .os-gloed, .werkt-beweging .os-rook { animation: none; }
}

/* ---------------------------------------------------------- rustige modus */
body.rustig .ag-draai, body.rustig .ag-draai-terug, body.rustig .ag-drijf-1, body.rustig .ag-drijf-2, body.rustig .ag-drijf-3,
body.rustig .k-stralen, body.rustig .k-gloed, body.rustig .k-vonk, body.rustig .brug-schip, body.rustig .os-wapper,
body.rustig .werkt-beweging .os-draai, body.rustig .werkt-licht .os-gloed { animation: none; }
body.rustig .ag-schets { opacity: 0.1 !important; }

/* ------------------------------------------------------------------ Vonk */
.vonk { overflow: visible; display: block; }
.vonk-gloed { animation: gloei 2.4s ease-in-out infinite; }
.vonk-vlam { animation: gloei 0.3s ease-in-out infinite; }
.vonk-gezicht { transform-box: fill-box; }
.vonk-figuur .vonk { animation: zweef 3.2s ease-in-out infinite; }
@keyframes zweef { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.vonk-kaart {
  display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--wit);
  background: linear-gradient(135deg, rgba(255,197,49,0.18), rgba(34,50,79,0.92) 60%);
  border: 2px solid rgba(255,197,49,0.45); border-radius: var(--radius); padding: 12px 16px; margin: 8px 0 12px;
}
.vonk-figuur { flex: 0 0 auto; }
.vonk-tekst { flex: 1; min-width: 0; }
.ballon {
  position: relative; background: var(--wit); color: var(--nacht); border-radius: 14px;
  padding: 10px 12px; font-weight: bold; line-height: 1.35;
}
.ballon::before {
  content: ""; position: absolute; left: -9px; top: 18px;
  border-width: 8px 10px 8px 0; border-style: solid; border-color: transparent var(--wit) transparent transparent;
}
.vonk-stadium { margin: 8px 0 2px; }
.vonk-balk { background: rgba(255,255,255,0.12); margin-top: 4px; }
.vonk-balk span { background: var(--vonk); }

.snel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.snel-knop {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  background: rgba(34,50,79,0.92); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius);
  padding: 12px 6px; color: var(--wit); text-decoration: none; min-height: 96px; justify-content: center;
}
.snel-knop:hover, .snel-knop:focus-visible { border-color: var(--vonk); }
.snel-icoon { font-size: 1.8rem; line-height: 1; }
.snel-knop .klein { font-size: 0.75rem; }

.start-kop { display: flex; align-items: center; gap: 14px; }
.namen { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.naam-knop {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px;
  background: var(--nacht); border: 2px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  color: var(--wit); text-decoration: none; font-weight: bold;
}
.naam-knop:hover, .naam-knop:focus-visible { border-color: var(--vonk); }
.naam-letter {
  width: 52px; height: 52px; border-radius: 50%; background: var(--vonk); color: var(--nacht);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}

/* ----------------------------------------------------------- kindnavigatie */
.met-kindnav { padding-bottom: 96px; }
.kindnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(22,35,59,0.97); border-top: 1px solid rgba(255,255,255,0.1);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  backdrop-filter: blur(6px);
}
.kindnav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px;
  color: var(--grijs-licht); text-decoration: none; font-size: 0.8rem; border-radius: 12px; min-height: 52px; justify-content: center;
}
.kindnav a span { font-size: 1.4rem; line-height: 1; }
.kindnav a.actief { color: var(--vonk); background: rgba(255,197,49,0.12); font-weight: bold; }
@media (min-width: 800px) {
  .kindnav { left: 50%; right: auto; transform: translateX(-50%); width: 560px; bottom: 12px; border-radius: 18px; border: 1px solid rgba(255,255,255,0.12); }
}

/* --------------------------------------------------------- stickers & diploma */
.vonk-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 560px) { .vonk-pad { grid-template-columns: repeat(6, 1fr); } }
.vonk-stap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: rgba(34,50,79,0.6); opacity: 0.45; }
.vonk-stap.bereikt { opacity: 1; }
.vonk-stap.nu { outline: 2px solid var(--vonk); background: rgba(255,197,49,0.12); }
.vonk-stap .vonk { animation: none; }
.vonk-stap:not(.bereikt) .vonk { filter: grayscale(1); }

.stickerboek { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .stickerboek { grid-template-columns: repeat(3, 1fr); } }
.stickervak { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; background: rgba(34,50,79,0.92); border-radius: var(--radius); padding: 12px 8px; }
.stickervak.dicht { opacity: 0.55; }
.sticker { width: 72px; height: 72px; }
.sticker-dicht { filter: grayscale(1) brightness(0.6); }
.stickervak em { font-style: normal; color: var(--vonk); }

.diplomalijst { display: grid; gap: 8px; }
.diploma-kaart { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--radius); background: rgba(34,50,79,0.92); color: var(--wit); text-decoration: none; border: 1px solid rgba(255,197,49,0.35); }
.diploma-kaart span:first-child { font-size: 1.6rem; }
.diploma-kaart .klein { margin-left: auto; }

.beloning-nieuw { background: rgba(255,197,49,0.18); border-radius: 12px; padding: 8px 12px; }
.beloning-diploma a { color: var(--vonk); font-weight: bold; }

.diploma-blad { background: #f6f0df; color: #3b2a12; border-radius: 12px; padding: 14px; margin: 12px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.diploma-rand { border: 4px double #B8891E; border-radius: 8px; padding: 22px 16px; text-align: center; }
.diploma-klein { letter-spacing: 3px; font-size: 0.75rem; color: #8a6a10; margin: 0; }
.diploma-vonk { display: flex; justify-content: center; margin: 6px 0; }
.diploma-titel { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; margin: 4px 0; color: #3b2a12; }
.diploma-onderwerp { margin: 0; color: #6E4520; }
.diploma-onderwerp span { font-size: 0.85rem; }
.diploma-naam { font-family: Georgia, serif; font-size: 1.8rem; margin: 18px 0 6px; border-bottom: 2px solid #B8891E; display: inline-block; padding: 0 20px 4px; }
.diploma-voet { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; font-size: 0.9rem; }
.diploma-zegel { width: 56px; height: 56px; border-radius: 50%; background: #E5484D; color: #FFE38A; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: inset 0 0 0 3px #b3262b; }
@media print {
  .achtergrond, .kop, .voet, .kindnav, .diploma-knoppen { display: none !important; }
  body { background: #fff; }
  .diploma-blad { box-shadow: none; }
}

body.rustig .vonk-gloed, body.rustig .vonk-figuur .vonk, body.rustig .vonk-vlam { animation: none; }

/* ------------------------------------------------- kop compact op een gsm */
.merk { white-space: nowrap; }
.kop-vonken { white-space: nowrap; }
@media (max-width: 480px) {
  .kop { padding: 10px 12px; }
  .merk { font-size: 1.15rem; }
  .kop-naam { display: none; }
  .kop-nav { gap: 8px; }
}

/* ------------------------------------------------ leerjaren (patch12) */
.leerjaar-blok { margin-top: 18px; }
.leerjaar-blok h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.leerjaar-blok.dicht { opacity: 0.6; }
.ijkpunt-label, .diploma-label {
  font-size: 0.72rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 999px; text-decoration: none;
}
.ijkpunt-label { background: rgba(214,160,74,0.18); color: #e6b865; border: 1px solid #b7863b; }
.diploma-label { background: rgba(120,200,140,0.18); color: #9fe0ae; border: 1px solid #5fae73; }
.leerjaar-blok.ijkpunt { border-left: 3px solid #b7863b; padding-left: 10px; }
.leerdoel-rij { text-decoration: none; color: inherit; }
.leerdoel-rechts { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.sterren { font-size: 1.1rem; letter-spacing: 1px; }
.ster-aan { color: var(--vonk); text-shadow: 0 0 6px rgba(255,200,60,0.5); }
.ster-uit { color: rgba(255,255,255,0.18); }
.oefen {
  font-size: 0.85rem; font-weight: bold; padding: 6px 12px; border-radius: 999px;
  background: var(--vonk); color: var(--nacht);
}
.opdracht-leerjaar { font-size: 0.8rem; color: var(--grijs-licht); }
.draad-teller { font-weight: bold; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); }
.draad-teller.te-veel { background: rgba(230,90,70,0.3); color: #ffb3a6; }
.voorbeeld-raster { max-width: 340px; margin: 8px auto; }
.herhaald-melding { background: rgba(255,255,255,0.08); padding: 10px 12px; border-radius: 10px; }
.nog-rij { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.diploma-lijst { list-style: none; padding: 0; margin: 6px 0; font-size: 0.95rem; }
.diploma-lijst li::before { content: "✓ "; color: #b7863b; font-weight: bold; }

/* ------------------------------------ voorlezen en jonge lezers (patch14) */
.lees-knop {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  width: 40px; height: 40px; margin-left: 8px; border-radius: 50%;
  border: 2px solid rgba(255,197,49,0.6); background: rgba(255,197,49,0.15);
  font-size: 1.1rem; cursor: pointer; padding: 0; line-height: 1; flex-shrink: 0;
}
.lees-knop:active { transform: scale(0.94); }
.ballon .lees-knop { background: var(--vonk); border-color: var(--vonk-diep); float: right; margin: -2px -4px 0 8px; }
.vonk-zegt { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.vonk-zegt .ballon { flex: 1; }
.ballon-groot { font-size: 1.25rem; line-height: 1.35; padding: 14px 16px; }
.hint { font-size: 1.05rem; font-weight: bold; color: var(--wit); display: flex; align-items: center; flex-wrap: wrap; }

.item-beeld { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 84px; padding: 8px 10px; }
.item-beeld span { font-size: 0.8rem; }
body.jong .item-beeld { min-width: 92px; }
body.jong .item-beeld .beeld { width: 52px; height: 52px; }
.bak h3 { display: flex; align-items: center; gap: 6px; }
.bak h3 .mini-lampen svg { width: 38px; height: 38px; }

.keuzes-beeld { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.keuzes-beeld .keuze { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mini-lampen { display: inline-flex; gap: 4px; }
body.jong .keuze { font-size: 1.1rem; }

.lade-materiaal { display: inline-flex; align-items: center; gap: 8px; }
.materiaal-staal { flex-shrink: 0; }

#voorspelling .ballon-groot { margin: 0 0 12px; }
.duim-rij { justify-content: center; gap: 18px; }
.duim { font-size: 2rem; min-width: 96px; min-height: 72px; }

.feedback-jong { font-weight: bold; }
.feedback-groot { font-size: 1.5rem; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feedback-teken { font-size: 2.2rem; line-height: 1; }
.feedback-goed .feedback-teken { color: var(--mint); }
.feedback-mis .feedback-teken { color: var(--koraal); }
.feedback-vonken { background: var(--vonk); color: var(--nacht); border-radius: 999px; padding: 2px 10px; font-size: 1.1rem; }
body.rustig .lees-knop:active { transform: none; }
body.jong .materiaal-staal { width: 36px; height: 36px; }
.feedback-kop { font-size: 1.15rem; margin: 0 0 6px; }
.feedback-uitleg { font-weight: normal; margin: 0; display: flex; align-items: flex-start; gap: 6px; }
.feedback-uitleg .lees-knop { margin-top: -4px; }
.feedback-groot .lees-knop { margin-left: auto; }
.aanbouw-kop { margin-top: 26px; }
.tegels-aanbouw .tegel { padding-top: 12px; padding-bottom: 12px; }
.tegels-aanbouw .tegel p { font-size: 0.85rem; }
.tegel-werf { position: absolute; top: 12px; right: 14px; font-size: 1.2rem; }

/* ------------------------------------------- nieuwe werelden (patch18) */
.sorteer-bakken { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.beeld-emoji { font-size: 2.3rem; line-height: 1.1; display: inline-block; }
.beeld-emoji.klein-emoji { font-size: 1.6rem; }
.beeld-kleur { display: inline-block; width: 52px; height: 52px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.8); box-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.beeld-kleur.groot { width: 64px; height: 64px; }
.beeld-kleur.vraagteken { background: #22324f; color: var(--wit); font-weight: bold; font-size: 1.8rem; display: inline-flex; align-items: center; justify-content: center; }
.tekening { display: flex; flex-direction: column; align-items: center; margin: 10px 0; }
.tekening-kleuren { flex-direction: row; gap: 10px; justify-content: center; }
.tekening-kleuren .plus { font-size: 2rem; font-weight: bold; }
.tekening-js { max-width: 520px; margin: 10px auto; }
.tekening-js svg { width: 100%; height: auto; }

.wip-houder svg { width: 100%; height: auto; display: block; }
.wip-plank { transition: transform 0.8s cubic-bezier(.3,1.4,.5,1); }
body.rustig .wip-plank { transition: none; }
.wip-plek { cursor: pointer; }
.wip-eigen { cursor: pointer; }
.wip-bak { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; min-height: 56px; }
.wip-blok {
  width: calc(34px + var(--grootte) * 8px); height: calc(28px + var(--grootte) * 10px);
  background: #FFC531; color: #16233B; border: 2px solid #16233B; border-radius: 6px;
  font-weight: bold; font-size: 1rem; cursor: pointer; align-self: flex-end;
}
.wip-blok[aria-pressed="true"] { outline: 4px solid var(--mint); outline-offset: 2px; }

.tandwielveld svg { width: 100%; height: auto; display: block; }
.tcel { cursor: pointer; }
.tandwiel { transform-box: view-box; }
.draait-rechts { animation: draai-r 1.6s linear infinite; }
.draait-links { animation: draai-l 1.6s linear infinite; }
@keyframes draai-r { to { transform: rotate(360deg); } }
@keyframes draai-l { to { transform: rotate(-360deg); } }
body.rustig .draait-rechts, body.rustig .draait-links { animation-duration: 6s; }
.moe-scherm { max-width: 520px; margin: 20px auto; text-align: center; }
.moe-vonk { position: relative; display: inline-block; margin-bottom: 10px; }
.moe-vonk .vonk { animation: dommel 4s ease-in-out infinite; }
@keyframes dommel { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(4px) rotate(3deg); } }
.zzz { position: absolute; top: 4px; right: -18px; font-weight: bold; font-size: 1.4rem; color: #8fd3ff; }
.zzz span { font-size: 1.1rem; margin-left: 2px; position: relative; top: -10px; }
.zzz span + span { font-size: 0.9rem; top: -20px; }
.moe-scherm .ballon { text-align: left; margin-bottom: 14px; }
.moe-tip { margin: 10px 0 18px; }
body.rustig .moe-vonk .vonk { animation: none; }
.uitleg-kader { background: rgba(62,214,176,0.1); border-left: 3px solid var(--mint); padding: 10px 12px; border-radius: 8px; margin: 8px 0 12px; }
