/**
 * Pre-Angular boot splash styles (spinner only — no visible label).
 *
 * Link early in index.html (before the app bundle), e.g.:
 *   <link rel="stylesheet" href="/boot-splash.css" />
 *
 * Markup inside <app-root> (replaced when Angular boots):
 *
 *   <div class="hn-boot" role="status" aria-live="polite" aria-busy="true" aria-label="Loading">
 *     <div class="hn-boot__spinner" aria-hidden="true"></div>
 *   </div>
 *
 * After Angular starts, use <hn-boot-splash /> for the post-bootstrap overlay.
 *
 * Override colors with CSS variables:
 *   --hn-boot-splash-bg
 *   --hn-boot-splash-fg
 *   --hn-boot-splash-accent
 */

html,
body {
    height: 100%;
    margin: 0;
}

body {
    background: var(--hn-boot-splash-bg, #252b36);
}

app-root:empty,
.hn-boot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--hn-boot-splash-bg, #252b36);
    color: var(--hn-boot-splash-fg, rgba(255, 255, 255, 0.72));
}

.hn-boot__spinner {
    box-sizing: border-box;
    width: 2.5rem;
    height: 2.5rem;
    border: 0.2rem solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--hn-boot-splash-accent, #0d6efd);
    border-radius: 50%;
    animation: hn-boot-spin 0.7s linear infinite;
}

@keyframes hn-boot-spin {
    to {
        transform: rotate(360deg);
    }
}
