.age-gate-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(15, 15, 35, 0.98), rgba(15, 15, 35, 1));
    opacity: 0;
    animation: fadeIn 0.45s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.age-gate-content {
    width: min(760px, 100%);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
    text-align: center;
    padding: 56px 40px 42px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    animation: slideUp 0.55s ease-out both;
}

.age-gate-content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

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

.age-gate-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 24px;
    animation: logoFloat 3.5s ease-in-out infinite;
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.age-gate-heading {
    margin: 0 0 14px;
    color: var(--age-gate-text);
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.age-gate-description {
    margin: 0 0 28px;
    color: var(--age-gate-text);
    opacity: 0.82;
    font-size: 1.06rem;
    line-height: 1.6;
}

.age-gate-research {
    margin: 0 0 26px;
    text-align: left;
}

.age-gate-research-heading {
    margin: 0 0 18px;
    text-align: center;
    color: var(--age-gate-text);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.age-gate-research-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.age-gate-research-group {
    margin: 0;
    padding: 22px 18px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.age-gate-research-group legend {
    display: block;
    padding: 0 8px;
    margin: 0 0 14px;
    color: var(--age-gate-text);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
}

.age-gate-research-options {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.age-gate-research-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--age-gate-text);
    font-size: 0.98rem;
    line-height: 1.45;
    cursor: pointer;
}

.age-gate-research-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--age-gate-accent);
    flex: 0 0 auto;
}

.age-gate-buttons {
    display: flex;
    gap: 14px;
    margin: 0 0 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.age-gate-btn {
    flex: 1;
    min-width: 210px;
    padding: 16px 28px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease,
        background 0.25s ease;
}

.age-gate-btn:disabled {
    cursor: wait;
    opacity: 0.8;
}

.age-gate-btn::before {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: 0;
    height: 0;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    transition: width 0.55s ease, height 0.55s ease;
    background: rgba(255, 255, 255, 0.1);
}

.age-gate-btn:hover::before {
    width: 320px;
    height: 320px;
}

.btn-icon {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
}

.age-gate-btn-yes {
    color: #fff;
    background: var(--age-gate-accent);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.3);
}

.age-gate-btn-yes:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.35);
}

.age-gate-btn-no {
    color: #ff6b6b;
    background: rgba(239, 68, 68, 0.08);
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.22);
}

.age-gate-btn-no:hover {
    transform: translateY(-2px);
    background: rgba(239, 68, 68, 0.14);
}

.age-gate-remember {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-left: 32px;
    color: var(--age-gate-text);
    opacity: 0.74;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.age-gate-remember:hover {
    opacity: 1;
}

.age-gate-remember input[type="checkbox"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: all 0.25s ease;
}

.age-gate-remember:hover .checkmark {
    border-color: var(--age-gate-accent);
    background: rgba(255, 255, 255, 0.12);
}

.age-gate-remember input:checked ~ .checkmark {
    background: var(--age-gate-accent);
    border-color: var(--age-gate-accent);
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.age-gate-remember input:checked ~ .checkmark::after {
    display: block;
}

.age-gate-feedback {
    min-height: 1.25em;
    margin: 14px 0 0;
    font-size: 0.94rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
}

.age-gate-feedback.is-error {
    color: #ff8f8f;
}

.age-gate-denied {
    text-align: center;
    color: var(--age-gate-text);
}

.age-gate-denied h2 {
    margin: 0 0 14px;
    font-size: 2rem;
    color: #ef4444;
}

@media (max-width: 720px) {
    .age-gate-content {
        max-height: calc(100dvh - 24px);
        padding: 38px 22px 28px;
        border-radius: 22px;
    }

    .age-gate-research-grid {
        grid-template-columns: 1fr;
    }

    .age-gate-buttons {
        flex-direction: column;
    }

    .age-gate-btn {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .age-gate-overlay {
        padding: 12px;
    }

    .age-gate-content {
        max-height: calc(100dvh - 24px);
        padding: 30px 18px 22px;
    }

    .age-gate-description {
        font-size: 1rem;
    }

    .age-gate-research-group {
        padding: 18px 14px 14px;
    }
}
