.scene {
    width: 100%;
    height: 100dvh;
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: var(--z-onload);
}

.scene.onload {
    display: none;
}

.scene-8bar {
    position: absolute;
    inset: 0;
    width: 101%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0;
}

.scene-8bar .bar-sec {
    width: 101%;
    height: 100%;
    background: var(--primary-100);
    transition: height 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

html[data-theme='dark'] .scene-8bar .bar-sec {
    background: var(--primary-900);
}

.scene-8bar .bar-sec:nth-child(1) {
    transition-delay: 0s;
}

.scene-8bar .bar-sec:nth-child(2) {
    transition-delay: 0.1s;
}

.scene-8bar .bar-sec:nth-child(3) {
    transition-delay: 0.2s;
}

.scene-8bar .bar-sec:nth-child(4) {
    transition-delay: 0.3s;
}

.scene-8bar .bar-sec:nth-child(5) {
    transition-delay: 0.4s;
}

.scene-8bar .bar-sec:nth-child(6) {
    transition-delay: 0.5s;
}

.scene-8bar .bar-sec:nth-child(7) {
    transition-delay: 0.6s;
}

.scene-8bar .bar-sec:nth-child(8) {
    transition-delay: 0.7s;
}

.scene-8bar .bar-sec.onload {
    height: 0%;
}

.win11-spinner {
    position: relative;
    width: 64px;
    height: 64px;
    transition: opacity var(--transition-base);
}

.win11-spinner.onload {
    opacity: 0;
}

.win11-spinner .dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -3px;
    border-radius: 50%;
    background: var(--text-primary);
    transform-origin: center;
    animation: orbit 1.6s cubic-bezier(0.65, 0.05, 0.36, 1) infinite;
}

.win11-spinner .dot:nth-child(1) {
    animation-delay: 0s;
    opacity: 1;
}

.win11-spinner .dot:nth-child(2) {
    animation-delay: -0.13s;
    opacity: 0.85;
}

.win11-spinner .dot:nth-child(3) {
    animation-delay: -0.26s;
    opacity: 0.65;
}

.win11-spinner .dot:nth-child(4) {
    animation-delay: -0.39s;
    opacity: 0.45;
}

.win11-spinner .dot:nth-child(5) {
    animation-delay: -0.52s;
    opacity: 0.28;
}

.win11-spinner .dot:nth-child(6) {
    animation-delay: -0.65s;
    opacity: 0.14;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(24px) rotate(0deg) scale(1);
    }

    100% {
        transform: rotate(360deg) translateX(24px) rotate(-360deg) scale(1);
    }
}

.caption {
    font-family: var(--cod);
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    opacity: 0.92;
    user-select: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    transition: opacity var(--transition-base);
}

.caption span:nth-child(2) {
    font-size: 0.85rem;
    font-family: var(--pop);
    color: var(--text-tertiary);
}

.caption.onload {
    opacity: 0;
}

.net-issue {
    position: absolute;
    bottom: 5%;
    left: 50%;
    width: 100%;
    padding: 0 15px;
    transform: translate(-50%, 15px);
    font-size: 0.85rem;
    opacity: 0;
    color: var(--text-primary);
    text-align: center;
    transition: var(--transition-base);
}

.net-issue.onload {
    opacity: 1;
    transform: translate(-50%, 0px);
}

@media (max-width: 760px) {
    .scene-8bar {
        grid-template-columns: repeat(4, 1fr);
    }

    .scene-8bar .bar-sec {
        transition: height 1.2s cubic-bezier(0.76, 0, 0.24, 1);
    }

    .scene-8bar .bar-sec:nth-child(5) {
        display: none;
    }

    .scene-8bar .bar-sec:nth-child(6) {
        display: none;
    }

    .scene-8bar .bar-sec:nth-child(7) {
        display: none;
    }

    .scene-8bar .bar-sec:nth-child(8) {
        display: none;
    }

    .net-issue {
        font-size: 0.75rem;
    }

    html.onload {
        overflow: hidden;
    }
}

@media screen and (max-width: 768px) {
    .scene-8bar {
        height: 110%;
    }
}