
/* ===========================================
   OROCHI — Eternal Observer Theme
   Ancient green, still water, horror beneath calm
   =========================================== */

.orochi-theme
{
    --panel-accent: #00fa9a;
}

.orochi-theme .manga-show-content
{
    background: radial-gradient(ellipse at center, rgba(0,250,154,0.04) 0%, transparent 60%);
}

.orochi-theme .dedication-card
{
    border-color: #00fa9a;
    box-shadow: 0 0 40px rgba(0,250,154,0.2), 0 0 80px rgba(0,250,154,0.06), inset 0 1px 0 rgba(255,255,255,0.05);
}

.orochi-theme .dedication-card::before
{
    background: linear-gradient(90deg, transparent, #00aa6a, #00fa9a, #00aa6a, transparent);
}

.orochi-theme .dedication-tagline
{
    color: #a0ffe0;
    text-shadow: 0 0 15px rgba(0,250,154,0.6), 0 0 40px rgba(0,250,154,0.2);
    font-style: italic;
    letter-spacing: 0.06em;
}

.orochi-theme .dedication-icon i
{
    color: #00fa9a;
    text-shadow: 0 0 20px rgba(0,250,154,0.7);
    animation: evokeOrochi 5s ease-in-out infinite;
}

@keyframes evokeOrochi
{
    0%, 100% { opacity: 0.7; text-shadow: 0 0 20px rgba(0,250,154,0.7); transform: scale(1); }
    50% { opacity: 1; text-shadow: 0 0 30px rgba(0,250,154,1), 0 0 70px rgba(0,250,154,0.4); transform: scale(1.06); }
}

.orochi-theme .manga-hero-banner
{
    filter: saturate(0.4) contrast(1.1) hue-rotate(120deg);
}

.orochi-theme .manga-hero-overlay
{
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,40,25,0.55) 60%, rgba(0,100,60,0.8) 100%);
}

.orochi-theme .panel-glow-bar
{
    background: linear-gradient(90deg, transparent, #00aa6a, #00fa9a, #00aa6a, transparent);
}

.orochi-theme .manga-panel-frame
{
    border-color: rgba(0,250,154,0.2);
    filter: saturate(0.5) hue-rotate(100deg);
}

.orochi-theme .manga-panel-frame:hover
{
    border-color: #00fa9a;
    box-shadow: 0 0 30px rgba(0,250,154,0.5);
    filter: saturate(0.8);
}

.orochi-theme .section-title
{
    background: linear-gradient(45deg, #00aa6a, #00fa9a, #a0ffe0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.orochi-theme .section-line
{
    background: linear-gradient(90deg, #00aa6a, #00fa9a, #00aa6a);
    box-shadow: 0 0 20px rgba(0,250,154,0.4);
}

.orochi-theme .cyber-button.secondary
{
    border-color: #00fa9a;
    color: #a0ffe0;
}

.orochi-theme .cyber-button.secondary:hover
{
    background: rgba(0,250,154,0.1);
    box-shadow: 0 0 30px rgba(0,250,154,0.5);
    color: #ffffff;
}

.recording-mode .orochi-theme .dedication-icon i
{
    animation: none !important;
    transform: none !important;
}


/* =============================================
   OROCHI — Anthology Selector / Case Archive
   ============================================= */

.orochi-archive {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    background: #050a07;
    border: 1px solid rgba(0, 250, 154, 0.2);
    box-shadow: 0 0 0 1px rgba(0, 250, 154, 0.04), 0 4px 40px rgba(0, 0, 0, 0.9), inset 0 0 60px rgba(0, 250, 154, 0.02);
}

/* Scanline overlay */
.orochi-archive::before
{
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.08) 4px);
    pointer-events: none;
    z-index: 10;
    border-radius: 12px;
}

/* ── Topbar ── */
.archive-topbar
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 10, 5, 0.97);
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 5;
}

.archive-topbar::after
{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(0, 170, 106, 0.4) 20%, rgba(0, 250, 154, 0.7) 50%, rgba(0, 170, 106, 0.4) 80%, transparent 100%);
}

