/* Opruimtimer (bouwt voort op site.css) */
body.theme-orange { --accent: #c2410c; --accent-2: #ea580c; --accent-soft: rgba(234,88,12,.10); --accent-glow: rgba(234,88,12,.22); }

/* ---------- Timer-paneel ---------- */
.tidy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "status room" "bar room" "dur room" "prompt room" "controls room"; column-gap: 36px; align-content: center; padding: 30px; }
.tidy-status { grid-area: status; margin-bottom: 14px; }
.tidy > .progress-bar { grid-area: bar; }
.tidy > .dur-group { grid-area: dur; }
.tidy > .prompt { grid-area: prompt; }
.tidy > .controls { grid-area: controls; justify-content: flex-start; }
.tidy-time { font-size: clamp(3.4rem, 11vw, 6rem); }
.tidy-count { font-weight: 800; color: var(--muted); font-size: 1.1rem; margin-top: 4px; min-height: 1.5em; }
.prompt { margin: 20px 0 0; padding: 14px 18px; border-radius: 18px; background: var(--accent-soft); color: var(--text); font-weight: 700; line-height: 1.5; }

/* Keuze 5 / 10 / 15 minuten */
.dur-group { display: flex; gap: 10px; margin-top: 18px; }
.dur-btn { flex: 1; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 6px; font: inherit; color: var(--accent); cursor: pointer; background: var(--accent-soft); border: 2px solid transparent; border-radius: 18px; transition: transform .2s ease, background-color .2s ease; }
.dur-btn .nr { font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.dur-btn .lbl { font-size: .82rem; font-weight: 800; }
.dur-btn:hover:not(:disabled), .dur-btn:focus-visible { transform: translateY(-2px); }
.dur-btn[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); box-shadow: 0 10px 22px var(--accent-glow); }
.dur-btn:disabled { opacity: .55; cursor: not-allowed; }
.dur-btn[aria-pressed="true"]:disabled { opacity: .9; }

/* ---------- Kinderkamer ---------- */
.room {
  --cx: 85%; --cy: 73%;               /* waar het speelgoed heen verdwijnt (de kist) */
  grid-area: room; align-self: center; position: relative; width: 100%; max-width: 600px; margin: 0 auto;
  aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden;
  border: 2px solid rgba(234,88,12,.18);
  background:
    repeating-linear-gradient(90deg, rgba(120,70,20,.10) 0 2px, transparent 2px 64px),
    linear-gradient(180deg, #efd3a2, #dcb577);
  box-shadow: 0 14px 28px rgba(72,48,122,.18);
}
.room.tidy { border-color: rgba(52,211,153,.7); box-shadow: 0 0 0 3px rgba(52,211,153,.25), 0 14px 28px rgba(72,48,122,.18); }
.rug { position: absolute; left: 8%; top: 14%; width: 62%; height: 70%; border-radius: 50%; background: radial-gradient(ellipse at center, #c4b5fd 0 38%, #ddd6fe 39% 62%, #ede9fe 63% 100%); opacity: .7; }

.toy {
  --x: 50%; --y: 50%; --r: 0deg;
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) rotate(var(--r));
  font-size: clamp(1.6rem, 4.4vw, 2.7rem); line-height: 1; user-select: none;
  filter: drop-shadow(0 6px 6px rgba(60,30,0,.28));
  transition: left .9s cubic-bezier(.4,0,.2,1), top .9s cubic-bezier(.6,-.5,.4,1), transform .9s ease-in, opacity .3s ease .6s;
}
.toy.gone { left: var(--cx); top: var(--cy); transform: translate(-50%, -50%) rotate(300deg) scale(.15); opacity: 0; }
.room.noanim .toy, .room.noanim .chest-lid { transition: none; animation: none; }

/* speelgoedkist */
.chest { position: absolute; right: 5%; bottom: 7%; width: 23%; aspect-ratio: 1.15 / 1; filter: drop-shadow(0 10px 12px rgba(60,30,0,.3)); }
.chest-body { position: absolute; left: 0; right: 0; top: 28%; bottom: 0; display: grid; place-items: center; border-radius: 6px 6px 14px 14px; background: linear-gradient(180deg, #cf8a45, #b8722f); box-shadow: inset 0 -7px 0 rgba(0,0,0,.14); }
.chest-body::before { content: ""; position: absolute; left: 0; right: 0; top: 34%; height: 12%; background: rgba(255,255,255,.22); }
.chest-face { position: relative; font-size: clamp(1.2rem, 3.4vw, 2rem); line-height: 1; }
.chest-lid { position: absolute; left: -3%; right: -3%; top: 0; height: 36%; z-index: 2; border-radius: 16px 16px 6px 6px; background: linear-gradient(180deg, #a8642a, #8a4f1f); box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); transform-origin: left bottom; }
.chest.bump .chest-lid { animation: lid .5s ease; }
.chest.bump .chest-body { animation: chest-pop .5s ease; }
@keyframes lid { 0% { transform: rotate(0); } 35% { transform: rotate(-16deg); } 100% { transform: rotate(0); } }
@keyframes chest-pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* glinsteringen als de kamer opgeruimd is */
.sparkles span { position: absolute; left: var(--sx); top: var(--sy); font-size: 1.6rem; opacity: 0; transform: scale(.4); }
.room.tidy .sparkles span { animation: sparkle 1.4s ease-in-out var(--sd) infinite; }
@keyframes sparkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(20deg); } }

/* ---------- Tekst onder de timer ---------- */
.tidy-info, .tidy-ages, .tidy-tips, .brush-faq { margin-top: 38px; }
.tidy-info h2, .tidy-ages h2, .tidy-tips h2, .brush-faq h2 { font-size: 1.6rem; margin-bottom: 12px; }
.tidy-info p { max-width: 820px; color: var(--text); line-height: 1.7; margin: 0; }
.tidy-info a, .faq-note a { color: var(--accent); font-weight: 800; }

.age-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.age-card { padding: 22px; border-radius: var(--radius-lg); background: rgba(255,255,255,.84); border: 1px solid rgba(234,88,12,.12); box-shadow: var(--shadow); }
.age-card h3 { margin: 10px 0 2px; font-size: 1.3rem; }
.age-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.age-card .age-range { color: var(--accent); font-weight: 800; font-size: .92rem; margin-bottom: 8px; }
.age-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--accent-soft); }

.tips-list { max-width: 820px; margin: 0; padding-left: 1.2em; line-height: 1.7; }
.tips-list li + li { margin-top: 6px; }

/* FAQ (zelfde opmaak als de andere pagina's) */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-list details { background: rgba(255,255,255,.84); border: 1px solid rgba(234,88,12,.12); 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; }

/* ---------- Kleine schermen ---------- */
@media (max-width: 900px) { .age-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .tidy { grid-template-columns: 1fr; grid-template-areas: "status" "bar" "dur" "room" "prompt" "controls"; padding: 22px 18px; }
  .tidy .room { margin-top: 18px; }
  .tidy > .controls { justify-content: center; }
}

/* minder beweging: speelgoed verdwijnt zonder reis, kist en glitters blijven rustig */
@media (prefers-reduced-motion: reduce) {
  .toy { transition: opacity .3s ease; }
  .toy.gone { transform: translate(-50%, -50%) scale(.15); }
  .chest.bump .chest-lid, .chest.bump .chest-body, .room.tidy .sparkles span { animation: none; }
  .room.tidy .sparkles span { opacity: 1; transform: none; }
  .faq-list summary span, .dur-btn { transition: none; }
}
