/* Splash screen. Plain CSS only, so it looks right before Tailwind and the fonts have loaded. */
html:not(.ready) { background: #2563eb; }
/* Splash screen: plain CSS only, so it looks right even before Tailwind and the fonts have loaded. */
#splash { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; text-align: center; color: #fff; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: radial-gradient(120% 80% at 50% 28%, #4f46e5 0%, #2f3fe0 45%, #1d2bd6 100%); transition: opacity 0.5s ease, visibility 0.5s; }
#splash.sp-hide { opacity: 0; visibility: hidden; pointer-events: none; }
#splash .sp-logo { width: 128px; height: 128px; border-radius: 32px; overflow: hidden; box-shadow: 0 20px 56px rgba(10, 8, 80, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.28); animation: spPop 0.7s cubic-bezier(0.16, 1, 0.3, 1) both, spFloat 2.8s ease-in-out 0.7s infinite; }
#splash .sp-logo img { width: 100%; height: 100%; display: block; }
#splash .sp-name { font-weight: 800; font-size: 22px; letter-spacing: 0.18em; text-shadow: 0 2px 10px rgba(10, 8, 80, 0.35); animation: spFade 0.6s ease 0.25s both; }
#splash .sp-bar { width: 150px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, 0.28); overflow: hidden; animation: spFade 0.6s ease 0.35s both; }
#splash .sp-bar span { display: block; width: 42%; height: 100%; border-radius: 9px; background: #fff; animation: spSlide 1.1s ease-in-out infinite; }
#splash .sp-err { display: none; flex-direction: column; align-items: center; gap: 12px; max-width: 280px; font-size: 14px; line-height: 1.45; font-weight: 600; }
#splash.sp-fail .sp-err { display: flex; }
#splash.sp-fail .sp-bar { display: none; }
#splash .sp-err button { border: 0; border-radius: 999px; padding: 12px 26px; font-size: 14px; font-weight: 800; color: #2f3fe0; background: #fff; box-shadow: 0 8px 24px rgba(10, 8, 80, 0.35); }
@keyframes spPop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
@keyframes spFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes spFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
/* Hold the page entrance animations until the splash has gone, so they are actually seen. */
html:not(.ready) body > :not(#splash), html:not(.ready) body > :not(#splash) *, html:not(.ready) body > :not(#splash) *::before, html:not(.ready) body > :not(#splash) *::after { animation-play-state: paused !important; }
