/* One short response per action; dice and movement pacing remain in the game. */
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: window-arrive 340ms cubic-bezier(.2,.7,.25,1) both; }
  dialog[open]::backdrop { animation: veil-arrive 220ms ease-out both; }
  .all-rounds .journey-ring {
    animation: circle-arrive 520ms cubic-bezier(.2,.7,.25,1) both;
    transform-origin: center;
  }
  [data-stage="1"] .journey-ring { animation-delay: 55ms; }
  [data-stage="2"] .journey-ring { animation-delay: 110ms; }
  [data-stage="3"] .journey-ring { animation-delay: 165ms; }
  [data-stage="4"] .journey-ring { animation-delay: 220ms; }
  [data-stage="5"] .journey-ring { animation-delay: 275ms; }
  .stage-map > .journey-ring { animation: circle-arrive 420ms ease-out both; }
  .route-links { animation: veil-arrive 420ms ease-out 140ms both; }
  .page:not([hidden]) { animation: scene-arrive 260ms ease-out both; }
  .ritual-help-text:not([hidden]) { animation: scene-arrive 230ms ease-out both; }
  .loading-scene:not([hidden]) { animation-duration: 380ms; }
}

@keyframes window-arrive {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes circle-arrive {
  from { opacity: 0; transform: translateY(10px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes scene-arrive {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes veil-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .rules-grid > article { animation: scene-arrive 330ms ease-out both; }
  .rules-grid > article:nth-child(2) { animation-delay: 45ms; }
  .rules-grid > article:nth-child(3) { animation-delay: 90ms; }
  .mode-option { animation: scene-arrive 300ms ease-out both; }
  .mode-option:nth-child(2) { animation-delay: 75ms; }
  #authorDialog .hero { animation: scene-arrive 420ms ease-out both; }
  .journal-stage, .archive-row { animation: scene-arrive 300ms ease-out both; }
  .game-actions:has(#requestBox:not([hidden])) { animation: scene-arrive 350ms ease-out both; }
}
@media (prefers-reduced-motion: reduce) {
  .primary:hover, .primary:active, .ritual-save:hover, .ritual-save:active,
  #authorDialog .btn:hover, #authorDialog .btn:active, .mode-option:hover { transform: none; }
}
