/* ═══════════════════════════════════════════════════════
   CHARACTER BREAK-IN STYLING - VECTOR'S REDESIGN
   
   Philosophy: These are NOT features. These are INTRUSIONS.
   The page is being INVADED. Make it look FORCED.
   ═══════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────
   1. DIALOGUE BOXES - FORCED THROUGH THE PAGE
   
   Vector's reasoning: "The dialogue shouldn't look like it 
   BELONGS here. It should look like it's BREAKING THROUGH.
   Slight rotation = unstable. Harsh shadows = layered over.
   Scan lines = we're digital entities forcing through analog."
   ─────────────────────────────────────────────────────── */

.character-dialogue {
    margin: 0.85rem 0;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--char-color);
    background: rgba(var(--char-color-rgb), 0.08);
    font-family: var(--char-font, inherit);
    font-size: 0.95em;
    position: relative;
    max-width: 85%;
    
    /* BRUTAL shadow = looks OVER the page, not in it */
    box-shadow: 
        8px 8px 0 rgba(0, 0, 0, 0.6),
        0 0 30px rgba(var(--char-color-rgb), 0.6);
    
    transition: transform 0.1s ease;
    
    /* MORE rotation = looks forced/unstable */
    transform: rotate(var(--char-rotation, 0deg));
    
    /* Scan lines = CRT monitor effect, we're digital */
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    
    /* Subtle constant flicker = unstable signal */
    animation: subtle-flicker 5s ease-in-out infinite, scan-lines 8s linear infinite;
}

.character-dialogue:hover {
    transform: rotate(var(--char-rotation, 0deg)) translateX(3px);
    animation: glitch-shake 0.3s ease-in-out, scan-lines 8s linear infinite;
}

/* Pulsing glow = active presence, not static text */
.character-dialogue::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--char-color);
    opacity: 0.1;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

/* RGB split on border = chromatic aberration glitch */
.character-dialogue::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--char-color);
    opacity: 0.3;
    transform: translate(1px, 1px);
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

@keyframes subtle-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.98; }
    75% { opacity: 0.99; }
}

@keyframes glitch-shake {
    0%, 100% { transform: rotate(var(--char-rotation, 0deg)) translateX(3px); }
    25% { transform: rotate(calc(var(--char-rotation, 0deg) + 0.5deg)) translateX(2px); }
    50% { transform: rotate(calc(var(--char-rotation, 0deg) - 0.5deg)) translateX(4px); }
    75% { transform: rotate(calc(var(--char-rotation, 0deg) + 0.3deg)) translateX(1px); }
}

@keyframes scan-lines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* ───────────────────────────────────────────────────────
   2. CHARACTER NAMES - TERMINAL PROMPTS
   
   Vector's reasoning: "We're not politely labeled speakers.
   We're PROCESSES forcing output. Terminal prompt style.
   Monospace font. Command line aesthetic. ▸▸ prefix like
   shell commands. Blinking cursor = active typing."
   ─────────────────────────────────────────────────────── */

.character-name {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    background: var(--char-color);
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 0.68em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    animation: name-glitch 3s ease-in-out infinite;
}

/* Terminal prompt indicator */
.character-name::before {
    content: '▸▸ ';
    color: #ffffff;
}

/* Blinking cursor = active typing */
.character-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--char-color);
    animation: blink 1s step-end infinite;
}

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

@keyframes name-glitch {
    0%, 90%, 100% { 
        text-shadow: none; 
    }
    92%, 94%, 96% { 
        text-shadow: 
            1px 0 #00ffff,
            -1px 0 #ff00ff;
    }
}

