/* =========================================================
   Voor jou 💗  —  styling
   Alles in één bestand, geen externe fonts of libraries.
   ========================================================= */

/* ---------- 1. Reset & variabelen ---------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* roze palet */
  --roze-050: #fff6fb;
  --roze-100: #ffe6f3;
  --roze-200: #ffd0e6;
  --roze-300: #ffb0d4;
  --roze-400: #ff8ec2;
  --roze-500: #ff5fa2;
  --roze-600: #ec3f89;
  --roze-700: #c22a6c;

  --paars-300: #c9a7ff;
  --paars-500: #8b5cf6;
  --paars-700: #5b2f9e;

  --goud: #ffd166;
  --goud-diep: #e0a92b;
  --mint: #8ee6d0;
  --lila: #b39ddb;

  --inkt: #4a2b45;
  --inkt-soft: #7b5a74;

  --kaart: rgba(255, 255, 255, .93);
  --rand: rgba(255, 255, 255, .75);

  --schaduw: 0 26px 60px -22px rgba(194, 42, 108, .45), 0 6px 18px -10px rgba(91, 47, 158, .28);
  --schaduw-zacht: 0 14px 34px -18px rgba(194, 42, 108, .38);

  --radius: 28px;
  --radius-sm: 18px;

  --font-kop: "Baloo 2", "Comic Sans MS", "Chalkboard SE", "Segoe Print", "Trebuchet MS", cursive, system-ui, sans-serif;
  --font-tekst: ui-rounded, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-tekst);
  color: var(--inkt);
  background: var(--roze-100);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

/* ---------- 2. Achtergrond ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 6%,  #fff0f8 0%, transparent 60%),
    radial-gradient(120% 90% at 92% 10%, #f3e6ff 0%, transparent 55%),
    radial-gradient(140% 110% at 50% 110%, #ffd9ec 0%, transparent 60%),
    linear-gradient(170deg, #fff8fc 0%, #ffe4f2 45%, #f7e4ff 100%);
  transition: background 1s ease;
}

/* kleurvlekken die zachtjes drijven */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  will-change: transform;
}
.blob--1 { width: 46vmax; height: 46vmax; left: -12vmax; top: -10vmax;
  background: radial-gradient(circle at 30% 30%, var(--roze-300), transparent 70%);
  animation: blobFloat 22s ease-in-out infinite; }
.blob--2 { width: 40vmax; height: 40vmax; right: -10vmax; top: 4vmax;
  background: radial-gradient(circle at 60% 40%, var(--paars-300), transparent 70%);
  animation: blobFloat 27s ease-in-out infinite reverse; }
.blob--3 { width: 52vmax; height: 52vmax; left: 18vmax; bottom: -26vmax;
  background: radial-gradient(circle at 50% 50%, #ffe3a3, transparent 70%);
  opacity: .38;
  animation: blobFloat 32s ease-in-out infinite; }

@keyframes blobFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); }
  66%      { transform: translate3d(-3vmax, 5vmax, 0) scale(.95); }
}

/* wolken */
.clouds { position: absolute; inset: 0; opacity: .85; }
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, .9);
  border-radius: 100px;
  filter: blur(.5px);
  box-shadow: 0 18px 30px -20px rgba(194, 42, 108, .5);
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.cloud::before { width: 60%; height: 180%; left: 8%; bottom: 22%; }
.cloud::after  { width: 46%; height: 150%; right: 10%; bottom: 30%; }
.cloud--1 { width: 180px; height: 52px; top: 12%; left: -220px; animation: cloudDrift 46s linear infinite; }
.cloud--2 { width: 130px; height: 40px; top: 26%; left: -220px; animation: cloudDrift 64s linear infinite 6s; opacity: .75; }
.cloud--3 { width: 220px; height: 60px; top: 4%;  left: -300px; animation: cloudDrift 82s linear infinite 14s; opacity: .6; }

@keyframes cloudDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 340px)); }
}