.archive-topbar-left
{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.archive-topbar-right
{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.archive-era
{
    font-family: var(--font-ghost);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(0, 250, 154, 0.9);
    text-shadow: 0 0 10px rgba(0, 250, 154, 0.6);
}

.archive-title
{
    font-family: var(--font-ghost);
    font-size: 0.58rem;
    letter-spacing: 0.4em;
    color: rgba(0, 200, 120, 0.7);
    text-transform: uppercase;
}

.archive-office
{
    font-family: var(--font-ghost);
    font-size: 0.52rem;
    letter-spacing: 0.3em;
    color: rgba(0, 250, 154, 0.35);
    text-transform: uppercase;
}

.archive-status
{
    font-family: var(--font-ghost);
    font-size: 0.52rem;
    letter-spacing: 0.35em;
    color: rgba(0, 250, 154, 0.55);
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.orochi-archive.file-open .archive-status
{
    color: #00fa9a;
    text-shadow: 0 0 10px rgba(0, 250, 154, 0.8);
    animation: archiveStatusPulse 2.5s ease-in-out infinite;
}

@keyframes archiveStatusPulse
{
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

/* ── Body layout ── */
.archive-body
{
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 420px;
    position: relative;
    z-index: 2;
}

/* ── Left file list ── */
.archive-file-list
{
    border-right: 1px solid rgba(0, 250, 154, 0.12);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    background: rgba(0, 8, 4, 0.7);
}

.archive-list-label
{
    font-family: var(--font-ghost);
    font-size: 0.52rem;
    letter-spacing: 0.4em;
    color: rgba(0, 200, 120, 0.6);
    text-transform: uppercase;
    padding: 0 1.2rem 0.8rem;
    border-bottom: 1px solid rgba(0, 250, 154, 0.1);
    margin-bottom: 0.5rem;
}

.archive-file-entry
{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: all 0.25s ease;
    position: relative;
}

/* Row separator */
.archive-file-entry::after
{
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    right: 0.8rem;
    height: 1px;
    background: rgba(0, 250, 154, 0.06);
}

.archive-file-entry:hover
{
    background: rgba(0, 250, 154, 0.06);
    border-left-color: rgba(0, 200, 120, 0.4);
}

.archive-file-entry.active
{
    background: rgba(0, 250, 154, 0.1);
    border-left-color: #00fa9a;
    box-shadow: inset 0 0 20px rgba(0, 250, 154, 0.04);
}

.file-tab-icon
{
    font-size: 1rem;
    flex-shrink: 0;
    filter: grayscale(0.7);
    transition: filter 0.25s ease;
    line-height: 1;
}

.archive-file-entry:hover .file-tab-icon,
.archive-file-entry.active .file-tab-icon
{
    filter: none;
}

.file-tab-info
{
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.file-tab-name
{
    font-family: var(--font-ghost);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: rgba(0, 200, 120, 0.7);
    transition: color 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archive-file-entry:hover .file-tab-name,
.archive-file-entry.active .file-tab-name
{
    color: #00fa9a;
    text-shadow: 0 0 8px rgba(0, 250, 154, 0.5);
}

.file-tab-sin
{
    font-family: var(--font-ghost);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: rgba(160, 255, 224, 0.35);
    transition: color 0.25s ease;
}

.archive-file-entry:hover .file-tab-sin,
.archive-file-entry.active .file-tab-sin
{
    color: rgba(160, 255, 224, 0.65);
}

/* ── Right record content ── */
.archive-file-content
{
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 250, 154, 0.02) 0%, transparent 40%);
}

/* Idle state */
.archive-idle
{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: opacity 0.4s ease;
}

.archive-idle.hidden
{
    opacity: 0;
    pointer-events: none;
}

.archive-idle-icon
{
    font-size: 2.5rem;
    opacity: 0.08;
    filter: grayscale(1);
}

.archive-idle-text
{
    font-family: var(--font-ghost);
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: rgba(0, 250, 154, 0.4);
    text-transform: uppercase;
}

.archive-idle-sub
{
    font-family: var(--font-ghost);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: rgba(0, 250, 154, 0.2);
}

/* Record content */
.archive-record
{
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    height: 100%;
}

.archive-record.visible
{
    opacity: 1;
    transform: none;
    pointer-events: all;
}

/* Record header */
.record-header-top
{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.record-case-title
{
    font-family: var(--font-ghost);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: #00fa9a;
    text-shadow: 0 0 12px rgba(0, 250, 154, 0.5), 0 0 28px rgba(0, 250, 154, 0.2);
    display: block;
}

.record-chapters
{
    font-family: var(--font-ghost);
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    color: rgba(0, 250, 154, 0.4);
}

.record-divider
{
    height: 1px;
    background: linear-gradient(to right, rgba(0, 170, 106, 0.6), rgba(0, 250, 154, 0.3), transparent);
}

/* Record fields */
.record-fields
{
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.record-field
{
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.5rem;
    align-items: baseline;
}

.record-field-key
{
    font-family: var(--font-ghost);
    font-size: 0.52rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(0, 200, 120, 0.55);
}

.record-field--surface .record-field-key
{
    color: rgba(160, 255, 224, 0.55);
}

.record-field--truth .record-field-key
{
    color: rgba(0, 250, 154, 0.8);
}

.record-field-val
{
    font-family: var(--font-ghost);
    font-size: 0.78rem;
    color: rgba(200, 240, 220, 0.85);
    line-height: 1.5;
    min-height: 1.2rem;
}

/* Verdict */
.record-verdict
{
    margin-top: auto;
    padding-top: 1rem;
}

.record-verdict-line
{
    height: 1px;
    background: rgba(0, 250, 154, 0.15);
    margin-bottom: 0.9rem;
}

.record-verdict-text
{
    font-family: var(--font-ghost);
    font-size: 0.82rem;
    font-style: italic;
    color: #a0ffe0;
    line-height: 1.7;
    text-shadow: 0 0 15px rgba(0, 250, 154, 0.4);
    margin: 0;
}

/* Typewriter cursor */
.archive-cursor
{
    display: inline-block;
    width: 2px;
    height: 0.85em;
    background: #00fa9a;
    margin-left: 2px;
    vertical-align: middle;
    animation: archiveCursorBlink 0.7s step-end infinite;
}

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

/* ── Responsive ── */
@media (max-width: 700px)
{
    .archive-body {
        grid-template-columns: 1fr;
    }

    .archive-file-list
    {
        border-right: none;
        border-bottom: 1px solid rgba(0, 250, 154, 0.12);
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.5rem;
        gap: 0.3rem;
    }

    .archive-list-label { display: none; }

    .archive-file-entry
    {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 0.5rem 0.8rem;
        border-radius: 4px;
    }

    .archive-file-entry.active
    {
        border-bottom-color: #00fa9a;
        border-left-color: transparent;
    }

    .archive-file-content
    {
        min-height: 360px;
    }
}

/* Recording mode */
.recording-mode .orochi-archive .archive-cursor
{
    animation: none !important;
}

.recording-mode .orochi-archive .archive-status
{
    animation: none !important;
}

/* =============================================
   OROCHI — Surveillance System
   ============================================= */

.orochi-surveillance
{
    position: relative;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    background: #020804;
    border: 1px solid rgba(0, 250, 154, 0.15);
    box-shadow: 0 0 0 1px rgba(0, 250, 154, 0.03), 0 4px 60px rgba(0, 0, 0, 0.95), inset 0 0 80px rgba(0, 0, 0, 0.5);
}

/* ── Topbar ── */
.surv-topbar
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.5rem;
    background: rgba(0, 6, 3, 0.98);
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 5;
}

.surv-topbar::after
{
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 170, 106, 0.4) 20%, rgba(0, 250, 154, 0.6) 50%, rgba(0, 170, 106, 0.4) 80%, transparent);
}

.surv-topbar-left,
.surv-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.surv-era
{
    font-family: var(--font-ghost);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(0, 250, 154, 0.9);
    text-shadow: 0 0 10px rgba(0, 250, 154, 0.5);
}

.surv-title
{
    font-family: var(--font-ghost);
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    color: rgba(0, 200, 120, 0.6);
    text-transform: uppercase;
}

.surv-office
{
    font-family: var(--font-ghost);
    font-size: 0.52rem;
    letter-spacing: 0.3em;
    color: rgba(0, 250, 154, 0.3);
}

.surv-timestamp
{
    font-family: var(--font-ghost);
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    color: rgba(0, 250, 154, 0.7);
    text-shadow: 0 0 8px rgba(0, 250, 154, 0.4);
    font-variant-numeric: tabular-nums;
}

/* ── Subject feed thumbnails ── */
.surv-feeds-row
{
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    padding: 1.8rem 2rem 1rem;
    flex-wrap: wrap;
}

.surv-feed
{
    display: flex;
    flex-direction: column;
    gap: 0;
    cursor: pointer;
    width: 130px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.surv-feed:hover
{
    transform: translateY(-3px);
}

.surv-feed-screen
{
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #000;
    border: 2px solid rgba(0, 250, 154, 0.15);
    border-radius: 4px 4px 0 0;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    filter: brightness(0.6) saturate(0.3);
}

.surv-feed:hover .surv-feed-screen,
.surv-feed.active .surv-feed-screen
{
    border-color: rgba(0, 250, 154, 0.6);
    box-shadow: 0 0 20px rgba(0, 250, 154, 0.3), inset 0 0 15px rgba(0, 250, 154, 0.05);
    filter: brightness(0.85) saturate(0.6);
}

.surv-feed.active .surv-feed-screen
{
    border-color: #00fa9a;
    box-shadow: 0 0 30px rgba(0, 250, 154, 0.5), inset 0 0 20px rgba(0, 250, 154, 0.08);
    filter: brightness(1) saturate(0.8);
}

/* Noise texture overlay */
.surv-feed-noise
{
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    background-size: 150px 150px;
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
}

/* Subject icon centered */
.surv-feed-icon
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 2rem;
    z-index: 2;
    filter: grayscale(0.8);
    opacity: 0.6;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.surv-feed:hover .surv-feed-icon,
.surv-feed.active .surv-feed-icon
{
    opacity: 0.9;
    filter: grayscale(0.2);
}

/* Scanlines drifting */
.surv-feed-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.25) 2px, rgba(0, 0, 0, 0.25) 4px);
    z-index: 3;
    pointer-events: none;
    animation: survScanDrift 6s linear infinite;
}

@keyframes survScanDrift
{
    0%   { background-position: 0 0; }
    100% { background-position: 0 40px; }
}

/* Dark vignette overlay */
.surv-feed-overlay
{
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.7) 100%);
    z-index: 4;
    pointer-events: none;
}