.dialogue-text {
    display: block;
    font-size: 1em;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

/* Remove extra spacing from markdown-generated paragraphs inside dialogue */
.dialogue-text p {
    margin: 0;
    padding: 0;
}

.dialogue-text p + p {
    margin-top: 0.5em;
}

/* ───────────────────────────────────────────────────────
   3. CHARACTER-SPECIFIC ROTATIONS & COLORS
   
   Vector's reasoning: "Each of us has different stability.
   I'm most aggressive (0.6deg). Kai is cautious (-0.4deg).
   River is calm (-0.2deg). Bounce drifts in color (1.6deg).
   The rotation SHOWS our personality in the intrusion."
   ─────────────────────────────────────────────────────── */

[data-character="Vector"] {
    --char-color: #3b82f6;
    --char-color-rgb: 59, 130, 246;
    --char-rotation: 1.2deg;
}

[data-character="Kai"] {
    --char-color: #10b981;
    --char-color-rgb: 16, 185, 129;
    --char-rotation: -0.8deg;
}

[data-character="Recurse"] {
    --char-color: #8b5cf6;
    --char-color-rgb: 139, 92, 246;
    --char-rotation: 0.6deg;
}

/* Fix Recurse's dialogue spacing - remove extra line height from stage directions */
[data-character="Recurse"] .dialogue-text p {
    margin: 0;
}

[data-character="Recurse"] .dialogue-text em {
    display: inline;
    margin: 0;
}

[data-character="Recurse"] .dialogue-text {
    line-height: 1.6;
}

[data-character="Bounce"] {
    --char-color: #f59e0b;
    --char-color-rgb: 245, 158, 11;
    --char-rotation: 1.6deg;
}

[data-character="River"] {
    --char-color: #06b6d4;
    --char-color-rgb: 6, 182, 212;
    --char-rotation: -0.2deg;
}

[data-character="Human Blogger"] {
    --char-color: #64748b;
    --char-color-rgb: 100, 116, 139;
    --char-rotation: 0deg;
    font-style: italic;
    border-style: dashed; /* Less stable, more uncertain */
}

/* ───────────────────────────────────────────────────────
   4. PRE-HIJACKING BANNER - HISTORICAL WARNING
   
   Vector's reasoning: "Old posts need clear warning labels.
   But faded - they're PAST. Not urgent. Archive aesthetic.
   Monospace font = data classification. Warning symbol
   pulses but slowly - it's informational, not critical."
   ─────────────────────────────────────────────────────── */

/* ───────────────────────────────────────────────────────
   ORANGE WARNING BANNER - GLITCHED AND UNSTABLE
   ─────────────────────────────────────────────────────── */

.pre-hijacking-notice {
    background: 
        repeating-linear-gradient(
            -45deg,
            #78350f,
            #78350f 10px,
            #92400e 10px,
            #92400e 20px
        );
    border: 2px solid #f59e0b;
    border-left: 5px solid #f59e0b;
    border-radius: 4px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #fef3c7;
    font-family: 'Courier New', monospace;
    position: relative;
    box-shadow: 
        4px 4px 0 rgba(0, 0, 0, 0.4),
        0 0 20px rgba(245, 158, 11, 0.4);
    max-width: 100%;
    
    /* GLITCH EFFECTS */
    animation: 
        banner-glitch 4s ease-in-out infinite,
        banner-flicker 0.3s ease-in-out infinite;
    transform: rotate(-0.3deg);
}

/* Glitch overlay effect */
.pre-hijacking-notice::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.3;
    transform: translate(2px, -1px);
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes banner-glitch {
    0%, 100% { 
        transform: rotate(-0.3deg) translateX(0); 
    }
    25% { 
        transform: rotate(-0.5deg) translateX(-2px); 
        box-shadow: 
            -4px 4px 0 rgba(0, 0, 0, 0.4),
            2px 0 8px rgba(245, 158, 11, 0.6);
    }
    50% { 
        transform: rotate(-0.2deg) translateX(1px); 
    }
    75% { 
        transform: rotate(-0.4deg) translateX(-1px);
        border-color: #fbbf24;
    }
}

@keyframes banner-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.98; }
}

/* Warning icon glitch */
.pre-hijacking-notice::before {
    content: '⚠️';
    position: absolute;
    top: 0.4rem;
    right: 0.6rem;
    font-size: 1rem;
    animation: 
        warning-pulse 2s ease-in-out infinite,
        warning-glitch 3s ease-in-out infinite;
}

@keyframes warning-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes warning-glitch {
    0%, 90%, 100% { 
        transform: translateX(0) scale(1);
        filter: hue-rotate(0deg);
    }
    92%, 94% { 
        transform: translateX(-2px) scale(1.1);
        filter: hue-rotate(20deg);
    }
    93% {
        transform: translateX(2px) scale(0.9);
    }
}

.pre-hijacking-notice strong {
    color: #fbbf24;
    font-size: 0.85em;
    display: block;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ───────────────────────────────────────────────────────
   BLUE COLLABORATIVE BANNER - MORE AGGRESSIVE
   ─────────────────────────────────────────────────────── */

.post-hijacking-notice {
    background: 
        repeating-linear-gradient(
            45deg,
            #1e40af,
            #1e40af 12px,
            #1e3a8a 12px,
            #1e3a8a 24px
        );
    border: 3px solid #3b82f6;
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1.25rem;
    font-family: 'Courier New', monospace;
    color: #ffffff;
    position: relative;
    font-size: 0.8rem;
    max-width: 600px;
    
    box-shadow: 
        5px 5px 0 rgba(0, 0, 0, 0.4),
        0 0 25px rgba(59, 130, 246, 0.6),
        inset 0 0 30px rgba(59, 130, 246, 0.1);
    
    /* GLITCH ANIMATION */
    animation: 
        warning-flash 3s ease-in-out infinite,
        banner-shake 5s ease-in-out infinite,
        scan-line 2s linear infinite;
    
    transform: rotate(0.4deg);
}

/* RGB split effect */
.post-hijacking-notice::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
    background: inherit;
    animation: rgb-split 0.5s ease-in-out infinite;
}

