/* =========================================
   CASE FILE #EGO-001 - INVESTIGATION BOARD
   Investigation Game Stylesheet
   ========================================= */

/* RESET & BASE */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg-dark: #1a1815;
    --bg-darker: #0f0e0c;
    --bg-card: #242220;
    --bg-paper: #f4f0e8;
    --bg-folder: #d4c9b5;

    --text-light: #e8e4dc;
    --text-muted: #8a8275;
    --text-dark: #1a1815;

    --accent-red: #8b3a3a;
    --accent-red-bright: #c45050;
    --accent-gold: #a08050;
    --success: #4a7c59;

    /* Typography */
    --font-display: 'Special Elite', monospace;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-body: 'Crimson Pro', serif;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hard: 0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow-glow-red: 0 0 20px rgba(139, 58, 58, 0.3);
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Cork Board Texture */
.board-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(50, 45, 40, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(50, 45, 40, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Crack Decorations */
.crack-decoration {
    position: fixed;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 58, 58, 0.2), transparent);
    pointer-events: none;
    z-index: 2;
}

.crack-1 {
    top: 20%;
    left: 10%;
    transform: rotate(35deg);
    width: 150px;
}

.crack-2 {
    top: 50%;
    right: 5%;
    transform: rotate(-20deg);
    width: 120px;
}

.crack-3 {
    bottom: 30%;
    left: 20%;
    transform: rotate(15deg);
    width: 100px;
}

/* SCREEN SYSTEM */
.investigation-board {
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

.screen {
    display: none;
    opacity: 0;
    min-height: 100vh;
    padding: 2rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
}

.screen.fade-out {
    animation: fadeOut 0.4s forwards;
}

.screen.fade-in {
    animation: fadeIn 0.4s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* NAME ENTRY SCREEN */
.name-entry-container {
    max-width: 450px;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.name-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.name-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.name-input-wrapper {
    margin-bottom: 1.5rem;
}

.name-input-wrapper label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

#investigatorName {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--text-muted);
    color: var(--text-light);
    text-align: center;
    transition: border-color 0.3s;
}

#investigatorName:focus {
    outline: none;
    border-color: var(--accent-red);
}

#investigatorName::placeholder {
    color: var(--text-muted);
}

.name-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* BUTTONS */
.proceed-btn,
.examine-btn,
.interrogation-btn,
.conclude-btn,
.question-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 2px;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.proceed-btn:hover:not(:disabled),
.examine-btn:hover,
.interrogation-btn:hover,
.conclude-btn:hover,
.question-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-glow-red);
}

.proceed-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.start-btn {
    background: var(--accent-red);
    border-color: var(--accent-red);
    font-size: 1rem;
    padding: 1.25rem 2rem;
}

.start-btn:hover {
    background: var(--accent-red-bright);
    border-color: var(--accent-red-bright);
    box-shadow: var(--shadow-glow-red);
}

.back-btn {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--text-muted);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
}

.back-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

/* CASE FOLDER */
.case-folder {
    position: relative;
    max-width: 550px;
    background: var(--bg-paper);
    padding: 0;
    border-radius: 0 15px 3px 3px;
    box-shadow: var(--shadow-soft);
    color: var(--text-dark);
}

.folder-tab {
    position: absolute;
    top: -25px;
    left: 30px;
    background: var(--bg-paper);
    padding: 6px 20px;
    border-radius: 6px 6px 0 0;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-dark);
}

.folder-content {
    padding: 2.5rem;
    position: relative;
}

.stamp {
    position: absolute;
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
    padding: 4px 10px;
    transform: rotate(-8deg);
}

.stamp:first-of-type {
    top: 1rem;
    right: 1rem;
}

.date-stamp {
    top: 1rem;
    left: 1rem;
    transform: rotate(5deg);
    color: var(--text-muted);
    border-color: var(--text-muted);
}

.case-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 4px;
    text-align: center;
    margin: 2rem 0 1.5rem;
    color: var(--text-dark);
}

.victim-section {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.05);
}

.victim-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.victim-name {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 6px;
    margin: 0.5rem 0;
}

.victim-descriptor {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.case-details {
    margin-bottom: 1.5rem;
}

.detail-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
}

