/* ═══════════════════════════════════════════════════════════
   DevDrill — Loading Screen
   static/css/base/loading-screen.css
   Uses project CSS variables — works in light + dark mode.
   ═══════════════════════════════════════════════════════════ */

/* ── WRAPPER ─────────────────────────────────────────────── */
#loading-screen.dd-loading-screen {
    position: fixed !important;
    inset: 0 !important;
    background: var(--background) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 40px;
    z-index: 99999 !important;
    overflow: hidden;
}

#loading-screen.dd-loading-screen.hidden {
    display: none !important;
}

/* ── BOLT SVG STAGE ──────────────────────────────────────── */
.ls-bolt-stage {
    position: relative;
    width: 72px;
    height: 116px;
    flex-shrink: 0;
}

.ls-bolt-svg {
    display: block;
    width: 72px;
    height: 116px;
    overflow: visible;
}

/* ── TEXT ────────────────────────────────────────────────── */
.ls-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ls-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-dark);
    line-height: 1;
}

.ls-brand-accent {
    color: var(--primary-blue);
}

.ls-status {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
    min-height: 1em;
    transition: opacity 0.2s ease;
}

.ls-status.ls-out {
    opacity: 0;
}

.ls-counter {
    font-family: 'Space Mono', monospace;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    letter-spacing: -0.02em;
}

.ls-counter sup {
    font-size: 0.85rem;
    vertical-align: super;
    opacity: 0.45;
    font-weight: 400;
    letter-spacing: 0;
}

/* ── PROGRESS TRACK ──────────────────────────────────────── */
.ls-track {
    width: 156px;
    height: 1px;
    background: var(--border);
    position: relative;
}

.ls-track-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: var(--primary-blue);
}

/* ── BUBBLE RISE ─────────────────────────────────────────── */
@keyframes lsBubRise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.75);
    }

    18% {
        opacity: 0.55;
    }

    100% {
        opacity: 0;
        transform: translateY(var(--rise)) scale(1.1);
    }
}

/* ── DONE PULSE ──────────────────────────────────────────── */
@keyframes lsDonePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

/* ── ACCESSIBILITY ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}