/* ============================================================
   STYLES.CSS - OmniTech Support V2: Full Dark Theme + Computer Screen
   ============================================================ */

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a28;
    --bg-card: #15151f;
    --bg-card-hover: #1e1e2e;
    --bg-input: #0d0d15;
    --text-primary: #e8e8f0;
    --text-secondary: #9898b0;
    --text-muted: #5a5a78;
    --accent-blue: #4a7cff;
    --accent-blue-dim: #2a4c9f;
    --accent-red: #ff4a6a;
    --accent-red-dim: #9f2a3a;
    --accent-green: #4aff8a;
    --accent-green-dim: #2a9f5a;
    --accent-yellow: #ffc94a;
    --accent-orange: #ff8a4a;
    --accent-purple: #9a4aff;
    --border-color: #2a2a3a;
    --border-light: #3a3a4a;
    --shadow: 0 4px 20px rgba(0,0,0,0.5);
    --radius: 12px;
    --radius-sm: 8px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

html, body {
    height: 100%; width: 100%;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
}

/* --- Screens --- */
.screen { display: none; position: fixed; inset: 0; z-index: 10; overflow-y: auto; background: var(--bg-primary); }
.screen.active { display: flex; }

#game-container { width: 100%; height: 100%; }

/* ==================== MAIN MENU ==================== */
.menu-content {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; height: 100%; text-align: center; padding: 40px 20px;
    background: radial-gradient(ellipse at center, #1a1a3a 0%, var(--bg-primary) 70%);
}
.menu-logo h1 {
    font-size: 3rem; font-weight: 900; line-height: 1.1;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-red));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 12px; animation: fadeInUp 0.8s ease;
}
.subtitle { font-size: 1.1rem; color: var(--text-secondary); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 8px; }
.company-name { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 40px; }
.menu-buttons { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 360px; }
.menu-btn {
    padding: 14px 28px; border: 1px solid var(--border-color); border-radius: var(--radius);
    background: var(--bg-card); color: var(--text-primary); font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s ease; letter-spacing: 2px; text-transform: uppercase;
}
.menu-btn:hover { background: var(--bg-card-hover); border-color: var(--border-light); transform: translateY(-2px); }
.menu-btn.primary { background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); border: none; }
.menu-btn.primary:hover { filter: brightness(1.2); }
.menu-btn.danger { border-color: var(--accent-red-dim); color: var(--accent-red); }
.menu-btn.danger:hover { background: rgba(255,74,106,0.1); }
.menu-version { margin-top: 30px; font-size: 0.75rem; color: var(--text-muted); }

/* ==================== HOW TO PLAY & CREDITS ==================== */
.handbook, .credits-content {
    max-width: 720px; margin: 0 auto; padding: 40px 24px;
    display: flex; flex-direction: column; gap: 16px;
}
.handbook-title { font-size: 1.4rem; font-weight: 800; color: var(--accent-blue); text-align: center; margin-bottom: 20px; }
.handbook-section {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 20px; animation: fadeInUp 0.5s ease;
}
.handbook-section h3 { color: var(--accent-blue); margin-bottom: 8px; font-size: 1rem; }
.handbook-section p { color: var(--text-secondary); font-size: 0.9rem; white-space: pre-line; }
.handbook-section.redacted {
    border-color: var(--accent-red-dim); background: rgba(255,74,106,0.05);
}
.handbook-section.redacted h3 { color: var(--accent-red); }
.handbook-section.redacted p { font-family: var(--font-mono); color: var(--text-muted); }
.back-btn {
    padding: 12px 24px; border: 1px solid var(--border-color); border-radius: var(--radius);
    background: var(--bg-card); color: var(--text-primary); cursor: pointer; font-weight: 700;
    margin-top: 16px; transition: all 0.2s;
}
.back-btn:hover { background: var(--bg-card-hover); }
.credits-content { text-align: center; }
.credits-content h2 { font-size: 2rem; margin-bottom: 8px; }
.credits-studio { font-size: 1.6rem; font-weight: 800; color: var(--accent-purple); margin: 16px 0 4px; }
.credits-studio-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.credits-roles { display: flex; flex-direction: column; gap: 8px; text-align: left; max-width: 500px; margin: 0 auto 24px; }
.credits-role { color: var(--text-secondary); font-size: 0.9rem; }
.credits-role span { color: var(--accent-blue); font-weight: 600; }

/* ==================== GAME LAYOUT ==================== */
#game-screen.active { display: flex; flex-direction: row; }

