/* Met de complimenten — campagnestijl.
   Eén papieren inpaktafel: warm papier, inkt (OptioHR-donkerblauw) als lijn,
   terracotta als enige felle kleur. Geen webfonts: systeemletters, net als de
   hoofdsite (snelheid en privacy). */

:root {
  --papier: #FBF4E8;
  --papier-2: #F3E7D3;
  --wit: #FFFDF8;
  --inkt: #101D40;
  --inkt-zacht: #47506E;
  --accent: #E26436;
  --cta: #C84719;
  --cta-diep: #9E3510;
  --lijn: rgba(16, 29, 64, .16);
  --tafel: #E6CCA6;
  --fout: #A4250F;
  --focus: #1D5BD8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --balk: 56px;
  --korrel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .06 0 0 0 0 .11 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--papier) var(--korrel);
  color: var(--inkt); font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cta-diep); text-underline-offset: 3px; }
a:hover { color: var(--inkt); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1:focus, main:focus { outline: none; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--inkt); color: var(--papier); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 8px; color: var(--papier); }

/* ---------- bovenbalk ---------- */
.balk {
  position: sticky; top: 0; z-index: 20; height: var(--balk);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--papier) 90%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--lijn);
}
.balk-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--inkt); flex: none; }
.balk-logo img { height: 26px; width: auto; }
.balk-actie { font: italic 15px var(--serif); padding-left: 12px; border-left: 1.5px solid var(--lijn); }
.balk-link { font-size: 14px; font-weight: 600; color: var(--inkt); flex: none; }
.balk-rechts { display: flex; align-items: center; gap: 12px; flex: none; }
.geluidknop, .geluidchip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--lijn); background: none; color: var(--inkt); font-size: 13px; font-weight: 650; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.geluidknop svg, .geluidchip svg { width: 18px; height: 18px; flex: none; }
.geluidknop[aria-pressed="true"], .geluidchip[aria-pressed="true"] { background: var(--inkt); border-color: var(--inkt); color: var(--papier); }
.geluidchip { min-height: 40px; padding: 7px 15px; font-size: 14px; border-color: var(--inkt); background: var(--wit); }
.geluidrij { margin: 16px 0 0; }
.ontvanger .geluidrij { margin-top: 14px; }
.voortgang { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; min-width: 0; }
.voortgang-naam { color: var(--inkt-zacht); font-weight: 500; }
.voortgang-balk { display: flex; gap: 4px; }
.voortgang-balk i { width: 22px; height: 5px; border-radius: 3px; background: var(--lijn); transition: background .3s, width .3s; }
.voortgang-balk i.af { background: var(--inkt); }
.voortgang-balk i.nu { background: var(--cta); width: 30px; }
@media (max-width: 620px) {
  .balk-actie, .voortgang-naam { display: none; }
  .geluidknop span { display: none; }
  .geluidknop { padding: 5px 9px; }
  .balk-rechts { gap: 8px; }
  .balk-logo img { height: 22px; }
  .balk-link { font-size: 13px; }
  .voortgang-balk i { width: 14px; } .voortgang-balk i.nu { width: 20px; }
}
@media (max-width: 420px) { body[data-beeld="maker"] .balk-link { font-size: 0; } body[data-beeld="maker"] .balk-link::after { content: 'Kaart'; font-size: 13px; } }

.voet { padding: 22px 16px 28px; text-align: center; font-size: 13px; color: var(--inkt-zacht); border-top: 1.5px solid var(--lijn); }
.voet p { margin: 4px auto; max-width: 62ch; }
.voet-knop { background: none; border: 1.5px solid var(--lijn); border-radius: 999px; padding: 5px 12px; margin-right: 10px; cursor: pointer; font-size: 13px; }
.noscript { padding: 40px 16px; text-align: center; }