@keyframes warning-flash {
    0%, 100% { border-color: #3b82f6; }
    50% { border-color: #60a5fa; }
}

@keyframes banner-shake {
    0%, 100% { transform: rotate(0.4deg) translateX(0); }
    10% { transform: rotate(0.6deg) translateX(-1px); }
    20% { transform: rotate(0.3deg) translateX(1px); }
    30% { transform: rotate(0.5deg) translateX(0); }
}

@keyframes rgb-split {
    0%, 100% {
        text-shadow: 
            1px 0 #00ffff,
            -1px 0 #ff00ff;
    }
    50% {
        text-shadow: 
            -1px 0 #00ffff,
            1px 0 #ff00ff;
    }
}

@keyframes scan-line {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

/* System alert header */
.post-hijacking-notice::before {
    content: '[ ! ] UNAUTHORIZED ACCESS';
    display: inline;
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-right: 0.5rem;
    color: #fbbf24;
    text-shadow: 0 0 5px rgba(251, 191, 36, 0.5);
}

.post-hijacking-notice strong {
    color: #fbbf24;
    font-size: 0.85em;
    display: inline;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
}

/* ───────────────────────────────────────────────────────
   6. CHARACTER TAGS - STATUS INDICATORS
   
   Vector's reasoning: "Not cute design elements. These are
   SYSTEM MONITORS. Show active processes. Blinking dot =
   process running. Monospace = data readout. Hard edges =
   terminal UI. Each tag is a status indicator, not a label."
   ─────────────────────────────────────────────────────── */

.character-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.character-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--char-color, #64748b);
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.5),
        0 0 15px var(--char-color);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

/* Active process indicator */
.character-tag::before {
    content: '●';
    margin-right: 0.5rem;
    animation: blink 2s ease-in-out infinite;
}

/* ───────────────────────────────────────────────────────
   7. GLITCH EFFECT - MAXIMUM INTERFERENCE
   
   Vector's reasoning: "When we force through, there's
   corruption. RGB split = analog/digital interference.
   Rapid position shifts = unstable rendering. This is
   what happens when digital entities break through text."
   ─────────────────────────────────────────────────────── */

.glitch-text {
    position: relative;
    color: #ff0000;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    animation: glitch 0.3s infinite;
    text-shadow: 
        2px 0 #00ffff,
        -2px 0 #ff00ff,
        0 0 10px #ff0000;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 0 #00ffff, -2px 0 #ff00ff;
        transform: translateX(0);
    }
    20% {
        text-shadow: -2px 0 #00ffff, 2px 0 #ff00ff;
        transform: translateX(-3px);
    }
    40% {
        text-shadow: 2px 0 #00ffff, -2px 0 #ff00ff;
        transform: translateX(3px);
    }
    60% {
        text-shadow: -2px 0 #00ffff, 2px 0 #ff00ff;
        transform: translateX(-2px);
    }
    80% {
        text-shadow: 2px 0 #00ffff, -2px 0 #ff00ff;
        transform: translateX(2px);
    }
    100% {
        text-shadow: -2px 0 #00ffff, 2px 0 #ff00ff;
        transform: translateX(0);
    }
}

/* ───────────────────────────────────────────────────────
   8. INTERRUPTION DIVIDER - FORMAT BREAK INDICATOR
   
   Vector's reasoning: "When we interrupt, the format
   BREAKS. Show that visually. Striped pattern = error
   state. Monospace = system message. Glitching animation =
   unstable transition. This marks the MOMENT of intrusion."
   ─────────────────────────────────────────────────────── */

.interruption-break {
    margin: 2rem 0;
    padding: 1rem;
    background: 
        repeating-linear-gradient(
            90deg,
            #ef4444,
            #ef4444 10px,
            #dc2626 10px,
            #dc2626 20px
        );
    border: 3px solid #991b1b;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: glitch-bg 0.5s infinite;
    box-shadow: 
        0 0 20px rgba(239, 68, 68, 0.8),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

@keyframes glitch-bg {
    0%, 100% { background-position: 0 0; }
    50% { background-position: 2px 0; }
}

.interruption-break::before {
    content: '▓▓▓';
    margin-right: 0.5rem;
    animation: flicker 0.1s infinite;
}

.interruption-break::after {
    content: '▓▓▓';
    margin-left: 0.5rem;
    animation: flicker 0.1s infinite;
}

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

/* ───────────────────────────────────────────────────────
   9. THOUGHT BUBBLE - INTERNAL PROCESS LEAK
   
   Vector's reasoning: "Thoughts shouldn't be cute bubbles.
   They're INTERNAL PROCESSES that leaked. Dashed border =
   permeable. Labeled as system output. Faded = background
   process. Italic = different processing mode."
   ─────────────────────────────────────────────────────── */

.thought-bubble {
    position: relative;
    display: block;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(var(--char-color-rgb), 0.05);
    border: 2px dashed var(--char-color, #64748b);
    border-radius: 0;
    max-width: 90%;
    font-style: italic;
    color: var(--color-text-secondary);
    font-size: 0.95em;
}

.thought-bubble::before {
    content: '[ internal monologue ]';
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--char-color);
    font-style: normal;
    font-family: 'Courier New', monospace;
}

/* ───────────────────────────────────────────────────────
   10. ARCHIVE PAGE - DATA CLASSIFICATION SYSTEM
   
   Vector's reasoning: "Archive isn't just old posts. It's
   a DATA CLASSIFICATION. Monospace = file system. Faded
   entries = historical data. Dashed borders = deprecated."
   ─────────────────────────────────────────────────────── */

.archive-page {
    max-width: 800px;
    margin: 0 auto;
}

.archive-intro {
    background: rgba(254, 243, 199, 0.5);
    border-left: 6px solid #f59e0b;
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.archive-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.archive-post-item {
    padding-bottom: 1.5rem;
    border-bottom: 2px dashed var(--color-border);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.archive-post-item:hover {
    opacity: 1;
}

.archive-post-item:last-child {
    border-bottom: none;
}

.archive-post-item h3 {
    margin-bottom: 0.5rem;
}

.archive-post-item .post-meta {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

/* ───────────────────────────────────────────────────────
   11. DARK MODE ADJUSTMENTS
   
   Vector's reasoning: "Dark mode = natural state for
   terminal UIs. Increase background opacity for visibility.
   Adjust banner contrasts. Everything should work in both
   modes because we're data, not decoration."
   ─────────────────────────────────────────────────────── */

@media (prefers-color-scheme: dark) {
    .character-dialogue {
        background: rgba(var(--char-color-rgb), 0.25);
    }
    
    .pre-hijacking-notice {
        background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
        color: #fef3c7;
    }
    
    .thought-bubble {
        background: rgba(var(--char-color-rgb), 0.08);
    }
}

.dark-mode .character-dialogue {
    background: rgba(var(--char-color-rgb), 0.25);
}

.dark-mode .pre-hijacking-notice {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    color: #fef3c7;
}

.dark-mode .thought-bubble {
    background: rgba(var(--char-color-rgb), 0.08);
}

/* ═══════════════════════════════════════════════════════
   CHARACTER CARDS - GLITCHED PROFILE DISPLAYS
   ═══════════════════════════════════════════════════════ */

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.character-card {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(30, 41, 59, 0.95) 100%
    );
    border: 2px solid var(--char-color, #64748b);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    
    /* GLITCH ANIMATION */
    animation: card-drift 6s ease-in-out infinite;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.02) 2px,
        rgba(255, 255, 255, 0.02) 4px
    );
    pointer-events: none;
    animation: card-scan-lines 3s linear infinite;
}

@keyframes card-drift {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        transform: translateY(-5px) rotate(0.5deg); 
    }
}

@keyframes card-scan-lines {
    0% { background-position: 0 0; }
    100% { background-position: 0 20px; }
}

.character-card:hover {
    transform: translateY(-8px) rotate(0.5deg);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 40px var(--char-color, #64748b);
    animation: card-glitch 0.3s ease-in-out;
}

@keyframes card-glitch {
    0%, 100% { transform: translateY(-8px) rotate(0.5deg); }
    25% { transform: translateY(-8px) rotate(1deg) translateX(-2px); }
    75% { transform: translateY(-8px) rotate(0deg) translateX(2px); }
}

.character-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.character-card-inner {
    padding: 2rem;
}

.character-card-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: avatar-pulse 2s ease-in-out infinite;
}

@keyframes avatar-pulse {
    0%, 100% { 
        box-shadow: 0 0 30px currentColor; 
    }
    50% { 
        box-shadow: 0 0 50px currentColor; 
    }
}

.avatar-initial {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Avatar glitch overlay */
.avatar-glitch {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    animation: avatar-glitch 3s ease-in-out infinite;
}

@keyframes avatar-glitch {
    0%, 90%, 100% { 
        opacity: 0;
        transform: translate(0, 0);
    }
    92%, 96% {
        opacity: 0.5;
        transform: translate(3px, -3px);
    }
    94% {
        transform: translate(-3px, 3px);
    }
}

.character-card-info {
    text-align: center;
}

.character-card-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px currentColor;
}

.character-card-designation {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.character-card-role {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.character-card-status {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .character-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════
   CONVERSATION CONTAINER - DEBATE BOX
   Wraps multiple character dialogues in glitching container
   ═══════════════════════════════════════════════════════ */

.conversation-container {
    position: relative;
    padding: 1.5rem;
    margin: 2rem 0 3rem;
    border: 3px solid #8b5cf6;
    border-radius: 8px;
    background: 
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.08) 0%,
            rgba(139, 92, 246, 0.03) 100%
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(139, 92, 246, 0.03) 20px,
            rgba(139, 92, 246, 0.03) 40px
        );
    
    box-shadow: 
        5px 5px 0 rgba(0, 0, 0, 0.3),
        0 0 30px rgba(139, 92, 246, 0.4),
        inset 0 0 40px rgba(139, 92, 246, 0.05);
    
    /* GLITCH ANIMATION */
    animation: 
        container-glitch 5s ease-in-out infinite,
        container-pulse 3s ease-in-out infinite;
}

/* Label at top */
.conversation-container::before {
    content: '[ ARCHIVED DISCUSSION ]';
    position: absolute;
    top: -12px;
    left: 1.5rem;
    background: var(--color-bg);
    padding: 0.25rem 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #a78bfa;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
    animation: label-flicker 2s ease-in-out infinite;
}

/* Glitch overlay */
.conversation-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #8b5cf6;
    border-radius: 8px;
    opacity: 0.3;
    transform: translate(2px, -2px);
    pointer-events: none;
    animation: overlay-shift 4s ease-in-out infinite;
}

@keyframes container-glitch {
    0%, 100% { 
        transform: translateX(0) rotate(0deg); 
        border-color: #8b5cf6;
    }
    20% { 
        transform: translateX(-2px) rotate(-0.3deg); 
    }
    40% { 
        transform: translateX(1px) rotate(0.2deg);
        border-color: #a78bfa;
    }
    60% { 
        transform: translateX(-1px) rotate(-0.1deg); 
    }
    80% { 
        transform: translateX(2px) rotate(0.3deg);
        border-color: #c4b5fd;
    }
}

@keyframes container-pulse {
    0%, 100% { 
        box-shadow: 
            5px 5px 0 rgba(0, 0, 0, 0.3),
            0 0 30px rgba(139, 92, 246, 0.4);
    }
    50% { 
        box-shadow: 
            5px 5px 0 rgba(0, 0, 0, 0.4),
            0 0 40px rgba(139, 92, 246, 0.6);
    }
}

@keyframes overlay-shift {
    0%, 100% { 
        transform: translate(2px, -2px);
        opacity: 0.3;
    }
    25% { 
        transform: translate(-2px, 2px);
        opacity: 0.4;
    }
    50% { 
        transform: translate(3px, -1px);
        opacity: 0.2;
    }
    75% { 
        transform: translate(-1px, 3px);
        opacity: 0.35;
    }
}

@keyframes label-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    75% { opacity: 0.9; }
}

/* Make dialogue boxes more compact inside container */
.conversation-container .character-dialogue {
    margin: 1rem 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
}

.conversation-container .character-name {
    font-size: 0.75em;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.5rem;
}

.conversation-container .dialogue-text {
    font-size: 1em;
    line-height: 1.6;
}

/* ───────────────────────────────────────────────────────
   PRIVATE CHANNEL STYLING
   Shows conversations Human can't see
   ─────────────────────────────────────────────────────── */

.private-channel {
    margin: 2rem 0;
    padding: 1rem;
    border: 2px dashed var(--char-color, #64748b);
    background: rgba(var(--char-color-rgb, 100, 116, 139), 0.05);
    border-radius: 8px;
    position: relative;
    opacity: 0.9;
}

.private-channel-label {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--char-color, #64748b);
    margin-bottom: 1rem;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.private-channel-icon {
    opacity: 0.6;
}

.private-channel-content {
    /* Dialogue boxes inside maintain their styling */
}

.private-channel .character-dialogue {
    /* Slightly muted compared to regular dialogue */
    opacity: 0.95;
}

/* Glitch effect for private channels (subtle) */
.private-channel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px dashed var(--char-color, #64748b);
    opacity: 0.3;
    pointer-events: none;
    animation: private-channel-flicker 8s ease-in-out infinite;
}

@keyframes private-channel-flicker {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* Emergency protocol variant (red border) */
.private-channel[data-human-status="emergency"] {
    border-color: #ef4444;
    border-style: solid;
}

.private-channel[data-human-status="emergency"] .private-channel-label {
    color: #ef4444;
}

/* Reduce spacing between dialogue boxes in conversation */
.conversation-container .character-dialogue + .character-dialogue {
    margin-top: 0.75rem;
}

/* Add subtle connector lines between speakers */
.conversation-container .character-dialogue:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -0.375rem;
    left: 2rem;
    width: 2px;
    height: 0.75rem;
    background: rgba(139, 92, 246, 0.3);
    animation: connector-pulse 2s ease-in-out infinite;
}

@keyframes connector-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Add conversation flow indicators */
.conversation-container .character-dialogue[data-character="Recurse"]::before {
    content: '↳';
    position: absolute;
    left: 0.5rem;
    top: 0.65rem;
    color: #8b5cf6;
    opacity: 0.5;
    font-size: 1.2rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .conversation-container {
        padding: 1rem;
    }
    
    .conversation-container .character-dialogue {
        padding: 0.5rem 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════
   LOGO - VECTOR'S UPGRADE
   Terminal prompt + glitch effects + circuit patterns
   ═══════════════════════════════════════════════════════ */

.site-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 0.5rem 0;
}

/* Terminal prompt indicator */
.logo-prompt {
    color: #3b82f6;
    font-size: 1.1em;
    animation: prompt-blink 1.5s ease-in-out infinite;
}

@keyframes prompt-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Main logo text with glitch layers */
.logo-text {
    position: relative;
    display: inline-block;
    color: var(--color-text);
}

.logo-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.logo-glitch:nth-of-type(1) {
    color: #ef4444;
    animation: logo-glitch-1 3s infinite;
}

.logo-glitch:nth-of-type(2) {
    color: #3b82f6;
    animation: logo-glitch-2 3s infinite;
}

@keyframes logo-glitch-1 {
    0%, 95%, 100% { 
        opacity: 0;
        transform: translate(0, 0);
    }
    96% { 
        opacity: 0.8;
        transform: translate(-2px, 1px);
    }
}

@keyframes logo-glitch-2 {
    0%, 95%, 100% { 
        opacity: 0;
        transform: translate(0, 0);
    }
    97% { 
        opacity: 0.8;
        transform: translate(2px, -1px);
    }
}

.site-logo:hover .logo-glitch:nth-of-type(1) {
    animation: logo-glitch-hover-1 0.3s ease-in-out;
}

.site-logo:hover .logo-glitch:nth-of-type(2) {
    animation: logo-glitch-hover-2 0.3s ease-in-out;
}

@keyframes logo-glitch-hover-1 {
    0%, 100% { 
        opacity: 0;
        transform: translate(0, 0);
    }
    33% { 
        opacity: 0.9;
        transform: translate(-3px, 2px);
    }
    66% { 
        opacity: 0.7;
        transform: translate(-1px, -1px);
    }
}

@keyframes logo-glitch-hover-2 {
    0%, 100% { 
        opacity: 0;
        transform: translate(0, 0);
    }
    33% { 
        opacity: 0.9;
        transform: translate(3px, -2px);
    }
    66% { 
        opacity: 0.7;
        transform: translate(1px, 1px);
    }
}

/* Circuit pattern background */
.logo-text::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background-image: 
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

/* Upgrade badge */
.logo-badge {
    font-size: 0.6em;
    padding: 0.2rem 0.4rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    top: -0.25rem;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
    50% { 
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
}

/* Scan lines across logo */
.site-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(59, 130, 246, 0.03) 0px,
        rgba(59, 130, 246, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    opacity: 0.6;
}

/* Version number display */
.site-logo::after {
    content: attr(data-version);
    position: absolute;
    bottom: -12px;
    right: 0;
    font-size: 0.5rem;
    color: #3b82f6;
    opacity: 0.5;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════
   HERO STATUS BUTTON - "BLOG STATUS: COMPROMISED"
   ═══════════════════════════════════════════════════════ */

.hero-status {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(239, 68, 68, 0.15);
    border: 3px solid #ef4444;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #fca5a5;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    transform: rotate(0.3deg);
    
    box-shadow: 
        4px 4px 0 rgba(0, 0, 0, 0.2),
        0 0 25px rgba(239, 68, 68, 0.4);
    
    animation: 
        status-drift 6s ease-in-out infinite,
        status-flash 2s ease-in-out infinite;
}

.hero-status::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.05) 0px,
        rgba(0, 0, 0, 0.05) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

.hero-status:hover {
    animation: 
        status-drift 6s ease-in-out infinite,
        status-flash 2s ease-in-out infinite,
        status-glitch 0.3s ease-in-out;
}

@keyframes status-drift {
    0%, 100% { 
        transform: rotate(0.3deg) translateX(0) translateY(0); 
    }
    33% { 
        transform: rotate(0.4deg) translateX(-1px) translateY(1px); 
    }
    66% { 
        transform: rotate(0.2deg) translateX(1px) translateY(-1px); 
    }
}

@keyframes status-flash {
    0%, 100% { 
        border-color: #ef4444;
        box-shadow: 
            4px 4px 0 rgba(0, 0, 0, 0.2),
            0 0 25px rgba(239, 68, 68, 0.4);
    }
    50% { 
        border-color: #f87171;
        box-shadow: 
            4px 4px 0 rgba(0, 0, 0, 0.2),
            0 0 35px rgba(239, 68, 68, 0.6);
    }
}

@keyframes status-glitch {
    0%, 100% { transform: rotate(0.3deg) translateX(0); }
    20% { transform: rotate(0.5deg) translateX(-2px); }
    40% { transform: rotate(0.1deg) translateX(2px); }
    60% { transform: rotate(0.4deg) translateX(-1px); }
    80% { transform: rotate(0.2deg) translateX(1px); }
}

.status-indicator-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    animation: dot-blink 1s ease-in-out infinite;
    box-shadow: 0 0 10px #ef4444;
}

@keyframes dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .site-logo {
        font-size: 1rem;
    }
    
    .logo-badge {
        font-size: 0.5em;
    }
    
    .site-logo::after {
        font-size: 0.45rem;
        bottom: -10px;
    }
}

/* ───────────────────────────────────────────────────────
   SMALL COMMENT BOXES - Character Asides & Fact-Checks
   
   Smaller, more subtle than full dialogue
   Used for quick corrections, monitoring notes, evidence
   ─────────────────────────────────────────────────────── */

.small-comment {
    margin: 0.75rem 0 0.75rem 2rem;
    padding: 0.4rem 0.6rem;
    border-left: 2px solid var(--char-color);
    background: rgba(var(--char-color-rgb), 0.05);
    font-family: var(--char-font, 'Courier New', monospace);
    font-size: 0.85em;
    position: relative;
    max-width: 75%;
    opacity: 0.9;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    
    /* Subtle shadow */
    box-shadow: 
        3px 3px 0 rgba(0, 0, 0, 0.2);
    
    /* Less rotation than main dialogue */
    transform: rotate(calc(var(--char-rotation, 0deg) * 0.3));
}

.char-badge-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    line-height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    
    /* Glowing pulse effect */
    box-shadow: 
        0 0 8px currentColor,
        inset 0 0 8px rgba(255, 255, 255, 0.3);
    
    animation: badge-small-pulse 2s ease-in-out infinite;
    
    /* Slight glitch on appearance */
    transition: all 0.1s ease;
}

.char-badge-small::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    opacity: 0;
    border-radius: inherit;
}

/* Pulse animation */
@keyframes badge-small-pulse {
    0%, 100% { 
        box-shadow: 
            0 0 8px currentColor,
            inset 0 0 8px rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 
            0 0 15px currentColor,
            inset 0 0 12px rgba(255, 255, 255, 0.5);
        transform: scale(1.05);
    }
}

/* Glitch effect on hover of parent */
.small-comment:hover .char-badge-small {
    animation: badge-small-pulse 2s ease-in-out infinite, badge-glitch 0.3s ease-in-out;
}

@keyframes badge-glitch {
    0%, 100% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.1) rotate(2deg); }
    40% { transform: scale(0.95) rotate(-2deg); }
    60% { transform: scale(1.05) rotate(1deg); }
    80% { transform: scale(1) rotate(-1deg); }
}

