/* ============================================
   AGE GATE — Full-screen entry verification
   ============================================ */

#ageGate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    /* Animated dark bg with subtle red glow from bottom */
    background:
        radial-gradient(ellipse 80% 40% at 50% 110%, rgba(229, 9, 20, 0.18) 0%, transparent 70%),
        #080808;
    animation: ageBgIn 0.6s ease both;
}

@keyframes ageBgIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Blurred noise texture overlay */
#ageGate::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 180px;
    pointer-events: none;
    opacity: 0.5;
}

/* ---- Card ---- */
.age-gate-card {
    position: relative;
    max-width: 480px;
    width: 100%;
    background: rgba(14, 14, 14, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 48px 40px 40px;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(229, 9, 20, 0.08),
        0 32px 80px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(229, 9, 20, 0.07) inset;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: ageCardIn 0.55s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ageCardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Logo ---- */
.age-gate-logo {
    display: block;
    height: 110px;
    width: auto;
    margin: 0 auto 24px;
    /* Force white so logo is always visible on the dark card */
    filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(229, 9, 20, 0.5));
}

/* ---- 18+ Badge ---- */
.age-gate-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid #E50914;
    background: rgba(229, 9, 20, 0.1);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: #E50914;
    letter-spacing: 1px;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.25);
    animation: badgePulse 2.8s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(229, 9, 20, 0.25); }
    50%       { box-shadow: 0 0 38px rgba(229, 9, 20, 0.5); }
}

/* ---- Title ---- */
.age-gate-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #fff;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    line-height: 1.1;
}

.age-gate-title span {
    color: #E50914;
}

/* ---- Body text ---- */
.age-gate-body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 32px;
}

/* ---- Divider ---- */
.age-gate-divider {
    width: 40px;
    height: 1px;
    background: rgba(229, 9, 20, 0.4);
    margin: 0 auto 28px;
}

/* ---- Buttons ---- */
.age-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.age-gate-enter {
    display: block;
    width: 100%;
    padding: 15px 24px;
    background: #E50914;
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 2px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 24px rgba(229, 9, 20, 0.45);
}

.age-gate-enter:hover {
    background: #ff1a26;
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(229, 9, 20, 0.65);
}

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

.age-gate-leave {
    display: block;
    width: 100%;
    padding: 13px 24px;
    background: transparent;
    color: rgba(255, 255, 255, 0.35);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    letter-spacing: 0.3px;
}

.age-gate-leave:hover {
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.22);
}

/* ---- Footer note ---- */
.age-gate-note {
    margin-top: 20px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1.6;
}

.age-gate-note a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- Exit animation ---- */
#ageGate.ag-exit {
    animation: ageGateOut 0.45s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes ageGateOut {
    to { opacity: 0; transform: scale(1.03); pointer-events: none; }
}

/* ============================================
   RESPONSIVE — mobile
   ============================================ */
@media (max-width: 480px) {
    .age-gate-card {
        padding: 36px 24px 32px;
        border-radius: 16px;
    }

    .age-gate-logo {
        height: 42px;
        margin-bottom: 22px;
    }

    .age-gate-title {
        font-size: 1.65rem;
    }

    .age-gate-body {
        font-size: 13px;
    }
}
