/* ============================================================================
   WISSELTIJD.NL — STIJLBLAD
   Gebaseerd op de gestandaardiseerde Van Dooremolen stijl (vandooremolen/styles)
   en het minimalistische ishetal5uur-principe.
   ============================================================================ */

:root {
  /* TOKENS */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* NEE-STAND (ROOD ACCENT) */
  --bg-color: #f9f9f9;
  --card-bg: #ffffff;
  --card-border: #e5e5e5;
  --text-main: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #757575;
  --text-faint: #9e9e9e;
  --nee-color: #dc2626;
  --nee-color-dark: #b91c1c;
  --nee-badge-bg: rgba(220, 38, 38, 0.08);
  --nee-badge-text: #b91c1c;
  --antwoord-color: var(--nee-color);

  /* JA-STAND (GROEN ACCENT) */
  --ja-bg: #f2f8f5;
  --ja-card-bg: #ffffff;
  --ja-card-border: #a7f3d0;
  --ja-color: #16a34a;
  --ja-color-dark: #15803d;
  --ja-badge-bg: rgba(22, 163, 74, 0.12);
  --ja-badge-text: #15803d;
  --ja-antwoord: var(--ja-color);
  --ja-accent-glow: rgba(22, 163, 74, 0.2);

  /* AFMETINGEN & SPACING */
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ─── RESET & BASIS ─────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ─── HOOFDKAART & INDELING ─────────────────────────────────────────────────── */

.wissel-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 560px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(229, 229, 229, 0.85);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 42px) clamp(20px, 4vw, 36px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.4s ease, background 0.4s ease;
}

body.is-ja .wissel-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--ja-card-border);
  box-shadow: 0 20px 45px rgba(16, 185, 129, 0.12), 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* Status badge */
.wissel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

/* Vraag bovenin */
.wissel-vraag {
  font-size: clamp(14px, 3.5vw, 18px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: clamp(10px, 2vh, 18px);
  transition: color 0.3s ease;
}

/* Antwoord wrapper & interactieve knop */
.antwoord-wrapper {
  position: relative;
  display: inline-block;
}

.wissel-antwoord {
  background: none;
  border: none;
  font-family: inherit;
  font-size: clamp(5.5rem, 22vw, 13.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--antwoord-color);
  margin: 0;
  padding: 0;
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: transform 0.15s ease, color 0.3s ease;
}

.wissel-antwoord:hover {
  transform: scale(1.03);
}

.wissel-antwoord:active {
  transform: scale(0.96);
}

/* Tekstballonnetje bij klikken */
.antwoord-feedback {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background: #222;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
}

.antwoord-feedback::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #222 transparent transparent transparent;
}

.antwoord-feedback.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-110%);
}

/* Schud-animatie bij NEE */
.shake {
  animation: shake-it 0.4s ease-in-out;
}

@keyframes shake-it {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-14px) rotate(-3deg); }
  40% { transform: translateX(12px) rotate(3deg); }
  60% { transform: translateX(-8px) rotate(-1.5deg); }
  80% { transform: translateX(6px) rotate(1.5deg); }
}

/* Grappige oneliner */
.wissel-grapje {
  font-size: clamp(14px, 3.5vw, 16px);
  font-style: italic;
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: clamp(20px, 4vh, 36px);
  min-height: 24px;
}

/* Informatieblokken onder het antwoord */
.wissel-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.wissel-huidig {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.wissel-volgende {
  font-size: clamp(14px, 3.2vw, 16px);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 480px;
}

.wissel-week {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
  display: inline-block;
}

/* Checklist met een knipoog */
.wissel-checklist {
  margin-top: 28px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 10px 16px;
  max-width: 420px;
  width: 100%;
  text-align: left;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.wissel-checklist[open] {
  padding: 14px 18px;
}

.checklist-toggle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  outline: none;
}

.checklist-toggle:hover {
  color: var(--text-main);
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--card-border);
}