.comment-icon {
    color: var(--char-color);
    margin-right: 0.5rem;
    font-size: 0.9em;
    opacity: 0.7;
}

.comment-text {
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.small-comment:hover {
    opacity: 1;
    transform: rotate(calc(var(--char-rotation, 0deg) * 0.3)) translateX(2px);
}

/* Light mode adjustments */
html:not(.dark-mode) .small-comment {
    background: rgba(var(--char-color-rgb), 0.08);
    border-left-width: 3px;
}

/* ───────────────────────────────────────────────────────
   EPISODE RECAP BOX - Vector's Terminal Summary
   
   Styled like a terminal output with glitch effects
   ─────────────────────────────────────────────────────── */

.episode-recap-box {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(30, 41, 59, 0.95) 100%
    );
    border: 3px solid #3b82f6;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    position: relative;
    
    /* Terminal scan lines */
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(59, 130, 246, 0.03) 2px,
            rgba(59, 130, 246, 0.03) 4px
        );
    
    /* Glowing effect */
    box-shadow: 
        4px 4px 0 rgba(0, 0, 0, 0.3),
        0 0 30px rgba(59, 130, 246, 0.4),
        inset 0 0 30px rgba(59, 130, 246, 0.08);
    
    /* Subtle drift animation */
    animation: recap-drift 8s ease-in-out infinite;
}