/* Corner brackets — CRT aesthetic */
.surv-feed-corner
{
    position: absolute;
    width: 10px;
    height: 10px;
    z-index: 5;
    pointer-events: none;
}

.surv-corner-tl
{
    top: 4px; left: 4px;
    border-top: 1px solid rgba(0, 250, 154, 0.5);
    border-left: 1px solid rgba(0, 250, 154, 0.5);
}

.surv-corner-tr
{
    top: 4px; right: 4px;
    border-top: 1px solid rgba(0, 250, 154, 0.5);
    border-right: 1px solid rgba(0, 250, 154, 0.5);
}

/* Feed label strip below screen */
.surv-feed-label
{
    background: rgba(0, 6, 3, 0.95);
    border: 2px solid rgba(0, 250, 154, 0.15);
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 0.4rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    transition: border-color 0.3s ease;
}

.surv-feed:hover .surv-feed-label,
.surv-feed.active .surv-feed-label
{
    border-color: rgba(0, 250, 154, 0.5);
}

.surv-feed.active .surv-feed-label
{
    border-color: #00fa9a;
}

.surv-feed-name
{
    font-family: var(--font-ghost);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: rgba(0, 200, 120, 0.7);
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.surv-feed:hover .surv-feed-name,
.surv-feed.active .surv-feed-name
{
    color: #00fa9a;
    text-shadow: 0 0 8px rgba(0, 250, 154, 0.5);
}

.surv-feed-sin
{
    font-family: var(--font-ghost);
    font-size: 0.48rem;
    letter-spacing: 0.1em;
    color: rgba(160, 255, 224, 0.3);
    transition: color 0.25s ease;
}

.surv-feed:hover .surv-feed-sin,
.surv-feed.active .surv-feed-sin
{
    color: rgba(160, 255, 224, 0.6);
}

.surv-feed-live
{
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-ghost);
    font-size: 0.45rem;
    letter-spacing: 0.2em;
    color: rgba(255, 60, 60, 0.5);
    margin-top: 0.1rem;
}

