/**
 * Motion policy - quieter by default; respect reduced-motion globally.
 */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .status-dot,
  .stars,
  .bubbles,
  .glow-orb,
  .mark:before,
  .meter:after,
  .btn.neon,
  .enter-btn,
  .highlight,
  .teaser-text,
  .loading-progress,
  .spinner-ring,
  .chime-dollar-big,
  .chime-big-btn,
  .chime-fixed-btn,
  .chime-fixed-amount {
    animation: none !important;
  }

  video[autoplay] {
    /* JS also pauses; CSS hint for controls UIs */
  }
}

/* Slightly calmer continuous glows when room is not open */
body[data-room-state="closed"] .bubbles,
body[data-room-state="offline"] .bubbles,
body[data-room-state="closed"] .stars,
body[data-room-state="offline"] .stars {
  opacity: 0.22;
}

body[data-room-state="open"] .bubbles,
body[data-room-state="open"] .stars {
  opacity: 0.42;
}
