/* motion — keyframes and reduced-motion. Durations on toast/banner/pulse must stay within the JS timers (toast<=350ms, banner<=260ms). */
@layer motion {
  @keyframes surge { from { filter: brightness(1); } to { filter: brightness(1.18); } }
  @keyframes ready { from { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 var(--depth) 0 var(--core-edge), 0 0 10px rgba(167, 139, 255, .35); } to { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 var(--depth) 0 var(--core-edge), 0 0 26px rgba(167, 139, 255, .75); } }
  @keyframes flash { from { opacity: .9; } to { opacity: 0; } }
  @keyframes halo { from { opacity: .2; } 60% { opacity: 1; } to { opacity: .5; } }
  @keyframes discover { from { box-shadow: 0 0 0 0 rgba(92, 200, 255, .6); } to { box-shadow: 0 0 0 14px rgba(92, 200, 255, 0); } }
  @keyframes bump { 40% { transform: scale(1.08); } }
  @keyframes pulse { from { box-shadow: inset 0 1px 0 var(--rim), 0 0 0 0 rgba(61, 220, 132, .6); } to { box-shadow: inset 0 1px 0 var(--rim), 0 0 0 14px rgba(61, 220, 132, 0); } }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes breathe { 50% { transform: scale(1.06); filter: brightness(1.1); } }
  @keyframes paneIn { from { opacity: 0; transform: translateY(6px); } }

  .dust-value.bump { animation: bump .34s var(--ease); }
  .card.pulse { animation: pulse .46s var(--ease); }
  .tab-pane.active { animation: paneIn .24s var(--ease); }
  .forge-core .r1 { animation: spin 28s linear infinite; }
  .forge-core .r2 { animation: spin 46s linear infinite reverse; }
  .forge-core .orb { animation: breathe 4.5s ease-in-out infinite; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  }
  [data-motion="reduced"] *, [data-motion="reduced"] *::before, [data-motion="reduced"] *::after { animation: none !important; transition-duration: .01ms !important; }
}
