/* =============================================================================
   age-gate.css
   Standalone fullscreen presentation — no header/footer, nothing to skip past.
============================================================================= */

.age-gate-body {
    margin: 0;
    background: var(--color-ink);
}

.age-gate {
    /* 100vh on iOS Safari measures the viewport as if the address bar were
       hidden, so the "centre" it produces sits below the visible fold.
       100dvh tracks the actual visible height; the vh line stays first as
       a fallback for browsers without dvh support. */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background:
        radial-gradient(circle at 50% 0%, rgba(142, 31, 59, 0.12), transparent 60%),
        var(--color-ink);
}

.age-gate__card {
    max-width: 480px;
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5) var(--space-4);
    text-align: center;
}

.age-gate__logo {
    display: inline-block;
    margin-bottom: var(--space-4);
    pointer-events: none;
}
.age-gate__logo img {
    height: auto;
    max-width: 263px;
    width: 100%;
}

.age-gate__heading {
    font-size: 1.6rem;
    margin-bottom: 0;
}

.age-gate .heading-rule {
    margin: var(--space-2) auto var(--space-3);
}

.age-gate__body {
    color: var(--color-text-dim);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0 0 var(--space-4);
}

.age-gate__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.age-gate__btn {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.85em 1.4em;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    width: 100%;
}

.age-gate__btn--confirm {
    background: var(--color-wine);
    color: var(--color-text);
}
.age-gate__btn--confirm:hover { background: var(--color-wine-bright); }

.age-gate__btn--decline {
    background: transparent;
    color: var(--color-text-dim);
    border-color: var(--color-border);
}
.age-gate__btn--decline:hover {
    border-color: var(--color-text-dim);
    color: var(--color-text);
}

/* Language switcher — same pill treatment as the site header and the
   maintenance page: bordered pill, flag, label naming the language being
   switched TO. The flag has no border of its own; the pill provides it. */
.age-gate__lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    color: var(--color-text-dim);
    transition: border-color 0.2s ease, color 0.2s ease;
}
.age-gate__lang-switch img {
    display: block;
    width: 24px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}
.age-gate__lang-switch:hover,
.age-gate__lang-switch:focus-visible {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* -----------------------------------------------------------------------
   Mobile
   Centring a tall card in a short viewport leaves the content sitting low.
   Anchor to the top instead and let it breathe from there.
   Breakpoint matches site.css so the whole site switches form together.
   ----------------------------------------------------------------------- */
@media (max-width: 720px) {
    .age-gate {
        align-items: flex-start;
        padding-top: var(--space-4);
    }
    .age-gate__card {
        padding: var(--space-4) var(--space-3);
    }
    .age-gate__logo {
        margin-bottom: var(--space-3);
    }
}