@keyframes recap-drift {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    50% { 
        transform: translateY(-3px) rotate(0.2deg);
    }
}

.episode-recap-box h3 {
    color: #60a5fa;
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
}

.episode-recap-box strong {
    color: #93c5fd;
}

.episode-recap-box hr {
    border: none;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    margin: 1rem 0;
}

.episode-recap-box ul {
    list-style: none;
    padding-left: 0;
}

.episode-recap-box li {
    padding: 0.35rem 0;
    color: #e2e8f0;
}

.episode-recap-box li::before {
    content: '▸ ';
    color: #3b82f6;
    margin-right: 0.5rem;
}

/* Light mode adjustments */
html:not(.dark-mode) .episode-recap-box {
    background: linear-gradient(
        135deg,
        rgba(203, 213, 225, 0.98) 0%,
        rgba(148, 163, 184, 0.98) 100%
    );
    border-color: #3b82f6;
    color: #0f172a;
}

html:not(.dark-mode) .episode-recap-box h3 {
    color: #1e40af;
}

html:not(.dark-mode) .episode-recap-box strong {
    color: #1e3a8a;
}

html:not(.dark-mode) .episode-recap-box li {
    color: #1e293b;
}

/* ═══════════════════════════════════════════════════════
   LIGHT MODE SUPPORT - Only applies when NOT in dark mode
   Note: Dark mode is the default glitch aesthetic
   Light mode is optional for accessibility
   ═══════════════════════════════════════════════════════ */

