/* Motion (Max 2026-10-27): things that come in ease out, things that leave ease in, controls move on a
   spring with a slight overshoot, nothing linear. Every page loads this file first; every animation and
   transition in public/ names one of these curves (test/motion.test.js). Timing: springs settle in 200-400 ms, entrances
   take 300-500 ms, exits about two thirds of their entrance; progress fills ease out. */
:root{
  --m-in:cubic-bezier(.16,1,.3,1);         /* entrance: fast start, soft landing */
  --m-out:cubic-bezier(.7,0,.84,0);        /* exit: soft start, quick finish */
  --m-spring:cubic-bezier(.34,1.36,.64,1); /* interface: about 4% past the mark, then back */
  --m-loop:cubic-bezier(.37,0,.63,1);      /* repeating loops (spinners, shimmer, pulses): soft at both ends */
}
/* on its way out (a message, a dialog): the page's leave() adds .sk-leave, then hides or removes it.
   !important: it has to win over the element's own entrance animation. */
.sk-leave{ animation:sk-leave 220ms var(--m-out) forwards !important; pointer-events:none; }
@keyframes sk-leave{ to{ opacity:0; translate:0 6px; } }
@media (prefers-reduced-motion:reduce){ .sk-leave{ animation-duration:1ms !important; } }
/* Shared helpers so every page moves the same way.
   .sk-in: something arriving (a screen, a card, a list row) fades up 8 px. Give list items style="--i:N" (0, 1, 2 ...)
   for a short stagger; it stops growing after 8 items so long lists never wait.
   .sk-press: a control dips a little while pressed and springs back. */
@keyframes sk-in{ from{ opacity:0; translate:0 8px; } }
@keyframes sk-fade{ from{ opacity:0; } }
.sk-in{ animation:sk-in 380ms var(--m-in) both; animation-delay:calc(min(var(--i, 0), 8) * 45ms); }
.sk-press{ transition:scale 260ms var(--m-spring); }
.sk-press:active{ scale:.97; }
@media (prefers-reduced-motion:reduce){
  .sk-in{ animation:sk-fade 200ms var(--m-in) both; animation-delay:0s; }
  .sk-press:active{ scale:1; }
}
