/* Critical shell styles loaded before the main interface is hydrated. */
body {
    background: #010204 !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#nexus-bootloader {
    position: fixed;
    inset: 0;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    overflow: hidden;
    padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
             max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    background:
        radial-gradient(circle at 50% 44%, rgba(0, 229, 255, 0.12), transparent 33%),
        radial-gradient(circle at 12% 88%, rgba(0, 255, 128, 0.05), transparent 29%),
        radial-gradient(circle at 88% 88%, rgba(255, 65, 45, 0.05), transparent 29%),
        #010204;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    color: #00f3ff;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.8s ease;
}

#nexus-bootloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.boot-shell {
    position: relative;
    width: min(86vw, 360px);
    box-sizing: border-box;
    padding: clamp(28px, 6vh, 48px) clamp(22px, 6vw, 34px) 26px;
    border: 1px solid rgba(0, 229, 255, 0.22);
    background: linear-gradient(145deg, rgba(7, 16, 24, 0.92), rgba(1, 4, 8, 0.97));
    clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
    text-align: center;
}

.boot-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.boot-sigil {
    width: clamp(82px, 22vw, 112px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    color: #f7fbff;
}

.boot-sigil-mark {
    font: 900 clamp(42px, 12vw, 58px)/1 sans-serif;
}

.boot-wordmark {
    display: flex;
    justify-content: center;
    gap: 0.34em;
    font: 900 clamp(21px, 6vw, 28px)/1 sans-serif;
    letter-spacing: 0.14em;
}

.boot-wordmark-intra {
    color: #f7fbff;
}

.boot-wordmark strong {
    color: #00e5ff;
}

.boot-protocol {
    margin-top: 9px;
    color: #617085;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.28em;
}

.nexus-progress-container {
    width: 100%;
    height: 8px;
    margin-top: 34px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00c8ff, #00f3ff 68%, #33ff99);
    width: 4%;
    transition: width 0.3s ease;
}

.loader-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 13px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.game-hud-layer {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-hud-layer.visible {
    opacity: 1;
    pointer-events: auto;
}

#game-stage {
    background: #000;
}