/* ---------- typografie ---------- */
.kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--cta-diep); }
.titel { margin: 0 0 .4em; font: 600 clamp(28px, 3.3vw, 42px)/1.1 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.titel.groot { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; }
.titel.klein { font-size: clamp(22px, 2.4vw, 28px); }
.titel em { font-style: italic; color: var(--cta); }
.lead { margin: 0 0 1.2em; font-size: clamp(16px, 1.3vw, 18px); color: var(--inkt-zacht); max-width: 54ch; text-wrap: pretty; }
.tip { margin: 6px 0 0; font-size: 14px; color: var(--inkt-zacht); }
.fout { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--fout); }
.fluister { font-size: 14px; color: var(--inkt-zacht); margin: 18px 0 0; }
.midden { text-align: center; }
.gelukt { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: #E4EEDF; border: 1.5px solid #6E9A78; font-weight: 600; }
.status { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; }
.bezig-tekst { margin: 0; font: italic 17px var(--serif); align-self: center; }

/* ---------- knoppen en velden ---------- */
.knoppen { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.knoppen.midden { justify-content: center; }
.knop {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  min-height: 48px; padding: 11px 22px; border-radius: 999px; border: 2px solid var(--inkt);
  font-weight: 650; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; overflow: hidden;
  transition: transform .12s, box-shadow .12s, background .15s;
}
.knop.hoofd { background: var(--cta); color: #fff; box-shadow: 0 4px 0 var(--inkt); }
.knop.lijn { background: var(--wit); color: var(--inkt); box-shadow: 0 4px 0 var(--inkt); }
.knop.hoofd:hover, .knop.lijn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--inkt); color: inherit; }
.knop.hoofd:hover { color: #fff; background: #B33E14; }
.knop.hoofd:active, .knop.lijn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--inkt); }
.knop.stil { background: transparent; border-color: transparent; color: var(--inkt); padding-inline: 14px; }
.knop.stil:hover { background: rgba(16, 29, 64, .07); }
.knop.tekst { background: none; border: 0; min-height: 44px; padding: 6px 10px; text-decoration: underline; text-underline-offset: 3px; color: var(--inkt); font-weight: 600; }
.knop.klein { min-height: 40px; padding: 7px 14px; font-size: 14px; }
.knop:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.knop.metmeter .meter { position: absolute; inset: 0; background: rgba(226, 100, 54, .22); transform-origin: left; transform: scaleX(0); }
.knop.metmeter span { position: relative; }

.veldgroep { margin: 0 0 18px; }
.veldgroep label { display: block; margin-bottom: 6px; font-weight: 650; }
.invoer {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 17px/1.3 var(--sans); color: var(--inkt);
  background: var(--wit); border: 2px solid var(--inkt); border-radius: 12px; box-shadow: inset 0 2px 0 rgba(16, 29, 64, .06);
}
.invoer[aria-invalid="true"] { border-color: var(--fout); background: #FFF3EF; }
.linkveld { font-size: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin-bottom: 16px; text-overflow: ellipsis; }
.chip { border: 1.5px solid var(--inkt); background: var(--wit); border-radius: 999px; padding: 7px 13px; font-size: 14px; min-height: 36px; cursor: pointer; }
.chip:hover { background: var(--papier-2); }

/* ---------- opbouw afzender ---------- */
.maker { display: grid; min-height: calc(100dvh - var(--balk)); }
.paneel { padding: 22px 16px 0; min-width: 0; }
.stap { max-width: 560px; margin: 0 auto; }
.stap-breed { max-width: 720px; }
.stapnav {
  position: sticky; bottom: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 26px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--papier) 30%);
}
.stapnav.los { position: static; background: none; justify-content: flex-start; padding-bottom: 28px; }
.beloftes { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14.5px; font-weight: 600; }
.beloftes li::before { content: '✓'; color: var(--cta); font-weight: 800; margin-right: 7px; }

@media (min-width: 900px) {
  .maker { grid-template-columns: minmax(0, 1.08fr) minmax(430px, 1fr); }
  .paneel { padding: clamp(28px, 4vw, 56px) clamp(28px, 4.5vw, 72px) 0; display: flex; flex-direction: column; justify-content: center; min-height: calc(100dvh - var(--balk)); }
  .stap { margin: 0; width: 100%; padding-bottom: 12px; }
  .stapnav { margin-inline: 0; padding-inline: 0; }
}

