/* stijl.css - Pixelklas: gedeelde stijl voor alle pagina's. Lettertypes zelf gehost (SIL OFL). */
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/baloo2-var.woff2) format('woff2'); }
@font-face { font-family: 'Press Start 2P'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/press-start-2p.woff2) format('woff2'); }

:root {
  --page: #1a2c52; --panel: #243b69; --panel2: #2e4a80; --line: #0e1a33; --diep: #13223f;
  --cream: #fff6e5; --muted: #b3c3e6; --sun: #ffd23f; --ink: #16233f; --rood: #ff8a8a; --groen: #7ee08a;
  --pixel: 'Press Start 2P', ui-monospace, monospace;
  --u: 42px; --gap: 5px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--page) radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.3px) 0 0 / 18px 18px;
  color: var(--cream); font: 500 18px/1.5 'Baloo 2', system-ui, sans-serif;
}
main { flex: 1; }
a { color: var(--sun); text-underline-offset: 3px; }
a:hover { color: #ffe27a; }
img, canvas, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
kbd {
  font-family: var(--pixel); font-size: .68em; background: var(--cream); color: var(--ink);
  border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 6px; padding: 3px 6px; margin: 0 2px;
  display: inline-block; line-height: 1.2; vertical-align: 1px; white-space: nowrap;
}
.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 800; }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }

/* ---------- kop ---------- */
.kop { padding: 14px 0 10px; }
.kop .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.logo { font-family: var(--pixel); font-size: clamp(16px, 2.6vw, 22px); text-decoration: none; letter-spacing: 1px; text-shadow: 0 4px 0 var(--line); white-space: nowrap; line-height: 1.6; }
.logo span { display: inline-block; }
.logo:hover span { transform: translateY(-2px); }
.logo:hover span:nth-child(even) { transform: translateY(2px); }
.menu { display: flex; gap: 6px 18px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.menu a { color: var(--cream); font-weight: 700; text-decoration: none; padding: 4px 2px; border-bottom: 3px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--sun); color: var(--cream); }
.kop__extra { display: flex; align-items: center; gap: 10px; }