/* --- Sidebar --- */
.sidebar {
    width: 260px; min-width: 260px; background: var(--bg-secondary);
    border-right: 1px solid var(--border-color); display: flex; flex-direction: column;
    height: 100vh;
}
.sidebar-header {
    padding: 16px; border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
}
.sidebar-header h2 { font-size: 0.9rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
.shift-info { font-size: 0.7rem; color: var(--accent-green); font-weight: 700; }
.ticket-list { flex: 1; overflow-y: auto; padding: 8px; }
.ticket-item {
    display: flex; align-items: center; gap: 10px; padding: 10px;
    border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s; margin-bottom: 4px;
}
.ticket-item:hover { background: var(--bg-card-hover); }
.ticket-item.active { background: var(--bg-tertiary); border-left: 3px solid var(--accent-blue); }
.ticket-item.completed { opacity: 0.4; }
.ticket-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ticket-info { flex: 1; overflow: hidden; }
.ticket-name { font-weight: 700; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-preview { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-stats {
    display: flex; justify-content: space-around; padding: 12px;
    border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.stat-item { text-align: center; }
.stat-value { font-size: 1.2rem; font-weight: 800; color: var(--accent-blue); }
.stat-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-menu-btn {
    margin: 10px; padding: 10px; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    background: var(--bg-card); color: var(--text-muted); cursor: pointer; font-weight: 700;
    font-size: 0.75rem; transition: all 0.2s; letter-spacing: 1px;
}
.sidebar-menu-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }

/* --- Main Area --- */
.main-area { flex: 1; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* --- Tab Bar --- */
.tab-bar {
    display: flex; border-bottom: 1px solid var(--border-color); background: var(--bg-secondary); flex-shrink: 0;
}
.tab-btn {
    flex: 1; padding: 12px 20px; border: none; background: transparent; color: var(--text-muted);
    cursor: pointer; font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    transition: all 0.2s; border-bottom: 2px solid transparent;
}
.tab-btn:hover { color: var(--text-secondary); background: var(--bg-card); }
.tab-btn.active { color: var(--accent-blue); border-bottom-color: var(--accent-blue); background: var(--bg-primary); }

/* --- Tab Content --- */
.tab-content { flex: 1; overflow: hidden; position: relative; }
.chat-panel, .computer-panel { display: none; flex-direction: column; height: 100%; position: absolute; inset: 0; }
.chat-panel.active, .computer-panel.active { display: flex; }

/* ==================== CHAT PANEL ==================== */
.chat-header {
    display: none; align-items: center; gap: 12px; padding: 12px 20px;
    background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); flex-shrink: 0;
}
.chat-header-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-header-info { flex: 1; }
.chat-header-name { font-weight: 800; font-size: 1rem; }
.chat-header-meta { display: flex; gap: 12px; font-size: 0.75rem; color: var(--text-muted); }
.npc-status { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--accent-green); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green); animation: pulse 2s infinite; }

.chat-messages {
    flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px;
    background: var(--bg-primary);
}
.chat-empty { text-align: center; margin: auto; color: var(--text-muted); }
.chat-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.chat-empty-text { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 4px; }
.chat-empty-sub { font-size: 0.85rem; }

/* --- Messages --- */
.message { display: flex; flex-direction: column; max-width: 75%; animation: fadeIn 0.3s ease; }
.message.customer { align-self: flex-start; }
.message.agent { align-self: flex-end; }
.message.boss { align-self: center; max-width: 85%; }
.message.system { align-self: center; max-width: 85%; }
.message.device { align-self: center; max-width: 85%; }

.message-sender { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 2px; font-weight: 600; }
.message-bubble {
    padding: 12px 16px; border-radius: var(--radius); font-size: 0.9rem; line-height: 1.5;
    word-wrap: break-word;
}
.message.customer .message-bubble { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); border-bottom-left-radius: 4px; }
.message.agent .message-bubble { background: linear-gradient(135deg, var(--accent-blue-dim), var(--accent-purple)); color: white; border-bottom-right-radius: 4px; }
.message.agent .message-sender { text-align: right; }
.message.boss .message-bubble { background: rgba(255,201,74,0.1); border: 1px solid var(--accent-yellow); color: var(--accent-yellow); text-align: center; }
.message.system .message-bubble { background: var(--bg-tertiary); color: var(--text-muted); text-align: center; font-size: 0.8rem; font-style: italic; }
.message.device .message-bubble { background: rgba(255,74,106,0.1); border: 1px solid var(--accent-red); color: var(--accent-red); text-align: center; }
.message-label { font-size: 0.65rem; font-weight: 800; letter-spacing: 2px; margin-bottom: 4px; opacity: 0.7; text-transform: uppercase; }
.message-time { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }
.message.agent .message-time { text-align: right; }

/* Typing indicator */
.typing-indicator { display: flex; gap: 4px; padding: 4px 0; }
.typing-dot {
    width: 8px; height: 8px; background: var(--text-muted); border-radius: 50%;
    animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* ==================== CHAT INPUT AREA ==================== */
.chat-input-area {
    background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 12px 16px; flex-shrink: 0;
}
.mood-bar {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.75rem;
}
.mood-label { color: var(--text-muted); font-weight: 700; white-space: nowrap; }
.mood-track {
    flex: 1; height: 6px; background: var(--bg-input); border-radius: 3px; overflow: hidden;
}
.mood-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease, background 0.5s ease; }
.mood-emoji { font-size: 1.2rem; }

.input-row { display: flex; gap: 8px; margin-bottom: 8px; }
#chat-input {
    flex: 1; padding: 12px 16px; background: var(--bg-input); border: 1px solid var(--border-color);
    border-radius: var(--radius); color: var(--text-primary); font-size: 0.9rem;
    font-family: var(--font); outline: none; transition: border-color 0.2s;
}
#chat-input:focus { border-color: var(--accent-blue); }
#chat-input::placeholder { color: var(--text-muted); }
.send-btn {
    padding: 12px 20px; background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none; border-radius: var(--radius); color: white; font-weight: 800; cursor: pointer;
    font-size: 0.85rem; transition: all 0.2s; white-space: nowrap;
}
.send-btn:hover { filter: brightness(1.2); transform: scale(1.02); }