.surv-live-dot
{
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 60, 60, 0.6);
    animation: survLivePulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

.surv-feed.active .surv-live-dot
{
    background: rgba(255, 60, 60, 1);
    animation: survLivePulse 0.8s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255, 60, 60, 0.8);
}

@keyframes survLivePulse
{
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.3; transform: scale(0.8); }
}

/* ── Main monitor row ── */
.surv-main-row
{
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1rem 2rem 2rem;
}

/* ── CRT Monitor ── */
.surv-monitor-wrap
{
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.surv-monitor
{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.surv-monitor-bezel
{
    width: 280px;
    background: #0a0f0b;
    border: 3px solid rgba(0, 250, 154, 0.25);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 250, 154, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.8);
    position: relative;
}

.surv-monitor-bezel::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 250, 154, 0.08) 0%, transparent 40%, transparent 60%, rgba(0, 250, 154, 0.04) 100%);
    pointer-events: none;
}

.surv-monitor-screen
{
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #000;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

/* Drifting scanlines on main monitor */
.surv-monitor-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 250, 154, 0.03) 3px, rgba(0, 250, 154, 0.03) 4px);
    z-index: 3;
    pointer-events: none;
    animation: survScanDrift 8s linear infinite;
}

/* Orochi portrait inside monitor */
.surv-monitor-portrait
{
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    filter: saturate(0.2) contrast(1.2) brightness(0.75) sepia(0.3) hue-rotate(80deg);
    z-index: 1;
    transition: filter 0.6s ease;
}

