/* turingtest.quest - Film Noir Quest */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --white: #FFFFFF;
    --silver: #C0C0C0;
    --light-gray: #F0F0F0;
    --mid-gray: #808080;
    --near-black: #1A1A1A;
    --dark-gray: #404040;
    --void: #0A0A0A;
}

body {
    background: var(--void);
    color: var(--white);
    font-family: 'Literata', serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    font-weight: 400;
    overflow-x: hidden;
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(128,128,128,0.06) 79px, rgba(128,128,128,0.06) 80px),
        repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(128,128,128,0.06) 79px, rgba(128,128,128,0.06) 80px);
}

/* Scenes */
.scene {
    width: 100vw;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.scene.dark { background: var(--void); }
.scene.light { background: var(--light-gray); }

/* Bokeh Spotlights */
.bokeh {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
    pointer-events: none;
}
.bokeh-1 { width: 400px; height: 400px; top: 30%; left: 40%; opacity: 0; animation: bokhIn 1.5s ease forwards; }
.bokeh-2 { width: 300px; height: 300px; top: 10%; left: 15%; }
.bokeh-3 { width: 250px; height: 250px; bottom: 20%; right: 20%; }
.bokeh-4 { width: 350px; height: 350px; bottom: 15%; right: 10%; }
.bokeh-5 { width: 300px; height: 300px; top: 20%; left: 30%; }
.bokeh-6 { width: 200px; height: 200px; bottom: 25%; left: 10%; }
@keyframes bokhIn {
    to { opacity: 1; }
}

/* Scene Content Positioning */
.scene-content {
    max-width: 700px;
    padding: 3rem;
    position: relative;
    z-index: 2;
}
.scene-content.center { text-align: center; }
.scene-content.top-left { align-self: flex-start; margin-right: auto; padding-top: 6rem; }
.scene-content.center-right { margin-left: auto; margin-right: 5%; }
.scene-content.bottom-right { align-self: flex-end; margin-left: auto; padding-bottom: 6rem; }
.scene-content.top-right { align-self: flex-start; margin-left: auto; padding-top: 6rem; margin-right: 5%; }

/* Title */
.quest-title {
    font-family: 'Playfair Display', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.title-line {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
    opacity: 0;
    animation: letterReveal 1s ease forwards 1.5s;
}
.title-sub {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--silver);
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
    opacity: 0;
    animation: letterReveal 1s ease forwards 2.5s;
}
@keyframes letterReveal {
    to { opacity: 1; }
}

/* Scene Labels */
.scene-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--mid-gray);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}
.dark-label { color: var(--dark-gray); }

/* Scene Headings */
.scene-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
}
.dark-heading { color: var(--void); }

/* Scene Body */
.scene-body {
    font-family: 'Literata', serif;
    font-size: 1.0625rem;
    color: var(--silver);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.dark-body { color: var(--dark-gray); }

/* Test Data */
.test-data {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--mid-gray);
    letter-spacing: 0.04em;
}
.dark-data { color: var(--mid-gray); }

/* Typewriter Dialogue */
.typewriter-dialogue {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}
.dialogue-line {
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.dialogue-line.visible {
    opacity: 1;
    transform: translateX(0);
}
.speaker {
    color: var(--mid-gray);
    margin-right: 0.5rem;
}
.judge-line .typed-text { color: var(--white); }
.entity-line .typed-text { color: var(--silver); }

/* Scene transitions */
.scene .scene-content {
    opacity: 0;
    transition: opacity 0.6s ease;
}
.scene.visible .scene-content {
    opacity: 1;
}

/* Footer */
.scene-footer {
    min-height: auto;
    padding: 4rem 2rem;
}
.footer-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--mid-gray);
    letter-spacing: 0.06em;
}

/* Responsive */
@media (max-width: 768px) {
    .scene-content {
        padding: 2rem;
        margin: 0 auto;
    }
    .scene-content.top-left,
    .scene-content.center-right,
    .scene-content.bottom-right,
    .scene-content.top-right {
        align-self: center;
        margin: 0 auto;
        padding: 2rem;
    }
}
