/*
 * ADULT CONTENT WARNING GATE
 *
 * Loaded render-blocking from <head> on every content page, alongside adult-warning.js.
 * The script puts `adult-gate-pending` on <html> synchronously (before <body> is parsed),
 * so page content is display:none from the very first paint — nothing adult is ever shown
 * before the visitor confirms. Rules are self-contained (no base.css variables) so the gate
 * still renders correctly if any other stylesheet fails to load.
 */

html.adult-gate-pending,
html.adult-gate-pending body {
    overflow: hidden !important;
}

/* display (not opacity) so lazy images below the fold never request adult media either. */
html.adult-gate-pending body > *:not(.adult-warning) {
    display: none !important;
}

.adult-warning {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    background: #020817;
    background: radial-gradient(ellipse at 50% 30%, #101a30 0%, #020817 70%);
    font-family: Arial, Helvetica, sans-serif;
    color: #e6e6ea;
    -webkit-font-smoothing: antialiased;
}

.adult-warning-card {
    width: 100%;
    max-width: 30rem;
    margin: auto;
    padding: 2.25rem 1.75rem 1.5rem;
    border: 1px solid #262a3a;
    border-radius: 1.125rem;
    background: #0d1220;
    box-shadow: 0 1.5rem 3.75rem rgba(0, 0, 0, .6);
    text-align: center;
}

.adult-warning-badge {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    border: 1px solid rgba(236, 72, 153, .45);
    border-radius: 1rem;
    background: linear-gradient(150deg, rgba(236, 72, 153, .22), rgba(236, 72, 153, .05));
    color: #f472b6;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 4rem;
}

.adult-warning-card h1 {
    margin: 0 0 .75rem;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.adult-warning-lead {
    margin: 0 0 1.25rem;
    color: #c2c3cd;
    font-size: 1rem;
    line-height: 1.55;
}

.adult-warning-terms {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    text-align: left;
}

.adult-warning-terms li {
    position: relative;
    margin: 0 0 .6rem;
    padding-left: 1.5rem;
    color: #a6a7b4;
    font-size: .875rem;
    line-height: 1.5;
}

.adult-warning-terms li::before {
    content: "";
    position: absolute;
    top: .45rem;
    left: .35rem;
    width: .375rem;
    height: .375rem;
    border-radius: 50%;
    background: #ec4899;
}

.adult-warning-terms a {
    color: #d3d4dc;
    text-decoration: underline;
}

.adult-warning-terms a:hover {
    color: #ffffff;
}

.adult-warning-buttons {
    display: flex;
    flex-direction: column;
    gap: .625rem;
}

.adult-warning-btn {
    padding: .9rem 1rem;
    border: 1px solid transparent;
    border-radius: .75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.adult-warning-btn.enter {
    background: #ec4899;
    color: #ffffff;
}

.adult-warning-btn.enter:hover {
    background: #db2777;
}

.adult-warning-btn.exit {
    border-color: #2a2e3e;
    background: transparent;
    color: #8d8f9c;
    font-weight: 500;
}

.adult-warning-btn.exit:hover {
    color: #c2c3cd;
}

.adult-warning-btn:focus-visible {
    outline: 2px solid #35a0ff;
    outline-offset: 2px;
}

.adult-warning-footer {
    margin: 1.5rem 0 0;
    padding-top: 1.125rem;
    border-top: 1px solid #1b2030;
    color: #6f717d;
    font-size: .75rem;
    line-height: 1.6;
}

.adult-warning-footer a {
    color: #8d8f9c;
    text-decoration: underline;
}

.adult-warning-footer a:hover {
    color: #c2c3cd;
}

@media (max-width: 30rem) {
    .adult-warning-card {
        padding: 1.75rem 1.25rem 1.25rem;
    }

    .adult-warning-card h1 {
        font-size: 1.3125rem;
    }
}
