.audience-gateway[hidden] {
    display: none;
}

.audience-gateway {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'montserrat', Arial, sans-serif;
}

.audience-gateway__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(51, 43, 34, 0.46);
    -webkit-backdrop-filter: blur(9px) saturate(0.8);
    backdrop-filter: blur(9px) saturate(0.8);
}

.audience-gateway__dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 38px 54px 28px;
    color: #6b4f3b;
    background:
        radial-gradient(circle at 0 100%, rgba(236, 198, 155, 0.18) 0, rgba(236, 198, 155, 0.14) 16%, transparent 34%),
        radial-gradient(circle at 100% 0, rgba(196, 210, 211, 0.24) 0, rgba(196, 210, 211, 0.16) 18%, transparent 38%),
        #fffaf5 url('/paper/elements/background-white.jpg') repeat;
    border: 1px solid rgba(224, 203, 181, 0.9);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(49, 38, 28, 0.38);
    text-align: center;
}

.audience-gateway__dialog::before,
.audience-gateway__dialog::after {
    display: none;
}

.audience-gateway__ornament,
.audience-gateway__dialog h2,
.audience-gateway__intro,
.audience-gateway__choices,
.audience-gateway__divider,
.audience-gateway__skip {
    position: relative;
    z-index: 1;
}

.audience-gateway__dialog::before {
    top: 38px;
    left: -48px;
    transform: rotate(32deg);
}

.audience-gateway__dialog::after {
    right: -54px;
    bottom: 38px;
    transform: rotate(-148deg);
}

.audience-gateway__ornament {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    color: #e8aa64;
    font-size: 1.3rem;
}

.audience-gateway__ornament .fa-seedling {
    font-size: 1.7rem;
}

.audience-gateway__dialog h2,
.audience-gateway__dialog h3 {
    margin: 0;
    color: #563e2c;
}

.audience-gateway__dialog h2 {
    display: block;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(2.15rem, 3.9vw, 3.45rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
}

.audience-gateway__intro {
    max-width: 760px;
    margin: 18px auto 30px;
    color: #463c34;
    font-size: 0.98rem;
    line-height: 1.65;
}

.audience-gateway__choices {
    align-items: stretch;
}

.audience-gateway__choice {
    display: flex;
    min-height: 286px;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px 30px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e7c49f;
    border-radius: 16px;
    box-shadow: inset 0 0 32px rgba(255, 255, 255, 0.7), 0 14px 26px rgba(98, 76, 55, 0.08);
    text-align: left;
}

.audience-gateway__choice--game {
    border-color: #edc79f;
    background:
        radial-gradient(circle at 16% 18%, rgba(236, 170, 92, 0.15), transparent 34%),
        rgba(255, 250, 244, 0.86);
}

.audience-gateway__choice--health {
    border-color: #a9c9d9;
    background:
        radial-gradient(circle at 16% 18%, rgba(102, 145, 169, 0.13), transparent 34%),
        rgba(248, 252, 253, 0.86);
}

.audience-gateway__choice-heading {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 18px;
    align-items: center;
}

.audience-gateway__icon {
    position: relative;
    display: inline-flex;
    width: 78px;
    height: 78px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.9rem;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.82), 0 8px 18px rgba(56, 44, 35, 0.13);
}

.audience-gateway__icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(213, 190, 167, 0.28);
}

.audience-gateway__icon--game {
    background: linear-gradient(145deg, #f5bd74, #dd8422);
}

.audience-gateway__icon--health {
    background: linear-gradient(145deg, #7faabe, #326b8d);
}

.audience-gateway__icon-plus {
    position: absolute;
    font-size: 0.95rem;
}

.audience-gateway__choice h3 {
    display: block;
    min-height: 0;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 1.42rem;
    font-weight: 700;
    line-height: 1.18;
}

.audience-gateway__choice--health h3 {
    color: #274d70;
}

.audience-gateway__mini-line {
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 14px;
    border-radius: 999px;
    background: #e9a85b;
}

.audience-gateway__choice--health .audience-gateway__mini-line {
    background: #7faabe;
}

.audience-gateway__choice p {
    margin: 22px 0 24px;
    color: #443a32;
    font-size: 0.94rem;
    line-height: 1.58;
}

.audience-gateway__button,
.audience-gateway__button:visited {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    color: #fff;
    font: inherit;
    font-weight: bold;
    font-size: 0.96rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(59, 47, 36, 0.14);
}

.audience-gateway__button--game,
.audience-gateway__button--game:visited {
    background: linear-gradient(180deg, #e99b37, #d47b22);
    border-color: #d98731;
}

.audience-gateway__button--health,
.audience-gateway__button--health:visited {
    background: linear-gradient(180deg, #497e9b, #2f6688);
    border-color: #2e6484;
}

.audience-gateway__button:hover,
.audience-gateway__button:focus {
    color: #fff;
}

.audience-gateway__button:focus,
.audience-gateway__skip:focus,
.audience-change-space:focus {
    outline: 3px solid rgba(94, 133, 153, 0.45);
    outline-offset: 3px;
}

.audience-gateway__skip,
.audience-change-space {
    border: 0;
    background: transparent;
    color: #876852;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.audience-gateway__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: min(320px, 90%);
    margin: 24px auto 10px;
    color: rgba(216, 178, 139, 0.9);
}

.audience-gateway__divider span {
    display: block;
    height: 1px;
    flex: 1;
    background: rgba(216, 178, 139, 0.55);
}

.audience-gateway__skip {
    color: #816f60;
    font-size: 1rem;
}

.audience-gateway-is-open {
    overflow: hidden;
}

footer .audience-change-space {
    margin-top: 10px;
    font-family: 'montserrat', Arial, sans-serif;
    font-size: 0.95em;
}

@media (max-width: 720px) {
    .audience-gateway {
        align-items: flex-start;
        padding: 12px;
    }

    .audience-gateway__dialog {
        max-height: calc(100vh - 24px);
        padding: 24px 18px 20px;
        border-radius: 14px;
    }

    .audience-gateway__dialog::before,
    .audience-gateway__dialog::after {
        opacity: 0.12;
    }

    .audience-gateway__choice {
        min-height: 0;
        padding: 22px;
    }

    .audience-gateway__choice-heading {
        grid-template-columns: 72px 1fr;
        gap: 16px;
    }

    .audience-gateway__icon {
        width: 68px;
        height: 68px;
        font-size: 1.65rem;
    }

    .audience-gateway__choice h3 {
        min-height: 0;
        font-size: 1.26rem;
    }

    .audience-gateway__choice p {
        margin: 20px 0;
    }

    .audience-gateway__button,
    .audience-gateway__button:visited {
        min-height: 52px;
        padding: 12px 18px;
        font-size: 0.98rem;
    }
}

@media (max-width: 420px) {
    .audience-gateway__dialog h2 {
        font-size: 1.95rem;
    }

    .audience-gateway__intro {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .audience-gateway__choice-heading {
        grid-template-columns: 1fr;
    }

    .audience-gateway__icon {
        margin-bottom: 4px;
    }
}
