/* ==============================================
   AULAQUEST — SIMULATION LOADER V2
   ============================================== */

#aq-sim-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.14), transparent 35%),
        linear-gradient(180deg, #05070c 0%, #090d14 45%, #05070c 100%);
    color: #fff;
    font-family: Inter, system-ui, sans-serif;
    opacity: 1;
    visibility: visible;
    transition: opacity .55s ease, visibility .55s ease;
}

#aq-sim-loader.aq-loader-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.aq-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: min(100%, 420px);
    padding: 34px 28px 28px;
    border-radius: 26px;
    background: rgba(10, 15, 24, 0.82);
    border: 1px solid rgba(96, 165, 250, 0.16);
    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255,255,255,0.02) inset;
    backdrop-filter: blur(10px);
}

.aq-loader-logo-wrap {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin-bottom: 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 35%, rgba(96,165,250,0.22), rgba(96,165,250,0.05) 60%, transparent 100%);
    box-shadow:
        0 0 45px rgba(59,130,246,0.16),
        0 10px 30px rgba(0,0,0,0.25);
}

.aq-loader-logo {
    display: block;
    width: 84px;
    height: 84px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.22));
}

.aq-loader-brand {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 6vw, 40px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1.4px;
}

.aq-loader-subtitle {
    margin: 10px 0 28px;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #9db4d9;
}

.aq-loader-progress {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.35);
}

.aq-loader-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 35%, #3b82f6 70%, #60a5fa 100%);
    box-shadow:
        0 0 16px rgba(59,130,246,0.35),
        0 0 24px rgba(37,99,235,0.18);
    transition: width .14s ease-out;
}

.aq-loader-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 14px;
    gap: 12px;
    font-size: 12px;
    color: #9fb4d3;
}

#aq-loader-percent {
    color: #dbeafe;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .aq-loader-inner {
        width: min(100%, 360px);
        padding: 28px 20px 22px;
        border-radius: 22px;
    }

    .aq-loader-logo-wrap {
        width: 96px;
        height: 96px;
        margin-bottom: 18px;
        border-radius: 24px;
    }

    .aq-loader-logo {
        width: 72px;
        height: 72px;
    }

    .aq-loader-subtitle {
        margin: 10px 0 24px;
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .aq-loader-bottom {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #aq-sim-loader,
    .aq-loader-fill {
        transition: none;
    }
}