/* Quick action buttons */
.quick-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.quick-btn {
    padding: 6px 12px; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 20px; color: var(--text-muted); font-size: 0.7rem; cursor: pointer;
    transition: all 0.15s; white-space: nowrap;
}
.quick-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--accent-blue); }

/* ==================== COMPUTER PANEL ==================== */
.computer-screen { height: 100%; overflow-y: auto; background: #1a1a28; }
.computer-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-muted); font-size: 1rem; }

/* Windows 11 Desktop - Photorealistic */
.desktop { 
    padding: 0; min-height: 100%; display: flex; flex-direction: column;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Windows 11 Taskbar */
.desktop-bar {
    display: flex; justify-content: space-between; align-items: center; padding: 4px 12px;
    background: rgba(25, 25, 35, 0.85); 
    backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    font-size: 0.75rem; color: #e8e8f0;
    height: 48px;
}

.win11-start {
    display: flex; align-items: center; gap: 8px;
}

.win11-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.win11-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.win11-tray {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.7rem;
    color: #e8e8f0;
}

.win11-clock {
    display: flex; flex-direction: column; align-items: flex-end;
    line-height: 1.2;
}

/* File Grid - Windows 11 Style */
.file-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); 
    gap: 16px;
    padding: 24px; flex: 1;
    align-content: start;
}

.file-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 124, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 124, 255, 0.15);
}

.file-item.selected {
    background: rgba(74, 124, 255, 0.15);
    border-color: rgba(74, 124, 255, 0.6);
}

