@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

.room-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.interrogation-room {
    width: 100%;
    min-width: 300px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 8px;
    padding: 3rem 2rem;
    position: relative;
    min-height: 600px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), inset 0 0 100px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

.ceiling-light {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #222;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(255,0,0,0.3);
}

.ceiling-light::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-top: 200px solid rgba(255, 50, 50, 0.08);
}

.ceiling-light::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 10px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
}

.table {
    position: absolute;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 8px;
    background: #3a3a3a;
    border-radius: 4px;
}

.table::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100px;
    background: #2a2a2a;
}

.lamp {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
}

.lamp-shade {
    width: 40px;
    height: 30px;
    background: #0a0a0a;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    border: 1px solid #333;
}

.lamp-light {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,255,200,0.4) 0%, rgba(255,255,200,0.1) 40%, transparent 70%);
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    animation: interrogationFlicker 4s infinite;
}

@keyframes interrogationFlicker {
    0%, 100% { opacity: 1; }
    45% { opacity: 1; }
    50% { opacity: 0.3; }
    55% { opacity: 1; }
    60% { opacity: 0.5; }
    65% { opacity: 1; }
}

.suspect-chair {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
}

.suspect {
    font-size: 4rem;
    animation: nervousShift 2s infinite;
}

@keyframes nervousShift {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.detective-image {
    width: 240px;
    height: 320px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border: 2px solid #2a2a2a;
}

.mirror {
    position: absolute;
    top: 80px;
    right: 40px;
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, rgba(50,50,80,0.3) 0%, rgba(20,20,40,0.5) 100%);
    border: 4px solid #1a1a1a;
    border-radius: 4px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.5);
}

.mirror::before {
    content: '🎥';
    position: absolute;
    top: -25px;
    right: -5px;
    font-size: 1.2rem;
    animation: surveillance 3s infinite;
}

@keyframes surveillance {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.question-display {
    background: rgba(0,0,0,0.8);
    border: 2px solid #2a2a2a;
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 200px;
    position: absolute;
    bottom: 480px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 700px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
}

.question-display::before {
    content: '⚠️ CONFIDENTIAL';
    position: absolute;
    top: -12px;
    left: 15px;
    font-size: 0.7rem;
    background: #8b0000;
    padding: 3px 10px;
    border-radius: 2px;
    letter-spacing: 2px;
    font-weight: bold;
}

.question-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #f0f0f0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.main-question {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #f0f0f0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.model-answers {
    background: rgba(139,0,0,0.1);
    border-left: 3px solid #8b0000;
    padding: 1rem;
    border-radius: 4px;
}

.model-answer-label {
    font-size: 0.85rem;
    color: #ff6666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.7rem;
    font-weight: bold;
}

.model-answer {
    font-size: 1rem;
    color: #d0d0d0;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.model-answer:last-child {
    margin-bottom: 0;
}

.question-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1rem;
    color: #ff4444;
    font-weight: bold;
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.btn {
    font-family: 'Space Mono', monospace;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: 2px solid #333;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.btn:hover {
    background: #2a2a2a;
    border-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.7);
}

.btn-start {
    border-color: #8b0000;
    background: #4a0000;
    box-shadow: 0 0 20px rgba(139,0,0,0.3);
}

.btn-start:hover {
    background: #6a0000;
    box-shadow: 0 0 30px rgba(139,0,0,0.5);
}

.btn-next {
    border-color: #8b6914;
    background: #4a3a0a;
}

.btn-next:hover {
    background: #6a5a1a;
}

.btn-restart {
    border-color: #8b0000;
    background: #4a0000;
}

.btn-restart:hover {
    background: #6a0000;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #1a1a1a;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    position: absolute;
    bottom: 60px;
    left: 0;
    padding: 0 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b0000, #ff0000);
    width: 0%;
    transition: width 0.5s;
    box-shadow: 0 0 10px rgba(255,0,0,0.5);
}

.case-file {
    width: 100%;
    max-width: 100%;
    flex: none;
    background: #d4c4a8;
    color: #1a1a1a;
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    max-height: none;
    overflow-y: auto;
    border: 2px solid #8b7355;
    position: relative;
}

