html.chemix-gate-lock,
body.chemix-gate-lock {
    overflow: hidden !important;
    height: 100% !important;
}

#chemix-age-gate,
#chemix-age-gate * {
    box-sizing: border-box;
    font-family: 'Montserrat', Arial, sans-serif;
}

.chemix-age-gate {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: none;
    width: 100%;
    min-height: 100vh;
    background: #080b12;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

.chemix-age-gate.is-visible {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.chemix-gate-panel {
    position: relative;
    width: 50%;
    min-height: 100vh;
    transition: transform .95s cubic-bezier(.77,0,.18,1), opacity .72s ease;
    will-change: transform, opacity;
}

.chemix-gate-left {
    display: flex;
    flex-direction: column;
    background: #0b0f18;
    color: #f5f7fb;
    padding: clamp(24px, 2.4vw, 48px) clamp(28px, 4.2vw, 84px);
}

.chemix-gate-brand {
    height: 80px;
    display: flex;
    align-items: flex-start;
}

.chemix-gate-logo {
    width: clamp(145px, 11vw, 210px);
    max-height: 64px;
    object-fit: contain;
    object-position: left center;
}

.chemix-gate-content {
    width: min(100%, 580px);
    margin: auto;
    padding: 20px 0 58px;
}

.chemix-gate-content h1 {
    margin: 0 0 24px;
    font-size: clamp(43px, 4vw, 68px);
    line-height: .98;
    letter-spacing: -3.3px;
    font-weight: 700;
    color: #f8fafc;
}

.chemix-gate-content h1 span { color: #046bd2; }

.chemix-gate-intro {
    max-width: 545px;
    margin: 0 0 28px;
    color: #aeb7c8;
    font-size: clamp(14px, 1.05vw, 18px);
    line-height: 1.58;
    font-weight: 400;
}

.chemix-gate-checks {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.chemix-check-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 56px;
    padding: 14px 17px;
    border: 1px solid #242c3a;
    border-radius: 15px;
    background: #121823;
    color: #eef2f7;
    font-size: 12.5px;
    line-height: 1.45;
    cursor: pointer;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.chemix-check-card:hover {
    border-color: rgba(80,157,255,.62);
    box-shadow: 0 12px 30px rgba(0,0,0,.32), 0 0 0 1px rgba(4,107,210,.08);
    transform: translateY(-1px);
}

.chemix-check-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chemix-custom-check {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border: 1.5px solid #667085;
    border-radius: 3px;
    background: #0b0f18;
    transition: all .2s ease;
}

.chemix-check-card input:checked + .chemix-custom-check {
    border-color: #046bd2;
    background: #046bd2;
    box-shadow: 0 0 0 3px rgba(4,107,210,.12);
}

.chemix-check-card input:checked + .chemix-custom-check::after {
    content: '';
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
}

.chemix-enter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-width: 205px;
    min-height: 52px;
    padding: 14px 23px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #046bd2, #224084);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(4,107,210,.24);
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease, background .25s ease;
}

.chemix-enter-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(34,64,132,.3);
}

.chemix-enter-button:disabled {
    color: #7d8798;
    background: #1b2230;
    box-shadow: none;
    cursor: not-allowed;
}

.chemix-arrow {
    font-size: 20px;
    line-height: 1;
    transition: transform .25s ease;
}
.chemix-enter-button:hover:not(:disabled) .chemix-arrow { transform: translateX(4px); }

.chemix-gate-legal {
    max-width: 545px;
    margin: 22px 0 18px;
    color: #818b9e;
    font-size: 10.5px;
    line-height: 1.65;
}

.chemix-gate-exit {
    margin: 0;
    color: #8d97a8;
    font-size: 11.5px;
}
.chemix-gate-exit a { color: #64a8ff; text-underline-offset: 3px; }

.chemix-gate-right {
    background-color: #070a10;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.chemix-gate-right::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(3,8,18,.42), rgba(0,0,0,.68));
}

.chemix-age-gate.is-leaving .chemix-gate-left { transform: translateX(-105%); opacity: .92; }
.chemix-age-gate.is-leaving .chemix-gate-right { transform: translateX(105%); opacity: .92; }
.chemix-age-gate.is-leaving { background: transparent; }

@media (max-width: 900px) {
    .chemix-age-gate { overflow-y: auto; background: #080b12; }
    .chemix-gate-left { width: 100%; min-height: 100dvh; padding: 22px 22px 28px; }
    .chemix-gate-right {
        position: absolute;
        inset: 0 0 auto auto;
        width: 100%;
        height: 235px;
        min-height: 0;
        z-index: 0;
        background-position: center 40%;
        opacity: .18;
        filter: saturate(.9);
    }
    .chemix-gate-left { z-index: 1; background: linear-gradient(to bottom, rgba(8,11,18,.68), #0b0f18 220px); }
    .chemix-gate-brand { height: 70px; }
    .chemix-gate-content { margin: auto; padding: 38px 0 16px; }
    .chemix-gate-content h1 { font-size: clamp(43px, 12vw, 58px); letter-spacing: -2.6px; }
    .chemix-gate-intro { font-size: 14px; }
    .chemix-check-card { font-size: 11.5px; }
    .chemix-enter-button { width: 100%; }
    .chemix-age-gate.is-leaving .chemix-gate-right { transform: translateX(110%); }
}

@media (max-height: 760px) and (min-width: 901px) {
    .chemix-gate-brand { height: 55px; }
    .chemix-gate-content { padding: 5px 0 20px; }
    .chemix-gate-content h1 { font-size: 48px; margin-bottom: 17px; }
    .chemix-gate-intro { margin-bottom: 18px; font-size: 14px; }
    .chemix-check-card { min-height: 50px; padding: 11px 15px; }
    .chemix-gate-legal { margin-top: 15px; }
}
