/* ==========================================================================
   THE DETECTIVE'S BUREAU - Investigation Theme
   A noir detective aesthetic for murder mystery investigation
   ========================================================================== */

/* --------------------------------------------------------------------------
   FONTS
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Caveat:wght@400;600;700&family=Playfair+Display:wght@700;900&display=swap');

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
    /* Noir Color Palette */
    --noir-black: #0d0b09;
    --noir-espresso: #1a1410;
    --noir-coffee: #2a231c;
    --noir-leather: #3d3229;
    --noir-shadow: rgba(0, 0, 0, 0.7);

    /* Paper & Cork */
    --cork-board: #b8956b;
    --cork-dark: #9a7a52;
    --cork-light: #d4b896;
    --paper-aged: #f5f0e1;
    --paper-cream: #faf7f0;
    --paper-shadow: #e8e0d0;
    --manila: #e8d4a8;

    /* Accent Colors */
    --blood-red: #8b0000;
    --string-red: #c41e3a;
    --amber-gold: #d4a574;
    --brass: #b5a642;
    --ink-blue: #1a3a5c;
    --stamp-red: #cc2936;

    /* Suspicion Levels */
    --suspicion-low: #4a7c59;
    --suspicion-medium: #c9a227;
    --suspicion-high: #b33a3a;
    --suspicion-critical: #8b0000;

    /* Typography */
    --font-typewriter: 'Special Elite', 'Courier Prime', monospace;
    --font-body: 'Courier Prime', 'Courier New', monospace;
    --font-handwritten: 'Caveat', cursive;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Shadows */
    --shadow-card: 2px 3px 8px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 4px 6px 16px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

/* --------------------------------------------------------------------------
   TEXTURES & BACKGROUNDS
   -------------------------------------------------------------------------- */

/* Cork board texture using CSS patterns */
.cork-texture {
    background-color: var(--cork-board);
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E"),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        );
    box-shadow: var(--shadow-inset);
}

