/* Animations (animations/*.html): the dark stage and its controls. Plan: docs/ANIMATIONS_PLAN.md */
.anim-stage { position: relative; margin: 16px 0 10px; aspect-ratio: 16 / 9; background: #04060d;
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28); }
.anim-view { position: relative; width: 100%; height: 100%; }
.anim-stage canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.anim-hint { position: absolute; left: 10px; top: 10px; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.1); color: #dfe6ff; border: 1px solid rgba(255, 255, 255, 0.22); pointer-events: none;
  animation: anim-hint-pulse 2.4s ease-in-out infinite; }
.anim-hint[hidden] { display: none; }
@keyframes anim-hint-pulse { 50% { background: rgba(143, 184, 255, 0.25); } }
.anim-stage:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; margin: 0; border-radius: 0; }
.anim-ctrl { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
/* phones: a 4:5 picture with the buttons in a row underneath it, not over it */
@media (max-width: 600px) {
  .anim-stage { aspect-ratio: auto; display: flex; flex-direction: column; }
  .anim-view { aspect-ratio: 4 / 5; height: auto; }
  .anim-stage:fullscreen .anim-view { aspect-ratio: auto; flex: 1; min-height: 0; }
  .anim-hint { top: auto; bottom: 22px; }
  .anim-stage .anim-ctrl { position: static; flex-wrap: wrap; justify-content: center; gap: 5px; padding: 8px 4px 10px; }
  .anim-stage .anim-ctrl button { padding: 5px 9px; }
}
.anim-ctrl button { background: rgba(255, 255, 255, 0.08); color: #dfe6ff; border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 0.8rem; line-height: 1.2; cursor: pointer; }
.anim-ctrl button:hover { background: rgba(255, 255, 255, 0.16); }
.anim-ctrl button:focus-visible { outline: 2px solid #8fb8ff; outline-offset: 2px; }
.anim-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: rgba(143, 184, 255, 0.55);
  transform-origin: left center; transform: scaleX(0); pointer-events: none; }
/* the scrubber: a see-through range input over the progress bar, with a round handle */
.anim-scrub { position: absolute; left: 0; bottom: 0; width: 100%; height: 16px; margin: 0; padding: 0;
  background: transparent; border: 0; border-radius: 0; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: none; }
.anim-scrub::-webkit-slider-runnable-track { height: 16px; background: transparent; }
.anim-scrub::-moz-range-track { height: 16px; background: transparent; }
.anim-scrub::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; margin-top: 4px;
  border-radius: 50%; background: #8fb8ff; border: 0; box-shadow: 0 0 6px rgba(143, 184, 255, 0.8); opacity: 0.75; }
.anim-scrub::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #8fb8ff; border: 0;
  box-shadow: 0 0 6px rgba(143, 184, 255, 0.8); opacity: 0.75; }
.anim-view:hover .anim-scrub::-webkit-slider-thumb, .anim-scrub:focus-visible::-webkit-slider-thumb { opacity: 1; width: 14px; height: 14px; margin-top: 3px; }
.anim-view:hover .anim-scrub::-moz-range-thumb, .anim-scrub:focus-visible::-moz-range-thumb { opacity: 1; width: 14px; height: 14px; }
.anim-scrub:focus { outline: none; }
.anim-scrub:focus-visible::-webkit-slider-thumb { outline: 2px solid #fff; }
.anim-scrub:focus-visible::-moz-range-thumb { outline: 2px solid #fff; }
.anim-credit { font-size: 0.82rem; color: var(--muted); margin: 4px 0 0; }
.anim-shows { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 16px 10px; margin: 18px 0; }
.anim-shows ol { padding-left: 1.3em; }
.anim-shows li { margin: 4px 0; }