.detail-line .label {
    color: var(--text-muted);
}

.detail-line .value {
    font-weight: 500;
}

.detail-line .value.blink {
    color: var(--accent-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.case-summary {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-left: 3px solid var(--accent-red);
}

.investigator-note {
    background: #fff8dc;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transform: rotate(-1deg);
}

.investigator-note p:first-child {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.note-content {
    font-family: var(--font-body);
    font-style: italic;
}

.note-signature {
    text-align: right;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* BOARD OVERVIEW SCREEN */
#screen-board {
    justify-content: flex-start;
    padding-top: 1.5rem;
    overflow-y: auto;
}

#screen-board.active {
    min-height: 100vh;
    height: auto;
}

.board-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.red-thread {
    position: absolute;
    background: var(--accent-red);
    opacity: 0.3;
}

.thread-1 {
    width: 2px;
    height: 200px;
    top: 10%;
    left: 15%;
    transform: rotate(45deg);
}

.thread-2 {
    width: 150px;
    height: 2px;
    top: 40%;
    right: 10%;
    transform: rotate(-20deg);
}

.thread-3 {
    width: 2px;
    height: 150px;
    bottom: 20%;
    left: 25%;
    transform: rotate(-30deg);
}

.pushpin {
    position: absolute;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle at 30% 30%, var(--accent-red-bright), var(--accent-red));
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.pin-deco-1 {
    top: 8%;
    left: 13%;
}

.pin-deco-2 {
    top: 38%;
    right: 8%;
}

.pin-deco-3 {
    bottom: 18%;
    left: 23%;
}

.scattered-fragment {
    position: absolute;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.1);
    transform: rotate(var(--rotation, 15deg));
}

.frag-1 {
    top: 15%;
    right: 20%;
    --rotation: -10deg;
}

.frag-2 {
    top: 55%;
    left: 8%;
    --rotation: 25deg;
}

.frag-3 {
    bottom: 35%;
    right: 12%;
    --rotation: -20deg;
}

.frag-4 {
    bottom: 15%;
    left: 30%;
    --rotation: 10deg;
}

.note-scrap {
    position: absolute;
    font-family: var(--font-display);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.15);
    transform: rotate(var(--rotation, -5deg));
    letter-spacing: 1px;
}

.scrap-1 {
    top: 20%;
    right: 8%;
    --rotation: 3deg;
}

.scrap-2 {
    bottom: 40%;
    left: 5%;
    --rotation: -8deg;
}

.scrap-3 {
    bottom: 10%;
    right: 25%;
    --rotation: 5deg;
}

.board-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.board-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.board-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 8px;
    margin-bottom: 0.25rem;
}

.board-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* INVESTIGATION PHASES */
.investigation-phase {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s ease;
}

.investigation-phase.locked {
    opacity: 0.4;
    pointer-events: none;
}

.investigation-phase.completed {
    border-color: var(--success);
}

.investigation-phase.completed::after {
    content: '✓ COMPLETE';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--success);
    color: white;
    font-size: 0.65rem;
    padding: 3px 8px;
    letter-spacing: 1px;
}

.phase-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.phase-lock-overlay span {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.phase-lock-overlay p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.investigation-phase:not(.locked) .phase-lock-overlay {
    display: none;
}

.phase-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.phase-number {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    font-size: 0.65rem;
    padding: 3px 10px;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.phase-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 0.25rem;
}

.phase-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* EXHIBITS */
.exhibits-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.exhibit-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exhibit-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-glow-red);
}

.exhibit-card.examined {
    border-color: var(--success);
}

.exhibit-card.examined .status-icon {
    color: var(--success);
}

.exhibit-card.examined .status-text {
    color: var(--success);
}

.exhibit-pin {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 30% 30%, #c9a86c, #8b7355);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.exhibit-image-container {
    position: relative;
    margin-bottom: 1rem;
    overflow: hidden;
}

.exhibit-image-container img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    filter: contrast(1.1) saturate(0.9);
}

.crack-overlay,
.eye-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.exhibit-info {
    text-align: center;
    margin-bottom: 1rem;
}

