/* shown before any script runs, faded out by main.tsx once fonts and the first page are ready */
#splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #10131d;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 700ms;
}
#splash.out { opacity: 0; visibility: hidden; }
#splash .bag { width: 72px; height: 72px; transform-origin: 50% 20%; animation: sp-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both, sp-swing 2.4s ease-in-out 700ms infinite alternate; }
#splash.out .bag { transform: scale(1.08); transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
#splash .st { animation: sp-tw 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
#splash .st + .st { animation-delay: 0.8s; }
@keyframes sp-in { from { opacity: 0; transform: translateY(10px) scale(0.92); } }
@keyframes sp-swing { from { rotate: -4deg; } to { rotate: 4deg; } }
@keyframes sp-tw { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: 0.35; scale: 0.7; } }
@media (prefers-reduced-motion: reduce) { #splash, #splash * { animation: none !important; transition: none !important; } }