/* ---------- het toneel: de inpaktafel ---------- */
.toneel {
  position: relative; overflow: hidden; container-type: size;
  height: clamp(210px, 34dvh, 300px);
  background: radial-gradient(circle at 50% 44%, #FFF8E9 0 22%, rgba(255, 248, 233, 0) 58%), var(--papier-2);
  border-bottom: 2px solid var(--inkt);
  transition: height .5s cubic-bezier(.2, .8, .2, 1);
}
.toneel[data-maat="klein"] { height: 136px; }
.toneel[data-maat="groot"] { height: clamp(290px, 50dvh, 430px); }
.toneel[data-stap="2"] { position: sticky; top: var(--balk); z-index: 10; }
.toneel { scroll-margin-top: var(--balk); }
.toneel.doel { box-shadow: inset 0 0 0 4px var(--cta); }
.toneel-in { position: absolute; inset: 0; --u: min(1cqh, 1cqw); }
.tafel {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(16, 29, 64, .05) 46px 47px), var(--tafel);
  border-top: 2px solid var(--inkt);
}
.groep {
  position: absolute; left: 50%; bottom: 12%; width: calc(var(--u) * 92); height: calc(var(--u) * 56);
  transform: translateX(-50%); transform-origin: bottom center;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), left .6s cubic-bezier(.2, .8, .2, 1);
}
.peep-plek { position: absolute; left: 0; bottom: 0; height: calc(var(--u) * 52); aspect-ratio: 120 / 170; transition: translate .5s cubic-bezier(.2, .8, .2, 1); }
.peep-plek:has([data-pose="inpak"]), .peep-plek:has([data-pose="geef"]) { translate: calc(var(--u) * 9) 0; }
.pakket-plek { position: absolute; right: 0; bottom: calc(var(--u) * -3.4); height: calc(var(--u) * 54); aspect-ratio: 240 / 230; }
.peep-plek svg, .pakket-plek svg { width: 100%; height: 100%; }
.doosknop { position: absolute; inset: 30% 18% 8% 18%; background: none; border: 0; border-radius: 12px; cursor: pointer; }
.toneel[data-stap="0"] .pakket { animation: wiebel 5s ease-in-out 2.5s infinite; transform-origin: 50% 90%; }
@keyframes wiebel { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-3deg); } 92% { transform: rotate(3deg); } 95% { transform: rotate(-1.5deg); } }

.wolk {
  position: absolute; z-index: 3; margin: 0;
  left: max(10px, calc(50% - var(--u) * 46)); bottom: calc(12% + var(--u) * 53);
  max-width: min(78%, 330px); padding: 8px 14px;
  background: var(--wit); border: 2px solid var(--inkt); border-radius: 16px 16px 16px 4px;
  font-size: clamp(13.5px, calc(var(--u) * 4.2), 17px); line-height: 1.3; font-weight: 550;
  box-shadow: 0 3px 0 var(--inkt); transform-origin: 10% 100%;
}

.kaartlaag { position: absolute; top: 2%; bottom: 15%; right: 2%; left: 32%; opacity: 0; pointer-events: none; transition: opacity .5s; }
.kaartlaag svg { width: 100%; height: 100%; }
.toneel[data-beeld="kaart"] .kaartlaag { opacity: 1; }
.toneel[data-beeld="kaart"] .groep { left: 25%; transform: translateX(-50%) scale(.46); }
.toneel[data-beeld="kaart"] .wolk { left: 10px; bottom: auto; top: 10px; max-width: 46%; }

@media (max-width: 899px) {
  .toneel[data-maat="klein"] .groep { left: 12px; transform: none; transform-origin: bottom left; }
  .toneel[data-maat="klein"] .wolk { left: calc(20px + var(--u) * 92); right: 12px; bottom: auto; top: 50%; translate: 0 -50%; max-width: none; border-radius: 16px 16px 16px 16px; }
}
@media (min-width: 900px) {
  .toneel, .toneel[data-maat] { position: sticky; top: var(--balk); height: calc(100dvh - var(--balk)); border-bottom: 0; border-right: 2px solid var(--inkt); }
  .tafel { height: 26%; }
  .groep { bottom: 15%; }
  .wolk { bottom: calc(15% + var(--u) * 53); max-width: min(62%, 360px); padding: 11px 18px; }
  .kaartlaag { top: 3%; bottom: 28%; left: 6%; right: 6%; }
  .toneel[data-beeld="kaart"] .groep { left: 24%; transform: translateX(-50%) scale(.42); bottom: 4%; }
  .toneel[data-beeld="kaart"] .wolk { left: 40%; top: auto; bottom: 8%; max-width: 46%; }
}

.blaadjes i {
  position: absolute; top: -8%; left: calc(8% + var(--i) * 16%); width: 14px; height: 9px; border-radius: 0 80% 0 80%;
  background: var(--accent); opacity: .38;
  animation: dwarrel calc(13s + var(--i) * 2.3s) linear calc(var(--i) * -3.1s) infinite;
}
.blaadjes i:nth-child(2n) { background: #D9A441; } .blaadjes i:nth-child(3n) { background: #9DB5A0; }
@keyframes dwarrel {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(24px, 30cqh) rotate(120deg); }
  50% { transform: translate(-14px, 60cqh) rotate(220deg); }
  100% { transform: translate(18px, 120cqh) rotate(420deg); }
}