.checklist-items label {
  font-size: 13px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checklist-items label input[type="checkbox"] {
  accent-color: #10b981;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.checklist-items em {
  font-size: 11px;
  color: var(--text-faint);
  font-style: normal;
}

/* Confetti canvas */
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* ─── SPEELSE BOERDERIJ ACHTERGROND ────────────────────────────────────────── */

.farm-scenery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Dynamische Wolkenschaduw Over De Hemel & Heuvels */
.cloud-shadow-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle at top right, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.32) 100%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Grote Zon & Drijvende Wolken */
.farm-sun {
  position: absolute;
  top: clamp(18px, 4vh, 46px);
  right: clamp(20px, 6vw, 100px);
  font-size: clamp(54px, 8.5vw, 78px);
  user-select: none;
  z-index: 1; /* Wolk drijft er vóór langs! */
  animation: sun-pulse 5s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(254, 240, 138, 0.75));
  transition: filter 0.6s ease, opacity 0.6s ease;
}

@keyframes sun-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(8deg); }
}

/* Wolken - 2 tot 3 keer zo groot & interactief leegknijpen! */
.farm-cloud {
  position: absolute;
  user-select: none;
  cursor: pointer;
  pointer-events: auto;
  z-index: 5;
  display: inline-block;
}

.cloud-shape {
  display: inline-block;
  font-size: clamp(115px, 16vw, 185px); /* 2.5 tot 3 keer zo groot! */
  line-height: 1;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.12));
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
  transform-origin: center center;
}

.farm-cloud:hover .cloud-shape {
  transform: scale(1.08);
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.16));
}

/* Leeggeknepen toestand wanneer het regent */
.farm-cloud.squeezed .cloud-shape {
  transform: scale(0.52) translateY(-18px); /* Wordt aanzienlijk kleiner! */
  filter: contrast(1.2) brightness(0.82) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

/* Wolk 1: zweeft rechtstreeks over de zon */
.cloud-1 {
  top: clamp(8px, 2.5vh, 32px);
  left: -220px;
  animation: float-cloud 36s linear infinite;
}

/* Wolk 2: iets lager wolkje */
.cloud-2 {
  top: clamp(35px, 6vh, 75px);
  left: -220px;
  animation: float-cloud 50s linear infinite 16s;
}

/* Wolk 3: lager speels wolkje */
.cloud-3 {
  top: clamp(80px, 12vh, 125px);
  left: -220px;
  animation: float-cloud 44s linear infinite 26s;
}

@keyframes float-cloud {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 360px)); }
}

/* Regenlaag & Regendruppels */
.rain-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 7;
}

.raindrop {
  position: absolute;
  width: 3.5px;
  height: 22px;
  background: linear-gradient(180deg, rgba(191, 219, 254, 0.95) 0%, rgba(59, 130, 246, 0.98) 100%);
  border-radius: 999px;
  pointer-events: none;
  animation: raindrop-fall 0.65s linear forwards;
}

@keyframes raindrop-fall {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(var(--fall-dist, 550px));
  }
}

/* Nat gras & Waterplassen */
.wet-grass-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 140px;
  pointer-events: none;
  z-index: 6;
}

.wet-patch {
  position: absolute;
  bottom: 12px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(16, 105, 52, 0.72) 0%, rgba(21, 128, 61, 0.5) 45%, rgba(34, 197, 94, 0) 72%);
  transform: translate(-50%, 0) scale(0.6);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: inset 0 0 16px rgba(5, 46, 22, 0.4);
}

.wet-patch.active {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.water-ripple {
  position: absolute;
  border: 2px solid rgba(191, 219, 254, 0.8);
  border-radius: 50%;
  pointer-events: none;
  animation: ripple-spread 0.5s ease-out forwards;
}

@keyframes ripple-spread {
  0% {
    width: 6px;
    height: 3px;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    width: 44px;
    height: 22px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8);
  }
}

/* Majestueuze Bergtoppen in de verte */
.farm-mountains {
  position: absolute;
  bottom: clamp(140px, 25vh, 230px);
  left: 0;
  width: 100%;
  height: clamp(170px, 28vh, 250px);
  z-index: 2;
  pointer-events: none;
}

.mountain-back {
  fill: #818cf8;
  opacity: 0.55;
  transition: fill 0.5s ease;
}

.mountain-front {
  fill: #6366f1;
  opacity: 0.72;
  transition: fill 0.5s ease;
}

