/* Container */
#logo-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(1200px 800px at 50% 50%, #111 0%, #000 60%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Canvas covers all */
#splash-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Logo block */
.splash-center {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 28px;
    border-radius: 18px;
    backdrop-filter: blur(4px);
}

.splash-logo {
    width: min(70vw, 420px);
    height: auto;
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, .12)) drop-shadow(0 0 28px rgba(227, 6, 19, .18));
    animation: logoPop .9s ease-out both, logoGlow 3s ease-in-out infinite alternate;
    will-change: transform, filter, opacity;
}

@keyframes logoPop {
    0% {
        transform: scale(.86);
        opacity: 0
    }

    60% {
        transform: scale(1.04);
        opacity: 1
    }

    100% {
        transform: scale(1)
    }
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, .12)) drop-shadow(0 0 16px rgba(227, 6, 19, .22));
    }

    to {
        filter: drop-shadow(0 0 18px rgba(255, 255, 255, .22)) drop-shadow(0 0 30px rgba(0, 200, 120, .25));
    }
}

/* Fade-out animation when finished */
.splash-hide {
    animation: splashFade .6s ease forwards;
}

@keyframes splashFade {
    to {
        opacity: 0;
        transform: scale(1.02);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .splash-logo {
        animation: none
    }
}

/* Prevent body scroll while splash visible (optional helper) */
body.splash-lock {
    overflow: hidden
}