/* Paper texture */
.paper-texture {
    background-color: var(--paper-aged);
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Leather texture for sidebars */
.leather-texture {
    background: linear-gradient(180deg, var(--noir-leather) 0%, var(--noir-coffee) 100%);
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='leather'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.05' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23leather)' opacity='0.08'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   BASE LAYOUT
   -------------------------------------------------------------------------- */
.investigation-layout {
    display: grid;
    grid-template-columns: 320px 1fr 280px;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
    background: var(--noir-espresso);
    overflow: hidden;
}

.investigation-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--noir-black);
    border-bottom: 3px solid var(--noir-leather);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.investigation-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--amber-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.case-number {
    font-family: var(--font-typewriter);
    font-size: 0.85rem;
    color: var(--paper-aged);
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   NARRATIVE PANEL (Left Sidebar)
   -------------------------------------------------------------------------- */
.narrative-panel {
    display: flex;
    flex-direction: column;
    background: var(--noir-coffee);
    border-right: 1px solid var(--noir-leather);
}

.narrative-header {
    padding: var(--space-md);
    background: var(--noir-espresso);
    border-bottom: 2px solid var(--blood-red);
}

.narrative-header h3 {
    font-family: var(--font-typewriter);
    font-size: 0.9rem;
    color: var(--amber-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.narrative-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Typewriter-style message */
.narrative-message {
    position: relative;
    padding: var(--space-md);
    background: var(--paper-aged);
    border: none;
    box-shadow: var(--shadow-card);
    transform: rotate(-0.5deg);
}

.narrative-message.witness {
    transform: rotate(0.5deg);
    background: var(--manila);
}

.narrative-sender {
    font-family: var(--font-typewriter);
    font-size: 0.75rem;
    color: var(--blood-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.narrative-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--noir-espresso);
    line-height: 1.6;
}

.narrative-timestamp {
    font-family: var(--font-typewriter);
    font-size: 0.7rem;
    color: var(--noir-leather);
    margin-top: var(--space-sm);
    text-align: right;
}

/* Input area */
.narrative-input {
    padding: var(--space-md);
    background: var(--noir-espresso);
    border-top: 1px solid var(--noir-leather);
}

.narrative-input input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-typewriter);
    font-size: 0.9rem;
    background: var(--paper-aged);
    border: 2px solid var(--noir-leather);
    color: var(--noir-espresso);
}

.narrative-input input:focus {
    outline: none;
    border-color: var(--amber-gold);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

/* --------------------------------------------------------------------------
   EVIDENCE BOARD (Center)
   -------------------------------------------------------------------------- */
.evidence-board-container {
    position: relative;
    overflow: hidden;
}

.evidence-board {
    position: relative;
    width: 100%;
    height: 100%;
    padding: var(--space-lg);
    overflow: auto;
}

/* Cork board frame */
.evidence-board::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 12px solid var(--noir-leather);
    box-shadow:
        inset 4px 4px 8px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 10;
}

/* Board label */
.board-label {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-xs) var(--space-lg);
    background: var(--noir-espresso);
    border: 2px solid var(--brass);
    font-family: var(--font-typewriter);
    font-size: 0.8rem;
    color: var(--amber-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 20;
}

/* --------------------------------------------------------------------------
   EVIDENCE CARDS
   -------------------------------------------------------------------------- */
.evidence-card {
    position: absolute;
    width: 160px;
    cursor: grab;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 1;
}

.evidence-card:hover {
    transform: scale(1.05) rotate(0deg) !important;
    box-shadow: var(--shadow-elevated);
    z-index: 50;
}

.evidence-card:active {
    cursor: grabbing;
}

.evidence-card-inner {
    padding: var(--space-sm);
    background: var(--paper-cream);
    border: 1px solid var(--paper-shadow);
    box-shadow: var(--shadow-card);
}

/* Polaroid style for photo evidence */
.evidence-card.photo .evidence-card-inner {
    padding: var(--space-sm) var(--space-sm) var(--space-xl) var(--space-sm);
    background: white;
}

.evidence-photo {
    width: 100%;
    aspect-ratio: 1;
    background: var(--noir-coffee);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 1px solid var(--paper-shadow);
}

.evidence-label {
    font-family: var(--font-handwritten);
    font-size: 1rem;
    color: var(--noir-espresso);
    text-align: center;
    margin-top: var(--space-sm);
    line-height: 1.2;
}

/* Document style evidence */
.evidence-card.document .evidence-card-inner {
    background: var(--manila);
    border: none;
    padding: var(--space-md);
}

.evidence-card.document .evidence-label {
    font-family: var(--font-typewriter);
    font-size: 0.75rem;
    text-align: left;
}

/* Push pin */
.evidence-pin {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, var(--string-red) 0%, var(--blood-red) 60%, #5a0000 100%);
    border-radius: 50%;
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    z-index: 10;
}

/* Evidence type badges */
.evidence-type {
    position: absolute;
    bottom: -6px;
    right: -6px;
    padding: 2px 8px;
    font-family: var(--font-typewriter);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--noir-espresso);
    color: var(--paper-aged);
    transform: rotate(3deg);
}

/* --------------------------------------------------------------------------
   RED STRING CONNECTIONS
   -------------------------------------------------------------------------- */
.string-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.string-connection {
    stroke: var(--string-red);
    stroke-width: 2;
    fill: none;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
    stroke-dasharray: none;
}

.string-connection.dashed {
    stroke-dasharray: 8 4;
    animation: dash-flow 1s linear infinite;
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -12;
    }
}

/* String anchor points */
.string-anchor {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--blood-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: crosshair;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 15;
}

/* --------------------------------------------------------------------------
   PERSONS OF INTEREST PANEL (Right Sidebar)
   -------------------------------------------------------------------------- */
.persons-panel {
    display: flex;
    flex-direction: column;
    background: var(--noir-coffee);
    border-left: 1px solid var(--noir-leather);
}

.persons-header {
    padding: var(--space-md);
    background: var(--noir-espresso);
    border-bottom: 2px solid var(--blood-red);
}

.persons-header h3 {
    font-family: var(--font-typewriter);
    font-size: 0.85rem;
    color: var(--amber-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.persons-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Person of Interest Card */
.person-card {
    position: relative;
    background: var(--paper-aged);
    padding: var(--space-md);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.person-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.person-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--suspicion-low);
    transition: background var(--transition-normal);
}

.person-card[data-suspicion="medium"]::before {
    background: var(--suspicion-medium);
}

.person-card[data-suspicion="high"]::before {
    background: var(--suspicion-high);
}

.person-card[data-suspicion="critical"]::before {
    background: var(--suspicion-critical);
}

.person-mugshot {
    width: 60px;
    height: 75px;
    background: var(--noir-leather);
    border: 2px solid var(--noir-espresso);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    float: left;
    margin-right: var(--space-md);
}

.person-name {
    font-family: var(--font-typewriter);
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--noir-espresso);
    text-transform: uppercase;
}