.file-icon { 
    font-size: 2.5rem; 
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.file-name { 
    font-size: 0.75rem; 
    font-weight: 400; 
    color: #f0f0f0; 
    word-break: break-word; 
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.file-size { 
    font-size: 0.65rem; 
    color: rgba(255, 255, 255, 0.5);
}

.file-actions { 
    display: flex; 
    gap: 6px; 
    justify-content: center; 
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.file-item:hover .file-actions {
    opacity: 1;
}

.file-action-btn {
    padding: 6px 12px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #e8e8f0; 
    cursor: pointer; 
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s;
}

.file-action-btn:hover { 
    background: rgba(255, 255, 255, 0.12); 
    border-color: rgba(255, 255, 255, 0.2);
}

.file-action-btn.delete-btn:hover { 
    background: rgba(255, 74, 106, 0.15);
    border-color: var(--accent-red); 
    color: var(--accent-red); 
}

/* Desktop Actions */
.desktop-actions {
    display: flex; gap: 10px; padding: 16px; 
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(25, 25, 35, 0.5);
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.desktop-action-btn {
    padding: 10px 16px; 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; 
    color: #e8e8f0; 
    cursor: pointer; 
    font-size: 0.75rem;
    font-weight: 600; 
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.desktop-action-btn:hover { 
    background: rgba(255, 74, 106, 0.15); 
    border-color: var(--accent-red);
    transform: translateY(-1px);
}

/* Water Damage Effect */
.desktop.water-damaged { 
    position: relative;
    animation: waterGlitch 0.3s infinite;
}

.desktop.water-damaged::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(74, 144, 226, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(74, 144, 226, 0.2) 0%, transparent 60%);
    pointer-events: none;
    z-index: 10;
    animation: waterSpread 2s ease-out;
}

.desktop.water-damaged::after {
    content: '💧 WATER DAMAGE - SYSTEM FAILING';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 900;
    color: rgba(74, 144, 226, 0.8);
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.6),
                 0 0 40px rgba(74, 144, 226, 0.4);
    pointer-events: none;
    z-index: 11;
    animation: textGlitch 0.5s infinite;
}

.desktop.water-damaged .file-item {
    animation: waterFlicker 0.2s infinite;
}

/* --- BSOD Screen --- */
.bsod {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; background: #0078D7; color: white; text-align: center; padding: 40px;
    animation: fadeIn 0.3s;
}
.bsod-sad { font-size: 6rem; margin-bottom: 20px; }
.bsod-text { font-size: 1.5rem; margin-bottom: 16px; }
.bsod-detail { font-size: 0.85rem; opacity: 0.7; margin-bottom: 20px; }
.bsod-percent { font-size: 1.2rem; }

/* --- Fire Screen - AAA QUALITY --- */
.fire-screen {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    height: 100%; 
    background: 
        linear-gradient(0deg, #ff0000 0%, #ff4400 20%, #ff7700 40%, #ffaa00 60%, #ffcc00 80%, #1a0000 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fireFlicker 0.1s infinite alternate;
}

.fire-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 80%, rgba(255, 100, 0, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(255, 150, 0, 0.4) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 75%, rgba(255, 50, 0, 0.5) 0%, transparent 45%);
    animation: fireWaves 2s ease-in-out infinite;
}

.fire-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            rgba(255, 100, 0, 0.1) 2px,
            transparent 4px
        );
    animation: heatDistortion 0.3s linear infinite;
    pointer-events: none;
}

.fire-emoji { 
    font-size: 5rem; 
    margin: 20px 0;
    filter: drop-shadow(0 0 20px rgba(255, 100, 0, 0.8))
            drop-shadow(0 0 40px rgba(255, 50, 0, 0.6));
    animation: flameFlicker 0.2s infinite, flameBounce 1s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

.fire-text { 
    font-size: 3rem; 
    font-weight: 900; 
    color: white; 
    text-shadow: 
        0 0 10px rgba(255, 100, 0, 1),
        0 0 20px rgba(255, 50, 0, 0.8),
        0 0 30px rgba(255, 0, 0, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.8);
    animation: fireTextPulse 0.5s ease-in-out infinite;
    z-index: 2;
    position: relative;
    letter-spacing: 4px;
}

.fire-sub { 
    font-size: 1.2rem; 
    color: rgba(255, 255, 255, 0.9); 
    margin-top: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    z-index: 2;
    position: relative;
    animation: fadeInOut 2s ease-in-out infinite;
}

.fire-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.fire-particle {
    position: absolute;
    bottom: 0;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ffaa00 0%, #ff4400 50%, transparent 100%);
    border-radius: 50%;
    animation: riseUp 2s ease-out infinite;
    filter: blur(1px);
}

/* Multiple fire particles at different positions */
.fire-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.fire-particle:nth-child(2) { left: 20%; animation-delay: 0.3s; }
.fire-particle:nth-child(3) { left: 30%; animation-delay: 0.6s; }
.fire-particle:nth-child(4) { left: 40%; animation-delay: 0.9s; }
.fire-particle:nth-child(5) { left: 50%; animation-delay: 0.2s; }
.fire-particle:nth-child(6) { left: 60%; animation-delay: 0.5s; }
.fire-particle:nth-child(7) { left: 70%; animation-delay: 0.8s; }
.fire-particle:nth-child(8) { left: 80%; animation-delay: 0.1s; }
.fire-particle:nth-child(9) { left: 90%; animation-delay: 0.4s; }
.fire-particle:nth-child(10) { left: 25%; animation-delay: 0.7s; }

/* --- Destroyed Screen --- */
.destroyed-screen {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; background: #0a0a0f; text-align: center;
}
.destroyed-icon { font-size: 5rem; margin-bottom: 20px; }
.destroyed-text { font-size: 1.5rem; color: var(--text-muted); font-weight: 800; }
.destroyed-sub { font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; opacity: 0.5; }

/* --- Cracked Screen Effect --- */
.desktop.cracked-screen {
    position: relative;
}

.desktop.cracked-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.8) 48.5%, rgba(255, 255, 255, 0.8) 49%, transparent 49.5%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.6) 48.5%, rgba(255, 255, 255, 0.6) 49%, transparent 49.5%),
        linear-gradient(30deg, transparent 45%, rgba(200, 200, 200, 0.4) 45.5%, rgba(200, 200, 200, 0.4) 46%, transparent 46.5%),
        linear-gradient(-30deg, transparent 45%, rgba(200, 200, 200, 0.4) 45.5%, rgba(200, 200, 200, 0.4) 46%, transparent 46.5%),
        linear-gradient(60deg, transparent 47%, rgba(150, 150, 150, 0.3) 47.5%, rgba(150, 150, 150, 0.3) 48%, transparent 48.5%),
        linear-gradient(-60deg, transparent 47%, rgba(150, 150, 150, 0.3) 47.5%, rgba(150, 150, 150, 0.3) 48%, transparent 48.5%),
        radial-gradient(circle at 45% 55%, transparent 20%, rgba(255, 255, 255, 0.2) 20.5%, rgba(255, 255, 255, 0.2) 21%, transparent 21.5%),
        radial-gradient(circle at 55% 45%, transparent 15%, rgba(200, 200, 200, 0.3) 15.5%, rgba(200, 200, 200, 0.3) 16%, transparent 16.5%),
        radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.6) 35%, rgba(0, 0, 0, 0.3) 40%);
    pointer-events: none;
    z-index: 100;
    animation: crackGlitch 0.5s infinite;
}