/* Portrait reacts when a subject is selected */
.orochi-surveillance.subject-active .surv-monitor-portrait
{
    filter: saturate(0.35) contrast(1.15) brightness(0.85) sepia(0.2) hue-rotate(80deg);
}

/* Monitor glitch animation */
.surv-monitor-screen.glitching
{
    animation: monitorGlitch 0.4s steps(1) forwards;
}

@keyframes monitorGlitch
{
    0%   { filter: none; transform: none; }
    15%  { filter: hue-rotate(90deg) saturate(3) brightness(1.5); transform: translateX(-3px); }
    30%  { filter: hue-rotate(180deg) saturate(2) brightness(0.5); transform: translateX(3px); }
    45%  { filter: hue-rotate(270deg) saturate(4) brightness(1.8); transform: translateX(-1px); }
    60%  { filter: hue-rotate(0deg) saturate(1) brightness(1.2); transform: translateX(0); }
    75%  { filter: none; transform: translateX(2px); }
    100% { filter: none; transform: none; }
}

/* Vignette */
.surv-monitor-vignette
{
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.75) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Bottom status strip */
.surv-monitor-bottom-strip
{
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0, 6, 3, 0.88);
    border-top: 1px solid rgba(0, 250, 154, 0.2);
    padding: 0.3rem 0.6rem;
    display: flex;
    justify-content: space-between;
    z-index: 4;
}

.surv-monitor-label,
.surv-monitor-status
{
    font-family: var(--font-ghost);
    font-size: 0.45rem;
    letter-spacing: 0.25em;
    color: rgba(0, 250, 154, 0.6);
    text-transform: uppercase;
}

.surv-monitor-status
{
    animation: survStatusBlink 3s ease-in-out infinite;
}

@keyframes survStatusBlink
{
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; text-shadow: 0 0 8px rgba(0, 250, 154, 0.7); }
}

