/* Authored motion layer. Planner pages do not load the story controller. */
:root {
  --motion-feedback: 120ms;
  --motion-interface: 180ms;
  --motion-settle: cubic-bezier(.22, 1, .36, 1);
}

.story-progress > div {
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
  /* A calm light field stays still; the supplied objects cross between shores. */
  .stage { --scene-center: 50%; }
  .scene-art,
  .chapter { will-change: auto; }
  .art-stage .art-halo,
  .art-stage .orbit,
  .water-rings,
  .scene-fallback { left: 50%; }
  .scene-art { transform-origin: center center; }
  .menu-panel { transform-origin: right top; }
}

@media (prefers-reduced-motion: no-preference) and (min-height: 741px) {
  html[data-danube-motion="active"] .button {
    transition-duration: var(--motion-interface);
    transition-timing-function: var(--motion-settle);
    transition-property: color, background-color, border-color, box-shadow, transform;
  }
  html[data-danube-motion="active"] .button:active:not(:focus-visible) {
    transform: scale(.985);
    transition-duration: var(--motion-feedback);
  }
}

html[data-danube-motion="active"] .button:focus-visible {
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce), (max-width: 720px) and (max-height: 740px) {
  .scene-art,
  .chapter { will-change: auto !important; }
  .button,
  .menu-panel { animation: none !important; transition: none !important; }
  .button:active { transform: none; }
}
