/* Hiệu ứng bổ trợ, giữ nguyên lớp và ID của giao diện hiện có. */
@media (prefers-reduced-motion: no-preference) {
  .screen.motion-screen-enter { animation: screen-appear .38s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes screen-appear { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
  #screen-study .fc-card { transition: transform .52s cubic-bezier(.2,.8,.2,1); }
  #screen-study .fc-scene { transition: filter .2s ease; }
  #screen-study .fc-scene:hover { filter: drop-shadow(0 14px 18px rgba(20,32,20,.12)); }
  #screen-study .fc-scene:active { filter: drop-shadow(0 5px 8px rgba(20,32,20,.13)); }
  #screen-study .fc-scene.assess-out-1 { animation: card-out-left .27s ease-in forwards; }
  #screen-study .fc-scene.assess-out-2 { animation: card-out-down .27s ease-in forwards; }
  #screen-study .fc-scene.assess-out-3 { animation: card-out-right .27s ease-in forwards; }
  @keyframes card-out-left { to { opacity: 0; transform: translate3d(-75px,0,0) rotate(-4deg) scale(.96); } }
  @keyframes card-out-down { to { opacity: 0; transform: translate3d(0,55px,0) scale(.96); } }
  @keyframes card-out-right { to { opacity: 0; transform: translate3d(75px,0,0) rotate(4deg) scale(.96); } }
  #screen-study .card-progress-fill { transition: width .45s cubic-bezier(.2,.8,.2,1); }
  .streak-badge.motion-pop { animation: badge-pop .48s cubic-bezier(.18,1.5,.3,1); }
  .streak-badge.motion-pop::after { content: '✦'; position: absolute; top: -12px; right: -7px; color: #ffbd55; pointer-events: none; animation: streak-spark .55s ease-out forwards; }
  @keyframes streak-spark { from { opacity: 1; transform: scale(.4) rotate(-20deg); } to { opacity: 0; transform: translate3d(8px,-14px,0) scale(1.4) rotate(35deg); } }
  @keyframes badge-pop { 50% { transform: scale(1.18); filter: brightness(1.2); } }
  .timer-display-box.motion-running .timer-digits { animation: timer-breathe 2s ease-in-out infinite; }
  @keyframes timer-breathe { 50% { opacity: .72; } }
  .modal-overlay.open > .modal-card, .app-modal[style*="display: block"] .modal-content { animation: screen-appear .25s ease both; }
  .toast-notice.show { animation: toast-enter .28s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes toast-enter { from { opacity: 0; transform: translate3d(-50%, -14px, 0); } to { opacity: 1; transform: translate3d(-50%, 0, 0); } }
  .btn:not(:disabled):hover, .btn-assess:not(:disabled):hover, .btn-deck-tool:not(:disabled):hover { transform: scale(1.02); }
  .btn:not(:disabled):active, .btn-assess:not(:disabled):active, .btn-deck-tool:not(:disabled):active { transform: scale(.98); }
}
button { position: relative; overflow: hidden; }
.motion-ripple { position: absolute; z-index: 3; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .12; transform: translate(-50%, -50%) scale(0); animation: motion-ripple .38s ease-out forwards; }
@keyframes motion-ripple { to { opacity: 0; transform: translate(-50%, -50%) scale(12); } }
.timer-display-box.motion-urgent .timer-digits { color: #d94d42; }
button:focus-visible,
a:focus-visible,
select:focus-visible,
[tabindex]:focus-visible { outline: 3px solid #81b65b; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .motion-ripple { display: none; }
}
