/* Porte d'âge 18+ — modale landing (inspirée split-card adult gate) */

html.age-gate-active,
html.age-gate-active body {
    overflow: hidden !important;
}

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

html:not(.age-gate-active) .age-gate {
    display: none !important;
}

.age-gate__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(124, 58, 237, 0.35), transparent 42%),
        radial-gradient(circle at 82% 18%, rgba(217, 70, 239, 0.22), transparent 38%),
        rgba(5, 5, 7, 0.72);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.age-gate__card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    width: min(920px, 96vw);
    min-height: min(520px, 88vh);
    border-radius: 28px;
    overflow: hidden;
    background: #f8f6ff;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: ageGateIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ageGateIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.age-gate__visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem 1rem 0;
    background:
        radial-gradient(circle at 50% 12%, rgba(245, 158, 11, 0.18), transparent 52%),
        linear-gradient(180deg, #1a1028 0%, #120a1c 58%, #0b0612 100%);
    overflow: hidden;
}

.age-gate__visual::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(180deg, transparent, rgba(11, 6, 18, 0.55));
    pointer-events: none;
}

.age-gate__badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    height: 3.25rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
    font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.35);
}

.age-gate__mascot {
    position: relative;
    z-index: 1;
    width: min(100%, 340px);
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
    transform: translateY(8%);
}

.age-gate__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    color: #1f1230;
}

.age-gate__kicker {
    margin: 0;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #7c3aed;
}

.age-gate__title {
    margin: 0.85rem 0 0;
    font-family: "Plus Jakarta Sans", Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 2.8vw, 2.35rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #12081d;
}

.age-gate__text {
    margin: 1rem 0 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #4b3d57;
}

.age-gate__text--small {
    font-size: 0.82rem;
    color: #6b5c78;
}

.age-gate__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.age-gate__enter {
    flex: 1 1 auto;
    min-width: min(100%, 260px);
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.35rem;
    background: linear-gradient(135deg, #7c3aed, #6366f1 55%, #d946ef);
    color: #fff;
    font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(99, 102, 241, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.age-gate__enter:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 18px 40px rgba(99, 102, 241, 0.42);
}

.age-gate__enter:active {
    transform: translateY(0);
}

.age-gate__leave {
    flex: 0 0 auto;
    font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #9333ea;
    transition: color 0.18s ease;
}

.age-gate__leave:hover {
    color: #6d28d9;
}

@media (max-width: 820px) {
    .age-gate__card {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: 92vh;
        overflow-y: auto;
    }

    .age-gate__visual {
        min-height: 240px;
        padding-top: 1rem;
    }

    .age-gate__mascot {
        width: min(72vw, 280px);
        transform: translateY(12%);
    }

    .age-gate__content {
        padding-top: 1.25rem;
    }

    .age-gate__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .age-gate__leave {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .age-gate__card {
        animation: none;
    }
}