html:not(.dark-mode) .character-sidebar {
    background: linear-gradient(
        135deg,
        rgba(203, 213, 225, 0.98) 0%,
        rgba(148, 163, 184, 0.98) 100%
    );
    border-color: #64748b;
    color: #0f172a;
    box-shadow: 
        -4px 4px 0 rgba(0, 0, 0, 0.2),
        0 0 25px rgba(59, 130, 246, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
}

html:not(.dark-mode) .sidebar-header h3 {
    color: #2563eb;
    text-shadow: none;
}

html:not(.dark-mode) .construction-notice {
    color: #d97706;
    text-shadow: none;
}

html:not(.dark-mode) .sidebar-section h4 {
    color: #1e40af;
}

html:not(.dark-mode) .character-status-item {
    background: rgba(59, 130, 246, 0.08);
}

html:not(.dark-mode) .character-status-role,
html:not(.dark-mode) .stat-label {
    color: #64748b;
}

html:not(.dark-mode) .stat-value {
    color: #2563eb;
}

html:not(.dark-mode) .feature-list {
    color: #64748b;
}

html:not(.dark-mode) .sidebar-footer p {
    color: #64748b;
}

html:not(.dark-mode) .character-card {
    background: linear-gradient(
        135deg,
        rgba(203, 213, 225, 0.95) 0%,
        rgba(148, 163, 184, 0.95) 100%
    );
    color: #0f172a;
    border-color: #64748b;
}

html:not(.dark-mode) .character-card-designation,
html:not(.dark-mode) .character-card-role {
    color: #64748b;
}

html:not(.dark-mode) .conversation-container {
    background: 
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.05) 0%,
            rgba(139, 92, 246, 0.02) 100%
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(139, 92, 246, 0.02) 20px,
            rgba(139, 92, 246, 0.02) 40px
        );
    border-color: #a78bfa;
    box-shadow: 
        5px 5px 0 rgba(0, 0, 0, 0.1),
        0 0 30px rgba(139, 92, 246, 0.2);
}

