/* ─── Age Gate ───────────────────────────────────────────── */

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111111;
}

.age-gate.is-hidden {
    display: none;
}

/* ── Background ───────────────────────────────────────── */
.age-gate__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.age-gate__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.age-gate__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ── Panel wrapper (glass + clip shape) ───────────────── */
.age-gate__panel-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    --clip: 14%;
    --clip-y: 20%;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(
        var(--clip) 0,
        100% 0,
        100% calc(100% - var(--clip-y)),
        calc(100% - var(--clip)) 100%,
        0 100%,
        0 var(--clip-y)
    );
    padding: 1px;
    display: flex;
}

.age-gate__panel-outline {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.age-gate__panel-outline--mobile {
    display: none;
}

/* ── Panel ────────────────────────────────────────────── */
.age-gate__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-sm);
    flex: 1;
    min-height: 600px;
    padding: var(--space-md);
    background: transparent;
}

/* ── Logo ─────────────────────────────────────────────── */
.age-gate__logo {
    margin-bottom: var(--space-xs);
}

.age-gate__logo img {
    height: auto;
    width: auto;
    max-width: 144px;
}

/* ── Heading ──────────────────────────────────────────── */
.age-gate__heading {
    font-family: 'Funnel Sans', sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--color-text);
    margin: 0;
}

/* ── Description ──────────────────────────────────────── */
.age-gate__description {
    font-family: 'Funnel Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--color-body);
    margin: 0;
    max-width: 360px;
}

/* ── Field ────────────────────────────────────────────── */
.age-gate__field {
    width: 100%;
}

.age-gate__input {
    display: block;
    margin: 26px auto 0;
    width: calc( 5ch + 0.3em + 100px );
    background: #1D1D1D;
    color: var(--color-body);
    border: 1px solid #363636;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 24px;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0.06em;
    text-align: center;
    padding: 23px 50px;
    outline: none;
    transition: box-shadow 0.2s ease;
}

.age-gate__input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.age-gate__input::placeholder,
.age-gate__input::-webkit-input-placeholder,
.age-gate__input::-moz-placeholder,
.age-gate__input:-ms-input-placeholder {
    color: var(--color-body);
    opacity: 1;
}

.age-gate__error {
    font-size: 13px;
    color: #ff6b6b;
    margin-top: 8px;
    min-height: 18px;
}

/* ── Actions ──────────────────────────────────────────── */
.age-gate__actions {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    width: 100%;
}

.age-gate__btn {
    flex: 1;
    max-width: 132px;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease;
    border: none;
}

.age-gate__btn:hover {
    opacity: 0.85;
}

.age-gate__btn--manage {
    background: var(--color-subtle);
    color: #000000;
    border: 1px solid #C5C5C6;
}

.age-gate__btn--agree {
    background: var(--color-charcoal);
    color: var(--color-text);
    border: 1px solid #3D3D3E;
}

/* ── Cookie text ──────────────────────────────────────── */
.age-gate__cookie-text {
    font-family: 'Funnel Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #808080;
    margin: 0;
}

/* ── Body lock ────────────────────────────────────────── */
body.age-gate-active {
    overflow: hidden;
}

/* ── Responsive ───────────────────────────────────────── */
@media ( max-width: 768px ) {
    .age-gate__panel-wrap {
        margin: 0 var(--space-sm);
        --clip: 10%;
        --clip-y: 10%;
    }

    .age-gate__panel-outline--desktop { display: none; }
    .age-gate__panel-outline--mobile  { display: block; }

    .age-gate__logo img {
        max-width: 82px;
    }

    .age-gate__input {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .age-gate__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .age-gate__btn {
        max-width: 100%;
    }
}

@media ( max-width: 480px ) {
    .age-gate__heading {
        font-size: 22px;
    }
}
