:root {
    --otag-cg-navy: #0a0f1e;
    --otag-cg-blue: #2563eb;
    --otag-cg-slate: #607b8d;
    --otag-cg-light: #e6ebf1;
}

html.otag-age-gate-active,
body.otag-age-gate-active {
    overflow: hidden !important;
}

body.otag-age-gate-active {
    position: relative;
}

.otag-research-notice {
    position: relative;
    z-index: 99990;
    width: 100%;
    padding: 8px 18px;
    background: #06132f;
    border-bottom: 1px solid rgba(96, 123, 141, 0.26);
    color: rgba(230, 235, 241, 0.92);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.14em;
    text-align: center;
}

.otag-age-gate[hidden] {
    display: none !important;
}

.otag-age-gate {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 24px;
    font-family: Montserrat, Arial, sans-serif;
}

.otag-age-gate__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 35%, rgba(37, 99, 235, 0.22), transparent 35%),
        rgba(2, 8, 24, 0.9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.otag-age-gate__dialog {
    position: relative;
    width: min(940px, 100%);
    max-height: min(820px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid rgba(96, 123, 141, 0.36);
    border-radius: 18px;
    background:
        linear-gradient(120deg, rgba(6, 17, 43, 0.98), rgba(10, 27, 63, 0.95));
    box-shadow: 0 38px 100px rgba(0, 0, 0, 0.58);
    color: #fff;
}

.otag-age-gate__molecule {
    position: absolute;
    inset: 0 0 0 54%;
    overflow: hidden;
    opacity: 0.55;
    pointer-events: none;
}

.otag-age-gate__molecule::before,
.otag-age-gate__molecule::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    box-shadow:
        70px 72px 0 10px rgba(37, 99, 235, 0.55),
        185px 30px 0 7px rgba(230, 235, 241, 0.25),
        245px 142px 0 13px rgba(37, 99, 235, 0.42),
        112px 220px 0 8px rgba(96, 123, 141, 0.38),
        270px 270px 0 9px rgba(230, 235, 241, 0.21),
        35px 330px 0 11px rgba(37, 99, 235, 0.35);
}

.otag-age-gate__molecule::before {
    width: 16px;
    height: 16px;
    top: 20px;
    left: 20px;
    background: rgba(230, 235, 241, 0.4);
}

.otag-age-gate__molecule::after {
    width: 320px;
    height: 1px;
    top: 130px;
    left: 20px;
    background: linear-gradient(90deg, transparent, rgba(96, 123, 141, 0.45), transparent);
    transform: rotate(32deg);
    box-shadow:
        0 85px 0 rgba(96, 123, 141, 0.30),
        0 175px 0 rgba(37, 99, 235, 0.24),
        0 255px 0 rgba(96, 123, 141, 0.24);
    border-radius: 0;
}

.otag-age-gate__content {
    position: relative;
    z-index: 2;
    width: min(660px, 72%);
    padding: 58px 58px 46px;
}

.otag-age-gate__eyebrow {
    margin: 0 0 14px;
    color: #6e9cff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.otag-age-gate h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.otag-age-gate__intro {
    margin: 18px 0 24px;
    color: rgba(230, 235, 241, 0.76);
    font-size: 15px;
    line-height: 1.65;
}

.otag-age-gate__confirmation {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 14px;
    align-items: start;
    padding: 19px;
    border: 1px solid rgba(96, 123, 141, 0.38);
    border-radius: 10px;
    background: rgba(4, 12, 33, 0.56);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    line-height: 1.65;
    cursor: pointer;
}

.otag-age-gate__confirmation input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.otag-age-gate__checkmark {
    position: relative;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1px solid rgba(230, 235, 241, 0.55);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
}

.otag-age-gate__confirmation input:focus-visible + .otag-age-gate__checkmark {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 3px;
}

.otag-age-gate__confirmation input:checked + .otag-age-gate__checkmark {
    border-color: var(--otag-cg-blue);
    background: var(--otag-cg-blue);
}

.otag-age-gate__confirmation input:checked + .otag-age-gate__checkmark::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.otag-age-gate__legal {
    margin: 16px 2px 0;
    color: rgba(230, 235, 241, 0.62);
    font-size: 11px;
    line-height: 1.6;
}

.otag-age-gate__legal a {
    color: #94b7ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.otag-age-gate__error {
    margin: 12px 0 0;
    color: #f3b8b8;
    font-size: 12px;
    font-weight: 600;
}

.otag-age-gate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.otag-age-gate__actions button {
    min-height: 48px;
    padding: 0 24px;
    border-radius: 6px;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.otag-age-gate__enter {
    border: 1px solid var(--otag-cg-blue);
    background: var(--otag-cg-blue);
    color: #fff;
}

.otag-age-gate__enter:disabled {
    border-color: rgba(96, 123, 141, 0.25);
    background: rgba(96, 123, 141, 0.22);
    color: rgba(230, 235, 241, 0.4);
    cursor: not-allowed;
}

.otag-age-gate__leave {
    border: 1px solid rgba(230, 235, 241, 0.34);
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
}

.otag-age-gate__languages {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.otag-age-gate__languages a {
    color: rgba(230, 235, 241, 0.44);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
}

.otag-age-gate__languages a.is-active {
    color: #fff;
}

@media (max-width: 760px) {
    .otag-age-gate {
        padding: 14px;
    }

    .otag-age-gate__dialog {
        max-height: calc(100vh - 28px);
        border-radius: 14px;
    }

    .otag-age-gate__molecule {
        inset: 0;
        opacity: 0.18;
    }

    .otag-age-gate__content {
        width: auto;
        padding: 38px 24px 28px;
    }

    .otag-age-gate h2 {
        font-size: clamp(27px, 9vw, 38px);
    }

    .otag-age-gate__confirmation {
        padding: 16px;
        font-size: 12px;
    }

    .otag-age-gate__actions {
        display: grid;
    }

    .otag-age-gate__actions button {
        width: 100%;
    }

    .otag-research-notice {
        padding: 7px 12px;
        font-size: 8px;
        letter-spacing: 0.09em;
    }
}

/* OTAG Compliance Gate 1.0.2 — language-first verification */
.otag-age-gate__language-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -12px 0 28px;
    padding: 12px 14px;
    border: 1px solid rgba(110, 156, 255, 0.34);
    border-radius: 10px;
    background: rgba(4, 12, 33, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.otag-age-gate__language-prompt {
    color: rgba(230, 235, 241, 0.82);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.otag-age-gate__language-panel .otag-age-gate__languages {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
    margin: 0;
}

.otag-age-gate__language-panel .otag-age-gate__languages a {
    display: inline-flex;
    min-width: 42px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(230, 235, 241, 0.22);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(230, 235, 241, 0.68);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.otag-age-gate__language-panel .otag-age-gate__languages a:hover,
.otag-age-gate__language-panel .otag-age-gate__languages a:focus-visible {
    border-color: rgba(110, 156, 255, 0.8);
    color: #fff;
    transform: translateY(-1px);
}

.otag-age-gate__language-panel .otag-age-gate__languages a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.38);
    outline-offset: 2px;
}

.otag-age-gate__language-panel .otag-age-gate__languages a.is-active {
    border-color: var(--otag-cg-blue);
    background: var(--otag-cg-blue);
    color: #fff;
    box-shadow: 0 5px 16px rgba(37, 99, 235, 0.3);
}

@media (max-width: 760px) {
    .otag-age-gate__language-panel {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        margin: -8px 0 24px;
        padding: 12px;
    }

    .otag-age-gate__language-prompt {
        text-align: center;
    }

    .otag-age-gate__language-panel .otag-age-gate__languages {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .otag-age-gate__language-panel .otag-age-gate__languages a {
        min-width: 0;
        min-height: 38px;
    }
}
