/* Splash Screen */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

body fuse-splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: fixed;
    inset: 0;
    background: #f8fafc;
    z-index: 999999;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 400ms ease, visibility 400ms;
}

body fuse-splash-screen img {
    width: 240px;
    max-width: 70vw;
    height: auto;
}

body fuse-splash-screen .spinner {
    width: 28px;
    height: 28px;
    border: 2.5px solid #e2e8f0;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

body:not(.fuse-splash-screen-hidden) {
    overflow: hidden;
}

body.fuse-splash-screen-hidden fuse-splash-screen {
    visibility: hidden;
    opacity: 0;
}

@media (max-width: 640px) {
    body fuse-splash-screen img {
        width: 180px;
    }
}
