/*
 * ✨ animations — shared keyframes (design §6.1 motion rules).
 * Only transform / opacity (smooth on cheap phones). Max 3 flashes per second (R4.10).
 * More keyframes (slam, confetti, shake) are added with the tasks that use them (5.2).
 */

@keyframes cs-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

@keyframes cs-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#cshow-live.cs-screen .cs-placeholder .cs-placeholder-dot,
#cshow-stage.cs-screen .cs-placeholder .cs-placeholder-dot {
    display: inline-block;
    animation: cs-pulse 1.2s ease-in-out infinite;
}

/* The public page respects "reduce motion" on the phone */
@media (prefers-reduced-motion: reduce) {
    #cshow-live.cs-screen *,
    #cshow-live.cs-screen *::before,
    #cshow-live.cs-screen *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