.exhibit-label {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--accent-red);
    margin-bottom: 0.25rem;
}

.exhibit-info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.exhibit-info p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.exhibit-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* TIMELINE PREVIEW */
.timeline-preview {
    position: relative;
    padding: 1.5rem 0;
}

.timeline-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1rem 0;
}

.timeline-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--text-muted), var(--accent-red));
    transform: translateY(-50%);
}

.timeline-point {
    position: relative;
    width: 14px;
    height: 14px;
    background: var(--text-muted);
    border-radius: 50%;
    z-index: 1;
}

.timeline-point.final {
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
}

.timeline-point::after {
    content: attr(data-label);
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    letter-spacing: 1px;
    white-space: nowrap;
    color: var(--text-muted);
}

.timeline-action {
    text-align: center;
    margin-top: 1.5rem;
}

.timeline-status {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* SUSPECTS PREVIEW */
.suspects-preview {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.suspects-preview .suspect-thumb {
    position: relative;
    width: 70px;
    height: 70px;
}

.suspects-preview .suspect-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.suspects-preview .suspect-thumb span {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-red);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.interrogation-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 350px;
    margin: 0.75rem auto;
    padding: 1rem;
    background: rgba(139, 58, 58, 0.1);
    border: 1px solid var(--accent-red);
}

.interrogation-btn .btn-icon {
    font-size: 1.2rem;
}

.interrogation-progress {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* CONCLUSION PROMPT */
.conclusion-prompt {
    text-align: center;
    padding: 1rem 0;
}

.conclusion-prompt h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.conclusion-prompt p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.conclude-btn {
    background: var(--accent-red);
    border-color: var(--accent-red);
    padding: 1.25rem 2rem;
    font-size: 1rem;
}

/* EVIDENCE DISPLAYS */
.evidence-display,
.observation-container,
.timeline-container,
.suspects-container,
.contradictions-container {
    max-width: 800px;
    width: 100%;
    padding-top: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* FRAGMENTS */
.fragments-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fragment {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fragment:hover {
    border-color: var(--accent-red);
    background: rgba(139, 58, 58, 0.1);
}

.fragment.revealed {
    border-color: var(--success);
}

.fragment-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-style: italic;
    text-align: center;
    line-height: 1.6;
}

.fragment-analysis {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: var(--accent-red);
    text-align: center;
}

.fragment-analysis.hidden {
    display: none;
}

.fragments-instruction {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.investigator-observation {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(139, 58, 58, 0.1);
    border-left: 3px solid var(--accent-red);
    text-align: center;
}

/* OBSERVATION SCREEN */
.surveillance-display {
    text-align: center;
    margin-bottom: 2rem;
}

.polaroid {
    display: inline-block;
    background: white;
    padding: 10px;
    padding-bottom: 40px;
    box-shadow: var(--shadow-soft);
    transform: rotate(-1deg);
}

.polaroid.large {
    max-width: 300px;
}

.polaroid.large img {
    width: 100%;
}

.observation-notes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.25rem;
    border-left: 3px solid var(--text-muted);
}

.note-card.final-clue {
    border-left-color: var(--accent-red);
    background: rgba(139, 58, 58, 0.1);
}

.note-header {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.data-list {
    list-style: none;
    font-family: var(--font-body);
    font-size: 1rem;
}

.data-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.profile-text.emphasis {
    color: var(--accent-red);
    font-weight: 500;
}

.personal-question {
    margin-top: 2rem;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
}

/* TIMELINE */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--text-muted);
}

.timeline-event {
    position: relative;
    padding: 1rem 0 2rem 2rem;
    transition: all 0.6s ease;
}

.timeline-event.hidden {
    opacity: 0;
    transform: translateX(-20px);
}

.timeline-event.visible {
    opacity: 1;
    transform: translateX(0);
}

.event-marker {
    position: absolute;
    left: -2rem;
    top: 1.25rem;
    width: 14px;
    height: 14px;
    background: var(--text-muted);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--bg-dark);
}

.event-marker.final {
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
}

.event-time {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.event-content p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
}

.timeline-note {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(139, 58, 58, 0.1);
    text-align: center;
    font-family: var(--font-body);
    transition: all 0.6s ease;
}

.timeline-note.hidden {
    opacity: 0;
}

.timeline-note.visible {
    opacity: 1;
}

/* SUSPECT GALLERY */
.suspect-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.suspect-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.suspect-card:hover:not(.locked):not(.interrogated) {
    transform: translateY(-5px);
}

.suspect-card.locked {
    opacity: 0.5;
    filter: grayscale(50%);
    cursor: not-allowed;
}

.suspect-card.interrogated {
    opacity: 0.5;
}

.suspect-card.interrogated::after {
    content: '✓ DONE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.suspect-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-red);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 5;
}

.suspect-photo {
    margin-bottom: 0;
}

.suspect-photo img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.polaroid-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-align: center;
    color: var(--text-dark);
    padding-top: 0.5rem;
}

