/* Beurtentimer (/beurten/) – bouwt voort op site.css en klas.css */
body.theme-teal { --accent: #0f766e; --accent-2: #14b8a6; --accent-soft: rgba(15,118,110,.09); --accent-glow: rgba(15,118,110,.22); }
.klas-app.beurt-app .klas-topbar { border-bottom-color: var(--accent-soft); }
.beurt-bar-title { font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif; font-size: 1.3rem; color: var(--accent); }

/* speelveld: kleurt mee met wie aan de beurt is */
.klas-visual.beurt-stage { --c: #ea580c; background: color-mix(in srgb, var(--c) 13%, #fff); }
.beurt-who { margin: 0; font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif; font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 800; line-height: 1.1; text-align: center; overflow-wrap: anywhere; }
.beurt-stage .ring-timer { width: min(100%, 340px); }
.beurt-stage .ring-bg { stroke: color-mix(in srgb, var(--c) 18%, #fff); }
.beurt-stage .ring-progress { stroke: var(--c); }
.beurt-animal { font-size: 6.2rem; line-height: 1.1; }
.beurt-stage .klas-time { font-size: 2.8rem; color: var(--text); }
.beurt-stage.is-running .beurt-animal { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-7px) rotate(-4deg); } }
.beurt-next { margin: 0; min-height: 2.6em; display: flex; align-items: center; padding: 6px 18px; border-radius: 999px; font-weight: 800; color: var(--muted); text-align: center; }
.is-soon .beurt-next, [data-phase="wissel"] .beurt-next { background: #fef3c7; color: #92400e; font-size: 1.15rem; }
.klas-visual.beurt-stage[data-phase="wissel"] { background: color-mix(in srgb, var(--c) 28%, #fff); }
.beurt-stage[data-phase="wissel"] .beurt-animal { animation: jump .55s ease-in-out infinite alternate; }
@keyframes jump { to { transform: translateY(-16px) scale(1.12); } }

/* rij spelers met een ster per gespeelde beurt */
.beurt-queue { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.beurt-queue li { flex: 1 1 0; min-width: 78px; max-width: 130px; display: flex; flex-direction: column; align-items: center; padding: 8px 6px; border-radius: 18px; background: #fff; border: 3px solid transparent; }
.beurt-queue li.now { border-color: var(--c); box-shadow: 0 10px 22px rgba(72,48,122,.14); transform: translateY(-4px); }
.q-animal { font-size: 1.9rem; line-height: 1.2; }
.q-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; font-size: .9rem; color: var(--c); }
.q-stars { display: flex; flex-wrap: wrap; justify-content: center; }
.q-stars i { font-style: normal; color: #d1d5db; font-size: .95rem; }
.q-stars i.done { color: #f59e0b; }

/* bediening */
.player-list { display: grid; gap: 8px; }
.player-row { display: flex; gap: 8px; align-items: center; padding: 5px 5px 5px 10px; background: #fff; border-radius: 16px; border: 2px solid var(--accent-soft); border-left: 8px solid var(--c); }
.player-row:focus-within { border-color: var(--c); }
.player-row select { flex: none; width: 66px; height: 46px; border: 0; border-radius: 12px; background: var(--accent-soft); font-size: 1.6rem; text-align: center; cursor: pointer; }
.player-row input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; font: inherit; font-weight: 800; color: var(--text); }
.player-buttons { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
.player-buttons .link-btn { margin: 0; }
#playerFields:disabled { opacity: .55; }
.beurt-fields { grid-template-columns: repeat(2, 1fr); }
.beurt-app .num-field input { border-color: var(--accent-soft); }
.beurt-app .preset:disabled { opacity: .55; cursor: not-allowed; }
.beurt-total { margin: -8px 0 0; text-align: center; color: var(--muted); font-weight: 700; font-size: .92rem; }
.info-card, .faq-list details { border-color: var(--accent-soft); }

.klas-app.beurt-app:fullscreen { display: block; }
.beurt-app:fullscreen .ring-timer { width: min(100%, 50vh); }
.beurt-app:fullscreen .beurt-animal { font-size: 14vh; }

@media (max-width: 760px) {
  .beurt-stage .ring-timer { width: min(78%, 280px); }
  .beurt-animal { font-size: 4.6rem; }
  .beurt-stage .klas-time { font-size: 2.2rem; }
  .klas-topbar .beurt-bar-title { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .beurt-stage .beurt-animal { animation: none !important; } }
