/* Denkburcht — kinderpagina's van de kern. Bouwt verder op static/teltuin/spel.css (kleuren, lettertypes, knoppen). */
:root { --uil: #F2B33D; --nacht: #26355c; --vonk: #16233B; --vonk-geel: #FFC531; --studie: #a86d34; }

.brand h1 .uilspan { color: var(--tomato); }
.veertjes { font-weight: 700; }
.chip.veer { gap: 6px; }
.chip.veer svg { width: 20px; height: 20px; }
a.chip { color: inherit; text-decoration: none; }

.melding { border-radius: 16px; padding: 12px 14px; border: 2px solid var(--line); background: var(--paper); font-weight: 600; }
.melding.ok { background: var(--good-soft); }
.melding.fout { background: var(--tomato-soft); }
.melding.info { background: var(--paper); }

/* de burcht: tuin, bibliotheek en garage */
.burchtkaart { border-radius: 24px; overflow: hidden; border: 3px solid var(--line); box-shadow: 0 6px 0 var(--line);
  background: #CBEAFB; line-height: 0; }
.burcht { display: block; width: 100%; height: auto; }
.burcht text { font-family: var(--display); }
.burcht .bord { font-size: 26px; fill: #5B3A22; }
.burcht .lint { font-size: 19px; fill: #F2B33D; }
.burcht .garagebord { font-size: 20px; fill: #FFC531; }
.burcht .taak { font-size: 18px; font-weight: 700; fill: #3a2a00; font-family: var(--body, sans-serif); }
.burcht .nachtfilter, .burcht .burcht-maatje, .burcht .sterren { pointer-events: none; }
.burcht a.zone { cursor: pointer; outline: none; }
.burcht .zone-inhoud { transition: transform .15s ease, filter .15s ease; transform-box: fill-box; transform-origin: 50% 100%; }
.burcht a.zone:hover .zone-inhoud { transform: translateY(-4px); filter: brightness(1.07) drop-shadow(0 6px 0 rgba(0, 0, 0, .12)); }
.burcht a.zone:focus-visible .zone-inhoud { filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 3px #1F2A44); }
.burcht a.zone:active .zone-inhoud { transform: translateY(2px); }
.burcht .zone-vlak { pointer-events: all; }

.burcht .wolk { animation: b-drijf 40s ease-in-out infinite alternate; }
.burcht .wolk.w2 { animation-duration: 55s; animation-direction: alternate-reverse; }
.burcht .vlag { transform-box: fill-box; transform-origin: 0 50%; animation: b-wapper 1.6s ease-in-out infinite alternate; }
.burcht .vlag.v2 { animation-delay: -.8s; }
.burcht .bloem { transform-box: fill-box; transform-origin: 50% 100%; animation: b-wieg 3s ease-in-out infinite alternate; }
.burcht .bloem.b1 { animation-delay: -1s; } .burcht .bloem.b2 { animation-delay: -2s; }
.burcht .vlinder { animation: b-vlinder 9s ease-in-out infinite; }
.burcht .tandwiel { transform-box: fill-box; transform-origin: 50% 50%; animation: b-draai 6s linear infinite; }
.burcht .tandwiel.t2 { animation-direction: reverse; animation-duration: 4s; }
.burcht .knipper { animation: b-knipper 1.4s steps(2, jump-none) infinite; }
.burcht .lamp { animation: b-gloei 2.4s ease-in-out infinite alternate; }
.burcht .lamp.l1 { animation-delay: -.8s; } .burcht .lamp.l2 { animation-delay: -1.6s; }
.burcht .vk { transform-box: fill-box; transform-origin: 50% 50%; animation: b-vonk 1.2s ease-in-out infinite; }
.burcht .vk.v2 { animation-delay: -.6s; }
.burcht .ster { animation: b-gloei 2.8s ease-in-out infinite alternate; }
.burcht .ster.s1 { animation-delay: -1s; } .burcht .ster.s2 { animation-delay: -2s; }
.burcht .uil-bieb .oog { animation: b-kijk 6s ease-in-out infinite; }
.burcht .taakje { transform-box: fill-box; transform-origin: 50% 50%; animation: b-hup 1.2s ease-in-out infinite alternate; }
.burcht .burcht-maatje > svg { animation: b-hup 1.8s ease-in-out infinite alternate; }
@keyframes b-drijf { from { transform: translateX(-30px); } to { transform: translateX(60px); } }
@keyframes b-wapper { from { transform: skewY(-6deg) scaleX(.92); } to { transform: skewY(6deg) scaleX(1); } }
@keyframes b-wieg { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes b-vlinder { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(30px, -26px); } 50% { transform: translate(60px, -6px); } 75% { transform: translate(24px, 10px); } }
@keyframes b-draai { to { transform: rotate(360deg); } }
@keyframes b-knipper { 50% { opacity: .15; } }
@keyframes b-gloei { from { opacity: 1; } to { opacity: .45; } }
@keyframes b-vonk { 0%, 100% { transform: scale(.3); opacity: 0; } 50% { transform: scale(1.2); opacity: 1; } }
@keyframes b-kijk { 0%, 40%, 100% { transform: translateX(0); } 50%, 65% { transform: translateX(2px); } 75%, 90% { transform: translateX(-2px); } }
@keyframes b-hup { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .burcht *, .burcht .burcht-maatje > svg { animation: none !important; transition: none !important; } }
body.rustig .burcht *, .rustig .burcht * { animation: none !important; }

.welkomstrook { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding-block: 14px; }
.welkomstrook p { margin: 0; }
.welkomstrook .groet { font-size: 24px; }
.welkomstrook .reeks { margin-top: 0; }
.nieuwe-reeks { font-weight: 700; color: var(--ink); }
.names form { margin: 0; display: contents; }
.names a, .names button { text-decoration: none; color: inherit; }
.names a { background: var(--ground); border: 2px solid var(--line); border-radius: 16px; padding: 12px 10px; font-weight: 700;
  font-size: 18px; display: flex; align-items: center; gap: 8px; box-shadow: 0 3px 0 var(--line); overflow-wrap: anywhere; }
.names .mini { width: 34px; height: 34px; flex: none; display: flex; }
.names .mini svg { width: 100%; height: 100%; }
.names .mini.bloemen svg { width: 33%; }
.codeveld { font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; max-width: 12ch; }
select { font: inherit; font-size: 18px; color: var(--ink); background: var(--ground); border: 2px solid var(--line);
  border-radius: 12px; padding: 10px 12px; }
a.big { text-decoration: none; display: block; }
.btnrow a.big { display: flex; align-items: center; justify-content: center; }

/* thuis */
.maatjekaart { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.maatje { width: 120px; height: 120px; display: flex; align-items: flex-end; justify-content: center; }
.maatje svg { width: 100%; height: auto; }
.maatje.bloemen svg { width: 33%; }
.maatje-leeg { width: 120px; height: 120px; display: grid; place-items: center; border: 3px dashed var(--line); border-radius: 24px;
  font-size: 44px; text-decoration: none; }
.groet { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.reeks { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.reeks b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--tomato); }
.dagjes { display: flex; gap: 5px; }
.dagjes span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.dagjes i { width: 18px; height: 18px; border-radius: 50%; background: var(--line); display: block; }
.dagjes i.aan { background: var(--tomato); }

.werelden { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.wereld { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 16px; border-radius: 22px;
  text-decoration: none; color: #fff; min-height: 170px; box-shadow: 0 6px 0 rgba(0, 0, 0, .18); overflow: hidden;
  transition: transform .08s, box-shadow .08s; }
.wereld:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.wereld .naam { font-family: var(--display); font-size: 30px; line-height: 1; padding-right: 44px; }
.wereld .wat { font-weight: 600; opacity: .95; }
.wereld .stand { font-size: 14px; margin-top: auto; background: rgba(255, 255, 255, .18); border-radius: 12px; padding: 6px 10px; }
.wereld .icoon { position: absolute; right: 12px; top: 12px; font-size: 32px; line-height: 1; opacity: .95; }
.wereld .badge-taak { align-self: flex-start; background: var(--sun); color: var(--sun-ink); font-weight: 700; font-size: 13px;
  border-radius: 999px; padding: 2px 10px; }
.wereld.teltuin { background: linear-gradient(160deg, #4DAE66, #2A6B3C); }
.wereld.vonkenveld { background: linear-gradient(160deg, #2B4A7F, #101a2e); }
.wereld.vonkenveld .naam { color: var(--vonk-geel); }
.wereld.studeerhoek { background: linear-gradient(160deg, #B0703A, #6B3F1F); }
.wereld.studeerhoek .naam { color: #FFE3A3; }

.knoppen3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.knoppen3 a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 12px 6px; font-weight: 700;
  box-shadow: 0 3px 0 var(--line); text-align: center; }
.knoppen3 a span { font-size: 28px; line-height: 1; }

/* winkel */
.afdelingen { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.afdeling { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.afdeling .icoon { font-size: 40px; }
.afdeling strong { font-family: var(--display); font-weight: 400; font-size: 24px; }
.logboek { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.logboek li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.logboek .plus { color: var(--leaf-deep); font-weight: 700; }
.logboek .min { color: var(--tomato); font-weight: 700; }

/* diplomakast */
.kast { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.diploma-kaart { background: var(--ground); border: 2px solid var(--line); border-radius: 16px; padding: 12px; text-align: center;
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.diploma-kaart .icoon { font-size: 32px; }
.diploma-kaart strong { font-size: 16px; }
.kastleeg { color: var(--ink-soft); }

/* slapen */
.slaap { text-align: center; }
.slaap .maatje { margin: 0 auto; width: 170px; height: 170px; }

@media (max-width: 420px) {
  .maatjekaart { grid-template-columns: 90px 1fr; }
  .maatje, .maatje-leeg { width: 90px; height: 90px; }
  .wereld { min-height: 0; padding: 14px 14px 12px; }
  .wereld .naam { font-size: 26px; }
  .burchtkaart { margin-inline: -6px; border-radius: 18px; }
  .knoppen3 a { font-size: 14px; }
}
.boven { margin-top: 14px; }
.merk { color: inherit; text-decoration: none; }
