/* LOADER */
#loader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-box {
    text-align: center;
    width: min(320px, calc(100vw - 48px));
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

.loader-text {
    margin-top: 15px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

#load-percent {
    display: block;
    margin-top: 8px;
    color: var(--neon-blue);
}

.loader-progress {
    margin: 14px auto 0;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#loader-progress-bar {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    box-shadow: 0 0 14px rgba(0, 247, 255, 0.55);
    transition: width 0.2s linear;
}

/* KEYFRAMES */
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .spinner,
    .cursor,
    .pulse {
        animation: none !important;
    }

    #loader {
        transition: none !important;
    }
}