/* Bad timer met badgast Bob (bouwt voort op site.css) */
.bath { --ok: #14b981; --warn: #f59e0b; --danger: #ef4444; --water: #4bc9ff; }
.bath-screen { display: none; }
.bath-screen.active { display: block; animation: bathFade .35s ease; }
#timerScreen.active { display: grid; gap: 18px; }

/* tijd kiezen */
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.time-btn {
  min-height: 220px; border: 0; cursor: pointer; color: var(--text); font: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.8)); border-radius: 30px;
  box-shadow: 0 16px 40px rgba(26,73,113,.14); position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  transition: transform .16s ease, box-shadow .16s ease;
}
.time-btn::after {
  content: ""; position: absolute; left: 50%; bottom: -24%; transform: translateX(-50%); width: 128%; height: 42%;
  background: radial-gradient(circle at 50% 0%, rgba(173,225,248,.84), rgba(173,225,248,.65) 36%, rgba(173,225,248,0) 66%);
}
.time-btn:hover, .time-btn:focus-visible { transform: translateY(-3px) scale(1.01); box-shadow: 0 20px 46px rgba(26,73,113,.18); }
.time-btn .nr { font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif; font-size: clamp(3.4rem, 6vw, 5rem); font-weight: 700; line-height: 1; color: var(--blue-dark); position: relative; z-index: 1; }
.time-btn .lbl { font-size: 1.1rem; color: var(--muted); font-weight: 800; position: relative; z-index: 1; }

/* bovenbalk met klok en status */
.bath-top, .bath-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kicker { color: var(--accent); font-weight: 800; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.clock { font-size: clamp(3rem, 8vw, 5.4rem); }
.status-box { width: min(46%, 430px); }
.status-pill { min-height: 44px; width: 100%; border-radius: 999px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--accent); padding: 10px 16px; font-weight: 800; transition: background .3s, color .3s; }
.bar-wrap { margin-top: 12px; width: 100%; height: 14px; background: var(--accent-soft); border-radius: 999px; overflow: hidden; }
.bar { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ok), #34d399); transition: width .35s linear, background .3s ease; }
#timerScreen[data-state="warning"] .bar { background: linear-gradient(90deg, var(--warn), #fbbf24); }
#timerScreen[data-state="danger"] .bar, #timerScreen[data-state="exiting"] .bar, #timerScreen[data-state="done"] .bar { background: linear-gradient(90deg, var(--danger), #f87171); }
#timerScreen[data-state="warning"] .status-pill { color: #a16207; background: rgba(245,158,11,.14); }
#timerScreen[data-state="danger"] .status-pill, #timerScreen[data-state="exiting"] .status-pill { color: #991b1b; background: rgba(239,68,68,.12); }
#timerScreen[data-state="done"] .status-pill { color: #047857; background: rgba(20,185,129,.16); }

/* onderbalk */
.bath-controls { justify-content: center; flex-wrap: wrap; }
.wake-note { min-width: 280px; border-radius: 999px; background: var(--accent-soft); color: var(--muted); font-weight: 800; text-align: center; padding: 12px 16px; }

