/**
 * ==========================================
 * WEBSITE PRELOADER (Clean Theme-Matching)
 * Matches MG TOURNAMENTS Website Aesthetic
 * ==========================================
 */

#cyberPreloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0e27;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#cyberPreloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Brand Logo Box */
.preloader-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.preloader-brand-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #ff6b35, #ff8555);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.45);
    animation: preloaderPulse 1.8s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 30px rgba(255, 107, 53, 0.45);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(255, 107, 53, 0.7);
    }
}

.preloader-brand-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1.2px;
    background: linear-gradient(135deg, #ffffff 40%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    margin: 0;
}

/* Clean Progress Bar */
.preloader-progress-track {
    width: 200px;
    max-width: 80vw;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.preloader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b35, #00d4ff);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.6);
    transition: width 0.05s linear;
}

/* Status Label */
.preloader-status-text {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.3px;
}