.person-occupation {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--noir-leather);
    margin-top: 2px;
}

/* Suspicion Meter */
.suspicion-meter {
    clear: both;
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px dashed var(--noir-leather);
}

.suspicion-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-typewriter);
    font-size: 0.7rem;
    color: var(--noir-leather);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.suspicion-value {
    color: var(--blood-red);
    font-weight: bold;
}

.suspicion-bar {
    height: 8px;
    background: var(--paper-shadow);
    border: 1px solid var(--noir-leather);
    position: relative;
    overflow: hidden;
}

.suspicion-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--suspicion-low), var(--suspicion-medium), var(--suspicion-high));
    transition: width var(--transition-slow);
}

.suspicion-threshold {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 2px;
    background: var(--noir-espresso);
    left: 80%;
}

.suspicion-threshold::after {
    content: '80%';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-typewriter);
    font-size: 0.6rem;
    color: var(--noir-leather);
}

/* --------------------------------------------------------------------------
   TIMELINE BAR (Bottom)
   -------------------------------------------------------------------------- */
.timeline-bar {
    grid-column: 1 / -1;
    background: var(--noir-black);
    border-top: 3px solid var(--noir-leather);
    padding: var(--space-md) var(--space-xl);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.timeline-header h4 {
    font-family: var(--font-typewriter);
    font-size: 0.8rem;
    color: var(--amber-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.timeline-date {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--paper-aged);
    opacity: 0.7;
}

.timeline-track {
    position: relative;
    height: 60px;
    background: var(--noir-coffee);
    border: 2px solid var(--noir-leather);
    overflow: hidden;
}

/* Time markers */
.timeline-markers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    display: flex;
    border-bottom: 1px solid var(--noir-leather);
}

.timeline-marker {
    flex: 1;
    text-align: center;
    font-family: var(--font-typewriter);
    font-size: 0.65rem;
    color: var(--paper-aged);
    opacity: 0.6;
    padding-top: 4px;
    border-right: 1px solid var(--noir-leather);
}

.timeline-marker:last-child {
    border-right: none;
}

/* Timeline events */
.timeline-events {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--space-xs);
}

