html.age-gate-pending,
html.age-gate-pending body {
    min-height: 100%;
    overflow: hidden;
    background: #080808;
}

html.age-gate-pending body > :not(.age-gate) {
    visibility: hidden !important;
}

.age-gate {
    display: none;
}

html.age-gate-pending .age-gate,
html.age-gate-leaving .age-gate {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #080808;
    color: #f2f2ef;
    font-family: var(--font-sans, Arial, Helvetica, sans-serif);
    opacity: 1;
    transition: opacity 0.3s ease;
}

html.age-gate-leaving .age-gate {
    opacity: 0;
    pointer-events: none;
}

.age-gate__frame {
    width: min(100%, 1440px);
    min-height: 100svh;
    margin: 0 auto;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.age-gate__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: clamp(2.5rem, 8vh, 7rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.age-gate__logo {
    display: block;
    width: clamp(7rem, 13vw, 11rem);
    height: auto;
    filter: brightness(0) invert(1);
}

.age-gate__marker {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-align: right;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.age-gate__body {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(13rem, 0.72fr) minmax(22rem, 1.28fr);
    grid-template-rows: auto auto;
    gap: clamp(2rem, 6vw, 7rem);
    align-content: center;
    padding: clamp(2.5rem, 8vh, 7rem) 0;
}

.age-gate__title {
    margin: 0;
    max-width: 8ch;
    font-size: clamp(2.4rem, 6vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.9;
    text-wrap: balance;
}

.age-gate__copy {
    width: min(100%, 48rem);
    font-size: clamp(1rem, 1.55vw, 1.32rem);
    line-height: 1.5;
    letter-spacing: -0.012em;
}

.age-gate__copy p {
    margin: 0 0 1.2em;
}

.age-gate__copy p:last-child {
    margin-bottom: 0;
}

.age-gate__thanks {
    padding-top: clamp(0.6rem, 2vh, 1.5rem);
}

.age-gate__thanks span {
    color: rgba(255, 255, 255, 0.6);
}

.age-gate__actions {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: min(100%, 48rem);
}

.age-gate__button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.65rem;
    padding: 0.85rem 1rem;
    border: 1px solid #f2f2ef;
    border-radius: 0;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease;
}

.age-gate__button--adult {
    background: #f2f2ef;
    color: #080808;
}

.age-gate__button--under {
    background: #080808;
    color: #f2f2ef;
}

.age-gate__button--adult:hover,
.age-gate__button--adult:focus-visible {
    background: #080808;
    color: #f2f2ef;
}

.age-gate__button--under:hover,
.age-gate__button--under:focus-visible {
    background: #f2f2ef;
    color: #080808;
}

.age-gate__button:focus-visible {
    outline: 2px solid #f2f2ef;
    outline-offset: 4px;
}

.age-gate__supporters {
    grid-column: 2;
    width: min(100%, 48rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.age-gate__supporters p {
    margin: 0 0 1rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.age-gate__supporter-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
}

@media (max-width: 720px) {
    .age-gate__header {
        padding-bottom: 1.5rem;
    }

    .age-gate__body {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        justify-content: center;
        padding: 2.25rem 0;
    }

    .age-gate__title {
        max-width: none;
        font-size: clamp(2.5rem, 14vw, 4.25rem);
    }

    .age-gate__copy {
        font-size: 0.98rem;
        line-height: 1.48;
    }

    .age-gate__copy p {
        margin-bottom: 0.9em;
    }

    .age-gate__actions {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .age-gate__button {
        min-height: 3.35rem;
    }
}

@media (max-height: 720px) and (min-width: 721px) {
    .age-gate__header {
        padding-bottom: 2rem;
    }

    .age-gate__body {
        padding: 2rem 0;
    }

    .age-gate__copy {
        font-size: 0.95rem;
    }
}

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