.site-loading {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(24px, env(safe-area-inset-top, 0px))
        max(20px, env(safe-area-inset-right, 0px))
        max(24px, env(safe-area-inset-bottom, 0px))
        max(20px, env(safe-area-inset-left, 0px));
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    touch-action: none;
    overscroll-behavior: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.site-loading[hidden] {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
}

html.site-loading-open,
body.site-loading-open {
    overflow: hidden !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
}

.site-loading__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    max-width: min(360px, 100%);
    color: #fff;
    text-align: center;
    pointer-events: none;
}

.site-loading__spinner {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    box-sizing: border-box;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    border-radius: 50%;
    animation: site-loading-spin 0.72s linear infinite;
}

.site-loading__hint {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-family: TTFirsNeue-Regular, var(--font-family);
    font-size: 15px;
    line-height: 1.35;
}

@keyframes site-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-loading {
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        transition: none;
    }

    .site-loading__spinner {
        animation: none;
        border-top-color: rgba(255, 255, 255, 0.95);
    }
}