.desktop.cracked-screen::after {
    content: '🔨 SCREEN DAMAGED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 50, 50, 0.6);
    text-shadow: 
        0 0 10px rgba(255, 0, 0, 0.8),
        0 0 20px rgba(255, 0, 0, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 101;
    animation: crackTextPulse 1s ease-in-out infinite;
}

/* --- Piss Damage Effect --- */
.desktop.piss-damage {
    position: relative;
    animation: pissGlitch 0.3s infinite;
}

.desktop.piss-damage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 60%, rgba(255, 230, 100, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 40% 70%, rgba(255, 220, 80, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 50%, rgba(255, 240, 120, 0.3) 0%, transparent 55%),
        linear-gradient(180deg, transparent 0%, rgba(255, 230, 100, 0.2) 30%, rgba(255, 220, 80, 0.4) 60%, rgba(255, 200, 60, 0.5) 100%);
    pointer-events: none;
    z-index: 10;
    animation: pissDrip 3s ease-out;
}

.desktop.piss-damage::after {
    content: '💦 LIQUID DAMAGE - SYSTEM FAILURE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 900;
    color: rgba(255, 200, 0, 0.8);
    text-shadow: 
        0 0 10px rgba(255, 220, 0, 0.8),
        0 0 20px rgba(255, 200, 0, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 11;
    animation: textGlitch 0.5s infinite;
}

.desktop.piss-damage .file-item {
    filter: blur(1px) saturate(1.5) hue-rotate(30deg);
    animation: pissFlicker 0.2s infinite;
}

/* --- Keyboard Destroyed Effect --- */
.desktop.keyboard-destroyed::before {
    content: '⌨️ KEYBOARD DESTROYED';
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: 900;
    color: rgba(255, 100, 100, 0.9);
    background: rgba(0, 0, 0, 0.85);
    padding: 16px 32px;
    border-radius: 12px;
    border: 2px solid rgba(255, 50, 50, 0.6);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.4);
    pointer-events: none;
    z-index: 100;
    animation: keyboardShake 0.2s infinite;
}

/* Scattered keyboard keys effect */
.desktop.keyboard-destroyed .desktop-bar::after {
    content: '🔤 💥 ⌨️ 🔧';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: keysFloat 2s ease-in-out infinite;
}

/* --- Poop Damage Effect --- */
.desktop.poop-damage {
    position: relative;
}

.desktop.poop-damage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        /* Main splat in center */
        radial-gradient(ellipse at 50% 40%, rgba(101, 67, 33, 0.9) 0%, rgba(101, 67, 33, 0.7) 8%, transparent 15%),
        /* Secondary splatter spots */
        radial-gradient(circle at 45% 35%, rgba(139, 90, 43, 0.8) 0%, transparent 6%),
        radial-gradient(circle at 55% 45%, rgba(120, 75, 35, 0.75) 0%, transparent 5%),
        radial-gradient(circle at 48% 50%, rgba(101, 67, 33, 0.7) 0%, transparent 4%),
        radial-gradient(circle at 52% 38%, rgba(90, 60, 30, 0.7) 0%, transparent 4%),
        /* Drip streaks */
        linear-gradient(180deg, 
            transparent 0%, 
            transparent 35%,
            rgba(101, 67, 33, 0.8) 38%,
            rgba(101, 67, 33, 0.9) 40%,
            rgba(101, 67, 33, 0.7) 42%,
            rgba(101, 67, 33, 0.5) 45%,
            rgba(101, 67, 33, 0.3) 50%,
            transparent 55%
        ),
        linear-gradient(185deg, 
            transparent 0%, 
            transparent 40%,
            rgba(120, 75, 35, 0.7) 43%,
            rgba(120, 75, 35, 0.8) 45%,
            rgba(120, 75, 35, 0.6) 48%,
            transparent 52%
        ),
        /* Additional small splats */
        radial-gradient(circle at 42% 32%, rgba(101, 67, 33, 0.6) 0%, transparent 3%),
        radial-gradient(circle at 58% 43%, rgba(90, 60, 30, 0.65) 0%, transparent 3%),
        radial-gradient(circle at 50% 55%, rgba(101, 67, 33, 0.5) 0%, transparent 2.5%),
        radial-gradient(circle at 47% 47%, rgba(120, 75, 35, 0.55) 0%, transparent 2%),
        /* Edge splatter */
        radial-gradient(circle at 38% 28%, rgba(101, 67, 33, 0.4) 0%, transparent 2%),
        radial-gradient(circle at 62% 52%, rgba(101, 67, 33, 0.45) 0%, transparent 2%),
        radial-gradient(circle at 44% 60%, rgba(90, 60, 30, 0.4) 0%, transparent 1.8%);
    pointer-events: none;
    z-index: 10;
    filter: blur(0.5px);
    animation: poopGlisten 2s ease-in-out infinite;
}

.desktop.poop-damage::after {
    content: '💩 BIOLOGICAL HAZARD DETECTED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 900;
    color: rgba(139, 90, 43, 0.8);
    background: rgba(0, 0, 0, 0.85);
    padding: 20px 40px;
    border-radius: 12px;
    border: 3px solid rgba(139, 90, 43, 0.9);
    text-shadow: 
        0 0 10px rgba(139, 90, 43, 0.8),
        0 0 20px rgba(139, 90, 43, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.9);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(139, 90, 43, 0.2);
    pointer-events: none;
    z-index: 11;
    animation: hazardBlink 1s ease-in-out infinite;
}

.desktop.poop-damage .file-item {
    filter: sepia(0.3) brightness(0.9);
    animation: disgustShake 0.3s infinite;
}

/* Stink lines effect */
.desktop.poop-damage .desktop-bar::before {
    content: '💨 ☠️ 🤢';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.7;
    animation: stinkRise 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 12;
}

/* --- Reinstall Screen --- */
.reinstall-screen {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; background: #0078D7; color: white; text-align: center;
}
.windows-logo { font-size: 5rem; margin-bottom: 20px; }
.reinstall-text { font-size: 1.3rem; margin-bottom: 20px; }
.reinstall-bar { width: 300px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; }
.reinstall-fill { width: 0; height: 100%; background: white; border-radius: 2px; animation: reinstallProgress 10s linear infinite; }
.reinstall-sub { font-size: 0.85rem; opacity: 0.6; margin-top: 20px; }