/* ---------- typografie ---------- */
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--pixel); font-weight: 400; font-size: clamp(20px, 3.4vw, 32px); line-height: 1.45; text-shadow: 0 4px 0 var(--line); }
h2 { font-size: clamp(25px, 3vw, 32px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 800; }
p { margin: 0 0 1em; max-width: 66ch; }
.inleiding { font-size: 21px; color: var(--cream); max-width: 52ch; }
.klein { font-size: 15px; color: var(--muted); }

/* ---------- knoppen ---------- */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 17px; line-height: 1.3; text-decoration: none; cursor: pointer;
  background: var(--sun); color: var(--ink); border: 3px solid var(--line); border-radius: 10px;
  padding: 6px 16px; box-shadow: 0 4px 0 var(--line);
}
.knop:hover { filter: brightness(1.06); color: var(--ink); }
.knop:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.knop--alt { background: var(--panel2); color: var(--cream); }
.knop--alt:hover { color: var(--cream); }
.knop--groot { font-size: 20px; padding: 9px 22px; }
.knop[disabled] { opacity: .6; cursor: wait; }
.knop--icoon { width: 46px; padding: 6px 0; }
.munten { font-family: var(--pixel); font-size: 13px; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 3px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.munt { width: 14px; height: 16px; background: var(--sun); border: 2px solid #9a6d00; border-radius: 50%/45%; box-shadow: inset 3px 0 0 #fff3a0; }

/* ---------- panelen ---------- */
.paneel { background: var(--panel); border: 3px solid var(--line); border-radius: 16px; box-shadow: 0 5px 0 var(--line); padding: 20px 22px; }
.sectie { padding: 40px 0 10px; }
.sectie__kop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sectie__kop p { margin: 0; color: var(--muted); }

/* ---------- startpagina ---------- */
.held { padding: 8px 0 0; }
.held__wereld { position: relative; border: 3px solid var(--line); border-radius: 16px 16px 0 0; overflow: hidden; line-height: 0; background: #4cc0ff; }
.held__wereld canvas { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.held__tekst { background: var(--panel); border: 3px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; box-shadow: 0 5px 0 var(--line); padding: 22px 24px 24px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px 30px; align-items: end; }
.held__tekst h1 { margin-bottom: .4em; }
.held__tekst .inleiding { margin: 0; }
.held__knoppen { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.spellen { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.spel { display: flex; flex-direction: column; gap: 6px; padding: 0; overflow: hidden; }
.spel__beeld { line-height: 0; border-bottom: 3px solid var(--line); background: #4cc0ff; }
.spel__beeld canvas { width: 100%; height: auto; image-rendering: pixelated; display: block; }
.spel__body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.spel__body h3 { margin: 0; }
.spel__body p { margin: 0; color: var(--cream); font-size: 17px; }
.labels { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; padding: 0; list-style: none; }
.labels li { font-size: 14px; font-weight: 700; padding: 1px 10px; border-radius: 99px; background: var(--diep); color: var(--muted); border: 2px solid var(--line); }
.spel__actie { margin-top: auto; padding-top: 6px; }
.spel--later .spel__beeld { filter: saturate(.55) brightness(.85); }
.spel--later .status { font-family: var(--pixel); font-size: 11px; color: var(--muted); line-height: 1.6; }
.beloftes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.beloftes li { background: var(--panel); border: 3px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.beloftes b { display: block; font-size: 19px; margin-bottom: 2px; }
.beloftes span { color: var(--muted); font-size: 16px; }
.blok { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 4px; vertical-align: -2px; margin-right: 8px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo .paneel p:last-child, .duo .paneel ul:last-child { margin-bottom: 0; }
.duo ul { padding-left: 20px; margin: 0 0 1em; }
.duo li { margin: 4px 0; }
.band { margin-top: 40px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.band p { margin: 0; font-size: 20px; }
.band canvas { width: 64px; height: 64px; image-rendering: pixelated; flex: 0 0 auto; }
.band__tekst { display: flex; align-items: center; gap: 16px; }

/* ---------- tekstpagina's ---------- */
.tekst { padding: 24px 0 10px; }
.tekst h2 { font-size: 24px; margin-top: 1.4em; }
.tekst ul { padding-left: 22px; max-width: 66ch; }
.tekst li { margin: 4px 0; }
.tekst .paneel { max-width: 780px; }

/* ---------- formulier ---------- */
.formulier__raster { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 12px; }
.veld { display: flex; flex-direction: column; gap: 4px; }
.veld--breed { grid-column: 1 / -1; }
.veld label { font-weight: 700; }
.veld .hulp { font-size: 15px; color: var(--muted); margin-top: -2px; }
.veld input, .veld textarea, .veld select {
  width: 100%; background: var(--cream); color: var(--ink); border: 3px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 18px;
}
.veld textarea { min-height: 150px; resize: vertical; }
.veld [aria-invalid="true"] { border-color: #e03a3a; box-shadow: 0 0 0 2px #ff8a8a; }
.veld__fout { color: var(--rood); font-weight: 700; font-size: 15px; margin: 0; }
.lokpot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulier__melding { background: #5a1f2b; border: 2px solid #ff8a8a; border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.spamcontrole { margin: 6px 0 10px; min-height: 58px; }
.bedankt { text-align: left; }
.bedankt h2 { font-family: var(--pixel); font-weight: 400; font-size: 18px; line-height: 1.5; }
altcha-widget {
  --altcha-border-width: 3px; --altcha-border-radius: 10px; --altcha-color-base: #fff6e5; --altcha-color-border: #0e1a33;
  --altcha-color-text: #16233f; --altcha-color-border-focus: #ffd23f; --altcha-color-error-text: #c62828; --altcha-max-width: 340px;
}

/* ---------- voet ---------- */
.voet { margin-top: 48px; background: var(--diep); border-top: 3px solid var(--line); padding: 22px 0 26px; font-size: 15px; color: var(--muted); }
.voet .wrap { display: flex; justify-content: space-between; gap: 10px 30px; flex-wrap: wrap; }
.voet p { margin: 0 0 4px; max-width: none; }
.voet ul { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.voet a { color: var(--cream); }

/* ---------- melding ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(140px); background: var(--sun); color: var(--ink); font-weight: 800; padding: 10px 18px; border: 3px solid var(--line); border-radius: 12px; box-shadow: 0 4px 0 var(--line); transition: transform .25s; z-index: 30; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast:not(.show) { visibility: hidden; transition: transform .25s, visibility 0s .25s; }
@media (max-width: 520px) { .kop__extra { gap: 6px; } .kop__extra .knop:not(.knop--icoon) { font-size: 14px; padding: 5px 9px; } }

@media (max-width: 820px) {
  .held__tekst { grid-template-columns: 1fr; }
  .held__knoppen { justify-content: flex-start; }
  .duo { grid-template-columns: 1fr; }
  .formulier__raster { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .inleiding { font-size: 19px; }
  .kop .wrap { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