.timeline-event {
    position: absolute;
    top: 4px;
    height: 28px;
    min-width: 80px;
    padding: 4px 8px;
    background: var(--manila);
    border-left: 3px solid var(--blood-red);
    font-family: var(--font-handwritten);
    font-size: 0.8rem;
    color: var(--noir-espresso);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform var(--transition-fast);
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.timeline-event:hover {
    transform: translateY(-2px);
    z-index: 10;
}

.timeline-event.gap {
    background: repeating-linear-gradient(
        45deg,
        var(--string-red),
        var(--string-red) 2px,
        transparent 2px,
        transparent 6px
    );
    border: 1px dashed var(--blood-red);
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   THREE PILLARS PANEL
   -------------------------------------------------------------------------- */
.pillars-panel {
    position: fixed;
    top: 50%;
    right: 300px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 50;
}

.pillar-indicator {
    width: 100px;
    padding: var(--space-sm);
    background: var(--noir-espresso);
    border: 2px solid var(--noir-leather);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pillar-indicator:hover {
    border-color: var(--amber-gold);
}

.pillar-indicator.complete {
    border-color: var(--suspicion-low);
    background: rgba(74, 124, 89, 0.2);
}

.pillar-label {
    font-family: var(--font-typewriter);
    font-size: 0.65rem;
    color: var(--amber-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pillar-status {
    font-family: var(--font-handwritten);
    font-size: 0.9rem;
    color: var(--paper-aged);
    margin-top: 2px;
}

.pillar-indicator.complete .pillar-status {
    color: var(--suspicion-low);
}

/* --------------------------------------------------------------------------
   ACCUSATION BUTTON
   -------------------------------------------------------------------------- */
.accusation-btn {
    position: fixed;
    bottom: 100px;
    right: var(--space-lg);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--blood-red);
    color: var(--paper-cream);
    border: 3px solid var(--noir-espresso);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-card);
    z-index: 100;
}

.accusation-btn:hover:not(:disabled) {
    background: var(--string-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.accusation-btn:disabled {
    background: var(--noir-leather);
    cursor: not-allowed;
    opacity: 0.6;
}

.accusation-btn .confidence {
    display: block;
    font-family: var(--font-typewriter);
    font-size: 0.7rem;
    margin-top: 4px;
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   EVIDENCE DETAIL MODAL
   -------------------------------------------------------------------------- */
.evidence-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fade-in 0.3s ease;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.evidence-modal {
    position: relative;
    width: 500px;
    max-width: 90vw;
    background: var(--paper-aged);
    padding: var(--space-xl);
    box-shadow: var(--shadow-elevated);
    animation: modal-in 0.3s ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.evidence-modal-pin {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle at 30% 30%, var(--string-red), var(--blood-red));
    border-radius: 50%;
    box-shadow: var(--shadow-card);
}

.evidence-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    background: var(--noir-espresso);
    color: var(--paper-aged);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evidence-modal-title {
    font-family: var(--font-typewriter);
    font-size: 1.1rem;
    color: var(--noir-espresso);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--blood-red);
}

.evidence-modal-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--noir-coffee);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    border: 4px solid white;
    box-shadow: var(--shadow-card);
}

.evidence-modal-description {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--noir-espresso);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.evidence-modal-actions {
    display: flex;
    gap: var(--space-md);
}

.evidence-action-btn {
    flex: 1;
    padding: var(--space-md);
    font-family: var(--font-typewriter);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--noir-espresso);
    color: var(--paper-aged);
    border: 2px solid var(--noir-leather);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.evidence-action-btn:hover {
    background: var(--blood-red);
    border-color: var(--blood-red);
}

.evidence-action-btn.primary {
    background: var(--blood-red);
    border-color: var(--blood-red);
}

.evidence-action-btn.primary:hover {
    background: var(--string-red);
}

/* --------------------------------------------------------------------------
   CASE FILE STAMP
   -------------------------------------------------------------------------- */
.case-stamp {
    position: absolute;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--stamp-red);
    border: 4px solid var(--stamp-red);
    padding: var(--space-xs) var(--space-md);
    transform: rotate(-15deg);
    opacity: 0.8;
}

.case-stamp.classified {
    color: var(--ink-blue);
    border-color: var(--ink-blue);
}

.case-stamp.solved {
    color: var(--suspicion-low);
    border-color: var(--suspicion-low);
}

/* --------------------------------------------------------------------------
   TARANAKI ELEMENTS
   -------------------------------------------------------------------------- */

/* Mountain silhouette in header */
.taranaki-silhouette {
    position: absolute;
    bottom: 0;
    right: 100px;
    width: 120px;
    height: 50px;
    background: var(--noir-leather);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    opacity: 0.3;
}

/* Subtle koru pattern border */
.koru-border {
    position: relative;
}

.koru-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--blood-red) 0px,
        var(--blood-red) 8px,
        transparent 8px,
        transparent 12px
    );
}

/* --------------------------------------------------------------------------
   ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes pin-drop {
    0% {
        transform: translateY(-100px) rotate(20deg);
        opacity: 0;
    }
    60% {
        transform: translateY(5px) rotate(-5deg);
    }
    80% {
        transform: translateY(-3px) rotate(2deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
}

.evidence-card.new {
    animation: pin-drop 0.5s ease-out;
}

@keyframes suspicion-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(139, 0, 0, 0.3);
    }
}

.person-card[data-suspicion="critical"] {
    animation: suspicion-pulse 2s infinite;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .investigation-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto auto;
    }

    .narrative-panel,
    .persons-panel {
        display: none;
    }

    .evidence-board-container {
        grid-column: 1;
    }

    .mobile-tabs {
        display: flex;
        background: var(--noir-black);
        border-top: 1px solid var(--noir-leather);
    }

    .mobile-tab {
        flex: 1;
        padding: var(--space-md);
        text-align: center;
        font-family: var(--font-typewriter);
        font-size: 0.75rem;
        color: var(--paper-aged);
        background: transparent;
        border: none;
        border-right: 1px solid var(--noir-leather);
    }

    .mobile-tab.active {
        background: var(--noir-coffee);
        color: var(--amber-gold);
    }
}

@media (max-width: 640px) {
    .evidence-card {
        width: 120px;
    }

    .timeline-bar {
        padding: var(--space-sm) var(--space-md);
    }

    .accusation-btn {
        bottom: 160px;
        right: var(--space-md);
        padding: var(--space-sm) var(--space-md);
        font-size: 0.85rem;
    }
}
