/* ============================================
   Aura Chess — Global Site Loader
   ============================================ */

/* Full-screen overlay */
#aura-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0b0f14;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

/* ── Spinning ring ── */
.loader-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.03);
    border-left-color: #6d28d9; /* Deep Purple */
    border-right-color: #0891b2; /* Deep Cyan */
    animation: loaderSpin 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ── Brand text ── */
.loader-brand {
    margin-top: 45px;
    font-family: 'Montserrat', 'Cairo', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 12px;
    /* 7.6:1 against the loader background (#0b0f14). */
    color: #c4b5fd;
    text-transform: uppercase;
    margin-right: -12px; /* Compensate for letter-spacing to truly center */
}

/* ── Sub-text dots ── */
.loader-dots {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.loader-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0e7490; /* Muted cyan */
    opacity: 0.2;
    animation: loaderDot 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

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

@keyframes loaderDot {
    0%, 80%, 100% { opacity: 0.2; transform: scale(1); }
    40%           { opacity: 0.7; transform: scale(1.2); }
}
