html.age-gate-open,
html.age-gate-open body {
    height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
}

.age-gate {
    position: fixed;
    z-index: 2147483000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    padding: 24px;
    padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    overflow-y: auto;
    color: #24191c;
    background: rgba(5, 2, 3, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.age-gate,
.age-gate * {
    box-sizing: border-box;
}

.age-gate__dialog {
    display: grid;
    grid-template-columns: minmax(390px, 0.9fr) minmax(520px, 1.1fr);
    width: min(1180px, 100%);
    min-height: 590px;
    margin: auto;
    overflow: hidden;
    background: linear-gradient(135deg, #fffdf9 0%, #f7f0e8 100%);
    border: 1px solid rgba(229, 197, 142, 0.24);
    border-radius: 28px;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.56);
}

.age-gate__media {
    position: relative;
    min-width: 0;
    overflow: visible;
    background: #16060a;
}

.age-gate__media::after {
    position: absolute;
    z-index: 2;
    top: -6%;
    right: -72px;
    width: 126px;
    height: 112%;
    content: "";
    background: #faf5ef;
    border-left: 16px solid #8f123d;
    border-radius: 56% 0 0 56% / 50% 0 0 50%;
    pointer-events: none;
}

.age-gate__media-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 590px;
    object-fit: cover;
    object-position: 38% center;
}

.age-gate__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 48px 54px 50px 74px;
    text-align: center;
}

.age-gate__logo {
    display: block;
    width: min(300px, 68%);
    height: auto;
    margin: 0 auto 30px;
}

.age-gate__age {
    margin: 0 0 22px;
    color: #a16f34;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(96px, 9vw, 142px);
    font-weight: 400;
    line-height: 0.78;
    letter-spacing: -0.07em;
    text-shadow: none;
}

.age-gate__title {
    margin: 0 0 12px;
    color: #21191b;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: clamp(28px, 2.5vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
}

.age-gate__description {
    margin: 0 0 34px;
    color: #756b68;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

.age-gate__error {
    width: 100%;
    margin: -18px 0 22px;
    color: #9b153d;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.4;
}

.age-gate__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    width: 100%;
}

.age-gate__exit-form {
    width: 100%;
    margin: 0;
}

.age-gate__button {
    width: 100%;
    min-height: 58px;
    padding: 14px 20px;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.age-gate__button--confirm {
    color: #fff9ef;
    background: linear-gradient(135deg, #a20f42 0%, #740629 100%);
    border: 1px solid #b72a57;
}

.age-gate__button--confirm:hover,
.age-gate__button--confirm:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #bb164e 0%, #8f0a36 100%);
    border-color: #d7557a;
}

.age-gate__button--exit {
    color: #74102f;
    background: transparent;
    border: 1px solid #b68a51;
}

.age-gate__button--exit:hover,
.age-gate__button--exit:focus-visible {
    color: #74102f;
    background: rgba(182, 138, 81, 0.09);
    border-color: #8f6230;
}

.age-gate__button:hover {
    transform: translateY(-1px);
}

.age-gate__button:focus-visible {
    outline: 3px solid #e5c58e;
    outline-offset: 3px;
}

.age-gate__button[disabled] {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

@media (max-width: 980px) {
    .age-gate__dialog {
        grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
    }

    .age-gate__content {
        padding-right: 36px;
        padding-left: 58px;
    }
}

@media (max-width: 720px) {
    .age-gate {
        align-items: flex-start;
        padding: 14px;
        padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    }

    .age-gate__dialog {
        display: block;
        width: min(460px, 100%);
        min-height: 0;
        border-radius: 22px;
    }

    .age-gate__media {
        height: clamp(132px, 22vh, 182px);
    }

    .age-gate__media::after {
        top: auto;
        right: -10%;
        bottom: -52px;
        width: 120%;
        height: 102px;
        background: #faf5ef;
        border: 0;
        border-top: 9px solid #8f123d;
        border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    }

    .age-gate__media-image {
        min-height: 0;
        object-position: 38% 55%;
    }

    .age-gate__content {
        padding: 44px 22px 24px;
    }

    .age-gate__logo {
        width: min(210px, 62%);
        margin-bottom: 22px;
    }

    .age-gate__age {
        margin-bottom: 16px;
        font-size: clamp(70px, 22vw, 92px);
    }

    .age-gate__title {
        margin-bottom: 9px;
        font-size: clamp(23px, 6.5vw, 29px);
    }

    .age-gate__description {
        margin-bottom: 24px;
        font-size: 16px;
    }

    .age-gate__actions {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .age-gate__button {
        min-height: 52px;
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .age-gate {
        padding: 10px;
    }

    .age-gate__media {
        height: 123px;
    }

    .age-gate__content {
        padding: 38px 16px 20px;
    }

    .age-gate__logo {
        width: 172px;
        margin-bottom: 17px;
    }

    .age-gate__age {
        margin-bottom: 13px;
        font-size: 66px;
    }

    .age-gate__title {
        font-size: 22px;
    }

    .age-gate__description {
        margin-bottom: 20px;
        font-size: 15px;
    }

    .age-gate__button {
        min-height: 48px;
        padding-right: 14px;
        padding-left: 14px;
        font-size: 15px;
    }
}

@media (max-height: 700px) and (min-width: 721px) {
    .age-gate__dialog {
        min-height: 480px;
    }

    .age-gate__media-image {
        min-height: 480px;
    }

    .age-gate__content {
        padding-top: 30px;
        padding-bottom: 32px;
    }

    .age-gate__logo {
        width: 230px;
        margin-bottom: 22px;
    }

    .age-gate__age {
        margin-bottom: 17px;
        font-size: 90px;
    }

    .age-gate__title {
        font-size: 28px;
    }

    .age-gate__description {
        margin-bottom: 25px;
    }
}

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