/* Age gate + maintenance — spójne z nt-* (style2.css) */

/* Nadpisanie legacy #preloader ze style.css (z-index: 99 psuł overlay nad headerem) */
html:has(#preloader.nt-gate),
body:has(#preloader.nt-gate) {
    overflow: hidden;
}

#preloader.nt-gate,
.nt-gate#preloader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow-y: auto;
    background: transparent;
    width: auto;
    height: auto;
    margin: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.nt-gate {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow-y: auto;
    background: transparent;
    width: auto;
    height: auto;
    margin: 0;
    top: 0;
}

.nt-gate-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, color-mix(in oklab, var(--nt-accent) 16%, transparent), transparent 58%),
        radial-gradient(ellipse 45% 40% at 100% 100%, color-mix(in oklab, var(--nt-vip) 10%, transparent), transparent 50%),
        rgba(6, 6, 8, 0.94);
    backdrop-filter: blur(14px);
}

.nt-gate-card {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    padding: 32px 26px 24px;
    border-radius: var(--nt-radius-lg);
    text-align: center;
    overflow: hidden;
    background: linear-gradient(160deg, color-mix(in oklab, var(--nt-panel) 94%, #000), color-mix(in oklab, var(--nt-elevated) 88%, #000));
    border: 1px solid color-mix(in oklab, var(--nt-accent) 24%, var(--nt-border));
    box-shadow: var(--nt-softshadow), var(--nt-glow-accent);
}

.nt-gate-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
}

.nt-gate-brand .nt-glitter-stream {
    z-index: 1;
}

.nt-gate-logo {
    position: relative;
    z-index: 2;
    width: 128px;
    height: 128px;
    object-fit: contain;
}

.nt-gate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    margin: 0 auto 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--nt-accent);
    background: var(--nt-accent-soft);
    border: 1px solid color-mix(in oklab, var(--nt-accent) 35%, var(--nt-border));
}

.nt-gate-card h1,
.nt-gate-card .nt-gate-title {
    margin: 0 0 12px;
    text-align: center;
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--nt-text);
}

.nt-gate-lead {
    margin: 0 0 16px;
    text-align: center;
    font-size: 14px;
    line-height: 1.55;
    color: var(--nt-muted);
}

.nt-gate-langs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--nt-muted);
}

.nt-gate-langs a {
    color: var(--nt-text);
    text-decoration: none;
    transition: color 0.15s ease;
}

.nt-gate-langs a:hover {
    color: var(--nt-accent);
}

.nt-gate-langs span {
    color: color-mix(in oklab, var(--nt-muted) 70%, transparent);
    font-weight: 400;
}

.nt-gate-checklist {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.nt-gate-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--nt-text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--nt-border);
}

.nt-gate-checklist li::before {
    content: "✓";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--nt-accent-deep), var(--nt-accent));
}

.nt-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.nt-gate-actions .nt-btn {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 650;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

@media (min-width: 481px) {
    .nt-gate-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nt-gate-actions .nt-btn {
        flex: 1 1 calc(50% - 5px);
        width: auto;
    }
}

@media (max-width: 480px) {
    #preloader.nt-gate,
    .nt-gate#preloader,
    .nt-gate {
        padding: 12px;
        align-content: safe center;
    }

    .nt-gate-card {
        padding: 24px 16px 16px;
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        align-self: center;
    }

    .nt-gate-logo {
        width: 104px;
        height: 104px;
    }

    .nt-gate-brand {
        width: 132px;
        height: 132px;
    }

    .nt-gate-checklist {
        margin-bottom: 16px;
    }

    .nt-gate-langs {
        margin-bottom: 14px;
    }

    .nt-gate-checklist li,
    .nt-gate-lead {
        font-size: 13px;
    }
}
