/* ============================================
   GAME-STYLE LOADING SCREEN
   ============================================ */

#game-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#game-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Loader Content Container */
.loader-content {
    text-align: center;
    max-width: 400px;
    width: 90%;
}

/* Mascot Animation */
.loader-mascot {
    width: 120px;
    height: auto;
    margin-bottom: 32px;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Loading Text */
.loader-text {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 24px;
    min-height: 40px;
    /* Prevent layout shift */
    transition: opacity 0.3s ease;
}

/* Progress Bar Container */
.progress-container {
    width: 100%;
    height: 16px;
    background: var(--gray-100);
    border-radius: 20px;
    border: 3px solid var(--gray-200);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Progress Bar Fill */
.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--green-primary) 0%, var(--green-light) 100%);
    border-radius: 10px;
    transition: width 0.1s linear;
    position: relative;
}

/* Shine Effect on Bar */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0) 25%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 75%);
    background-size: 20px 20px;
}

/* Percentage Text */
.loader-percentage {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
}