.gateway-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: clamp(1.2rem, 4vw, 3rem);
    background:
        linear-gradient(135deg, rgba(7, 27, 54, 0.96), rgba(13, 47, 95, 0.92)),
        radial-gradient(circle at 20% 15%, rgba(43, 108, 176, 0.32), transparent 26rem);
    color: #ffffff;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.32s ease, visibility 0.32s ease;
}

.gateway-overlay.is-leaving {
    opacity: 0;
    visibility: hidden;
}

.gateway-panel {
    width: min(760px, 100%);
    text-align: center;
}

.gateway-kicker {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.46rem 0.78rem;
    margin-bottom: 1rem;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gateway-panel h2 {
    margin: 0 0 0.75rem;
    color: #ffffff;
    font-size: clamp(2.25rem, 7vw, 4.8rem);
    line-height: 1;
    letter-spacing: 0;
}

.gateway-panel p {
    width: min(620px, 100%);
    margin: 0 auto 1.5rem;
    color: #dbeafe;
    font-size: 1.02rem;
    line-height: 1.6;
}

.gateway-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0 auto 1rem;
}

.gateway-choice,
.gateway-home {
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font: inherit;
    font-weight: 950;
    letter-spacing: 0;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.gateway-choice {
    min-height: 72px;
    border-radius: 18px;
    padding: 1rem;
    background: #ffffff;
    color: #071b36;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.gateway-choice:hover,
.gateway-choice:focus-visible,
.gateway-home:hover,
.gateway-home:focus-visible {
    transform: translateY(-2px);
    border-color: #ffffff;
    outline: none;
}

.gateway-home {
    min-height: 46px;
    border-radius: 999px;
    padding: 0.75rem 1.05rem;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
}

.gateway-remember {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.9rem;
    color: #dbeafe;
    font-size: 0.92rem;
    font-weight: 850;
    cursor: pointer;
}

.gateway-remember input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #ffffff;
}

body.gateway-lock {
    overflow: hidden;
}

@media (max-width: 720px) {
    .gateway-overlay {
        align-items: start;
        overflow-y: auto;
        padding: 5.5rem 1rem 2rem;
    }

    .gateway-actions {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .gateway-choice {
        min-height: 58px;
        border-radius: 14px;
    }

    .gateway-panel p {
        font-size: 0.96rem;
    }
}
