/* --- AGE GATE --- */
.no-scroll {
    overflow: hidden !important;
    height: 100%;
    /* Prevents rubber-banding on iOS */
    position: relative;
}

.age-gate-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    background-color: rgba(0, 0, 0, 0.85);
    /* Darker for better contrast */
    display: flex;
    /* Controlled by JS */
    justify-content: center;
    align-items: center;
    z-index: 999999;
    -webkit-backdrop-filter: blur(3px) contrast(110%) saturate(140%);
    backdrop-filter: blur(3px) contrast(110%) saturate(140%);
    opacity: 1;
    transition: opacity 400ms ease;
}

.age-gate-modal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0px;

    position: relative;
    top: 0px;
    left: 0px;

    background: linear-gradient(135deg, rgba(146, 146, 146, 0.35) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(33, 33, 33, 0.2) 100%);
    background-color: rgba(0, 0, 0, 0.75);

    border-top: 1px rgba(255, 255, 255, 0.2) solid;
    border-left: 1px rgba(255, 255, 255, 0.2) solid;
    border-right: 1px rgba(66, 66, 66, 0.2) solid;
    border-bottom: 1px rgba(66, 66, 66, 0.2) solid;
    border-radius: 25px;

    box-shadow: 3px 15px 30px 15px rgba(0, 0, 0, 0.8),
        inset 1px 1px 30px 1px rgba(99, 99, 99, 0.4);

    margin: 0 auto;

    min-width: 315px;
    width: 90%;
    max-width: 360px;

    min-height: 525px;
    height: 95%;
    max-height: 800px;

    background-blend-mode: hard-light;

}

@media (min-width: 768px) {
    .age-gate-modal {
        max-width: 550px;
        min-height: 450px;
    }
}

.age-gate-modal::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 300px;
    height: 305px;

    background-image: url('/images/hammered_gold.jpg');
    background-size: cover;

    -webkit-mask-image: url('/images/upper_left.svg');
    mask-image: url('/images/upper_left.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    mask-repeat: no-repeat;

    filter: drop-shadow(2px 4px 3px rgba(0, 0, 0, 0.4));
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.6)) brightness(1.1);

    animation: vineGrowth 0.8s cubic-bezier(0.75, 1, 0.3, 1) forwards;
    animation-delay: 0.15s;
    animation-fill-mode: both;
    opacity: 0;
}

.age-gate-modal::after {
    content: '';
    position: absolute;
    bottom: -120px;
    right: -70px;
    width: 200px;
    height: 370px;

    background-image: url('/images/hammered_gold.jpg');
    background-size: cover;

    -webkit-mask-image: url('/images/lower_right.svg');
    mask-image: url('/images/lower_right.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    mask-repeat: no-repeat;

    filter: drop-shadow(2px 4px 3px rgba(0, 0, 0, 0.4));
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.6));

    animation: vineGrowth 0.8s cubic-bezier(0.75, 1, 0.3, 1) forwards;
    animation-delay: 0.45s;
    opacity: 0;
}

.age-gate-content {
    padding-left: 15px;
    padding-right: 15px;
    z-index: 2;
}

/* Ensure inputs are legible on mobile */
.age-gate-modal input {
    width: 8rem;
    margin: 10px;
}

#age-gate-error a {
    color: #FFCC33;
    font-size: 1.1rem;
    line-height: 1.9rem;
    text-decoration: underline;
}

@keyframes vineGrowth {
    from {
        opacity: 0;
        transform: scale(0.95) rotate(-3deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}