.mountain-snow {
  fill: #ffffff;
  opacity: 0.96;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

body.is-ja .mountain-back {
  fill: #60a5fa;
  opacity: 0.6;
}

body.is-ja .mountain-front {
  fill: #3b82f6;
  opacity: 0.75;
}

/* Glooiende Heuvels (Achterste heuvel SVG) */
.farm-hills-back {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(210px, 34vh, 330px);
  z-index: 3;
  pointer-events: none;
}

.hill-back {
  fill: #86efac; /* Fris weidegroen */
  transition: fill 0.5s ease;
}

body.is-ja .hill-back {
  fill: #4ade80;
}

/* Boerderij Gebouwen & Tractor (stevig op het groen geplaatst) */
.farm-horizon {
  position: absolute;
  bottom: clamp(85px, 14vh, 140px);
  width: 100%;
  height: 110px;
  z-index: 4;
  pointer-events: auto;
}

/* Molen - Groter & Speels */
.farm-windmill {
  position: absolute;
  left: clamp(20px, 6vw, 110px);
  bottom: 0;
  width: 70px;
  height: 98px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.farm-windmill:hover {
  transform: scale(1.1);
}

.windmill-body {
  position: absolute;
  bottom: 0;
  left: 14px;
  width: 42px;
  height: 66px;
  background: #a35b37;
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
  border-radius: 3px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.15);
}

.windmill-roof {
  position: absolute;
  bottom: 65px;
  left: 17px;
  width: 36px;
  height: 24px;
  background: #2d3748;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.windmill-blades {
  position: absolute;
  top: 14px;
  left: 35px;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  animation: spin-blades 10s linear infinite;
  transform-origin: center center;
}

.windmill-blades.fast {
  animation-duration: 1.8s !important;
}

.blade {
  position: absolute;
  background: #4a5568;
  border-radius: 3px;
}

.blade-v {
  top: 0;
  left: 43px;
  width: 6px;
  height: 92px;
}

.blade-h {
  top: 43px;
  left: 0;
  width: 92px;
  height: 6px;
}

.blade-cap {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #4a5568;
}

@keyframes spin-blades {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Boerderij Schuur - Groter met vogeltje */
.farm-barn {
  position: absolute;
  right: clamp(20px, 7vw, 130px);
  bottom: 0;
  width: 92px;
  height: 72px;
}

.barn-bird {
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 24px;
  animation: bird-chirp 3.5s ease-in-out infinite;
  cursor: pointer;
  user-select: none;
}

@keyframes bird-chirp {
  0%, 100% { transform: translateY(0) rotate(0); }
  40% { transform: translateY(-4px) rotate(-8deg); }
  60% { transform: translateY(-2px) rotate(8deg); }
}

.barn-roof {
  position: absolute;
  top: 0;
  left: 0;
  width: 74px;
  height: 25px;
  background: #dc2626;
  clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
}

.barn-body {
  position: absolute;
  bottom: 0;
  left: 5px;
  width: 64px;
  height: 48px;
  background: #b91c1c;
  border-radius: 3px;
}

.barn-loft {
  position: absolute;
  top: 6px;
  left: 24px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #7f1d1d;
}

.barn-door {
  position: absolute;
  bottom: 0;
  left: 20px;
  width: 24px;
  height: 28px;
  background: #fff;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.barn-silo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 66px;
  background: #cbd5e0;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  border: 1px solid #94a3b8;
}

/* Bomen & Hek */
.farm-tree {
  position: absolute;
  font-size: clamp(32px, 5vw, 44px);
  user-select: none;
  animation: tree-sway 6s ease-in-out infinite;
}

.tree-1 {
  left: clamp(85px, 16vw, 220px);
  bottom: 6px;
}

.tree-2 {
  right: clamp(110px, 17vw, 235px);
  bottom: 8px;
  animation-delay: -3s;
}

@keyframes tree-sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(3deg); }
}

.farm-fence {
  position: absolute;
  left: 50%;
  bottom: 10px;
  font-size: 15px;
  color: #8d6e63;
  opacity: 0.7;
  user-select: none;
  transform: translateX(-50%);
}

