/* ============================================
   LOADING SCREEN - MACOS26 GLASS STYLE
   ============================================ */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    /* Highest priority */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Blurred Background */
.loading-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-image: url('../../images/num5.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    /* Strong blur */
    z-index: -1;
}

/* MacOS26 Liquid Glass Card */
.loading-card {
    position: relative;
    width: 750px;
    /* 2.5x bigger */
    height: 750px;
    /* Squared */
    max-width: 90vw;
    /* Responsive */
    max-height: 90vw;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 60px;
    /* Smooth rounded corners */
    overflow: hidden;
    /* Clip ripple */

    /* Premium Glassmorphism */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Percentage Text */
.loading-percentage {
    font-size: 1.5rem;
    /* 3x smaller (was 4rem) */
    font-weight: 700;
    color: #ffffff;
    z-index: 2;
    position: relative;
    font-family: 'Quicksand', sans-serif;
    /* Google Font */
    transition: color 0.3s ease;
}

.loading-percentage.dark-text {
    color: #232323 !important;
}

/* Ripple Effect */
.loading-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    /* Relative to card size (Responsive) */
    height: 150%;
    /* Relative to card size (Responsive) */
    background-color: #CCA736;
    /* Gold Accent */
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Animation Class for Ripple */
.loading-ripple.active {
    animation: ripple-expand 0.6s ease-out forwards;
}

@keyframes ripple-expand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        /* Cover entire card */
        opacity: 0;
    }
}