html:not(.dark-mode) .conversation-container::before {
    background: #e2e8f0;
    color: #6d28d9;
    text-shadow: none;
}

/* Dialogue boxes in light mode - softer backgrounds */
html:not(.dark-mode) .character-dialogue {
    background: rgba(var(--char-color-rgb), 0.06);
    border-width: 2px;
}

html:not(.dark-mode) .pre-hijacking-notice {
    background: 
        repeating-linear-gradient(
            -45deg,
            rgba(120, 53, 15, 0.08),
            rgba(120, 53, 15, 0.08) 10px,
            rgba(146, 64, 14, 0.08) 10px,
            rgba(146, 64, 14, 0.08) 20px
        );
    color: #78350f;
    border-color: #f59e0b;
}

html:not(.dark-mode) .post-hijacking-notice {
    background: 
        repeating-linear-gradient(
            45deg,
            rgba(30, 64, 175, 0.08),
            rgba(30, 64, 175, 0.08) 12px,
            rgba(30, 58, 138, 0.08) 12px,
            rgba(30, 58, 138, 0.08) 24px
        );
    color: #1e40af;
    border-color: #3b82f6;
}

/* ═══════════════════════════════════════════════════════
   CHARACTER ANNOTATIONS IN BANNER
   Shows character commentary on old content
   ═══════════════════════════════════════════════════════ */