/* ---------- het badtafereel ---------- */
.scene {
  position: relative; overflow: hidden; height: clamp(420px, 58vh, 540px); border-radius: 34px;
  border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow); --speed: 1;
  background: radial-gradient(circle at top left, rgba(255,255,255,.95), transparent 34%), linear-gradient(180deg, #edfaff 0%, #d8f5ff 100%);
}
.scene .badge { position: absolute; left: 16px; top: 16px; z-index: 11; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.84); color: var(--muted); font-weight: 800; }
.steam { position: absolute; top: 8%; width: 86px; height: 190px; background: radial-gradient(circle at 50% 33%, rgba(255,255,255,.78), rgba(255,255,255,0)); filter: blur(8px); opacity: .28; animation: steam 6.4s ease-in-out infinite; z-index: 1; }
.steam.s1 { left: 16%; } .steam.s2 { left: 40%; animation-delay: 1.7s; } .steam.s3 { right: 18%; animation-delay: .9s; }
.duck { position: absolute; right: 18%; top: 15%; width: 86px; height: 66px; transform: rotate(-10deg); animation: ducky 3.8s ease-in-out infinite; z-index: 2; }
.duck div { position: absolute; }
.duck .body { width: 58px; height: 38px; left: 10px; top: 22px; background: #ffd34d; border-radius: 48% 50% 44% 46%; }
.duck .head { width: 28px; height: 28px; right: 10px; top: 8px; background: #ffd34d; border-radius: 50%; }
.duck .beak { width: 18px; height: 10px; right: 0; top: 22px; background: #ff9d00; border-radius: 60% 44% 52% 48%; }
.duck .eye { width: 5px; height: 5px; right: 19px; top: 18px; background: #2b3645; border-radius: 50%; }
.tub { position: absolute; left: 8%; right: 8%; bottom: 8%; height: 58%; border-radius: 44px 44px 38px 38px; background: linear-gradient(180deg, #f5f7fb 0%, #dbe4f0 100%); box-shadow: inset 0 -10px 26px rgba(0,0,0,.10), 0 28px 40px rgba(31,59,88,.16); z-index: 3; }
.rim { position: absolute; left: 3%; right: 3%; top: 8%; height: 14%; background: rgba(255,255,255,.95); border-radius: 999px; }
.water-back, .water-front { position: absolute; left: 1.5%; right: 1.5%; bottom: 8%; height: 54%; border-radius: 32px; }
.water-back { background: linear-gradient(180deg, #84e4ff 0%, #4bc9ff 100%); clip-path: polygon(0 32%,7% 26%,14% 31%,23% 23%,31% 30%,39% 25%,48% 32%,58% 25%,66% 31%,74% 24%,83% 32%,91% 26%,100% 30%,100% 100%,0 100%); animation: waveBack 4.4s ease-in-out infinite; z-index: 1; }
.water-front { background: linear-gradient(180deg, rgba(122,218,255,.85), rgba(63,193,255,.95)); clip-path: polygon(0 42%,7% 35%,15% 43%,23% 38%,31% 45%,39% 39%,48% 46%,57% 37%,66% 44%,74% 39%,83% 47%,91% 40%,100% 44%,100% 100%,0 100%); animation: waveFront 3s ease-in-out infinite; box-shadow: inset 0 10px 20px rgba(255,255,255,.28); z-index: 8; }
.bubble-layer { position: absolute; inset: 12% 6% 20% 6%; overflow: hidden; z-index: 5; }
.bubble-layer .b {
  position: absolute; bottom: 0; border-radius: 50%; background: rgba(255,255,255,.80);
  box-shadow: inset -4px -4px 8px rgba(255,255,255,.45), inset 3px 3px 7px rgba(129,214,255,.35);
  animation: rise linear infinite; animation-duration: calc(var(--d, 6) * 1s * var(--speed, 1));
}
.boy { position: absolute; left: 50%; bottom: 20%; width: 210px; height: 226px; transform: translateX(-50%); z-index: 6; animation: bob 2.6s ease-in-out infinite; }
.boy-inner { position: absolute; inset: 0; transition: transform .45s ease, opacity .45s ease; }
.hair { position: absolute; left: 50%; top: 0; width: 114px; height: 52px; transform: translateX(-50%); background: #6a432e; border-radius: 55px 55px 28px 28px; z-index: 1; }
.hair::after { content: ""; position: absolute; left: 46%; top: -6px; width: 18px; height: 18px; background: #6a432e; border-radius: 50%; }
.boy .head { position: absolute; left: 50%; top: 14px; width: 110px; height: 110px; transform: translateX(-50%); border-radius: 50%; background: #ffd8b1; box-shadow: 0 10px 20px rgba(134,70,19,.12); }
.boy .eye { position: absolute; top: 42px; width: 9px; height: 9px; background: #213547; border-radius: 50%; }
.boy .eye.left { left: 28px; } .boy .eye.right { right: 28px; }
.mouth { position: absolute; left: 50%; top: 68px; width: 34px; height: 14px; transform: translateX(-50%); border-bottom: 4px solid #213547; border-radius: 0 0 24px 24px; }
.arm { position: absolute; top: 110px; width: 62px; height: 24px; border-radius: 999px; background: #ffd8b1; animation: armWave 2.2s ease-in-out infinite; }
.arm.left { left: 18px; transform-origin: 95% 50%; }
.arm.right { right: 18px; transform-origin: 5% 50%; animation-delay: .35s; }
.water-ripple { position: absolute; left: 50%; bottom: 24%; width: 120px; height: 30px; transform: translateX(-50%) scale(.6); border-radius: 999px; background: radial-gradient(ellipse at center, rgba(255,255,255,.42) 0%, rgba(255,255,255,.14) 48%, rgba(255,255,255,0) 68%); opacity: 0; z-index: 7; pointer-events: none; }
.water-ripple.show { animation: ripple 1.2s ease-out 1; }
.splash-layer { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.drop { position: absolute; left: 50%; top: 58%; width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.9); opacity: 0; }
.drop.show { animation: dropArc 1.05s ease-out forwards; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; z-index: 12; background: rgba(11,29,43,.22); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.overlay.show { opacity: 1; }
.finish-card { width: min(92%, 560px); text-align: center; color: #fff; background: linear-gradient(180deg, rgba(16,185,129,.92), rgba(59,130,246,.92)); border-radius: 28px; padding: 24px 20px; box-shadow: 0 28px 60px rgba(0,0,0,.24); transform: translateY(20px) scale(.94); opacity: 0; transition: transform .4s ease, opacity .35s ease; }
.overlay.show .finish-card { transform: translateY(0) scale(1); opacity: 1; }
.finish-card .emoji { font-size: 3.5rem; }
.finish-card h2 { margin: 10px 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.04; }
.finish-card p { margin: 0; font-size: 1.06rem; opacity: .96; }

/* Bob wordt steeds ongeduldiger */
.scene[data-state="warning"] { --speed: .7; }
.scene[data-state="warning"] .badge { color: #a16207; }
.scene[data-state="warning"] .boy { animation-duration: 1.8s; }
.scene[data-state="warning"] .arm { animation-duration: 1.4s; }
.scene[data-state="danger"] { --speed: .45; animation: tenseBg 1s ease-in-out infinite; }
.scene[data-state="danger"] .badge { color: #991b1b; }
.scene[data-state="danger"] .boy { animation-duration: .95s; }
.scene[data-state="danger"] .arm { animation-duration: .72s; }
.scene[data-state="danger"] .mouth { width: 24px; height: 24px; top: 62px; border: 4px solid #213547; border-top-color: transparent; border-left-color: transparent; border-right-color: transparent; border-radius: 50%; }
.scene[data-state="exiting"] .boy { animation: none; }
.scene[data-state="exiting"] .boy-inner { animation: climbOut 1.45s cubic-bezier(.2,.8,.15,1) forwards; }
.scene[data-state="exiting"] .arm.left, .scene[data-state="exiting"] .arm.right { animation: waveExit .36s ease-in-out 4 alternate; }
.scene[data-state="done"] .boy { animation: none; }
.scene[data-state="done"] .boy-inner { transform: translate(320px, -285px) scale(.52) rotate(14deg); opacity: 0; }
.scene[data-state="done"] .badge { color: #fff; background: rgba(16,185,129,.9); }

@keyframes bathFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes steam { 0%,100% { transform: translateY(0) scale(1); opacity: .16; } 50% { transform: translateY(-24px) scale(1.18); opacity: .4; } }
@keyframes ducky { 0%,100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-8px); } }
@keyframes waveBack { 0%,100% { transform: translateX(0) translateY(0); } 50% { transform: translateX(-8px) translateY(-4px); } }
@keyframes waveFront { 0%,100% { transform: translateX(0) translateY(0); } 50% { transform: translateX(10px) translateY(4px); } }
@keyframes rise { 0% { transform: translateY(0) translateX(0) scale(.8); opacity: 0; } 15% { opacity: .95; } 85% { opacity: .72; } 100% { transform: translateY(-230px) translateX(var(--drift, 10px)) scale(1.1); opacity: 0; } }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }
@keyframes armWave { 0%,100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(-10deg) translateY(-8px); } }
@keyframes tenseBg { 0%,100% { box-shadow: var(--shadow); } 50% { box-shadow: 0 24px 60px rgba(239,68,68,.28); } }
@keyframes climbOut { 0% { transform: translate(0,0) scale(1) rotate(0deg); opacity: 1; } 22% { transform: translate(0,-58px) scale(1.03) rotate(-3deg); } 52% { transform: translate(96px,-126px) scale(.98) rotate(4deg); } 78% { transform: translate(208px,-204px) scale(.84) rotate(12deg); opacity: 1; } 100% { transform: translate(320px,-285px) scale(.52) rotate(14deg); opacity: 0; } }
@keyframes waveExit { from { transform: rotate(-20deg) translateY(-6px); } to { transform: rotate(18deg) translateY(-16px); } }
@keyframes ripple { 0% { opacity: 0; transform: translateX(-50%) scale(.6); } 10% { opacity: .8; } 100% { opacity: 0; transform: translateX(-50%) scale(2.4); } }
@keyframes dropArc { 0% { opacity: 0; transform: translate(0,0) scale(.5); } 10% { opacity: .95; } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.15); } }

/* Tipblok onder de timer (zelfde opmaak als de tip op de tandenpagina) */
.bath-tip { display: flex; align-items: flex-start; gap: 18px; margin-top: 26px; }
.bath-tip-ico { flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; background: var(--accent-soft); }
.bath-tip-body { min-width: 0; }
.bath-tip h2 { font-size: 1.35rem; margin: 2px 0 10px; }
.bath-tip p { max-width: 820px; margin: 0 0 12px; color: var(--text); line-height: 1.6; }
.bath-tip ul { max-width: 820px; margin: 0 0 14px; padding-left: 1.2em; color: var(--text); line-height: 1.6; }
.bath-tip li + li { margin-top: 4px; }
.bath-tip .btn { text-align: center; margin-top: 4px; }
@media (max-width: 760px) {
  .bath-tip { flex-direction: column; gap: 12px; }
  .bath-tip .btn { display: flex; justify-content: center; width: 100%; }
}

@media (max-width: 980px) { .time-btn { min-height: 170px; } .status-box { width: 50%; } }
@media (max-width: 820px) {
  .choice-grid { grid-template-columns: 1fr; }
  .time-btn { min-height: 130px; }
  .bath-top, .bath-controls { flex-direction: column; align-items: stretch; }
  .status-box, .wake-note { width: 100%; min-width: 0; }
  .scene { height: 440px; }
  .boy { transform: translateX(-50%) scale(.85); transform-origin: bottom center; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .scene * { animation: none !important; }
  .scene[data-state="done"] .boy-inner { transition: none; }
}

/* ---------- Veiligheid, uitleg en veelgestelde vragen ---------- */
.bath-safety { display: flex; align-items: flex-start; gap: 16px; margin-top: 26px; border: 2px solid rgba(245,158,11,.45); background: #fffbeb; }
.bath-safety-ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: rgba(245,158,11,.18); }
.bath-safety h2 { font-size: 1.35rem; margin: 2px 0 8px; }
.bath-safety p, .bath-safety ul { max-width: 820px; margin: 0 0 10px; line-height: 1.6; }
.bath-safety ul { padding-left: 1.2em; }
.bath-safety small { color: var(--muted); }
.bath-safety a, .faq-note a { color: var(--accent); font-weight: 800; }
.bath-info, .bath-faq { margin-top: 38px; }
.bath-info h2, .bath-faq h2 { font-size: 1.6rem; margin-bottom: 12px; }
.bath-info p { max-width: 820px; line-height: 1.7; margin: 0 0 12px; }
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-list details { background: rgba(255,255,255,.84); border: 1px solid rgba(14,165,233,.14); border-radius: var(--radius-lg); padding: 0 20px; box-shadow: var(--shadow); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 18px; color: var(--muted); line-height: 1.7; }
.faq-note { max-width: 820px; margin: 14px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
@media (max-width: 760px) { .bath-safety { flex-direction: column; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .faq-list summary span { transition: none; } }
