/* Splash Screen Styles */
.splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.splash-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.splash-image {
    max-width: 90%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 10;
}

.splash-image.active-splash {
    opacity: 1;
    animation: splashFadeIn 1s ease-in-out;
}

.splash-loading {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: #8a2be2;
    font-family: 'SFPixelate', 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    animation: loadingPulse 1.5s infinite ease-in-out;
    display: none; /* Hidden by default since splash is automatic */
}

/* Animations */
@keyframes splashFadeIn {
    0% {
        opacity: 0;
        transform: scale3d(0.8, 0.8, 1);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale3d(1, 1, 1);
    }
    50% {
        opacity: 1;
        transform: scale3d(1.02, 1.02, 1);
    }
}

/* Hide splash by default */
.splash-overlay:not(.active) {
    display: none;
}

.splash-overlay.active {
    display: flex;
}