.suspect-status {
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 0.5rem;
    color: var(--text-muted);
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.suspect-card:not(.locked) .lock-overlay {
    display: none;
}

.suspects-progress {
    text-align: center;
    color: var(--text-muted);
}

.all-interrogated-msg {
    text-align: center;
    padding: 1.5rem;
    background: rgba(74, 124, 89, 0.1);
    border: 1px solid var(--success);
    margin-top: 1.5rem;
}

.all-interrogated-msg.hidden {
    display: none;
}

/* INTERROGATION ROOM */
.interrogation-room {
    max-width: 700px;
    width: 100%;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.interrogation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.interrogation-title {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 3px;
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--accent-red);
}

.rec-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.3;
    }
}

.suspect-profile {
    text-align: center;
    margin-bottom: 1.5rem;
}

.suspect-profile img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--accent-red);
    margin-bottom: 0.75rem;
}

.suspect-profile h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.transcript {
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
}

.transcript-line {
    margin-bottom: 1rem;
}

.speaker {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.speaker.investigator {
    color: var(--success);
}

.speaker.suspect {
    color: var(--accent-red);
}

.speaker.system {
    color: var(--text-muted);
    font-style: italic;
}

.transcript-line.awaiting {
    opacity: 0.7;
}

.awaiting-text {
    font-style: italic;
    color: var(--text-muted);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.question-option {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.question-option:hover {
    background: rgba(139, 58, 58, 0.2);
    border-color: var(--accent-red);
}

.interrogation-controls {
    text-align: center;
}

/* CONTRADICTIONS - Interactive Sliders */
.contradiction-sliders {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 2rem;
}

.contradiction-item {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.5s ease;
    margin-bottom: 0;
}

.contradiction-item.hidden {
    display: none;
}

.contradiction-item.visible {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contradiction-item.touched {
    border-color: var(--success);
}

.contradiction-step {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent-red);
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contradiction-question {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.contradiction-evidence {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contradiction-vs {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-red);
    text-transform: uppercase;
    margin: 0.75rem 0;
}

.contradiction-prompt {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
    font-style: italic;
}

.slider-container {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    gap: 1.5rem;
    align-items: center;
    padding: 0.5rem;
}

.slider-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.slider-label.left {
    text-align: right;
}

.slider-label.right {
    text-align: left;
}

.spectrum-slider {
    width: 100%;
    height: 12px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg,
            var(--success) 0%,
            var(--text-muted) 50%,
            var(--accent-red) 100%);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.spectrum-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: var(--text-light);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

.spectrum-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.spectrum-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: var(--text-light);
    border-radius: 50%;
    cursor: grab;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.contradiction-submit {
    text-align: center;
    margin-top: 2rem;
}

.contradiction-submit.hidden {
    display: none;
}

.contradiction-result {
    margin-top: 2rem;
}

.contradiction-result.hidden {
    display: none;
}

.result-reveal {
    text-align: center;
    padding: 2rem;
    background: rgba(139, 58, 58, 0.15);
    border: 1px solid var(--accent-red);
    animation: fadeIn 0.5s ease;
}

.result-header {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.result-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.result-warning {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--accent-red);
}

/* ASSESSMENT */
.assessment-container {
    max-width: 600px;
    width: 100%;
}

.assessment-questions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.assessment-question {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.assessment-question.hidden {
    display: none;
}

.question-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.answer-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.answer-btn {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.answer-btn:hover {
    background: rgba(139, 58, 58, 0.2);
    border-color: var(--accent-red);
}

.answer-btn.selected {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.assessment-complete {
    text-align: center;
    padding: 1.5rem;
    background: rgba(74, 124, 89, 0.1);
    border: 1px solid var(--success);
}

.assessment-complete.hidden {
    display: none;
}

.assessment-note {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* CONCLUSION */
.conclusion-container {
    max-width: 700px;
    width: 100%;
}

.responsibility-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.responsibility-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.responsibility-btn:hover {
    border-color: var(--accent-red);
    background: rgba(139, 58, 58, 0.1);
}

.choice-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.choice-desc {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.verdict-container {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent-red);
}

.verdict-container.hidden {
    display: none;
}

/* FINAL SCREEN */
.final-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.final-text {
    font-family: var(--font-body);
    font-size: 1.5rem;
    line-height: 2.2;
}

.final-text p {
    margin-bottom: 2rem;
    opacity: 0;
}

.final-text p.visible {
    animation: fadeUp 1s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.final-message {
    font-size: 1.3rem;
    color: var(--accent-red);
}

.final-mocking {
    font-size: 1.4rem;
    color: var(--accent-red);
    font-style: italic;
}

.final-revelation {
    font-size: 1.8rem;
    color: var(--accent-red-bright);
    font-weight: 500;
    text-shadow: 0 0 30px rgba(196, 80, 80, 0.5);
}

.close-case-container {
    margin-top: 3rem;
}

.close-case-container.hidden {
    display: none;
}

.close-case-btn {
    padding: 1.25rem 2.5rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 3px;
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.close-case-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

/* AUDIO CONTROL */
.audio-control {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
}

#audioToggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--text-muted);
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#audioToggle:hover {
    border-color: var(--accent-red);
}

.audio-off.hidden,
.audio-on.hidden {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .screen {
        padding: 1.5rem;
    }

    .case-folder {
        max-width: 100%;
    }

    .folder-content {
        padding: 1.5rem;
    }

    .board-title {
        font-size: 1.3rem;
        letter-spacing: 4px;
    }

    .exhibits-row {
        grid-template-columns: 1fr;
    }

    .timeline-bar {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .timeline-bar::before {
        display: none;
    }

    .suspects-preview {
        flex-wrap: wrap;
    }

    .suspect-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .contradiction-pair {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .statement.left,
    .statement.right {
        border: none;
        border-top: 3px solid;
    }

    .statement.left {
        border-color: var(--success);
    }

    .statement.right {
        border-color: var(--accent-red);
        text-align: center;
    }

    .responsibility-options {
        grid-template-columns: 1fr;
    }

    .back-btn {
        top: 0.75rem;
        left: 0.75rem;
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
    }

    .scattered-fragment,
    .note-scrap {
        display: none;
    }

    /* Tablet/landscape phone contradiction sliders */
    .slider-container {
        grid-template-columns: 80px 1fr 80px;
        gap: 0.75rem;
    }

    .slider-label {
        font-size: 0.7rem;
    }

    .contradiction-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {

    .fragment,
    .note-card {
        padding: 1rem;
    }

    .suspect-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .final-text {
        font-size: 1.2rem;
    }

    /* Mobile contradiction sliders - keep horizontal, make compact */
    .slider-container {
        display: grid;
        grid-template-columns: 70px 1fr 70px;
        gap: 0.5rem;
        padding: 0.25rem;
    }

    .slider-label {
        font-size: 0.6rem;
        line-height: 1.3;
    }

    .slider-label.left {
        text-align: right;
    }

    .slider-label.right {
        text-align: left;
    }

    .spectrum-slider {
        width: 100%;
        height: 14px;
    }

    .spectrum-slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }

    .contradiction-item {
        padding: 1rem;
    }

    .contradiction-evidence {
        font-size: 0.85rem;
    }

    .contradiction-step {
        font-size: 0.6rem;
        margin-bottom: 1rem;
    }

    .contradiction-prompt {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .contradiction-question {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .contradiction-vs {
        font-size: 0.65rem;
        margin: 0.5rem 0;
    }
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}