/* Shared motion for the guided players and their sheets (all 13 routines).
   Strong custom curves instead of the built-in ones, so every player moves the
   same way, and pressed feedback so Start, Pause and each choice feel heard,
   even with eyes half closed. Hover effects stay behind (hover: hover) in each
   player's stylesheet. See .agents/skills/emil-design-eng. */
:root {
  /* Entering, exiting and feedback. */
  --guided-ease-out: cubic-bezier(.23, 1, .32, 1);
  /* Moving or morphing on screen. */
  --guided-ease-in-out: cubic-bezier(.77, 0, .175, 1);
  /* Sheets and panes that slide. */
  --guided-ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --guided-press: 150ms;
}

/* A pressed control scales down a touch, the sheet's close button too. */
:is(.gs-box-player, .box-sheet) :is(button, summary, a.box-primary) {
  transition: transform var(--guided-press) var(--guided-ease-out);
}
:is(.gs-box-player, .box-sheet) :is(button, summary, a.box-primary):not(:disabled):active {
  transform: scale(.96);
}

/* Reduced motion: no movement; a brief dim confirms the press instead. */
@media (prefers-reduced-motion: reduce) {
  :is(.gs-box-player, .box-sheet) :is(button, summary, a.box-primary):not(:disabled):active {
    transform: none;
    opacity: .8;
  }
}