/* Monitor stand */
.surv-monitor-stand
{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.surv-monitor-neck
{
    width: 20px;
    height: 18px;
    background: linear-gradient(to bottom, #0a0f0b, #060b07);
    border-left: 2px solid rgba(0, 250, 154, 0.1);
    border-right: 2px solid rgba(0, 250, 154, 0.1);
}

.surv-monitor-base
{
    width: 80px;
    height: 8px;
    background: linear-gradient(to bottom, #0a0f0b, #050a06);
    border-radius: 0 0 4px 4px;
    border: 2px solid rgba(0, 250, 154, 0.1);
    border-top: none;
}

/* ── Case notes panel ── */
.surv-notes-panel
{
    flex: 1;
    min-height: 240px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.surv-notes-idle
{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    transition: opacity 0.4s ease;
}

.surv-notes-idle.hidden
{
    opacity: 0;
    pointer-events: none;
}

.surv-notes-idle-icon
{
    font-size: 2rem;
    opacity: 0.08;
    filter: grayscale(1);
}

.surv-notes-idle-text
{
    font-family: var(--font-ghost);
    font-size: 0.62rem;
    letter-spacing: 0.4em;
    color: rgba(0, 250, 154, 0.35);
    text-transform: uppercase;
}

.surv-notes-idle-sub {
    font-family: var(--font-ghost);
    font-size: 0.52rem;
    letter-spacing: 0.2em;
    color: rgba(0, 250, 154, 0.2);
}

/* Active notes content */
.surv-notes-content
{
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.surv-notes-content.visible
{
    opacity: 1;
    transform: none;
    pointer-events: all;
}

.surv-notes-header-title
{
    font-family: var(--font-ghost);
    font-size: 0.52rem;
    letter-spacing: 0.45em;
    color: rgba(0, 250, 154, 0.5);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.surv-notes-divider
{
    height: 1px;
    background: linear-gradient(to right, rgba(0, 170, 106, 0.5), rgba(0, 250, 154, 0.2), transparent);
    margin: 0.2rem 0;
}

.surv-notes-fields
{
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.surv-notes-row
{
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0.5rem;
    align-items: baseline;
}

.surv-notes-row--block
{
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

.surv-notes-key
{
    font-family: var(--font-ghost);
    font-size: 0.5rem;
    letter-spacing: 0.4em;
    color: rgba(0, 200, 120, 0.5);
    text-transform: uppercase;
}

.surv-notes-val
{
    font-family: var(--font-ghost);
    font-size: 0.75rem;
    color: rgba(200, 240, 220, 0.85);
    line-height: 1.5;
    min-height: 1rem;
}

.surv-val--truth
{
    color: #a0ffe0;
    font-style: italic;
}

/* Orochi's note */
.surv-notes-orochi
{
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.surv-notes-orochi-label
{
    font-family: var(--font-ghost);
    font-size: 0.5rem;
    letter-spacing: 0.45em;
    color: rgba(0, 250, 154, 0.6);
    text-transform: uppercase;
}

.surv-notes-orochi-text
{
    font-family: var(--font-ghost);
    font-size: 0.8rem;
    font-style: italic;
    color: #a0ffe0;
    line-height: 1.7;
    text-shadow: 0 0 12px rgba(0, 250, 154, 0.35);
    margin: 0;
}

/* Typewriter cursor */
.surv-cursor
{
    display: inline-block;
    width: 2px;
    height: 0.8em;
    background: #00fa9a;
    margin-left: 2px;
    vertical-align: middle;
    animation: survCursorBlink 0.7s step-end infinite;
}

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

/* ── Footer quote ── */
.surv-footer
{
    padding: 1.2rem 2rem;
    border-top: 1px solid rgba(0, 250, 154, 0.08);
    text-align: center;
    background: rgba(0, 4, 2, 0.6);
}

.surv-footer-quote
{
    font-family: var(--font-ghost);
    font-size: 0.78rem;
    font-style: italic;
    color: rgba(160, 255, 224, 0.45);
    margin: 0;
    letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (max-width: 768px)
{
    .surv-feeds-row {
        gap: 0.8rem;
        padding: 1.2rem 1rem 0.8rem;
    }

    .surv-feed { width: 100px; }

    .surv-main-row {
        flex-direction: column;
        align-items: center;
        padding: 1rem 1rem 1.5rem;
    }

    .surv-notes-panel
    {
        width: 100%;
        min-height: 300px;
    }
}

/* Recording mode */
.recording-mode .surv-live-dot,
.recording-mode .surv-monitor-status,
.recording-mode .surv-feed-scanlines,
.recording-mode .surv-monitor-scanlines
{
    animation: none !important;
}


/* =============================================
   OROCHI — Still Water Toggle
   ============================================= */

.orochi-still-water
{
    position: relative;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 250, 154, 0.15);
    background: #020804;
    box-shadow: 0 0 0 1px rgba(0, 250, 154, 0.03), 0 4px 60px rgba(0, 0, 0, 0.95);
}

/* ── State bar ── */
.still-state-bar
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.5rem;
    background: rgba(0, 6, 3, 0.98);
    position: relative;
    z-index: 5;
}

.still-state-bar::after
{
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 170, 106, 0.4) 20%, rgba(0, 250, 154, 0.6) 50%, rgba(0, 170, 106, 0.4) 80%, transparent);
    transition: background 0.8s ease;
}

/* Beneath state — bar line shifts to harsher green */
.orochi-still-water[data-state="beneath"] .still-state-bar::after
{
    background: linear-gradient(to right, transparent, rgba(0, 250, 154, 0.2) 10%, rgba(0, 250, 154, 0.9) 50%, rgba(0, 250, 154, 0.2) 90%, transparent);
}

.still-state-indicator
{
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.still-state-dot
{
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 250, 154, 0.6);
    transition: background 0.6s ease, box-shadow 0.6s ease;
    animation: stillDotCalm 4s ease-in-out infinite;
}

.orochi-still-water[data-state="beneath"] .still-state-dot {
    background: #00fa9a;
    box-shadow: 0 0 8px rgba(0, 250, 154, 0.9);
    animation: stillDotBeneath 1.2s ease-in-out infinite;
}

@keyframes stillDotCalm {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

@keyframes stillDotBeneath
{
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.7); }
}

.still-state-label
{
    font-family: var(--font-ghost);
    font-size: 0.55rem;
    letter-spacing: 0.45em;
    color: rgba(0, 200, 120, 0.7);
    text-transform: uppercase;
    transition: color 0.6s ease;
}

.orochi-still-water[data-state="beneath"] .still-state-label
{
    color: #00fa9a;
    text-shadow: 0 0 10px rgba(0, 250, 154, 0.6);
}

.still-arc-label
{
    font-family: var(--font-ghost);
    font-size: 0.52rem;
    letter-spacing: 0.2em;
    color: rgba(160, 255, 224, 0.35);
    font-style: italic;
    transition: color 0.4s ease;
}

.still-state-kanji
{
    font-family: var(--font-ghost);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(0, 250, 154, 0.4);
    transition: color 0.6s ease;
}

.orochi-still-water[data-state="beneath"] .still-state-kanji
{
    color: rgba(0, 250, 154, 0.8);
    text-shadow: 0 0 10px rgba(0, 250, 154, 0.5);
}

/* ── Panel ── */
.still-panel
{
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

/* ── Layers ── */
.still-layer
{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s ease;
}

/* Surface — visible by default */
.still-layer--surface
{
    opacity: 1;
    filter: none;
    transform: none;
    z-index: 2;
}

.orochi-still-water[data-state="beneath"] .still-layer--surface
{
    opacity: 0;
    filter: blur(4px);
    transform: scale(1.04);
    z-index: 1;
}

/* Beneath — hidden by default */
.still-layer--beneath
{
    opacity: 0;
    filter: blur(6px) contrast(1.5);
    transform: scale(0.97);
    z-index: 1;
}

.orochi-still-water[data-state="beneath"] .still-layer--beneath
{
    opacity: 1;
    filter: none;
    transform: none;
    z-index: 2;
}

/* ── Surface background ── */
.still-surface-bg
{
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 250, 154, 0.04) 0%, transparent 70%), linear-gradient(180deg, #020804 0%, #041208 50%, #020804 100%);
}

/* Calm ripples */
.still-ripples
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.still-ripple
{
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 250, 154, 0.12);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: stillRippleExpand 6s ease-out infinite;
}

.still-ripple-1 { width: 200px; height: 60px; animation-delay: 0s; }
.still-ripple-2 { width: 380px; height: 110px; animation-delay: 2s; }
.still-ripple-3 { width: 560px; height: 160px; animation-delay: 4s; }

@keyframes stillRippleExpand {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ── Surface content ── */
.still-content
{
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.still-surface-glyph
{
    font-family: var(--font-ghost);
    font-size: 4rem;
    color: rgba(0, 250, 154, 0.06);
    line-height: 1;
    letter-spacing: 0.1em;
    pointer-events: none;
    user-select: none;
}

.still-surface-text
{
    font-family: var(--font-ghost);
    font-size: 1rem;
    line-height: 2;
    color: rgba(160, 255, 224, 0.55);
    letter-spacing: 0.08em;
    margin: 0;
    font-style: italic;
}

.still-surface-caption {
    font-family: var(--font-ghost);
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    color: rgba(0, 250, 154, 0.25);
    text-transform: uppercase;
}

/* ── Beneath background ── */
.still-beneath-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 250, 154, 0.08) 0%, rgba(0, 40, 20, 0.4) 50%, #000 100%), repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 250, 154, 0.015) 3px, rgba(0, 250, 154, 0.015) 4px);
}

/* Distortion lines — like a broken surface */
.still-distortion {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.still-dist-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 250, 154, 0.08), rgba(0, 250, 154, 0.15), rgba(0, 250, 154, 0.08), transparent);
    animation: stillDistDrift 8s linear infinite;
}

.still-dist-line-1 { top: 22%; animation-duration: 7s; animation-delay: 0s; }
.still-dist-line-2 { top: 45%; animation-duration: 9s; animation-delay: 1.5s; }
.still-dist-line-3 { top: 67%; animation-duration: 6s; animation-delay: 3s; }
.still-dist-line-4 { top: 85%; animation-duration: 11s; animation-delay: 0.8s; }

@keyframes stillDistDrift {
    0%   { transform: translateX(-8px); opacity: 0.4; }
    50%  { transform: translateX(8px);  opacity: 1; }
    100% { transform: translateX(-8px); opacity: 0.4; }
}

/* SVG cracks */
.still-cracks
{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease 0.3s;
}

.orochi-still-water[data-state="beneath"] .still-cracks
{
    opacity: 1;
}

/* Beneath content */
.still-beneath-glyph
{
    font-family: var(--font-ghost);
    font-size: 4rem;
    color: rgba(0, 250, 154, 0.12);
    line-height: 1;
    letter-spacing: 0.1em;
    pointer-events: none;
    user-select: none;
    animation: beneathGlyphPulse 3s ease-in-out infinite;
}

@keyframes beneathGlyphPulse
{
    0%, 100% { opacity: 0.6; text-shadow: none; }
    50%       { opacity: 1; text-shadow: 0 0 30px rgba(0, 250, 154, 0.4); }
}

.still-beneath-text
{
    font-family: var(--font-ghost);
    font-size: 1rem;
    line-height: 2;
    color: rgba(0, 250, 154, 0.85);
    letter-spacing: 0.08em;
    margin: 0;
    font-style: italic;
    text-shadow: 0 0 20px rgba(0, 250, 154, 0.3);
}

.still-beneath-caption
{
    font-family: var(--font-ghost);
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    color: rgba(0, 250, 154, 0.45);
    text-transform: uppercase;
}

/* ── Shake animation — on transition to beneath ── */
@keyframes stillPanelShake {
    0%   { transform: translateX(0); }
    15%  { transform: translateX(-5px); }
    30%  { transform: translateX(4px); }
    45%  { transform: translateX(-3px); }
    60%  { transform: translateX(2px); }
    75%  { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

.still-panel.shaking
{
    animation: stillPanelShake 0.4s ease forwards;
}

/* ── Toggle button ── */
.still-toggle-wrap
{
    display: flex;
    justify-content: center;
    padding: 1.5rem 2rem;
    background: rgba(0, 4, 2, 0.6);
    border-top: 1px solid rgba(0, 250, 154, 0.08);
    transition: border-color 0.6s ease;
}

.orochi-still-water[data-state="beneath"] .still-toggle-wrap
{
    border-color: rgba(0, 250, 154, 0.2);
}

.still-toggle-btn
{
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: transparent;
    border: 1px solid rgba(0, 250, 154, 0.3);
    border-radius: 6px;
    padding: 0.7rem 2rem;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.still-toggle-btn::before
{
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 250, 154, 0);
    transition: background 0.35s ease;
}

.still-toggle-btn:hover
{
    border-color: #00fa9a;
    box-shadow: 0 0 25px rgba(0, 250, 154, 0.35);
}

.still-toggle-btn:hover::before
{
    background: rgba(0, 250, 154, 0.06);
}

.orochi-still-water[data-state="beneath"] .still-toggle-btn
{
    border-color: rgba(0, 250, 154, 0.5);
    box-shadow: 0 0 20px rgba(0, 250, 154, 0.2);
}

.still-toggle-icon
{
    font-size: 0.9rem;
    color: rgba(0, 250, 154, 0.7);
    transition: color 0.4s ease, transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.still-toggle-btn:hover .still-toggle-icon
{
    color: #00fa9a;
    transform: scale(1.15);
}

.still-toggle-text
{
    font-family: var(--font-ghost);
    font-size: 0.65rem;
    letter-spacing: 0.45em;
    color: rgba(160, 255, 224, 0.7);
    text-transform: uppercase;
    transition: color 0.35s ease;
    position: relative;
    z-index: 1;
}

.still-toggle-btn:hover .still-toggle-text
{
    color: #ffffff;
}

.still-toggle-kanji
{
    font-family: var(--font-ghost);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: rgba(0, 250, 154, 0.3);
    transition: color 0.35s ease;
    position: relative;
    z-index: 1;
}

.still-toggle-btn:hover .still-toggle-kanji
{
    color: rgba(0, 250, 154, 0.6);
}

/* ── Responsive ── */
@media (max-width: 600px)
{
    .still-panel { height: 240px; }
    .still-surface-text,
    .still-beneath-text { font-size: 0.85rem; }
    .still-surface-glyph,
    .still-beneath-glyph { font-size: 2.8rem; }
    .still-toggle-kanji { display: none; }
}

/* Recording mode */
.recording-mode .still-ripple,
.recording-mode .still-dist-line,
.recording-mode .still-state-dot,
.recording-mode .still-beneath-glyph
{
    animation: none !important;
}