/* --- Virus Screen - ENHANCED AAA QUALITY --- */
.virus-screen { 
    position: relative; 
    height: 100%; 
    background: radial-gradient(ellipse at center, #1a0a0a 0%, #000000 100%);
    overflow: hidden;
    animation: screenShakeVirus 0.1s infinite;
}

/* Animated virus particles background */
.virus-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 100, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(200, 0, 200, 0.1) 0%, transparent 50%);
    animation: virusBackground 3s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

/* Photorealistic Windows virus popup windows */
.popup {
    position: absolute;
    min-width: 300px;
    background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 100%);
    border: 1px solid #7a7a7a;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    cursor: pointer;
    z-index: 2;
    animation: popupFloat 3s ease-in-out infinite;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.popup-title-bar {
    background: linear-gradient(180deg, #e81123 0%, #c50014 100%);
    padding: 8px 12px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.popup-content {
    padding: 20px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    color: #000;
}

.popup-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 8px rgba(255, 0, 0, 0.5));
    animation: iconPulse 1s ease-in-out infinite;
}

.popup-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.popup-btn {
    background: linear-gradient(180deg, #4a90e2 0%, #357abd 100%);
    border: 1px solid #2a5a8d;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.popup-btn:hover {
    background: linear-gradient(180deg, #5aa0f2 0%, #4580cd 100%);
    transform: translateY(-1px);
}

/* Position and variation for multiple popups */
.popup-1 { 
    top: 8%; left: 5%; 
    animation: popupFloat 3s ease-in-out infinite, popupShake1 0.5s ease-in-out infinite;
}

.popup-2 { 
    top: 25%; right: 8%; 
    animation: popupFloat 3.5s ease-in-out infinite 0.5s, popupShake2 0.6s ease-in-out infinite;
}

.popup-3 { 
    top: 50%; left: 12%; 
    animation: popupFloat 3.2s ease-in-out infinite 1s, popupShake3 0.4s ease-in-out infinite;
}

.popup-4 { 
    top: 15%; left: 38%; 
    animation: popupFloat 3.8s ease-in-out infinite 1.5s, popupShake1 0.7s ease-in-out infinite;
}

.popup-5 { 
    bottom: 12%; right: 15%; 
    animation: popupFloat 3.3s ease-in-out infinite 2s, popupShake2 0.5s ease-in-out infinite;
}

.popup-6 {
    top: 60%; right: 25%;
    animation: popupFloat 3.6s ease-in-out infinite 2.5s, popupShake3 0.6s ease-in-out infinite;
}

/* Glitchy virus overlay text */
.virus-overlay {
    position: absolute; 
    inset: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    font-size: 4rem; 
    font-weight: 900; 
    color: rgba(255, 0, 0, 0.4);
    text-shadow: 
        0 0 10px rgba(255, 0, 0, 0.8),
        0 0 20px rgba(255, 0, 0, 0.6),
        0 0 30px rgba(255, 0, 0, 0.4),
        3px 3px 0 rgba(0, 255, 0, 0.3),
        -3px -3px 0 rgba(0, 0, 255, 0.3);
    animation: virusGlitch 0.3s infinite, rgbSplit 2s infinite;
    pointer-events: none;
    z-index: 3;
    letter-spacing: 8px;
}

.virus-skull {
    font-size: 8rem;
    animation: skullBounce 1s ease-in-out infinite, skullRotate 4s linear infinite;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.8));
}

/* Virus scan bar */
.virus-scan-bar {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 20px;
    z-index: 4;
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.4);
}

.virus-scan-text {
    color: #ff3333;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    animation: textBlink 0.5s infinite;
}

.virus-progress {
    width: 100%;
    height: 24px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.virus-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        #ff0000 0%, 
        #ff3333 25%, 
        #ff6600 50%, 
        #ff3333 75%, 
        #ff0000 100%);
    background-size: 200% 100%;
    animation: virusProgressAnim 2s linear infinite, progressBarGrow 10s linear infinite;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

.virus-count {
    color: #fff;
    font-size: 0.85rem;
    margin-top: 8px;
    font-weight: 600;
    animation: countUp 0.1s steps(1) infinite;
}

/* ==================== BOSS ALERT ==================== */
.boss-alert {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999;
    background: var(--bg-card); border: 1px solid var(--accent-yellow);
    border-radius: var(--radius); padding: 16px 24px; max-width: 500px;
    box-shadow: 0 8px 30px rgba(255,201,74,0.2); cursor: pointer;
    animation: slideDown 0.3s ease; text-align: center;
}
.boss-alert-label { font-size: 0.65rem; font-weight: 800; color: var(--accent-yellow); letter-spacing: 2px; margin-bottom: 6px; }
.boss-alert-text { font-size: 0.9rem; color: var(--text-primary); font-style: italic; }

/* ==================== SCORE POPUP ==================== */
.score-popup {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: var(--radius); padding: 16px 20px;
    box-shadow: var(--shadow); animation: fadeInUp 0.3s ease; min-width: 200px;
}
.score-popup h3 { font-size: 0.8rem; color: var(--accent-blue); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.score-item { display: flex; justify-content: space-between; padding: 3px 0; font-size: 0.8rem; }
.score-label { color: var(--text-secondary); }
.score-value.positive { color: var(--accent-green); }
.score-value.negative { color: var(--accent-red); }
.score-value.neutral { color: var(--text-muted); }

/* ==================== OVERLAY / MODAL ==================== */
.overlay {
    position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center; animation: fadeIn 0.2s;
}
.modal {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius);
    padding: 30px; max-width: 400px; width: 90%; text-align: center; box-shadow: var(--shadow);
}
.modal h2 { margin-bottom: 12px; font-size: 1.2rem; }
.modal p { color: var(--text-secondary); margin-bottom: 20px; font-size: 0.9rem; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }

/* ==================== AUDIO CONTROLS ==================== */
.audio-controls { position: fixed; bottom: 16px; right: 16px; z-index: 999; display: flex; gap: 6px; }
.audio-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-color);
    background: var(--bg-card); color: var(--text-muted); cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.audio-btn:hover { background: var(--bg-card-hover); }
