/* Mute: motion for the design system (mute.css). Every @keyframes has an m-
   prefix; mute.css says where each runs. Nothing loops forever. ONE
   prefers-reduced-motion block at the end stops everything (the burn still
   ends on ash). tests/motion-css.test.js pins these rules. */
@keyframes m-enter { from { opacity: 0; } }
@keyframes m-dlg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes m-sheet-in { from { transform: translateY(100%); } }
@keyframes m-drawer-in { from { transform: translateX(100%); } }
@keyframes m-msg-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes m-ping { 0% { transform: scale(.6); opacity: .8; } 70%, 100% { transform: scale(1.8); opacity: 0; } }
@keyframes m-drift { to { transform: translate(7%, -5%) rotate(10deg); } }
@keyframes m-burn {
  0% { color: var(--live); }
  35% { color: var(--ember-fill); text-shadow: 0 0 18px var(--ember-soft); }
  100% { color: var(--muted); text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  /* Design system: no rings, no sliding sheets or dialogs, no drift or burn sweep. */
  .dot.pulse::after,
  .preview::before,
  .vtile::before { animation: none !important; }
  .dot.pulse::after { display: none; }
  .dlg[open],
  .dlg.sheet[open],
  .drawer[open],
  .msg { animation: none !important; }
  /* The burn is NOT removed: the rule above makes it instant, and "forwards"
     keeps its end state, so a burned link still ends on ash. */
  .ticket.burning .code { color: var(--muted); }
}

