.screen-loader[hidden] {
    display: none !important;
}

.screen-loader {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    cursor: wait;
}

.screen-loader__panel {
    display: flex;
    min-width: min(22rem, 100%);
    max-width: 30rem;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    border-radius: 1rem;
    background: #fff;
    color: #1e293b;
    text-align: center;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.screen-loader__spinner {
    width: 3rem;
    height: 3rem;
    border: 0.3rem solid #fed7aa;
    border-top-color: #f97316;
    border-radius: 50%;
    animation: screen-loader-spin 0.8s linear infinite;
}

.screen-loader__message {
    font-size: 1rem;
    line-height: 1.4;
}

.screen-loader__hint {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.4;
}

body.screen-loader-active {
    overflow: hidden;
}

body.screen-loader-active > :not(.screen-loader) {
    pointer-events: none;
}

@keyframes screen-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .screen-loader__spinner {
        animation-duration: 1.6s;
    }
}