.audio-btn.muted { opacity: 0.4; }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translate(-50%, -20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes typingBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fireFlicker { from { filter: brightness(0.9); } to { filter: brightness(1.1); } }
@keyframes reinstallProgress { 0% { width: 0; } 100% { width: 100%; } }
@keyframes popupBounce { from { transform: translate(0, 0); } to { transform: translate(10px, -10px); } }
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
    100% { transform: translate(0); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* New AAA-Quality Virus Animations */
@keyframes waterGlitch {
    0%, 100% { filter: blur(0px) saturate(1); }
    25% { filter: blur(2px) saturate(1.5) hue-rotate(10deg); }
    50% { filter: blur(1px) saturate(1.3) hue-rotate(-10deg); }
    75% { filter: blur(2px) saturate(1.6) hue-rotate(15deg); }
}

@keyframes waterSpread {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

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

@keyframes textGlitch {
    0% { transform: translate(-50%, -50%); }
    20% { transform: translate(-52%, -48%); text-shadow: 3px 0 red, -3px 0 blue; }
    40% { transform: translate(-48%, -52%); text-shadow: -3px 0 red, 3px 0 blue; }
    60% { transform: translate(-51%, -49%); }
    80% { transform: translate(-49%, -51%); }
    100% { transform: translate(-50%, -50%); }
}

@keyframes screenShakeVirus {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2px, 1px); }
    20% { transform: translate(1px, -1px); }
    30% { transform: translate(-1px, 2px); }
    40% { transform: translate(2px, -2px); }
    50% { transform: translate(-1px, 1px); }
    60% { transform: translate(1px, -1px); }
    70% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, 1px); }
    90% { transform: translate(-1px, -2px); }
}

@keyframes virusBackground {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes popupFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes popupShake1 {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    25% { transform: rotate(-1deg) translateX(-2px); }
    75% { transform: rotate(1deg) translateX(2px); }
}

@keyframes popupShake2 {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    33% { transform: rotate(-2deg) translateY(-3px); }
    66% { transform: rotate(2deg) translateY(3px); }
}

@keyframes popupShake3 {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(1deg) scale(1.02); }
    40% { transform: rotate(-1deg) scale(0.98); }
    60% { transform: rotate(1deg) scale(1.01); }
    80% { transform: rotate(-1deg) scale(0.99); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 2px 8px rgba(255, 0, 0, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 4px 16px rgba(255, 0, 0, 0.8)); }
}

@keyframes virusGlitch {
    0% { opacity: 0.4; }
    10% { opacity: 0.6; transform: translate(2px, 0); }
    20% { opacity: 0.3; transform: translate(-2px, 0); }
    30% { opacity: 0.5; transform: translate(0, 2px); }
    40% { opacity: 0.4; transform: translate(0, -2px); }
    50% { opacity: 0.6; }
    60% { opacity: 0.3; transform: translate(2px, 0); }
    70% { opacity: 0.5; transform: translate(-2px, 0); }
    80% { opacity: 0.4; }
    90% { opacity: 0.6; }
    100% { opacity: 0.4; }
}

@keyframes rgbSplit {
    0%, 100% { 
        text-shadow: 
            0 0 10px rgba(255, 0, 0, 0.8),
            0 0 20px rgba(255, 0, 0, 0.6),
            3px 3px 0 rgba(0, 255, 0, 0.3),
            -3px -3px 0 rgba(0, 0, 255, 0.3);
    }
    25% { 
        text-shadow: 
            0 0 10px rgba(255, 0, 0, 0.8),
            0 0 20px rgba(255, 0, 0, 0.6),
            6px 0 0 rgba(0, 255, 0, 0.5),
            -6px 0 0 rgba(0, 0, 255, 0.5);
    }
    50% { 
        text-shadow: 
            0 0 10px rgba(255, 0, 0, 0.8),
            0 0 20px rgba(255, 0, 0, 0.6),
            3px -3px 0 rgba(0, 255, 0, 0.3),
            -3px 3px 0 rgba(0, 0, 255, 0.3);
    }
    75% { 
        text-shadow: 
            0 0 10px rgba(255, 0, 0, 0.8),
            0 0 20px rgba(255, 0, 0, 0.6),
            -6px 0 0 rgba(0, 255, 0, 0.5),
            6px 0 0 rgba(0, 0, 255, 0.5);
    }
}

