html.age-gate-active,
body.age-gate-active {
    height: 100%;
    overflow: hidden;
    width: 100%;
}

body.age-gate-active {
    inset: 0;
    position: fixed;
}

body.age-gate-active #site-content {
    filter: blur(4px);
    pointer-events: none;
    touch-action: none;
    user-select: none;
}

.age-gate-overlay {
    background: rgba(10, 45, 28, 0.78);
    backdrop-filter: blur(7px);
    inset: 0;
    overflow: hidden;
    position: fixed;
    touch-action: none;
    z-index: 99999;
}

.age-gate-panel {
    background: #ffffff;
    border: 1px solid rgba(127, 189, 76, 0.35);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(5, 36, 21, 0.42);
    max-height: calc(100dvh - 2rem);
    max-width: 600px;
    overflow-y: auto;
    text-align: center;
    width: calc(100% - 2rem);
}

.age-gate-overlay .age-gate-panel {
    left: 50%;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 100000;
}

.age-gate-panel-header {
    align-items: center;
    background: #173b2a;
    border-bottom: 5px solid #7fbd4c;
    display: flex;
    justify-content: center;
    min-height: 132px;
    padding: 1.5rem 2rem;
}

.age-gate-logo-frame {
    align-items: center;
    background: #0e2e1d;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding: 0.65rem 1.25rem;
}

.age-gate-logo {
    height: 72px;
    max-width: 230px;
    object-fit: contain;
    width: auto;
}

.age-gate-panel-content {
    padding: 2.5rem 3rem 3rem;
}

.age-gate-eyebrow {
    color: #3b7b40;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 0.65rem;
    text-transform: uppercase;
}

.age-gate-panel h1,
.age-gate-panel h2 {
    color: #173b2a;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0;
}

.age-gate-intro {
    color: #51705b;
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0.85rem auto 1.75rem;
    max-width: 430px;
}

.age-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.age-gate-form-secondary {
    margin-bottom: 0;
}

.age-gate-btn {
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    min-height: 52px;
    padding: 0.75rem 1.25rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.age-gate-text {
    color: #365542;
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0 auto 1.75rem;
    max-width: 445px;
}

.age-gate-btn.btn-success {
    background: #287b4a;
    border-color: #287b4a;
    box-shadow: 0 8px 16px rgba(40, 123, 74, 0.2);
}

.age-gate-btn.btn-success:hover,
.age-gate-btn.btn-success:focus {
    background: #1e643a;
    border-color: #1e643a;
    box-shadow: 0 10px 20px rgba(40, 123, 74, 0.28);
    transform: translateY(-1px);
}

.age-gate-btn.btn-outline-secondary {
    background: #ffffff;
    border-color: #b5c9b9;
    color: #365542;
}

.age-gate-btn.btn-outline-secondary:hover,
.age-gate-btn.btn-outline-secondary:focus {
    background: #eff8ef;
    border-color: #5d9365;
    color: #173b2a;
}

.age-check-page {
    align-items: center;
    background: linear-gradient(135deg, #173b2a, #287b4a);
    display: flex;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
}

@media (max-width: 575.98px) {
    .age-gate-panel {
        border-radius: 16px;
    }

    .age-gate-panel-header {
        min-height: 110px;
        padding: 1.25rem 1.5rem;
    }

    .age-gate-logo {
        height: 58px;
    }

    .age-gate-panel-content {
        padding: 2rem 1.5rem 2.25rem;
    }
}

.age-check-container {
    display: flex;
    justify-content: center;
    padding: 1rem;
    width: 100%;
}