.decor { display: none; }
@media (min-width: 900px) {
  .decor { display: block; position: absolute; right: 7%; top: 8%; width: calc(var(--u) * 38); overflow: visible; transition: opacity .4s; }
  .toneel[data-beeld="kaart"] .decor { opacity: 0; }
  .rol rect, .rol ellipse, .spoel circle { stroke: var(--inkt); stroke-width: 2; }
  .rol-gat { fill: var(--inkt); stroke: none !important; opacity: .55; }
  .spoel circle { fill: var(--accent); }
  .spoel .spoel-gat { fill: var(--papier-2); }
  .spoel-lint { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; }
  .plank { stroke: var(--inkt); stroke-width: 3.2; stroke-linecap: round; }
  .plank-steun { stroke: var(--inkt); stroke-width: 2.4; stroke-linecap: round; }
}

/* ---------- Peep ---------- */
.peep { overflow: visible; }
.peep-romp, .peep-kop { fill: var(--wit); }
.peep-romp, .peep-kop, .peep-haar, .peep-mond, .peep-arm path { stroke: var(--inkt); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.peep-haar, .peep-mond, .peep-arm path { fill: none; }
.peep-arm path { stroke: var(--accent); }
.peep-oog { fill: var(--inkt); transform-box: fill-box; transform-origin: center; animation: knipper 4.6s infinite; }
.peep-mond-o { fill: var(--inkt); display: none; }
.peep-lijf { animation: adem 3.4s ease-in-out infinite; transform-origin: 60px 162px; }
.peep-hoofd { transform-origin: 60px 70px; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.peep-arm { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes knipper { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes adem { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, .988); } }
.peep[data-pose="rust"] .peep-arm-l { transform: rotate(6deg); }
.peep[data-pose="rust"] .peep-arm-r { transform: rotate(-6deg); }
.peep[data-pose="zwaai"] .peep-arm-l { transform: rotate(6deg); }
.peep[data-pose="zwaai"] .peep-arm-r { animation: zwaai .55s ease-in-out infinite alternate; }
.peep[data-pose="zwaai"] .peep-hoofd { transform: rotate(4deg); }
@keyframes zwaai { from { transform: rotate(-150deg); } to { transform: rotate(-112deg); } }
.peep[data-pose="wijs"] .peep-arm-r { transform: rotate(-82deg); }
.peep[data-pose="wijs"] .peep-arm-l { transform: rotate(4deg); }
.peep[data-pose="denk"] .peep-arm-r { transform: rotate(-168deg); }
.peep[data-pose="denk"] .peep-arm-l { transform: rotate(-20deg); }
.peep[data-pose="denk"] .peep-hoofd { transform: rotate(-7deg); }
.peep[data-pose="geef"] .peep-arm-r { transform: rotate(-96deg); }
.peep[data-pose="geef"] .peep-arm-l { transform: rotate(-72deg); }
.peep[data-pose="inpak"] .peep-arm-r { animation: frunnik .32s ease-in-out infinite alternate; }
.peep[data-pose="inpak"] .peep-arm-l { animation: frunnik .32s ease-in-out -.16s infinite alternate; }
.peep[data-pose="inpak"] .peep-hoofd { transform: rotate(6deg) translateY(2px); }
@keyframes frunnik { from { transform: rotate(-98deg); } to { transform: rotate(-66deg); } }
.peep[data-pose="juich"] .peep-arm-l { transform: rotate(152deg); }
.peep[data-pose="juich"] .peep-arm-r { transform: rotate(-152deg); }
.peep[data-pose="juich"] .peep-lijf { animation: hup .42s ease-in-out infinite alternate; }
@keyframes hup { from { transform: translateY(0); } to { transform: translateY(-9px); } }
.peep[data-pose="oeps"] .peep-arm-l { transform: rotate(62deg); }
.peep[data-pose="oeps"] .peep-arm-r { transform: rotate(-62deg); }
.peep[data-pose="oeps"] .peep-mond { display: none; }
.peep[data-pose="oeps"] .peep-mond-o { display: block; }
.peep[data-pose="oeps"] .peep-hoofd { transform: translateY(-3px); }

/* ---------- het pakket ---------- */
.pakket { overflow: visible; --lint: #E26436; --lint-rand: #B84A20; --kaartkleur: #F4F1EA; }
.pk-schaduw { fill: rgba(16, 29, 64, .16); }
.pk-flap, .pk-voor, .pk-binnen, .pk-deksel polygon, .pk-vel-rand, .pk-omlijning > *, .pk-lint > rect, .pk-lint > polygon, .pk-strik > *, .pk-kaartje, .pk-env-lijf, .pk-env-flap, .pk-env-kaart, .pk-kaartje-in rect {
  stroke: var(--inkt); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
}
.pk-voor { fill: #D7B48A; }
.pk-flap { fill: #E8CFAC; }
.pk-flap-voor { fill: #CFAA7E; }
.pk-binnen { fill: #7E5E40; }
.pk-deksel polygon { fill: #E8CFAC; }
.pk-tape > * { fill: #F6EAD2; stroke: var(--inkt); stroke-width: 1.2; opacity: .92; }
.pk-vel-rand, .pk-omlijning > * { fill: none; }
.pk-glans { fill: #fff; opacity: .2; }
.pk-krabbel text { font-family: var(--serif); font-style: italic; fill: var(--inkt); }
.pk-krabbel-voor { font-size: 11px; opacity: .7; }
.pk-krabbel-naam { font-weight: 700; }
.pk-kaartje-in path { fill: none; stroke: var(--inkt); stroke-width: 1.3; stroke-linecap: round; opacity: .6; }
.pk-kaartje-in rect { stroke-width: 1.6; }
.pk-lint > rect, .pk-lint > polygon, .pk-strik > * { fill: var(--lint); stroke: var(--lint-rand); stroke-width: 1.4; }
.pk-touw { fill: none; stroke: var(--inkt); stroke-width: 1.2; stroke-linecap: round; }
.pk-kaartje { fill: var(--wit); stroke-width: 1.5; }
.pk-gat { fill: var(--inkt); }
.pk-label text { font-family: var(--serif); fill: var(--inkt); }
.pk-label-voor { font-size: 5px; font-style: italic; opacity: .7; }
.pk-label-naam { font-weight: 700; }
.pk-env-lijf { fill: #FBF2DE; stroke-width: 1.6; }
.pk-env-flap { fill: #F1E3C6; stroke-width: 1.6; }
.pk-env-vouw { fill: none; stroke: var(--inkt); stroke-width: 1; opacity: .45; }
.pk-env-kaart { fill: var(--kaartkleur); stroke-width: 1.4; }
.pk-env-zegel { fill: var(--accent); stroke: var(--inkt); stroke-width: 1.3; transform-box: fill-box; transform-origin: center; }

.pk-doos { transform-origin: 120px 205px; }
.pk-flap-achter { transform-origin: 120px 109px; }
.pk-flap-voor { transform-origin: 120px 125px; }
.pk-flap-links { transform-origin: 65px 117px; }
.pk-flap-rechts { transform-origin: 175px 117px; }
.pk-tape { transform-origin: 120px 109px; }
.pk-vel { transform-origin: 120px 208px; }
.pk-vel-top-l { transform-origin: 60px 117px; }
.pk-vel-top-r { transform-origin: 180px 117px; }
.pk-lint-h { transform-origin: 60px 165px; }
.pk-lint-top { transform-origin: 120px 109px; }
.pk-lint-v { transform-origin: 120px 125px; }

.pakket[data-staat="open"] :is(.pk-deksel, .pk-tape, .pk-papier, .pk-lint, .pk-label, .pk-envelop),
.pakket[data-staat="dicht"] :is(.pk-flap, .pk-binnen, .pk-inhoud, .pk-papier, .pk-lint, .pk-label, .pk-envelop),
.pakket[data-staat="ingepakt"] :is(.pk-flap, .pk-binnen, .pk-inhoud, .pk-krabbel, .pk-deksel, .pk-tape, .pk-env-kaart),
.pakket:not([data-vel]) .pk-vel,
.pakket:not([data-envelop]) .pk-envelop { display: none; }

/* ---------- stap 2: complimenten ---------- */
.teller { display: inline-block; margin: 0 0 14px; padding: 5px 14px; border-radius: 999px; background: var(--wit); border: 1.5px solid var(--lijn); font-weight: 650; font-size: 14.5px; }
.teller[data-vol="ja"] { background: var(--inkt); color: var(--papier); border-color: var(--inkt); }
.complimenten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compliment, .vlieger {
  position: relative; text-align: left; min-height: 96px; padding: 12px 34px 12px 13px;
  background: var(--kleur); color: var(--inkt); border: 2px solid var(--inkt); border-radius: 12px;
  font: 600 15.5px/1.25 var(--serif); box-shadow: 0 4px 0 var(--inkt);
}
.compliment { cursor: pointer; transition: transform .15s, box-shadow .15s, background .2s; touch-action: manipulation; }
.compliment:nth-child(odd) { rotate: -.7deg; } .compliment:nth-child(even) { rotate: .6deg; }
.compliment::after { content: '+'; position: absolute; right: 9px; top: 8px; width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--inkt); display: grid; place-items: center; font: 700 16px/1 var(--sans); background: rgba(255, 255, 255, .6); }
.compliment:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--inkt); }
.compliment:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--inkt); }
.compliment.opgepakt { opacity: .25; }
.compliment-staat { display: block; visibility: hidden; margin-top: 8px; font: 700 11.5px/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--cta-diep); }
.compliment[aria-pressed="true"] { background: transparent; border-style: dashed; box-shadow: none; rotate: 0deg; }
.compliment[aria-pressed="true"] .compliment-tekst { opacity: .62; }
.compliment[aria-pressed="true"] .compliment-staat { visibility: visible; }
.compliment[aria-pressed="true"]::after { content: '✓'; background: var(--inkt); color: var(--papier); font-size: 13px; }
.vlieger { position: fixed; z-index: 60; pointer-events: none; margin: 0; }
.vlieger.sleep { box-shadow: 0 14px 22px rgba(16, 29, 64, .28); cursor: grabbing; }
@media (max-width: 380px) { .compliment { font-size: 14.5px; padding-right: 30px; } }

/* ---------- stap 3: kaartkeuze ---------- */
.kaartkeuze { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 18px; padding: 6px 2px 4px; }
.kaartkeus { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; min-width: 0; }
.kaartkeus .kaart { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s; pointer-events: none; }
.kaartkeus:hover .kaart { transform: translateY(-4px) rotate(-.8deg); }
.kaartkeus[aria-checked="true"] .kaart { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 0 0 4px var(--papier), 0 0 0 8px var(--cta), 0 12px 0 0 var(--inkt); }
.kaartkeus-naam { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 650; font-size: 14.5px; }
.kaartkeus-naam i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--inkt); flex: none; background: var(--wit); }
.kaartkeus[aria-checked="true"] .kaartkeus-naam i { background: radial-gradient(circle, var(--cta) 0 45%, var(--wit) 50%); }
@media (max-width: 699px) {
  .kaartkeuze { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 -16px; padding: 14px 16px 16px; scrollbar-width: thin; }
  .kaartkeus { flex: 0 0 min(64%, 250px); scroll-snap-align: center; }
}

/* ---------- stap 4: boodschap ---------- */
.schrijfplek { width: min(100%, 330px); margin: 4px auto 0; }
.schrijfbalk { width: min(100%, 330px); margin: 10px auto 0; display: flex; justify-content: space-between; align-items: center; }
.tekens { font-size: 13.5px; color: var(--inkt-zacht); font-variant-numeric: tabular-nums; }
.tekens[data-bijna="ja"] { color: var(--fout); font-weight: 700; }
.startzinnen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.startzinnen-kop { width: 100%; font-size: 14px; font-weight: 650; }

/* ---------- stap 5 en 6 ---------- */
.papierkeuze { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.papierkeus { display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 12px; background: var(--wit); border: 2px solid var(--inkt); border-radius: 14px; cursor: pointer; font-weight: 650; font-size: 14.5px; text-align: left; transition: transform .15s, box-shadow .15s; }
.papierkeus:hover { transform: translateY(-2px); }
.papierkeus[aria-checked="true"] { box-shadow: 0 0 0 3px var(--papier), 0 0 0 7px var(--cta); }
.staal { width: 100%; height: auto; }
.staal-rand { fill: none; stroke: var(--inkt); stroke-width: 1.5; }
.reisvelden { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; }

.optio { display: flex; gap: 14px; align-items: flex-start; margin: 30px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--wit); border: 1.5px solid var(--lijn); font-size: 14.5px; text-align: left; }
.optio img { flex: none; width: 40px; height: 40px; }
.optio p { margin: 0 0 6px; color: var(--inkt-zacht); }
.optio .optio-kop { font: 600 17px/1.25 var(--serif); color: var(--inkt); }
.optio a { font-weight: 650; }

/* ---------- landkaart ---------- */
.landkaart { overflow: visible; }
.lk-prov { fill: #FBEFD9; stroke: var(--inkt); stroke-width: 1.2; stroke-linejoin: round; transition: fill .3s; }
.lk-prov[data-rol="van"] { fill: #F6CDAE; }
.lk-prov[data-rol="naar"] { fill: var(--accent); }
.lk-eiland { stroke: #CDB48A; stroke-width: 3.2; stroke-linecap: round; }
.lk-dijk { stroke: var(--inkt); stroke-width: .8; stroke-dasharray: 2 2; opacity: .55; }
.lk-speld circle { fill: var(--wit); stroke: var(--inkt); stroke-width: 1.6; }
.lk-speld text { font: 700 8px var(--sans); fill: var(--inkt); paint-order: stroke; stroke: var(--papier); stroke-width: 3px; stroke-linejoin: round; }
.lk-spoor { fill: none; stroke: var(--cta-diep); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.lk-schaduw { fill: rgba(16, 29, 64, .28); }
.lk-kring { fill: none; stroke: var(--cta); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; }
.mp-lijn { fill: none; stroke: var(--inkt); stroke-width: 1.2; stroke-linejoin: round; }

/* ---------- ontvanger ---------- */
.ontvanger { max-width: 660px; margin: 0 auto; padding: 18px 16px 56px; text-align: center; min-height: calc(100dvh - var(--balk)); overflow-x: clip; }
.ontvanger .lead { margin-inline: auto; }
.voorbeeldbalk { margin: 0 0 14px; padding: 8px 14px; border-radius: 999px; background: var(--inkt); color: var(--papier); font-size: 14px; display: inline-block; }
.voorbeeldbalk a { color: #FFD9C4; font-weight: 650; }
.ov-pakket { position: relative; width: min(74vw, 330px, 42dvh); margin: 4px auto 10px; }
.ov-rij { --wp: min(56vw, 290px, 38dvh); --wk: calc(var(--wp) * .4); position: relative; display: flex; justify-content: center; align-items: flex-end; margin: 4px auto 10px; }
.ov-rij .ov-pakket { width: var(--wp); margin: 0; }
.ov-rij .ov-vloer { left: 4%; right: 4%; bottom: calc(var(--wp) * .1); }
.ov-peep { width: var(--wk); margin: 0 calc(var(--wp) * -.02) calc(var(--wp) * .1 - var(--wk) * .07) 0; }
.ov-peep svg { width: 100%; height: auto; }
.ov-pakket .pakket { width: 100%; height: auto; }
.ov-vloer { position: absolute; left: -14%; right: -14%; bottom: 10.6%; height: 2px; background: var(--inkt); opacity: .8; border-radius: 2px; }
.ov-pakketknop { position: absolute; inset: 20% 10% 4% 10%; background: none; border: 0; cursor: pointer; border-radius: 16px; }
.ov-pakket.wacht .pakket { animation: wiebel 3.4s ease-in-out 1s infinite; transform-origin: 50% 90%; }
.ov-balk { margin-top: 14px; min-height: 84px; }
.ov-scene-pakket .ov-balk { min-height: 0; }
.ov-hint { margin: 0 0 12px; font: italic 16px var(--serif); color: var(--inkt-zacht); }
.ov-balk .ov-hint:last-child { margin: 12px 0 0; }
.ov-fout { padding-top: 12vh; }
.ov-slot { margin-top: 34px; padding-top: 28px; border-top: 1.5px solid var(--lijn); }

.envscene { position: relative; width: min(80vw, 320px, 42dvh); aspect-ratio: 5 / 7; margin: clamp(48px, 11vh, 110px) auto 26px; perspective: 1000px; }
.env-kaart { position: absolute; inset: 0; z-index: 2; }
.env { position: absolute; left: -5%; right: -5%; top: -3%; bottom: -4%; pointer-events: none; }
.env-achter { z-index: 1; background: #EADBBD; border: 2px solid var(--inkt); border-radius: 8px; box-shadow: 0 8px 0 rgba(16, 29, 64, .14); }
.env-voor { z-index: 3; filter: drop-shadow(0 -2px 0 var(--inkt)) drop-shadow(2px 0 0 var(--inkt)) drop-shadow(-2px 0 0 var(--inkt)) drop-shadow(0 2px 0 var(--inkt)); }
.env-voor::before { content: ''; position: absolute; inset: 0; border-radius: 0 0 8px 8px; background: linear-gradient(to top, #FBF2DE 62%, #F4E7CD); clip-path: polygon(0 0, 50% 30%, 100% 0, 100% 100%, 0 100%); }
.env-flap { z-index: 4; bottom: auto; height: 34%; transform-origin: top center; filter: drop-shadow(0 2px 0 var(--inkt)) drop-shadow(0 -2px 0 var(--inkt)) drop-shadow(2px 0 0 var(--inkt)) drop-shadow(-2px 0 0 var(--inkt)); }
.env-flap::before { content: ''; position: absolute; inset: 0; background: #F1E3C6; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.envscene[data-fase="open"] .env-flap, .envscene[data-fase="uit"] .env-flap, .envscene[data-fase="los"] .env-flap { z-index: 1; }
.envscene[data-fase="open"] .env-flap::before, .envscene[data-fase="uit"] .env-flap::before { background: #E2D0AC; }
.envscene[data-fase="los"] .env, .envscene[data-fase="los"] .env-zegel { display: none; }
.env-zegel { position: absolute; z-index: 5; left: 50%; top: 29%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0 42%, #C9521F 46% 100%); border: 2px solid var(--inkt); transform: translate(-50%, -50%); pointer-events: none; }

.onthulling { list-style: none; margin: 18px auto 0; padding: 0; display: grid; gap: 14px; max-width: 470px; }
.onthul { position: relative; padding: 16px 18px 17px 56px; text-align: left; background: var(--kleur); border: 2px solid var(--inkt); border-radius: 14px; box-shadow: 0 5px 0 var(--inkt); transform: rotate(var(--draai)); }
.onthul p { margin: 0; font: 600 clamp(18px, 2.2vw, 21px)/1.28 var(--serif); }
.onthul-nr { position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--inkt); background: rgba(255, 255, 255, .6); display: grid; place-items: center; font: 700 14px/1 var(--sans); }

/* ---------- overzichtskaart ---------- */
.overzicht { max-width: 1120px; margin: 0 auto; padding: 28px 16px 48px; display: grid; gap: 28px; }
@media (min-width: 880px) { .overzicht { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; padding-top: 44px; } }
.ovz-kaart { text-align: center; }
.ovz-kaart svg { width: 100%; max-height: 74dvh; }
.ovz-detail { margin: 10px 0 0; min-height: 1.5em; }
.voorbeeldlabel { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--lijn); background: var(--wit); font-size: 14.5px; }
.ovz-cijfers { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 18px 0; max-width: 460px; }
.ovz-cijfers > div { padding: 12px 12px 10px; border-radius: 14px; background: var(--wit); border: 2px solid var(--inkt); box-shadow: 0 4px 0 var(--inkt); }
.ovz-cijfers dt { font-size: 12.5px; font-weight: 650; color: var(--inkt-zacht); line-height: 1.25; }
.ovz-cijfers dd { margin: 4px 0 0; font: 600 clamp(24px, 3vw, 34px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.ovz-kop { font: 600 20px var(--serif); margin: 22px 0 8px; }
.ovz-routes { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: r; }
.ovz-routes li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1.5px solid var(--lijn); counter-increment: r; }
.ovz-routes li span::before { content: counter(r) '. '; color: var(--inkt-zacht); }
.lk-lijn { fill: none; stroke: var(--cta); opacity: .5; stroke-linecap: round; transition: opacity .3s; }
.lk-lijn.dof { opacity: .08; }
.lk-prov.actief { fill: #F6CDAE; }
.lk-bol { cursor: pointer; }
.lk-bol circle { fill: var(--inkt); stroke: var(--papier); stroke-width: 1; }
.lk-bol.leeg circle { fill: var(--wit); stroke: var(--inkt); }
.lk-bol.leeg text { fill: var(--inkt); }
.lk-bol text { font: 700 5.4px var(--sans); fill: var(--papier); pointer-events: none; }
.lk-bol:focus-visible { outline: none; } .lk-bol:focus-visible circle { stroke: var(--focus); stroke-width: 2.4; }
.lk-stip { fill: var(--wit); stroke: var(--inkt); stroke-width: 1; }

/* ---------- rustige beweging ---------- */
[data-beweging="rustig"] *, [data-beweging="rustig"] *::before, [data-beweging="rustig"] *::after {
  animation-duration: .001s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
  transition-duration: .001s !important; scroll-behavior: auto !important;
}
[data-beweging="rustig"] .blaadjes { display: none; }