/* Tractor - Lekker Groot & Huppelend */
.farm-tractor {
  position: absolute;
  right: clamp(150px, 23vw, 360px);
  bottom: -6px;
  font-size: clamp(44px, 7vw, 64px);
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: transform 0.3s ease;
  animation: tractor-bouncy 2.4s ease-in-out infinite;
}

.farm-tractor:hover {
  transform: scale(1.18);
}

/* Tractor toeter spraakballon */
.tractor-speech {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%) scale(0.7);
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid #f59e0b;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 800;
  color: #b45309;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  z-index: 25;
}

.tractor-speech.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px) scale(1);
}

/* Tractor rondscheuren wanneer aangeklikt */
.farm-tractor.joyride {
  animation: tractor-crossen 3.2s ease-in-out forwards !important;
  z-index: 15;
}

@keyframes tractor-crossen {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  }
  8% {
    /* Wheelie bij het wegrijden! */
    transform: translateX(-15px) translateY(-14px) rotate(-14deg) scale(1.12);
  }
  25% {
    /* Crossen naar links richting de heuvel */
    transform: translateX(-140px) translateY(-4px) rotate(4deg) scale(1.08);
  }
  48% {
    /* Helemaal doortrekken over de weide */
    transform: translateX(-260px) translateY(8px) rotate(-6deg) scale(1.05);
  }
  55% {
    /* Slippen & omdraaien */
    transform: translateX(-280px) translateY(2px) rotate(12deg) scaleX(-1) scaleY(1.08);
  }
  75% {
    /* Terugcrossen naar rechts */
    transform: translateX(-110px) translateY(-6px) rotate(-4deg) scaleX(-1) scaleY(1.05);
  }
  92% {
    /* Remmen voor de schuur */
    transform: translateX(18px) translateY(-10px) rotate(-10deg) scaleX(1);
  }
  100% {
    /* Weer rustig terug op z'n plek */
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  }
}

.tractor-puff {
  position: absolute;
  top: -12px;
  left: -20px;
  font-size: 20px;
  opacity: 0.85;
  animation: puff-smoke 1.6s ease-out infinite;
}

@keyframes tractor-bouncy {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-6px) rotate(-2deg); }
  70% { transform: translateY(-2px) rotate(2deg); }
}

@keyframes puff-smoke {
  0% { transform: translate(0, 0) scale(0.5); opacity: 0.9; }
  100% { transform: translate(-20px, -22px) scale(1.5); opacity: 0; }
}

/* Glooiende Heuvels (Voorste heuvel SVG) */
.farm-hills-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(160px, 26vh, 250px);
  z-index: 5;
  pointer-events: none;
}

.hill-front {
  fill: #4ade80; /* Levendig sappig voorgrondgras */
  transition: fill 0.5s ease;
}

body.is-ja .hill-front {
  fill: #22c55e;
}

/* Dieren in de Weide - Groot & Vriendelijk Beweeglijk op de voorgrond */
.farm-pasture {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 6;
  pointer-events: auto;
}

.farm-animal {
  position: absolute;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.farm-animal:hover {
  transform: scale(1.25) !important;
}

.farm-animal:active {
  transform: scale(0.92) !important;
}

/* Grote Spraakballonnetjes */
.animal-speech {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%) scale(0.7);
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid #86efac;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  z-index: 20;
}

.animal-speech.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px) scale(1);
}

/* Koe - Groot & Vrolijk Kauwend */
.farm-animal.cow {
  left: clamp(20px, 7vw, 130px);
  bottom: clamp(24px, 6vh, 56px);
  font-size: clamp(52px, 8.5vw, 76px);
  animation: cow-wobble 4s ease-in-out infinite;
}

@keyframes cow-wobble {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-3deg); }
  75% { transform: translateY(-2px) rotate(3deg); }
}

/* Schaap - Groot & Zacht Huppelend */
.farm-animal.sheep {
  right: clamp(20px, 8vw, 140px);
  bottom: clamp(20px, 5vh, 48px);
  font-size: clamp(46px, 7.5vw, 68px);
  animation: sheep-hop 3.6s ease-in-out infinite 0.6s;
}

@keyframes sheep-hop {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.06); }
}