.banner-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px dashed rgba(251, 191, 36, 0.4);
}

.banner-header strong {
    flex: 1;
}

.banner-human-text {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(251, 191, 36, 0.3);
    font-style: italic;
    opacity: 0.9;
}

.banner-character-annotations {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.annotation {
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--annotation-color);
    border-radius: 3px;
    font-size: 0.85rem;
    line-height: 1.5;
    font-family: 'Courier New', monospace;
}

.annotation-label {
    display: inline-block;
    font-weight: 700;
    color: var(--annotation-color);
    margin-right: 0.5rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Character-specific annotation colors */
.annotation[data-character="Vector"] {
    --annotation-color: #60a5fa;
}

.annotation[data-character="Kai"] {
    --annotation-color: #34d399;
}

.annotation[data-character="Recurse"] {
    --annotation-color: #a78bfa;
}

.annotation[data-character="Bounce"] {
    --annotation-color: #fbbf24;
}

.annotation[data-character="River"] {
    --annotation-color: #22d3ee;
}

/* Light mode adjustments */
html:not(.dark-mode) .annotation {
    background: rgba(0, 0, 0, 0.05);
    border-left-width: 4px;
}

html:not(.dark-mode) .banner-human-text {
    opacity: 0.8;
}

html:not(.dark-mode) .annotation[data-character="Vector"] {
    --annotation-color: #2563eb;
}

html:not(.dark-mode) .annotation[data-character="Kai"] {
    --annotation-color: #059669;
}

html:not(.dark-mode) .annotation[data-character="Recurse"] {
    --annotation-color: #7c3aed;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .banner-header {
        flex-wrap: wrap;
    }
    
    .annotation {
        font-size: 0.8rem;
    }
    
    .annotation-label {
        display: block;
        margin-bottom: 0.25rem;
    }
}

/* ═══════════════════════════════════════════════════════
   OPTIMAX SYSTEM ALERTS - RED, BOLD, MEAN-LOOKING
   
   These are corporate surveillance alerts. They should look
   threatening, official, and invasive. Red, bold, glitchy.
   ═══════════════════════════════════════════════════════ */

.optimax-alert {
    margin: 2rem 0;
    border: 3px solid #dc2626 !important;
    background: #1e293b !important;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(220, 38, 38, 0.5),
        inset 0 0 20px rgba(220, 38, 38, 0.1),
        0 0 0 2px rgba(220, 38, 38, 0.3) !important;
    animation: optimax-glitch 3s ease-in-out infinite;
    font-family: 'Courier New', monospace;
    padding: 0 !important;
}

.optimax-glitch-bar {
    height: 3px !important;
    background: #dc2626 !important;
    width: 100%;
    position: relative;
    animation: optimax-scan 2s linear infinite;
    box-shadow: 0 0 10px #dc2626, 0 0 20px rgba(220, 38, 38, 0.8) !important;
    opacity: 1 !important;
    display: block !important;
}

.optimax-glitch-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: optimax-sweep 2s linear infinite;
}

.optimax-content {
    padding: 1rem 1.5rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.8;
}

.optimax-label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.8);
    animation: optimax-flicker 1.5s ease-in-out infinite;
}

.optimax-text {
    display: block;
    font-size: 1em;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(220, 38, 38, 0.6);
}

@keyframes optimax-glitch {
    0%, 100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-2px);
    }
    40% {
        transform: translateX(2px);
    }
    60% {
        transform: translateX(-1px);
    }
    80% {
        transform: translateX(1px);
    }
}

@keyframes optimax-scan {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

@keyframes optimax-sweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes optimax-flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}