/* regenboog (alleen bij "jammer") */
.rainbow {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: min(90vw, 760px);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1.4s ease .3s;
  pointer-events: none;
}
.rainbow span {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border: 14px solid transparent;
  border-bottom: none;
  border-top-color: currentColor;
  filter: blur(1px);
}
.rainbow span:nth-child(1) { color: #ffb3c7; }
.rainbow span:nth-child(2) { color: #ffd6a5; inset: 3% 3% 0 3%; }
.rainbow span:nth-child(3) { color: #fff1a8; inset: 6% 6% 0 6%; }
.rainbow span:nth-child(4) { color: #b8f0c9; inset: 9% 9% 0 9%; }
.rainbow span:nth-child(5) { color: #b6dcff; inset: 12% 12% 0 12%; }
.rainbow span:nth-child(6) { color: #d9c2ff; inset: 15% 15% 0 15%; }

/* zwevende emoji/hartjes op de achtergrond */
.floaters { position: absolute; inset: 0; overflow: hidden; }
.floater {
  position: absolute;
  bottom: -12vh;
  font-size: var(--size, 22px);
  opacity: 0;
  animation: rise var(--dur, 14s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
}
@keyframes rise {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(.8); opacity: 0; }
  12%  { opacity: .9; }
  85%  { opacity: .7; }
  100% { transform: translate3d(var(--drift, 30px), -118vh, 0) rotate(var(--spin, 220deg)) scale(1.1); opacity: 0; }
}

/* het weggetje */
.road {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 130px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .9, .3, 1);
  background: linear-gradient(#6a5570 0%, #4b3a52 55%, #382b3f 100%);
  box-shadow: 0 -14px 40px -12px rgba(91, 47, 158, .35);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 34%);
}
.road::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 6px;
  background: repeating-linear-gradient(90deg, #fff 0 40px, transparent 40px 80px);
  opacity: .5;
}
.road__line {
  position: absolute;
  left: 0; right: 0; top: 58%;
  height: 7px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #ffe6a7 0 44px, transparent 44px 88px);
  animation: roadMove 1.1s linear infinite;
}
@keyframes roadMove { to { transform: translateX(-88px); } }

body.state-geslaagd .road { opacity: 1; transform: none; }
body.state-jammer .rainbow { opacity: .5; }

/* ---------- 3. Schermen ---------- */
#app { position: relative; z-index: 10; }

.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3.4vw, 40px);
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px) scale(.975);
  transition: opacity .55s ease, transform .6s cubic-bezier(.2, .9, .3, 1), visibility .55s;
  -webkit-overflow-scrolling: touch;
}
.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- 4. Kaart ---------- */
.card {
  position: relative;
  width: min(100%, 620px);
  padding: clamp(22px, 4.6vw, 46px);
  text-align: center;
  background: var(--kaart);
  border: 1.5px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  animation: cardIn .7s cubic-bezier(.2, .9, .3, 1) both;
}
.card--wide { width: min(100%, 720px); }
.card--center { display: flex; flex-direction: column; align-items: center; }
.card--calm {
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 240, 248, .88));
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 5. Tekst ---------- */
.kicker {
  margin: 0 0 10px;
  font-size: clamp(.78rem, 2.4vw, .95rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--roze-600);
}
.kicker--gold {
  color: #a3760a;
  background: linear-gradient(90deg, #ffd166, #ffe9b0, #ffd166);
  border-radius: 999px;
  padding: 7px 16px;
  display: inline-block;
  box-shadow: 0 8px 20px -10px rgba(224, 169, 43, .9);
}

.title {
  margin: 0 0 14px;
  font-family: var(--font-kop);
  font-size: clamp(2.1rem, 9vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--inkt);
  text-wrap: balance;
}
.title--md { font-size: clamp(1.7rem, 6.6vw, 2.6rem); }
.title--xl { font-size: clamp(2.4rem, 12vw, 4.4rem); margin-bottom: 8px; }

.hl {
  background: linear-gradient(100deg, var(--roze-600), var(--paars-500) 45%, var(--roze-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 .1em;
}

/* shimmerende GESLAAGD-titel */
.shimmer {
  display: inline-block;
  background: linear-gradient(100deg,
    #ff5fa2 0%, #ff9ecb 18%, #ffd166 34%, #ff8ec2 50%,
    #8b5cf6 66%, #ff5fa2 82%, #ffd166 100%);
  background-size: 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 18px rgba(236, 63, 137, .35));
  animation: shimmer 4.2s linear infinite, popIn .8s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes shimmer { to { background-position: 320% 0; } }
@keyframes popIn {
  0%   { transform: scale(.4) rotate(-6deg); opacity: 0; }
  60%  { transform: scale(1.12) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}

.lead {
  margin: 0 0 18px;
  font-size: clamp(.98rem, 3.5vw, 1.15rem);
  line-height: 1.65;
  color: var(--inkt-soft);
  text-wrap: pretty;
}
.lead--big { font-size: clamp(1.02rem, 3.8vw, 1.22rem); color: var(--inkt); }
.lead strong { color: var(--roze-700); }

.hint {
  margin: 16px 0 0;
  font-size: clamp(.8rem, 3vw, .92rem);
  color: var(--inkt-soft);
  opacity: .9;
}
.signature {
  margin: 26px 0 0;
  font-size: clamp(.78rem, 2.9vw, .9rem);
  color: var(--inkt-soft);
  opacity: .85;
}

/* ---------- 6. Hart-knop (intro) ---------- */
.heart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(120px, 34vw, 168px);
  aspect-ratio: 1;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--roze-200) 45%, var(--roze-400) 100%);
  box-shadow: 0 20px 45px -16px rgba(236, 63, 137, .75), inset 0 -8px 22px rgba(236, 63, 137, .18);
  transition: transform .28s cubic-bezier(.2, 1.5, .4, 1), box-shadow .3s ease;
  animation: heartbeat 2.1s ease-in-out infinite;
  touch-action: manipulation;
}
.heart-btn:hover { transform: scale(1.06); }
.heart-btn:active { transform: scale(.94); }
.heart-btn:focus-visible { outline: 4px solid var(--paars-500); outline-offset: 6px; }
.heart-btn__heart {
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  filter: drop-shadow(0 8px 12px rgba(194, 42, 108, .4));
  animation: wiggle 2.6s ease-in-out infinite;
}
.heart-btn__ring {
  position: absolute;
  inset: -6%;
  border: 3px solid var(--roze-400);
  border-radius: 50%;
  opacity: .55;
  animation: ripple 2.4s ease-out infinite;
}
.heart-btn__ring--2 { animation-delay: 1.2s; }

@keyframes heartbeat {
  0%, 100% { box-shadow: 0 20px 45px -16px rgba(236, 63, 137, .75), inset 0 -8px 22px rgba(236, 63, 137, .18); }
  50%      { box-shadow: 0 26px 60px -14px rgba(236, 63, 137, .9), inset 0 -8px 22px rgba(236, 63, 137, .18); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-7deg) scale(1); }
  50%      { transform: rotate(7deg) scale(1.07); }
}
@keyframes ripple {
  0%   { transform: scale(.85); opacity: .6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- 7. Keuze-knoppen ---------- */
.choices {
  display: grid;
  gap: 14px;
  margin: 22px 0 4px;
  width: 100%;
}
.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  font-family: inherit;
  text-align: left;
  color: var(--inkt);
  background: #fff;
  border: 2px solid var(--roze-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--schaduw-zacht);
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), box-shadow .25s, border-color .25s, background .25s;
  touch-action: manipulation;
}
.choice:hover { transform: translateY(-4px) scale(1.015); border-color: var(--roze-400); }
.choice:active { transform: translateY(0) scale(.985); }
.choice:focus-visible { outline: 4px solid var(--paars-500); outline-offset: 3px; }
.choice__emoji { font-size: clamp(1.7rem, 7vw, 2.2rem); line-height: 1; }
.choice__text { display: flex; flex-direction: column; gap: 3px; }
.choice__label { font-weight: 800; font-size: clamp(1rem, 3.9vw, 1.14rem); }
.choice__sub { font-size: clamp(.78rem, 3vw, .88rem); color: var(--inkt-soft); }

.choice--yes { border-color: var(--roze-300); background: linear-gradient(100deg, #fff, var(--roze-050)); }
.choice--yes:hover { background: linear-gradient(100deg, var(--roze-050), var(--roze-100)); }
.choice--no { border-color: #dcd0f5; background: linear-gradient(100deg, #fff, #f7f3ff); }
.choice--no:hover { border-color: var(--paars-300); background: linear-gradient(100deg, #f8f5ff, #efe9ff); }

/* ---------- 8. Knoppen ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}
.btn {
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(.9rem, 3.4vw, 1rem);
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2, 1.5, .4, 1), box-shadow .25s, filter .25s;
  touch-action: manipulation;
}
.btn:active { transform: scale(.95); }
.btn:focus-visible { outline: 4px solid var(--paars-500); outline-offset: 3px; }
.btn--party {
  color: #fff;
  background: linear-gradient(100deg, var(--roze-600), var(--paars-500));
  box-shadow: 0 16px 34px -14px rgba(236, 63, 137, .95);
}
.btn--party:hover { transform: translateY(-3px); filter: brightness(1.06); }
.btn--soft {
  color: var(--roze-700);
  background: #fff;
  border: 2px solid var(--roze-300);
  box-shadow: var(--schaduw-zacht);
}
.btn--soft:hover { transform: translateY(-3px); background: var(--roze-050); }

/* ---------- 9. Het autootje ---------- */
.car-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 4px auto 6px;
  width: min(100%, 340px);
}
.car {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 22px rgba(194, 42, 108, .3));
}
.car--happy { animation: driveIn 1.7s cubic-bezier(.2, .95, .25, 1) both, carBob 1.5s ease-in-out 1.7s infinite; }
@keyframes driveIn {
  0%   { transform: translateX(-118%) rotate(-3deg); opacity: 0; }
  70%  { opacity: 1; }
  100% { transform: translateX(0) rotate(0deg); opacity: 1; }
}
@keyframes carBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-5px) rotate(-.8deg); }
}

.car__body  { fill: var(--roze-500); }
.car__glass { fill: #e9f7ff; opacity: .92; }
.car__wheel { fill: #43314a; }
.car__rim   { fill: #ffe6a7; }
.car__spokes line { stroke: #b98d2a; stroke-width: 3; stroke-linecap: round; }
.car__light { fill: #fff6c9; }
.car__blush { fill: var(--roze-400); opacity: .55; }
.car__eye   { fill: #43314a; }
.car__smile { fill: none; stroke: #43314a; stroke-width: 3.4; stroke-linecap: round; }
.car__beam  { fill: url(#beamGrad); opacity: 0; }

.car__spokes { animation: spin .55s linear infinite; }
.car__spokes--1 { transform-origin: 96px 138px; }
.car__spokes--2 { transform-origin: 252px 138px; }
@keyframes spin { to { transform: rotate(360deg); } }

.car__puff circle { fill: #fff; opacity: 0; animation: puff 1.9s ease-out infinite; }
.car__puff circle:nth-child(2) { animation-delay: .35s; }
.car__puff circle:nth-child(3) { animation-delay: .7s; }
@keyframes puff {
  0%   { opacity: .8; transform: translate(0, 0) scale(.6); }
  100% { opacity: 0; transform: translate(-26px, -30px) scale(1.6); }
}

.car--happy .car__beam { animation: beam 1.6s ease-in-out 1.6s infinite; }
@keyframes beam {
  0%, 100% { opacity: 0; }
  50%      { opacity: .75; }
}

.car__honk {
  position: absolute;
  top: -2px;
  right: 4%;
  font-family: var(--font-kop);
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 800;
  color: var(--roze-600);
  opacity: 0;
  animation: honkPop 2.6s ease-in-out 1.5s infinite;
}
.car__honk--soft { color: var(--paars-700); }
@keyframes honkPop {
  0%, 70%, 100% { opacity: 0; transform: translateY(6px) scale(.9); }
  20%, 45%      { opacity: 1; transform: translateY(-6px) scale(1.05); }
}

/* verdrietig autootje */
.car--sad { animation: carIn .9s ease both, carSigh 3.4s ease-in-out 1s infinite; }
@keyframes carIn { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes carSigh {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(3px) rotate(-1.4deg); }
}
.car--sad .car__body { fill: var(--roze-400); }
.car__eye--l { animation: blink 4.6s ease-in-out infinite; }
.car__eye--r { animation: blink 4.6s ease-in-out infinite; }
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(.15); }
}
.car__tear path { fill: #9ed6ff; animation: tear 3.2s ease-in-out infinite; transform-origin: 201px 110px; }
@keyframes tear {
  0%, 60% { opacity: 0; transform: translateY(-4px) scale(.4); }
  75%     { opacity: 1; transform: translateY(2px) scale(1); }
  100%    { opacity: 0; transform: translateY(14px) scale(.7); }
}
.car__bandage rect { fill: #fff1c9; stroke: #e0a92b; stroke-width: 1.6; }
.car__bandage { animation: wiggle 3s ease-in-out infinite; transform-origin: 270px 66px; }
.car__hug path {
  fill: var(--roze-600);
  opacity: 0;
  animation: hugPop 5s ease-in-out 2s infinite;
}
@keyframes hugPop {
  0%, 55%, 100% { opacity: 0; transform: translateY(14px) scale(.5); }
  70%, 88%      { opacity: 1; transform: translateY(-10px) scale(1); }
}

/* ---------- 10. Diploma ---------- */
.diploma {
  position: relative;
  margin: 16px auto 4px;
  width: min(100%, 400px);
  perspective: 1000px;
}
.diploma__glow {
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, rgba(255, 209, 102, .55), transparent 62%);
  filter: blur(14px);
  animation: glowPulse 3.4s ease-in-out infinite;
}
@keyframes glowPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

.diploma__paper {
  position: relative;
  padding: clamp(18px, 4vw, 28px) clamp(16px, 4vw, 26px);
  border-radius: 20px;
  background:
    linear-gradient(180deg, #fffdf8, #fff6ec 70%, #ffeede),
    repeating-linear-gradient(45deg, rgba(255, 209, 102, .07) 0 8px, transparent 8px 16px);
  border: 3px double var(--goud-diep);
  box-shadow: 0 24px 48px -22px rgba(160, 110, 20, .6), inset 0 0 0 6px rgba(255, 209, 102, .22);
  animation: diplomaIn 1s cubic-bezier(.2, 1.1, .3, 1) .25s both;
}
@keyframes diplomaIn {
  0%   { opacity: 0; transform: rotateX(48deg) translateY(30px) scale(.9); }
  100% { opacity: 1; transform: rotateX(0) translateY(0) scale(1); }
}
.diploma__mini {
  margin: 0;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #b08b3c;
}
.diploma__big {
  margin: 6px 0 4px;
  font-family: var(--font-kop);
  font-size: clamp(1.5rem, 7vw, 2.1rem);
  line-height: 1.02;
  color: var(--roze-700);
  text-shadow: 0 2px 0 #fff, 0 4px 10px rgba(194, 42, 108, .2);
}
.diploma__sub {
  margin: 0;
  font-size: clamp(.82rem, 3.1vw, .95rem);
  color: var(--inkt-soft);
}
.diploma__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1.5px dashed rgba(176, 139, 60, .5);
  font-size: clamp(.72rem, 2.8vw, .84rem);
  color: #a3760a;
  font-weight: 700;
}

/* de stempel die erin knalt */
.stamp {
  position: absolute;
  right: -18px;
  bottom: -26px;
  display: grid;
  place-items: center;
  width: clamp(88px, 24vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  line-height: 1.1;
  background: radial-gradient(circle at 32% 28%, #ff7fb8, var(--roze-600) 70%);
  border: 4px solid #fff;
  box-shadow: 0 16px 30px -12px rgba(194, 42, 108, .85);
  transform: rotate(-14deg) scale(0);
  opacity: 0;
  animation: stampSlam .75s cubic-bezier(.2, 1.5, .35, 1) 1.25s both;
}
.stamp__top { font-size: .58rem; letter-spacing: .1em; font-weight: 800; }
.stamp__mid { font-family: var(--font-kop); font-size: 1.5rem; font-weight: 900; }
.stamp__bot { font-size: .52rem; opacity: .95; }
@keyframes stampSlam {
  0%   { transform: rotate(-30deg) scale(2.6); opacity: 0; }
  55%  { transform: rotate(-14deg) scale(.88); opacity: 1; }
  75%  { transform: rotate(-14deg) scale(1.1); }
  100% { transform: rotate(-14deg) scale(1); opacity: 1; }
}

.shockwave {
  position: absolute;
  right: 6px;
  bottom: -6px;
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 5px solid var(--roze-500);
  opacity: 0;
  pointer-events: none;
}
.shockwave.is-boom { animation: boom .7s ease-out both; }
@keyframes boom {
  0%   { opacity: .85; transform: scale(1); }
  100% { opacity: 0; transform: scale(14); }
}

/* ---------- 11. Statistieken ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 6px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, var(--roze-050));
  border: 1.5px solid var(--roze-200);
  box-shadow: var(--schaduw-zacht);
}
.stats strong {
  font-family: var(--font-kop);
  font-size: clamp(1.05rem, 4.4vw, 1.35rem);
  color: var(--roze-600);
}
.stats span { font-size: clamp(.66rem, 2.6vw, .78rem); color: var(--inkt-soft); }
.stats--calm li { background: linear-gradient(180deg, #fff, #f7f3ff); border-color: #e2d8fb; }
.stats--calm strong { color: var(--paars-700); }

/* ---------- 12. Trotsheidsmeter ---------- */
.proud-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px auto 0;
  width: min(100%, 400px);
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--roze-200);
  box-shadow: var(--schaduw-zacht);
}
.proud-badge__label {
  font-size: clamp(.66rem, 2.6vw, .78rem);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--roze-600);
  white-space: nowrap;
}
.proud-badge__bar {
  position: relative;
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: var(--roze-100);
  overflow: hidden;
}
.proud-badge__fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--roze-400), var(--paars-500));
  transform-origin: left center;
  animation: fillUp 2.2s cubic-bezier(.2, .9, .3, 1) .6s both;
}
@keyframes fillUp { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.proud-badge__value {
  font-family: var(--font-kop);
  font-weight: 900;
  color: var(--paars-700);
  font-size: clamp(.9rem, 3.4vw, 1.05rem);
}

/* ---------- 13. Plan-lijstje ---------- */
.plan {
  margin: 24px auto 0;
  width: min(100%, 440px);
  padding: 18px 22px;
  text-align: left;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff, #f9f5ff);
  border: 1.5px dashed var(--paars-300);
}
.plan__title {
  margin: 0 0 10px;
  font-family: var(--font-kop);
  font-size: clamp(1rem, 3.8vw, 1.15rem);
  color: var(--paars-700);
}
.plan__list { margin: 0; padding-left: 1.3em; color: var(--inkt); }
.plan__list li { margin-bottom: 6px; line-height: 1.5; font-size: clamp(.88rem, 3.2vw, .98rem); }

/* ---------- 14. Overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(74, 43, 69, .35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .3s ease both;
}
.overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.overlay__card {
  width: min(100%, 420px);
  padding: clamp(24px, 6vw, 38px);
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--roze-050));
  border-radius: var(--radius);
  border: 1.5px solid var(--rand);
  box-shadow: var(--schaduw);
  animation: popIn .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.overlay__emoji { font-size: clamp(3rem, 16vw, 4.4rem); animation: wiggle 1.6s ease-in-out infinite; }
.overlay__title {
  margin: 6px 0 8px;
  font-family: var(--font-kop);
  font-size: clamp(1.5rem, 7vw, 2rem);
  color: var(--roze-600);
}
.overlay__text { margin: 0 0 22px; line-height: 1.6; color: var(--inkt-soft); }

/* ---------- 15. Geluid-knop ---------- */
.sound-toggle {
  position: fixed;
  z-index: 80;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  border-radius: 50%;
  border: 1.5px solid var(--roze-200);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--schaduw-zacht);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.sound-toggle:hover { transform: scale(1.08); }
.sound-toggle[aria-pressed="true"] { background: var(--roze-200); }

/* ---------- 16. Confetti-canvas ---------- */
#fx {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- 17. noscript ---------- */
.noscript {
  position: relative;
  z-index: 100;
  max-width: 620px;
  margin: 12vh auto;
  padding: 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  text-align: center;
}

/* ---------- 18. Kleine schermen ---------- */
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card { border-radius: 24px; }
  .stamp { right: -2px; bottom: -22px; width: clamp(84px, 24vw, 108px); }
}
@media (max-width: 380px) {
  .choice { padding: 15px 16px; gap: 10px; }
  .actions .btn { width: 100%; }
}

/* ruime schermen: autootje en diploma mogen groter */
@media (min-height: 940px) {
  .car-wrap { width: min(100%, 400px); }
  .diploma { margin-top: 22px; }
  .stats { margin-top: 26px; }
}

/* korte schermen: minder lucht */
@media (max-height: 700px) and (min-width: 561px) {
  .card { padding: clamp(18px, 3vw, 30px); }
  .car-wrap { width: min(100%, 320px); }
}

/* ---------- 18b. Cursor-spoor ---------- */
.trail {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  pointer-events: none;
}
.trail__item {
  position: absolute;
  line-height: 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 3px 8px rgba(236, 63, 137, .35));
  animation: trailFade .85s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes trailFade {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(.55) rotate(0deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 24px))) scale(1.3) rotate(24deg); }
}

/* ---------- 18c. Schudden bij de stempel ---------- */
@keyframes shakeIt {
  10%, 90% { transform: translate3d(calc(var(--shake, 10px) * -.35), 0, 0); }
  20%, 80% { transform: translate3d(calc(var(--shake, 10px) * .55), 0, 0); }
  30%, 50%, 70% { transform: translate3d(calc(var(--shake, 10px) * -1), 0, 0); }
  40%, 60% { transform: translate3d(var(--shake, 10px), 0, 0); }
}
body.is-shaking .screen.is-active { animation: shakeIt .55s cubic-bezier(.36, .07, .19, .97) both; }

/* ---------- 18d. Preview-balk (alleen met #dev in de URL) ---------- */
.devbar {
  position: fixed;
  z-index: 95;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(40, 20, 38, .86);
  color: #fff;
  font: 700 12px/1 var(--font-tekst);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .7);
  max-width: calc(100vw - 24px);
  flex-wrap: wrap;
  justify-content: center;
}
.devbar__label {
  opacity: .6;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 10px;
  padding-left: 4px;
}
.devbar button {
  font: inherit;
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  cursor: pointer;
}
.devbar button:hover { background: var(--roze-500); }

/* ---------- 19. Toegankelijkheid ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .screen { transform: none; }
}
