/* css/animations/: motion, transitions, hovers, popups and the responsive layer, loaded LAST and purely
   cosmetic. The canvas viewport never gets smooth scroll: zoom/pan set scrollLeft/scrollTop directly. */

@keyframes appReveal      { from { opacity: 0; transform: translateY(8px); }  to { opacity: 1; transform: none; } }
@keyframes overlayFadeIn  { from { opacity: 0; }                              to { opacity: 1; } }
@keyframes modalPop       { from { opacity: 0; transform: translateY(18px) scale(0.965); } to { opacity: 1; transform: none; } }
/* Modal open/close anchored on its opener (ui/modal/flight.js sets the vars; the defaults are modalPop's own).
   Opaque within its first frames, still icon-sized, so you watch it GROW out of the icon rather than first
   seeing it once it is already large. */
@keyframes modalFromIcon  {
    0%   { opacity: 0; transform: translate(var(--modal-dx, 0px), var(--modal-dy, 18px)) scale(var(--modal-sx, 0.05), var(--modal-sy, 0.05)); }
    6%   { opacity: 1; }
    100% { opacity: 1; transform: none; }
}
@keyframes modalToIcon    {
    0%   { opacity: 1; transform: none; }
    70%  { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--modal-dx, 0px), var(--modal-dy, 18px)) scale(var(--modal-sx, 0.05), var(--modal-sy, 0.05)); }
}
@keyframes overlayFadeOut { from { opacity: 1; }                              to { opacity: 0; } }
/* The backdrop alone, its window left opaque inside it: scrim and blur, never the overlay's opacity. */
@keyframes scrimFadeIn    { from { background-color: transparent; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); } }
@keyframes scrimFadeOut   { to   { background-color: transparent; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); } }
@keyframes popIn          { 0% { opacity: 0; transform: scale(0.05) translateY(-6px); } 8% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes menuRise       { from { opacity: 0; transform: translateY(8px); }  to { opacity: 1; transform: none; } }
@keyframes tooltipIn      { from { opacity: 0; transform: translateY(4px); }  to { opacity: 1; transform: none; } }
@keyframes rowPulse       { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes focusPulse     { 0% { box-shadow: 0 0 0 0 rgba(230,184,0,0.5); }   100% { box-shadow: 0 0 0 8px rgba(230,184,0,0); } }
@keyframes spinIn         { from { opacity: 0; transform: rotate(-90deg) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes shimmerSweep   { from { background-position: 200% 0; }              to { background-position: -200% 0; } }
@keyframes spin           { to { transform: rotate(360deg); } }
@keyframes chatZoneNudge  { from { transform: translate(calc(var(--zone-nudge-x, 0px) * -1), calc(var(--zone-nudge-y, 0px) * -1)); } to { transform: translate(var(--zone-nudge-x, 0px), var(--zone-nudge-y, 0px)); } }
.is-loading .ic { animation: spin 0.8s linear infinite; }
