body {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.87);
    background-color: #000000;
    font-family: "Consolas", "SF Mono", "Menlo", "Courier New", monospace;
}

#app {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.boot-loading-screen {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000000;
    color: #d8d5cf;
    font-family: "Consolas", "SF Mono", "Menlo", "Courier New", monospace;
}

.boot-loading-screen.is-hidden {
    display: none;
}

.boot-loading-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center top, #1c2024 0%, #0e1012 60%, #08090b 100%);
    opacity: 0;
    transition: opacity 240ms ease;
}

.boot-loading-screen.is-revealed::before {
    opacity: 1;
}

.boot-loading-panel {
    position: relative;
    z-index: 1;
    width: min(500px, calc(100vw - 48px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(8px);
    filter: brightness(0.76) saturate(0.86);
    transition:
        opacity 220ms ease,
        transform 220ms ease,
        filter 220ms ease;
}

.boot-loading-screen.is-revealed .boot-loading-panel {
    opacity: 1;
    transform: translateY(0);
    filter: brightness(1) saturate(1);
}

.boot-loading-titlebar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.5rem;
    margin-bottom: -0.5rem;
    border-bottom: 1px solid #2c3236;
}

.boot-loading-accent {
    width: 6px;
    height: 28px;
    background: #c47b3a;
    flex-shrink: 0;
}

.boot-loading-titlebar h1 {
    margin: 0;
    color: #d8d5cf;
    font-family: "Impact", "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.35em;
}

.boot-loading-progress {
    width: 100%;
    height: 22px;
    overflow: hidden;
    border: 1px solid #454c52;
    border-radius: 2px;
    background: #0a0c0e;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.6);
}

.boot-loading-progress-fill {
    position: relative;
    overflow: hidden;
    width: 8%;
    height: 100%;
    background: linear-gradient(90deg, #c47b3a 0%, #e8a55a 100%);
    box-shadow: 0 0 12px rgba(196, 123, 58, 0.5);
    transition: width 0.3s ease;
}

.boot-loading-progress-fill::after,
.loadout-loading-progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            115deg,
            rgba(255, 238, 196, 0.00) 0,
            rgba(255, 238, 196, 0.00) 10px,
            rgba(255, 238, 196, 0.32) 10px,
            rgba(255, 238, 196, 0.32) 18px
        );
    background-size: 56px 100%;
    mix-blend-mode: screen;
    opacity: 0.46;
    animation: loadout-loading-stripes 920ms linear infinite;
}

.boot-loading-percent {
    color: #e8a55a;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    margin-top: 0.25rem;
}

.boot-loading-status {
    color: #5d5a55;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: -0.5rem;
}

.boot-loading-activity,
.loadout-loading-activity {
    width: min(220px, 60%);
    height: 10px;
    display: flex;
    gap: 6px;
    align-items: stretch;
    justify-content: center;
    margin-top: -0.35rem;
}

.boot-loading-activity span,
.loadout-loading-activity span {
    flex: 1;
    border: 1px solid #454c52;
    background: #0a0c0e;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.6);
    animation: loadout-loading-segment 1.2s ease-in-out infinite;
}

.boot-loading-activity span:nth-child(2),
.loadout-loading-activity span:nth-child(2) {
    animation-delay: 120ms;
}

.boot-loading-activity span:nth-child(3),
.loadout-loading-activity span:nth-child(3) {
    animation-delay: 240ms;
}

.boot-loading-activity span:nth-child(4),
.loadout-loading-activity span:nth-child(4) {
    animation-delay: 360ms;
}

.boot-loading-activity span:nth-child(5),
.loadout-loading-activity span:nth-child(5) {
    animation-delay: 480ms;
}

.boot-loading-activity span:nth-child(6),
.loadout-loading-activity span:nth-child(6) {
    animation-delay: 600ms;
}

.boot-loading-tip,
.loadout-loading-tip {
    width: 100%;
    min-height: 2.8em;
    color: #8a8680;
    font-size: 0.75rem;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.loadout-loading-progress-fill {
    position: relative;
    overflow: hidden;
}

@keyframes loadout-loading-stripes {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 56px 0;
    }
}

@keyframes loadout-loading-segment {
    0%,
    100% {
        background: #0a0c0e;
        box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.6);
        opacity: 0.55;
    }

    35% {
        background: #c47b3a;
        box-shadow:
            inset 0 1px 0 rgba(255, 238, 196, 0.2),
            0 0 12px rgba(196, 123, 58, 0.45);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .boot-loading-progress-fill::after,
    .loadout-loading-progress-fill::after,
    .boot-loading-activity span,
    .loadout-loading-activity span {
        animation: none;
    }
}
