/* Respostas curtas: a interface permanece no mesmo lugar durante a leitura. */
@media (prefers-reduced-motion: no-preference) {
  .flow-motion-pending { opacity: 0; transform: translateY(24px) scale(.985); }
  .flow-motion-pending:focus-within { opacity: 1 !important; transform: none !important; }
  :is(.study-path-options, .study-environment-options, .answers, .learning-choices, .study-game-goal-list, .study-game-badges) :is(button, label) {
    transition: border-color 160ms ease, background-color 180ms ease, box-shadow 180ms ease;
  }
  :is(.study-path-options, .study-environment-options) button[aria-pressed="true"] :is(svg, .study-choice-mark),
  .answer.selected .letter, .learning-choices button.is-correct { animation: flow-motion-select 360ms cubic-bezier(.18,.8,.25,1); }
  :is(.study-game-coins, .lesson-outline, .progress-overview, .quiz-shell) progress::-webkit-progress-value {
    transition: width 520ms cubic-bezier(.2,.75,.3,1), background-color 220ms ease;
  }
  :is(.study-game-coins, .lesson-outline, .progress-overview, .quiz-shell) progress::-moz-progress-bar {
    transition: width 520ms cubic-bezier(.2,.75,.3,1), background-color 220ms ease;
  }
  .study-game-route li.is-current > span, .lesson-chapter[open] > summary::before { transition: transform 220ms cubic-bezier(.18,.8,.25,1), color 160ms ease; }
  .lesson-chapter[open] > summary::before { transform: rotate(180deg); }
  .game-companion img { transition: transform 260ms cubic-bezier(.18,.8,.25,1); }
}
.flow-motion-burst { position: fixed; z-index: 58; width: 140px; height: 110px; pointer-events: none; contain: strict; }
.flow-motion-burst i { position: absolute; top: 52px; left: 68px; width: 4px; height: 11px; border-radius: 3px; background: var(--play-sky, #9ac9de); pointer-events: none; }
.flow-motion-burst i:nth-child(3n + 2) { background: var(--play-sun, #e5c47f); }
.flow-motion-burst i:nth-child(3n) { background: var(--play-lilac, #bba9df); width: 6px; height: 6px; border-radius: 50%; }
.flow-motion-burst i:nth-child(4) { background: var(--play-coral, #e9a28d); }
@keyframes flow-motion-select {
  0% { transform: scale(.94); }
  65% { transform: scale(1.07); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .flow-motion-pending { opacity: 1 !important; transform: none !important; }
  .flow-motion-burst { display: none !important; }
  .answer.selected .letter, .learning-choices button.is-correct,
  :is(.study-path-options, .study-environment-options) button[aria-pressed="true"] :is(svg, .study-choice-mark) { animation: none !important; }
}
@media print { .flow-motion-pending { opacity: 1 !important; transform: none !important; } .flow-motion-burst { display: none !important; } }
