/* ============================================
   PlayMixGames - Universal Page Loader
   Appears instantly — no JS needed to show.
   Hides via JS once window.onload fires.
   ============================================ */

#pmg-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a0a1a;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#pmg-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Logo / Title */
#pmg-loader .pmg-brand {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #4facfe;
    text-transform: uppercase;
    margin-bottom: 32px;
    text-shadow: 0 0 20px rgba(79, 172, 254, 0.6);
    animation: pmgPulse 1.8s ease-in-out infinite;
}

/* Spinner ring */
.pmg-spinner {
    width: 56px;
    height: 56px;
    border: 5px solid rgba(79, 172, 254, 0.15);
    border-top-color: #4facfe;
    border-radius: 50%;
    animation: pmgSpin 0.85s linear infinite;
    margin-bottom: 24px;
}

/* Progress bar */
.pmg-bar-track {
    width: 180px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.pmg-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 99px;
    animation: pmgFill 2.5s ease-out forwards;
}

/* Tip text */
.pmg-tip {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 16px;
    letter-spacing: 0.5px;
}

/* Keyframes */
@keyframes pmgSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pmgPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes pmgFill {
    0% {
        width: 0%;
    }

    60% {
        width: 75%;
    }

    100% {
        width: 95%;
    }

    /* never quite hits 100 — jumps to 100 on load */
}