/* Konijntje - Vrolijk Wippend */
.farm-animal.bunny {
  left: clamp(100px, 21vw, 270px);
  bottom: clamp(12px, 3vh, 26px);
  font-size: clamp(38px, 6vw, 54px);
  animation: bunny-hop 3s ease-in-out infinite 1.2s;
}

@keyframes bunny-hop {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-16px) rotate(-4deg); }
  60% { transform: translateY(-2px); }
}

/* Kip & Kuiken - Trippelen & Pikken */
.farm-animal.chicken-1 {
  left: clamp(50px, 14vw, 180px);
  bottom: clamp(6px, 1.8vh, 18px);
  font-size: clamp(32px, 5vw, 44px);
  animation: chicken-peck 2.8s infinite ease-in-out;
}

.farm-animal.chicken-2 {
  right: clamp(90px, 18vw, 240px);
  bottom: clamp(12px, 2.8vh, 24px);
  font-size: clamp(26px, 4.2vw, 36px);
  animation: chick-flutter 2.4s infinite ease-in-out 0.5s;
}

@keyframes chicken-peck {
  0%, 70%, 100% { transform: rotate(0) translateY(0); }
  25% { transform: rotate(24deg) translateY(4px); }
  45% { transform: rotate(-6deg) translateY(-2px); }
}

@keyframes chick-flutter {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-8px) scale(1.1) rotate(-6deg); }
  60% { transform: translateY(-4px) scale(1.05) rotate(6deg); }
}

/* Vlinders - Vrolijk Fladderend */
.farm-butterfly {
  position: absolute;
  font-size: 28px;
  user-select: none;
}

.butterfly-1 {
  left: clamp(70px, 15vw, 200px);
  bottom: clamp(50px, 10vh, 90px);
  animation: butterfly-fly 7s ease-in-out infinite;
}

.butterfly-2 {
  right: clamp(80px, 16vw, 210px);
  bottom: clamp(45px, 9vh, 85px);
  animation: butterfly-fly 8s ease-in-out infinite 3.5s;
}

@keyframes butterfly-fly {
  0% { transform: translate(0, 0) rotate(0deg) scaleX(1); }
  25% { transform: translate(25px, -20px) rotate(15deg) scaleX(0.7); }
  50% { transform: translate(50px, -5px) rotate(-10deg) scaleX(1); }
  75% { transform: translate(20px, 16px) rotate(8deg) scaleX(0.7); }
  100% { transform: translate(0, 0) rotate(0deg) scaleX(1); }
}

/* Kleurrijke Bloemetjes */
.farm-flower {
  position: absolute;
  font-size: clamp(20px, 3.5vw, 28px);
  user-select: none;
  animation: flower-sway 4s ease-in-out infinite;
}

.flower-1 { left: clamp(75px, 13vw, 190px); bottom: 10px; }
.flower-2 { right: clamp(70px, 14vw, 200px); bottom: 10px; animation-delay: -1.5s; }
.flower-3 { left: 45%; bottom: 6px; animation-delay: -0.8s; }
.flower-4 { right: 42%; bottom: 8px; animation-delay: -2.2s; }

@keyframes flower-sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(8deg); }
}

/* ─── TOESTANDEN: .is-nee en .is-ja ────────────────────────────────────────── */

/* NEE: Prachtige zonnige blauwe hemel met fris groen weidelandschap */
body.is-nee {
  background: linear-gradient(180deg, #60a5fa 0%, #93c5fd 30%, #bae6fd 60%, #e0f2fe 80%, #bbf7d0 100%);
}

body.is-nee .wissel-antwoord {
  color: var(--nee-color);
  text-shadow: 0 4px 22px rgba(220, 38, 38, 0.18);
}

body.is-nee .wissel-badge {
  background: var(--nee-badge-bg);
  color: var(--nee-badge-text);
  border: 1px solid rgba(220, 38, 38, 0.22);
}

/* JA: Extra stralende feestelijke hemel met rijdende tractor! */
body.is-ja {
  background: linear-gradient(180deg, #38bdf8 0%, #7dd3fc 30%, #bae6fd 60%, #e0f2fe 80%, #86efac 100%);
}

body.is-ja .wissel-vraag {
  color: var(--ja-color-dark);
}

body.is-ja .wissel-antwoord {
  color: var(--ja-color);
  text-shadow: 0 10px 30px var(--ja-accent-glow);
  animation: pulse-subtle 2s infinite ease-in-out;
}

body.is-ja .wissel-badge {
  background: var(--ja-badge-bg);
  color: var(--ja-badge-text);
  border: 1px solid rgba(22, 163, 74, 0.28);
}

body.is-ja .wissel-week {
  border-top-color: var(--ja-card-border);
}

body.is-ja .farm-tractor {
  animation: tractor-drive 4s ease-in-out infinite;
}

@keyframes tractor-drive {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-50px) scale(1.08); }
}