.case-file::before {
    content: '🚔 POLICE';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 0.7rem;
    background: #1a1a1a;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    letter-spacing: 2px;
}

.case-file h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid #8b0000;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#caseNotes {
    font-size: 1.1rem;
    line-height: 1.6;
}

.note-entry {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(139,0,0,0.08);
    border-radius: 4px;
    border-left: 3px solid #8b0000;
}

.note-entry strong {
    display: block;
    margin-bottom: 0.3rem;
}

.emergency-lights {
    position: absolute;
    top: 10px;
    left: 20px;
    width: 20px;
    height: 20px;
    background: #8b0000;
    border-radius: 50%;
    animation: emergencyPulse 2s infinite;
    box-shadow: 0 0 20px rgba(139,0,0,0.8);
}

.emergency-lights::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 20px;
    height: 20px;
    background: #00008b;
    border-radius: 50%;
    animation: emergencyPulse 2s infinite 1s;
    box-shadow: 0 0 20px rgba(0,0,139,0.8);
}

@keyframes emergencyPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .room-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .interrogation-room {
        min-height: 500px;
    }
    
    .case-file {
        flex: 1;
        max-height: 400px;
    }
    
    .main-question {
        font-size: 1.2rem;
    }

    .model-answer {
        font-size: 0.9rem;
    }

    .detective-image {
        width: 200px;
        height: 267px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .question-display {
        bottom: 380px;
        width: calc(100% - 2rem);
        padding: 1.5rem;
        max-width: none;
    }
}

/* Give the teenage interview subject a clear, prominent place in the room. */
.interrogation-room {
    min-height: 760px;
}

.suspect-chair {
    left: 5%;
    bottom: 95px;
    transform: none;
    z-index: 1;
}

.teen-image {
    display: block;
    width: min(36vw, 410px);
    height: 590px;
    object-fit: cover;
    object-position: center 38%;
    border-radius: 6px;
    border: 2px solid #343434;
    box-shadow: 0 12px 45px rgba(0,0,0,0.8);
}

.question-display {
    top: 90px;
    right: 3rem;
    bottom: auto;
    left: auto;
    transform: none;
    width: min(58%, 700px);
    z-index: 2;
}

@media (max-width: 768px) {
    .interrogation-room {
        min-height: 820px;
    }

    .suspect-chair {
        left: 50%;
        bottom: 95px;
        transform: translateX(-50%);
    }

    .teen-image {
        width: 250px;
        height: 375px;
    }

    .question-display {
        top: 55px;
        right: 1rem;
        left: 1rem;
        bottom: auto;
        width: auto;
        max-height: 340px;
        overflow-y: auto;
        padding: 1.25rem;
    }
}


/* Keep the question controls clear of the subject photo. */
.controls {
    left: auto;
    right: 3rem;
    transform: none;
    width: min(58%, 700px);
    z-index: 4;
}

@media (max-width: 768px) {
    .interrogation-room {
        min-height: 980px;
    }

    .suspect-chair {
        bottom: 160px;
    }

    .controls {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 100%;
        bottom: 90px;
    }
}


/* Atmospheric police-station backdrop: practical lamp, drifting smoke, worn wanted posters. */
.interrogation-room {
    background: linear-gradient(rgba(4, 6, 10, 0.36), rgba(4, 5, 8, 0.55)), url('room-atmosphere.png') center / cover no-repeat;
    isolation: isolate;
}

/* The photo backdrop supplies the room's real fixtures and wall details. */
.ceiling-light,
.table,
.mirror {
    display: none;
}

.emergency-lights {
    opacity: 0.55;
}

.question-display {
    background: rgba(0, 0, 0, 0.72);
}


.page-title {
    color: #9b9895;
    font-size: clamp(1.15rem, 2.5vw, 1.9rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 0 18px rgba(150, 20, 20, 0.22);
    margin: 0 0 -0.8rem;
}

@media (max-width: 520px) {
    .page-title {
        font-size: 1.05rem;
        letter-spacing: 0.11em;
    }
}
