#age-gate-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

#age-gate-modal {
    width: min(var(--ag-modal-width, 520px), 92vw);
    background: #fff;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    font-family: inherit;
    transform-origin: center;
}

#age-gate-logo {
    display: block;
    max-width: 180px;
    max-height: 56px;
    margin: 0 auto 14px;
    object-fit: contain;
}

#age-gate-title {
    font-size: 36px;
    margin: 0 0 10px;
    text-align: center;
}

#age-gate-sub {
    margin: 0 0 18px;
    opacity: .85;
    line-height: 1.5;
    text-align: center;
}

.age-gate-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    /* 居中 */
    flex-wrap: wrap;
    /* 文案太长时可换行 */
}

.age-gate-actions button {
    border: 0;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 35px;
    font-weight: 600;
    color: #fff;
    flex: 0 1 auto;
    width: auto;
    min-width: 160px;
    max-width: 240px;
}

html.age-gate-lock,
body.age-gate-lock {
    overflow: hidden !important;
}

/* Animations */
.ag-ani-fade {
    animation: agFade .22s ease-out both;
}

@keyframes agFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ag-ani-zoom {
    animation: agZoom .22s ease-out both;
}

@keyframes agZoom {
    from {
        opacity: 0;
        transform: scale(.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ag-ani-slide-up {
    animation: agSlideUp .24s ease-out both;
}

@keyframes agSlideUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Mobile styles ===== */
@media (max-width: 768px) {

    #age-gate-overlay {
        padding: 16px;
        align-items: center;
        justify-content: center;
    }

    #age-gate-modal {
        width: 100%;
        max-width: 560px;
        border-radius: 16px;
        padding: 18px;
        margin-bottom: env(safe-area-inset-bottom, 0px);
    }

    #age-gate-logo {
        max-width: 160px;
        max-height: 44px;
        margin: 0 auto 12px;
    }

    #age-gate-title {
        font-size: 24px;
        line-height: 1.2;
        margin: 0 0 8px;
    }

    #age-gate-sub {
        font-size: 14px;
        line-height: 1.5;
        margin: 0 0 14px;
    }

    .age-gate-actions {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .age-gate-actions button {
        width: 100%;
        border-radius: 14px;
        padding: 14px 16px;
        /* font-size: 16px; */
    }
}

/* Smaller phones */
@media (max-width: 380px) {
    #age-gate-overlay {
        padding: 12px;
    }

    #age-gate-modal {
        padding: 16px;
    }

    #age-gate-title {
        font-size: 22px;
    }

    #age-gate-sub {
        font-size: 13px;
    }

    .age-gate-actions button {
        font-size: 12px;
        padding: 13px 14px;
    }
}