@keyframes skullBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

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

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

@keyframes virusProgressAnim {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

@keyframes progressBarGrow {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes countUp {
    0% { content: ""; }
}

@keyframes fireGlow {
    0%, 100% { 
        filter: brightness(1) saturate(1.5);
        transform: scale(1);
    }
    50% { 
        filter: brightness(1.3) saturate(2);
        transform: scale(1.02);
    }
}

@keyframes fireWaves {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-30px) scale(1.1); opacity: 1; }
}

@keyframes heatDistortion {
    0% { transform: translateY(0) skewX(0deg); }
    25% { transform: translateY(-2px) skewX(0.5deg); }
    50% { transform: translateY(-4px) skewX(-0.5deg); }
    75% { transform: translateY(-2px) skewX(0.5deg); }
    100% { transform: translateY(0) skewX(0deg); }
}

@keyframes flameFlicker {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 100, 0, 0.8)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 50, 0, 1)); }
}

@keyframes flameBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-5px) scale(1.05); }
    50% { transform: translateY(0) scale(1); }
    75% { transform: translateY(-3px) scale(1.02); }
}

@keyframes fireTextPulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 
            0 0 10px rgba(255, 100, 0, 1),
            0 0 20px rgba(255, 50, 0, 0.8),
            0 0 30px rgba(255, 0, 0, 0.6);
    }
    50% { 
        transform: scale(1.02);
        text-shadow: 
            0 0 20px rgba(255, 100, 0, 1),
            0 0 40px rgba(255, 50, 0, 1),
            0 0 60px rgba(255, 0, 0, 0.8);
    }
}

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

@keyframes riseUp {
    0% { 
        transform: translateY(0) translateX(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-300px) translateX(10px) scale(1.5);
        opacity: 0.8;
    }
    100% { 
        transform: translateY(-600px) translateX(-10px) scale(0.5);
        opacity: 0;
    }
}

@keyframes crackGlitch {
    0%, 100% { opacity: 1; }
    25% { opacity: 0.95; transform: translate(1px, -1px); }
    50% { opacity: 0.9; transform: translate(-1px, 1px); }
    75% { opacity: 0.95; transform: translate(1px, 1px); }
}

@keyframes crackTextPulse {
    0%, 100% { 
        opacity: 0.6;
        text-shadow: 
            0 0 10px rgba(255, 0, 0, 0.8),
            0 0 20px rgba(255, 0, 0, 0.6);
    }
    50% { 
        opacity: 0.8;
        text-shadow: 
            0 0 20px rgba(255, 0, 0, 1),
            0 0 40px rgba(255, 0, 0, 0.8),
            0 0 60px rgba(255, 0, 0, 0.6);
    }
}

@keyframes pissGlitch {
    0%, 100% { filter: blur(0px) saturate(1) hue-rotate(0deg); }
    20% { filter: blur(1px) saturate(1.3) hue-rotate(20deg); }
    40% { filter: blur(0.5px) saturate(1.5) hue-rotate(30deg); }
    60% { filter: blur(1.5px) saturate(1.4) hue-rotate(25deg); }
    80% { filter: blur(0.8px) saturate(1.6) hue-rotate(35deg); }
}

@keyframes pissDrip {
    0% { 
        opacity: 0; 
        transform: translateY(-100%); 
    }
    30% {
        opacity: 0.8;
        transform: translateY(0);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes pissFlicker {
    0%, 100% { opacity: 1; filter: blur(1px) saturate(1.5) hue-rotate(30deg); }
    50% { opacity: 0.8; filter: blur(2px) saturate(1.8) hue-rotate(35deg); }
}

@keyframes keyboardShake {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-50%) rotate(-2deg) translateY(-2px); }
    50% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    75% { transform: translateX(-50%) rotate(2deg) translateY(-2px); }
}

@keyframes keysFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-3px) rotate(-5deg); }
}

@keyframes poopGlisten {
    0%, 100% { 
        filter: blur(0.5px) brightness(1);
    }
    50% { 
        filter: blur(0.5px) brightness(1.1) saturate(1.2);
    }
}

@keyframes hazardBlink {
    0%, 100% { 
        opacity: 1;
        border-color: rgba(139, 90, 43, 0.9);
    }
    50% { 
        opacity: 0.85;
        border-color: rgba(139, 90, 43, 0.6);
    }
}

@keyframes disgustShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-1px) rotate(-0.5deg); }
    50% { transform: translateX(1px) rotate(0.5deg); }
    75% { transform: translateX(-0.5px) rotate(-0.3deg); }
}

@keyframes stinkRise {
    0% { 
        transform: translateX(-50%) translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0.4;
    }
    100% { 
        transform: translateX(-50%) translateY(-40px);
        opacity: 0;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .sidebar { width: 200px; min-width: 200px; }
    .menu-logo h1 { font-size: 2rem; }
    .file-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
