/* ========================================
   LAB TESTS - INTEGRATED THEME STYLES
   Bunkros Identity Lab
   ======================================== */

/* ========================================
   BASE VARIABLES (Dark/Underground Theme)
   ======================================== */
:root {
    /* Lab Tests specific colors */
    --lab-ink: #06060a;
    --lab-panel: #0f1016;
    --lab-panel-2: #11121b;
    --lab-accent: var(--primary-accent, #ff005a);
    --lab-accent-2: #ff3d7c;
    --lab-accent-rgb: var(--primary-accent-rgb, 255, 0, 90);
    --lab-muted: #aeb1bc;
    --lab-stroke: rgba(var(--lab-accent-rgb), 0.32);
    --lab-glow: 0 24px 62px rgba(var(--lab-accent-rgb), 0.24);
    
    /* Surface colors */
    --lab-bg: var(--bg-base, #0a0a0f);
    --lab-surface: var(--bg-surface, #111118);
    --lab-elevated: var(--bg-elevated, #1a1a24);
    --lab-border: var(--border-color, #2a2a3a);
    
    /* Text colors */
    --lab-text: var(--text-primary, #f0f0f8);
    --lab-text-secondary: var(--text-secondary, #b0b0c0);
    --lab-text-muted: var(--text-tertiary, #707080);
    
    /* Card styling */
    --lab-card-bg: linear-gradient(155deg, var(--lab-panel), var(--lab-panel-2));
    --lab-card-border: rgba(255, 255, 255, 0.12);
    --lab-card-shadow: 0 16px 38px rgba(0, 0, 0, 0.4);
    --lab-card-border-gradient: linear-gradient(135deg, rgba(255, 0, 90, 0.7) 0%, rgba(0, 238, 255, 0.45) 45%, rgba(157, 0, 255, 0.4) 75%, rgba(255, 0, 90, 0.7) 100%);
    --lab-card-border-gradient-hover: linear-gradient(135deg, rgba(255, 0, 90, 0.95) 0%, rgba(0, 238, 255, 0.6) 45%, rgba(157, 0, 255, 0.5) 75%, rgba(255, 0, 90, 0.95) 100%);
    --lab-tag-gradient: linear-gradient(135deg, rgba(255, 0, 90, 0.9) 0%, rgba(255, 61, 124, 0.7) 55%, rgba(0, 238, 255, 0.45) 100%);
    --lab-tag-glow: rgba(var(--lab-accent-rgb), 0.35);
    
    /* Option/Interactive elements */
    --lab-option-bg: rgba(255, 255, 255, 0.04);
    --lab-option-border: rgba(255, 255, 255, 0.12);
    --lab-option-hover-bg: rgba(255, 255, 255, 0.08);
    
    /* Hero styling */
    --lab-hero-overlay: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.8));
    --lab-eyebrow-color: #ffddef;
    
    /* Console/Quiz area */
    --lab-console-bg: #0c0c12;
    --lab-console-border: rgba(255, 255, 255, 0.12);
    
    /* Results/Share */
    --lab-result-bg: #0c0c12;
    --lab-share-bg: rgba(255, 255, 255, 0.03);
    --lab-share-border: rgba(255, 255, 255, 0.18);
}

/* ========================================
   LIGHT THEME (Above Ground)
   ======================================== */
[data-theme="light"] {
    --lab-ink: #faf8f5;
    --lab-panel: #ffffff;
    --lab-panel-2: #f5f2ed;
    --lab-accent: var(--primary-accent, #ff3366);
    --lab-accent-2: #ff6b8a;
    --lab-accent-rgb: var(--primary-accent-rgb, 255, 51, 102);
    --lab-muted: #6a625a;
    --lab-stroke: rgba(var(--lab-accent-rgb), 0.25);
    --lab-glow: 0 20px 50px rgba(var(--lab-accent-rgb), 0.15);
    
    /* Surface colors */
    --lab-bg: var(--bg-base, #faf8f5);
    --lab-surface: var(--bg-surface, #ffffff);
    --lab-elevated: var(--bg-elevated, #f5f2ed);
    --lab-border: var(--border-color, #e0d8cc);
    
    /* Text colors */
    --lab-text: var(--text-primary, #1a1816);
    --lab-text-secondary: var(--text-secondary, #4a4640);
    --lab-text-muted: var(--text-tertiary, #8a8378);
    
    /* Card styling */
    --lab-card-bg: linear-gradient(155deg, #ffffff, #f9f7f4);
    --lab-card-border: rgba(0, 0, 0, 0.08);
    --lab-card-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    --lab-card-border-gradient: linear-gradient(135deg, #8ff1c5 0%, #9fd6ff 45%, #cdb8ff 70%, #ffd0ea 100%);
    --lab-card-border-gradient-hover: linear-gradient(135deg, #7df3c0 0%, #8fc7ff 40%, #b8a8ff 70%, #ffb9e1 100%);
    --lab-tag-gradient: linear-gradient(135deg, #ff3b6f 0%, #ff6f8f 55%, #ff9ec1 100%);
    --lab-tag-glow: rgba(255, 59, 111, 0.28);
    
    /* Option/Interactive elements */
    --lab-option-bg: rgba(0, 0, 0, 0.02);
    --lab-option-border: rgba(0, 0, 0, 0.1);
    --lab-option-hover-bg: rgba(0, 0, 0, 0.04);
    
    /* Hero styling */
    --lab-hero-overlay: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.85));
    --lab-eyebrow-color: var(--lab-accent);
    
    /* Console/Quiz area */
    --lab-console-bg: #ffffff;
    --lab-console-border: var(--lab-border);
    
    /* Results/Share */
    --lab-result-bg: #ffffff;
    --lab-share-bg: rgba(0, 0, 0, 0.02);
    --lab-share-border: var(--lab-border);
}

/* ========================================
   LAB TESTS HUB (index.php)
   ======================================== */
.lab-tests {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.4rem 0 3rem;
}

.lab-tests * {
    box-sizing: border-box;
}

/* Hero Section */
.lab-tests .hero {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--lab-stroke);
    box-shadow: var(--lab-glow);
    margin-bottom: 1.8rem;
    background: var(--lab-surface);
    height: clamp(420px, 78svh, 640px);
}

.lab-tests .hero video,
.lab-tests .hero img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.lab-tests .hero .overlay {
    position: absolute;
    inset: 0;
    background: var(--lab-hero-overlay);
}

[data-theme="light"] .lab-tests .hero .overlay {
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.85));
}

.lab-tests .hero-content {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: flex-end;
    justify-items: start;
    text-align: left;
    padding: clamp(1.4rem, 3vw, 2.8rem);
    gap: 0.45rem;
}

.lab-tests .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--lab-eyebrow-color);
    font-weight: 700;
    font-size: 0.78rem;
}

.lab-tests .title-main {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--lab-text);
}

[data-theme="light"] .lab-tests .title-main {
    color: #1a1816;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.lab-tests .subtitle {
    color: var(--lab-text-secondary);
    max-width: 720px;
    margin: 0;
}

.lab-tests .pill-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
    justify-content: flex-start;
}

.lab-tests .pill {
    border: 1px solid var(--lab-border);
    background: var(--lab-option-bg);
    color: var(--lab-text);
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
}

[data-theme="light"] .lab-tests .pill {
    border: 2px solid #ff4b6e;
}

@media (min-width: 900px) {
    .lab-tests .hero-content {
        align-content: flex-end;
        text-align: left;
        justify-items: start;
    }

    .lab-tests .subtitle {
        margin: 0;
    }

    .lab-tests .pill-row {
        justify-content: flex-start;
    }
}

/* How-to Cards */
.lab-tests .howto {
    margin-bottom: 1.4rem;
}

.lab-tests .howto-swiper {
    padding-bottom: 1.4rem;
}

.lab-tests .howto-swiper .swiper-wrapper {
    align-items: stretch;
}

.lab-tests .howto-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.lab-tests .howto-swiper .swiper-pagination {
    margin-top: 0.6rem;
}

.lab-tests .howto-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--lab-border);
    opacity: 1;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

.lab-tests .howto-swiper .swiper-pagination-bullet-active {
    width: 22px;
    background: var(--lab-accent);
}

.lab-tests .how-card {
    background: var(--lab-card-bg);
    border: 1px solid var(--lab-card-border);
    border-radius: 14px;
    padding: 0.95rem;
    box-shadow: var(--lab-card-shadow);
    color: var(--lab-text-secondary);
    height: 100%;
}

.lab-tests .how-card strong {
    color: var(--lab-accent);
    background: linear-gradient(135deg, var(--lab-accent), var(--lab-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(var(--lab-accent-rgb), 0.25);
}

/* Test Grid */
.lab-tests .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.lab-tests .card {
    background:
        var(--lab-card-bg) padding-box,
        var(--lab-card-border-gradient) border-box;
    border: 2px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--lab-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lab-tests .card:hover {
    transform: translateY(-6px) scale(1.01);
    background:
        var(--lab-card-bg) padding-box,
        var(--lab-card-border-gradient-hover) border-box;
    box-shadow: var(--lab-glow);
    filter: saturate(1.05);
}

.lab-tests .card:active {
    transform: translateY(-2px) scale(0.99);
    box-shadow: 0 12px 26px rgba(var(--lab-accent-rgb), 0.2);
    filter: saturate(0.98);
}

.lab-tests .card:focus-within {
    box-shadow: 0 0 0 3px rgba(var(--lab-accent-rgb), 0.2), var(--lab-glow);
}

.lab-tests .card img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    height: auto;
    object-position: var(--image-focus, center top);
    display: block;
}

.lab-tests .card-body {
    padding: 0.95rem 1rem 1.05rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.lab-tests .card .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: var(--lab-tag-gradient);
    color: #ffffff;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(var(--lab-accent-rgb), 0.22);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    background-size: 160% 160%;
    background-position: 0% 50%;
}

@keyframes tagPulse {
    0%, 100% {
        box-shadow: 0 8px 16px rgba(var(--lab-accent-rgb), 0.22);
        filter: saturate(1);
        background-position: 0% 50%;
    }
    50% {
        box-shadow: 0 12px 24px var(--lab-tag-glow);
        filter: saturate(1.08);
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lab-tests .card .tag {
        animation: tagPulse 2.6s ease-in-out infinite;
    }
}

.lab-tests .card h3 {
    margin: 0;
    color: var(--lab-text);
    font-size: 1.08rem;
}

.lab-tests .card p {
    margin: 0;
    color: var(--lab-text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

.lab-tests .actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.4rem;
    margin-top: auto;
}

.lab-tests .actions a {
    text-decoration: none;
    background: linear-gradient(135deg, var(--lab-accent), var(--lab-accent-2));
    color: #fff;
    font-weight: 800;
    padding: 0.62rem 0.85rem;
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(var(--lab-accent-rgb), 0.28);
    transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.lab-tests .actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(var(--lab-accent-rgb), 0.35);
}

.lab-tests .external-note {
    color: var(--secondary-accent, #00eeff);
    font-size: 0.85rem;
}

[data-theme="light"] .lab-tests .external-note {
    color: var(--secondary-accent, #00c8d4);
}

/* ========================================
   INDIVIDUAL TEST PAGES - COMMON STYLES
   ======================================== */

/* Container for tests */
.scene, .homo, .audit, .cool, .queer-test {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.4rem 0 3rem;
}

.scene *, .homo *, .audit *, .cool *, .queer-test * {
    box-sizing: border-box;
}

/* Hero - Individual Tests */
.scene .hero,
.homo .hero,
.audit .hero,
.cool .hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--lab-stroke);
    box-shadow: var(--lab-glow);
    margin-bottom: 1.6rem;
    background: var(--lab-surface);
}

.scene .hero img,
.scene .hero video,
.homo .hero img,
.homo .hero video,
.audit .hero img,
.audit .hero video,
.cool .hero img,
.cool .hero video {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.scene .hero .overlay,
.homo .hero .overlay,
.audit .hero .overlay,
.cool .hero .overlay {
    position: absolute;
    inset: 0;
    background: var(--lab-hero-overlay);
}

[data-theme="light"] .scene .hero .overlay,
[data-theme="light"] .homo .hero .overlay,
[data-theme="light"] .audit .hero .overlay,
[data-theme="light"] .cool .hero .overlay {
    background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.85));
}

.scene .hero-content,
.homo .hero-content,
.audit .hero-content,
.cool .hero-content {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    gap: 0.4rem;
    padding: clamp(1.2rem, 2vw, 1.8rem);
}

.scene .eyebrow,
.homo .eyebrow,
.audit .eyebrow,
.cool .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--lab-eyebrow-color);
    font-weight: 700;
    font-size: 0.78rem;
}

.scene .title-main,
.homo .title-main,
.audit .title-main,
.cool .title-main {
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--lab-text);
}

[data-theme="light"] .scene .title-main,
[data-theme="light"] .homo .title-main,
[data-theme="light"] .audit .title-main,
[data-theme="light"] .cool .title-main {
    color: #1a1816;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.scene .subtitle,
.homo .subtitle,
.audit .subtitle,
.cool .subtitle {
    color: var(--lab-text-secondary);
    max-width: 760px;
}

.scene .pill-row,
.homo .pill-row,
.audit .pill-row,
.cool .pill-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.scene .pill,
.homo .pill,
.audit .pill,
.cool .pill {
    border: 1px solid var(--lab-border);
    background: var(--lab-option-bg);
    color: var(--lab-text);
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
}

/* Grid Layout for Tests */
.scene .grid,
.homo .grid,
.audit .grid,
.cool .grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1rem;
}

@media (max-width: 900px) {
    .scene .grid,
    .homo .grid,
    .audit .grid,
    .cool .grid {
        grid-template-columns: 1fr;
    }
}

/* Card Styles */
.scene .card,
.homo .card,
.audit .card,
.cool .card {
    background: var(--lab-card-bg);
    border: 1.2px solid var(--lab-card-border);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--lab-card-shadow);
}

.scene .card h2,
.homo .card h2,
.audit .card h2,
.cool .card h2 {
    margin: 0 0 0.4rem 0;
    color: var(--lab-text);
}

.scene .card p,
.homo .card p,
.audit .card p,
.cool .card p {
    margin: 0.2rem 0;
    color: var(--lab-text-secondary);
}

/* Mini Cards/Grid */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.7rem;
    margin-top: 0.6rem;
}

.mini-card {
    background: var(--lab-option-bg);
    border: 1px solid var(--lab-option-border);
    border-radius: 12px;
    padding: 0.75rem;
    color: var(--lab-text-secondary);
    line-height: 1.55;
}

.mini-card strong {
    color: var(--lab-text);
}

/* Steps */
.steps {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    align-items: center;
    color: var(--lab-text-secondary);
}

.step .n {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--lab-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

/* Console/Quiz Area */
.console {
    background: var(--lab-console-bg);
    border: 1px solid var(--lab-console-border);
    border-radius: 16px;
    padding: 1rem 1rem 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .console {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--lab-muted);
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
}

.question-text {
    color: var(--lab-text);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

/* Options */
.options {
    display: grid;
    gap: 0.45rem;
}

.option {
    background: var(--lab-option-bg);
    border: 1px solid var(--lab-option-border);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    color: var(--lab-text-secondary);
}

.option:hover {
    transform: translateY(-1px);
    border-color: var(--lab-accent);
    box-shadow: 0 8px 18px rgba(var(--lab-accent-rgb), 0.18);
    background: var(--lab-option-hover-bg);
}

.option.selected {
    border-color: var(--lab-accent);
    box-shadow: 0 12px 28px rgba(var(--lab-accent-rgb), 0.2);
    color: var(--lab-text);
    background: var(--lab-option-hover-bg);
}

/* Progress Bar */
.progress {
    height: 8px;
    background: var(--lab-option-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.8rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--lab-accent), var(--lab-accent-2));
    width: 0%;
    transition: width 0.4s ease;
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.nav-btn {
    border: 1px solid var(--lab-border);
    background: var(--lab-option-bg);
    color: var(--lab-text);
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-btn:hover {
    border-color: var(--lab-accent);
    background: var(--lab-option-hover-bg);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.primary-btn,
.btn {
    appearance: none;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--lab-accent), var(--lab-accent-2));
    box-shadow: 0 12px 24px rgba(var(--lab-accent-rgb), 0.28);
    transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.primary-btn:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(var(--lab-accent-rgb), 0.32);
}

/* Result Section */
.result {
    display: none;
    margin-top: 1rem;
    background: var(--lab-result-bg);
    border: 1px solid var(--lab-card-border);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .result {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.result h3 {
    margin: 0 0 0.35rem 0;
    color: var(--lab-text);
}

.result p {
    margin: 0 0 0.5rem 0;
    color: var(--lab-text-secondary);
    line-height: 1.6;
}

.share {
    background: var(--lab-share-bg);
    border: 1px dashed var(--lab-share-border);
    padding: 0.8rem;
    border-radius: 12px;
    color: var(--lab-text-secondary);
    white-space: pre-wrap;
    font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 0.9rem;
}

/* Tags */
.tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.tags .tag,
.tag {
    border: 1px solid var(--lab-border);
    color: var(--lab-text);
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: var(--lab-option-bg);
}

/* Educational Section */
.edu {
    margin-top: 1rem;
    background: var(--lab-option-bg);
    border: 1px solid var(--lab-option-border);
    border-radius: 12px;
    padding: 0.9rem;
    color: var(--lab-text-secondary);
}

.edu h4 {
    margin: 0 0 0.35rem 0;
    color: var(--lab-text);
}

.edu ul {
    margin: 0;
    padding-left: 1.1rem;
}

.edu li {
    margin: 0.2rem 0;
}

/* ========================================
   QUEER PERSONALITY TEST SPECIFIC
   ======================================== */
.queer-test .test-header {
    text-align: center;
    padding: 2em 1em 1.5em;
    background: linear-gradient(180deg, rgba(var(--lab-accent-rgb), 0.15) 0%, transparent 100%);
    border-bottom: 1px solid var(--lab-stroke);
}

.queer-test .test-header h1 {
    font-size: 2.5rem;
    color: var(--lab-accent);
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--lab-accent);
}

[data-theme="light"] .queer-test .test-header h1 {
    text-shadow: none;
}

.queer-test .test-header p {
    font-size: 1.1rem;
    color: var(--lab-text-secondary);
    margin: 0.5em 0 0;
    font-style: italic;
}

.queer-test .quote-block {
    border-left: 4px solid var(--lab-accent);
    padding: 1em 1.5em;
    margin: 2em auto;
    max-width: 700px;
    background: var(--lab-surface);
    font-style: italic;
    color: var(--lab-text-secondary);
    box-shadow: 0 0 20px rgba(var(--lab-accent-rgb), 0.15);
    border-radius: 0 8px 8px 0;
}

.queer-test .intro {
    max-width: 700px;
    margin: 2.5em auto;
    border: 1px solid var(--lab-border);
    border-radius: 10px;
    padding: 1.5em 2em;
    background: var(--lab-surface);
}

.queer-test .lineup-container {
    max-width: 700px;
    margin: 2.5em auto;
    background: var(--lab-surface);
    border: 1px solid var(--lab-border);
    border-radius: 10px;
    padding: 1.5em 2em;
}

.queer-test .feature-image-container {
    max-width: 700px;
    margin: 3em auto;
    text-align: center;
}

.queer-test .feature-image-container img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(var(--lab-accent-rgb), 0.2);
}

.queer-test .video-section {
    max-width: 700px;
    margin: 3em auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 35px rgba(var(--lab-accent-rgb), 0.25);
    background: var(--lab-surface);
}

.queer-test .video-section video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.queer-test .question {
    background: var(--lab-surface);
    border: 1px solid var(--lab-border);
    border-radius: 10px;
    margin-bottom: 2em;
    padding: 1.5em;
    box-shadow: 0 0 15px rgba(var(--lab-accent-rgb), 0.1);
}

.queer-test .question label {
    display: block;
    margin-bottom: 1em;
    font-size: 1.1em;
    color: var(--lab-text);
}

/* ========================================
   INTERROGATION ROOM SPECIFIC
   ======================================== */
#interrogation-room-wrapper {
    --neon-red: var(--lab-accent, #ff1744);
    --neon-red-glow: rgba(var(--lab-accent-rgb), 0.6);
    --neon-red-dim: rgba(var(--lab-accent-rgb), 0.3);
    --dark-bg: var(--lab-bg, #0a0a0a);
    --darker-bg: var(--lab-ink, #050505);
    --surface: var(--lab-surface, #121212);
    --surface-light: var(--lab-elevated, #1a1a1a);
    --surface-hover: var(--lab-option-hover-bg, #252525);
    --text-primary: var(--lab-text, #ffffff);
    --text-secondary: var(--lab-text-secondary, #888888);
    --text-dim: var(--lab-text-muted, #555555);
}

[data-theme="light"] #interrogation-room-wrapper {
    --dark-bg: var(--lab-bg);
    --darker-bg: var(--lab-elevated);
    --surface: var(--lab-surface);
    --surface-light: #ffffff;
    --surface-hover: rgba(0, 0, 0, 0.04);
    --text-primary: var(--lab-text);
    --text-secondary: var(--lab-text-secondary);
    --text-dim: var(--lab-text-muted);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 960px) {
    .lab-tests {
        width: calc(100% - 1.4rem);
        padding: 1.8rem 0 2.4rem;
    }
}

@media (max-width: 768px) {
    .scene, .homo, .audit, .cool, .queer-test {
        width: calc(100% - 1rem);
        padding: 1.5rem 0 2rem;
    }
    
    .scene .hero img,
    .scene .hero video,
    .homo .hero img,
    .homo .hero video,
    .audit .hero img,
    .audit .hero video,
    .cool .hero img,
    .cool .hero video {
        height: 240px;
    }
}
