/* ============================================================
   Boot splash — shown while the Blazor WASM runtime downloads
   and initializes, before any component renders. Pure CSS so it
   paints immediately. Blazor replaces #app's contents on boot,
   so the splash self-clears with no teardown code.

   Uses design tokens from design-tokens.css (plain CSS linked
   ahead of this file, so the --color-* tokens are available
   pre-boot). Keep this file dependency-free of scoped/app CSS.
   ============================================================ */

.app-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-5);
    height: 100vh;
    width: 100vw;
    background-color: var(--color-background);
}

.app-loading__spinner {
    position: relative;
    width: 6rem;
    height: 6rem;
}

.app-loading__mark {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 3.25rem;
    height: 3.25rem;
}

.app-loading__ring {
    position: absolute;
    inset: 0;
    border: 0.25rem solid var(--color-border);
    border-top-color: var(--color-medium-blue);
    border-radius: var(--radius-full);
    animation: app-loading-spin 0.9s linear infinite;
}

.app-loading__name {
    font-family: var(--font-sans);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
    color: var(--color-primary);
}

@keyframes app-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-loading__ring {
        animation-duration: 2.4s;
    }
}
