/* Motion on the audio clock (build spec update 4 §1.5, task 4.6; brainstorm shortlist #3) — ui/beats.js sets one class
   on the stable .wk-field when a sound becomes audible (registry start + outputLatency); these rules react on the
   elements C2 builds (K8). The -a/-b twins carry identical keyframes under two names, so a repeat restarts without a
   reflow; beats.js removes each class after its one-shot. Transform/opacity only (the individual rotate/scale/translate
   properties, so they compose with any layout transform); never a loop. Off under reduced motion, »Bewegungen zeigen:
   aus«, an open overlay or a hidden page (no class is set then). Update 8a (F61 d, dry-run feedback): the voice-meter
   bars under the timer left; the clap splash stays. */

/* 1 · BELL (sfx.bell1 · bell3 · kampf) — the whole ring shudders once (the rest ensō inside keeps breathing) */
.wk-field.beat-bell-a .dial{animation:shudder-a 450ms ease-out}
.wk-field.beat-bell-b .dial{animation:shudder-b 450ms ease-out}

/* 2 · CLAPPER (sfx.clap) — a faint ink splash blooms behind the ring and the figure (the dial is its own stacking
   context, so z-index -1 stays inside it and the figure's knock outline separates it from the splash) */
.wk-field .dial{isolation:isolate}
.dial>.fx{position:absolute;inset:4%;z-index:-1;opacity:0;pointer-events:none;border-radius:50%;--splash-c:var(--fg);
  background:radial-gradient(closest-side,var(--fg) 0 38%,transparent 72%)}
.dial>.fx.splash{inset:10%;border-radius:0;background:var(--fg)} /* with ink.css's splash mask: a real ink splash */
.wk-field.beat-clap-a .dial>.fx{animation:clap-a 380ms ease-out}
.wk-field.beat-clap-b .dial>.fx{animation:clap-b 380ms ease-out}

/* 3 · COUNT-IN (sfx.count, 3-2-1 before a belled round) — the digits punch (the outer .timer may be beating last10) */
.wk-field .timer>.tv{display:inline-block;transform-origin:50% 62%}
.wk-field.beat-tick-a .timer>.tv{animation:punch-a 300ms cubic-bezier(.3,1.5,.55,1)}
.wk-field.beat-tick-b .timer>.tv{animation:punch-b 300ms cubic-bezier(.3,1.5,.55,1)}

/* 4 · PAD POP (sfx.padPop after each Mario call) — the pose takes the hit */
.wk-field.beat-pop-a .pad-pose{animation:pop-a 220ms ease-out}
.wk-field.beat-pop-b .pad-pose{animation:pop-b 220ms ease-out}

/* 5 · KEYFRAMES */
@keyframes shudder-a{0%,100%{rotate:0deg}22%{rotate:-1.6deg}50%{rotate:1.2deg}76%{rotate:-.6deg}}
@keyframes shudder-b{0%,100%{rotate:0deg}22%{rotate:-1.6deg}50%{rotate:1.2deg}76%{rotate:-.6deg}}
@keyframes clap-a{0%{opacity:0;scale:.6}30%{opacity:.18}100%{opacity:0;scale:1.1}}
@keyframes clap-b{0%{opacity:0;scale:.6}30%{opacity:.18}100%{opacity:0;scale:1.1}}
@keyframes punch-a{0%,100%{scale:1}40%{scale:1.14}}
@keyframes punch-b{0%,100%{scale:1}40%{scale:1.14}}
@keyframes pop-a{0%,100%{scale:1}35%{scale:1.02}70%{scale:.98}}
@keyframes pop-b{0%,100%{scale:1}35%{scale:1.02}70%{scale:.98}}

/* 6 · REDUCED MOTION — the global kill stops the one-shots; the splash layer goes entirely */
@media (prefers-reduced-motion:reduce){
  .dial>.fx{display:none}
}