/* Subtiele attentie-animatie tijdens JA */
@keyframes pulse-subtle {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* ─── GELUIDSKNOP ───────────────────────────────────────────────────────────── */

/* ─── BOVENBALK (HEMELSCHAKELAAR & GELUIDSKNOPPEN) ─────────────────────────── */

.farm-top-bar {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.sky-mode-group,
.audio-controls-group {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

body.time-night .sky-mode-group,
body.time-night .audio-controls-group {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.sky-btn {
  background: transparent;
  border: none;
  color: #4b5563;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sky-btn:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.05);
}

.sky-btn.active {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

body.time-night .sky-btn {
  color: #cbd5e1;
}

body.time-night .sky-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

body.time-night .sky-btn.active {
  background: #6366f1;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.45);
}

.audio-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: #4b5563;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.audio-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #111827;
}

.audio-toggle.active {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

body.time-night .audio-toggle {
  color: #cbd5e1;
}

body.time-night .audio-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

body.time-night .audio-toggle.active {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

@media (max-width: 640px) {
  .farm-top-bar {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    top: 10px;
    right: 10px;
    left: auto;
  }
  .sky-btn, .audio-toggle {
    font-size: 11px;
    padding: 5px 8px;
  }
}

/* ─── STERREN & MAANSTAND ───────────────────────────────────────────────────── */

.farm-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.5s ease;
}

body.time-sunset .farm-stars {
  opacity: 0.35;
}

body.time-night .farm-stars {
  opacity: 1;
}

.star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  animation: star-twinkle var(--duration, 3s) ease-in-out infinite var(--delay, 0s);
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.35); filter: drop-shadow(0 0 6px #fff); }
}

/* ─── GEÏLLUSTREERDE MAAN & MAANSTAND ───────────────────────────────────────── */

.farm-moon {
  position: absolute;
  top: clamp(24px, 5vh, 65px);
  right: clamp(24px, 7vw, 120px);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  z-index: 2;
  opacity: 0.35; /* Zachte dagmaan overdag */
  transform: translateY(0) scale(0.9);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.farm-moon:hover {
  opacity: 1 !important;
  transform: translateY(-2px) scale(1.05) !important;
}

body.time-sunset .farm-moon {
  opacity: 0.92;
  transform: translateY(0) scale(0.96);
  filter: drop-shadow(0 0 16px rgba(254, 240, 138, 0.45));
}

body.time-night .farm-moon {
  opacity: 1;
  transform: translateY(0) scale(1.04);
  filter: drop-shadow(0 0 28px rgba(226, 232, 240, 0.85));
}

body.time-night .farm-sun {
  opacity: 0 !important;
  transform: translateY(40px) scale(0.6) !important;
  pointer-events: none !important;
}

.moon-halo {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 250, 252, 0.25) 0%, transparent 70%);
  pointer-events: none;
  animation: moon-pulse 4s ease-in-out infinite alternate;
}

@keyframes moon-pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.9; }
}

.moon-svg {
  width: clamp(68px, 9vw, 88px);
  height: clamp(68px, 9vw, 88px);
  border-radius: 50%;
  transition: transform 0.35s ease;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.15));
}

.farm-moon:hover .moon-svg {
  transform: rotate(6deg) scale(1.08);
}

.moon-speech {
  position: absolute;
  top: calc(100% + 12px);
  right: 50%;
  transform: translateX(50%) scale(0.85);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.35);
  color: #f8fafc;
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.moon-speech strong {
  display: block;
  font-size: 14px;
  color: #fef08a;
  font-weight: 700;
}

.moon-speech span {
  display: block;
  font-size: 12px;
  color: #e2e8f0;
}

.moon-speech small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 3px;
}

.farm-moon:hover .moon-speech,
.moon-speech.show {
  opacity: 1;
  transform: translateX(50%) scale(1) translateY(0);
  pointer-events: auto;
}

/* Warm raamlichtje in de stal 's nachts */
.barn-night-light {
  position: absolute;
  top: 14px;
  left: 28px;
  width: 10px;
  height: 10px;
  background: #fde047;
  border-radius: 2px;
  opacity: 0;
  box-shadow: 0 0 14px #fde047;
  transition: opacity 1s ease;
}

body.time-night .barn-night-light {
  opacity: 1;
}

/* ─── DE BOER OP ZIJN AKKER ─────────────────────────────────────────────────── */

.farm-farmer {
  position: absolute;
  left: clamp(160px, 30vw, 360px);
  bottom: clamp(8px, 2.2vh, 22px);
  display: flex;
  align-items: flex-end;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  outline: none;
  z-index: 8;
  transition: transform 0.25s ease;
}

.farm-farmer:hover {
  transform: scale(1.16);
}

.farmer-char {
  display: flex;
  align-items: flex-end;
  position: relative;
}

.farmer-body {
  font-size: clamp(38px, 5.8vw, 52px);
  line-height: 1;
  display: inline-block;
}

.farmer-rake {
  font-size: 24px;
  display: inline-block;
  margin-left: -10px;
  transform-origin: bottom center;
  animation: farmer-raking 2s ease-in-out infinite;
}

@keyframes farmer-raking {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(18deg) translateY(-4px); }
}

.farmer-patch {
  background: #78350f;
  border: 1px solid #92400e;
  border-radius: 8px;
  padding: 3px 6px;
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 16px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
  margin-bottom: 2px;
}

.farmer-speech {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%) scale(0.7);
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid #b45309;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #78350f;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  z-index: 25;
}

.farmer-speech.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px) scale(1);
}

/* ─── DAG- EN NACHT CYCLUS THEMA'S ─────────────────────────────────────────── */

/* Ochtend (06:00 - 09:00) */
body.time-morning {
  background: linear-gradient(180deg, #fbcfe8 0%, #fed7aa 28%, #fef08a 60%, #bbf7d0 100%);
}

/* Zonsondergang (18:30 - 21:30) */
body.time-sunset {
  background: linear-gradient(180deg, #a855f7 0%, #f43f5e 28%, #fb923c 60%, #fde047 82%, #86efac 100%);
}

body.time-sunset .mountain-back { fill: #c084fc; opacity: 0.65; }
body.time-sunset .mountain-front { fill: #9333ea; opacity: 0.75; }

/* Nacht (21:30 - 06:00) */
body.time-night {
  background: linear-gradient(180deg, #090d16 0%, #0f172a 35%, #1e1b4b 70%, #064e3b 100%);
  color: #f8fafc;
}

body.time-night .mountain-back { fill: #1e293b; opacity: 0.85; }
body.time-night .mountain-front { fill: #0f172a; opacity: 0.95; }
body.time-night .hill-back { fill: #064e3b; }
body.time-night .hill-front { fill: #065f46; }

body.time-night .wissel-card {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  color: #f1f5f9;
}

body.time-night .wissel-vraag { color: #94a3b8; }
body.time-night .wissel-huidig { color: #f8fafc; }
body.time-night .wissel-volgende { color: #cbd5e1; }
body.time-night .wissel-week { color: #64748b; border-top-color: rgba(255, 255, 255, 0.12); }
body.time-night .wissel-grapje { color: #94a3b8; }
body.time-night .wissel-checklist {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(255, 255, 255, 0.16);
}
body.time-night .checklist-toggle { color: #cbd5e1; }
body.time-night .checklist-items label { color: #e2e8f0; }

/* ─── TOEGANKELIJKHEID ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  body, .wissel-antwoord, .wissel-vraag, .windmill-blades, .farm-sun, .farm-moon, .cloud-1, .cloud-2, .cloud-3, .farm-tractor, .farm-animal, .farm-butterfly, .farm-flower, .barn-bird, .farmer-rake, .star {
    transition: none !important;
    animation: none !important;
  }
}
