#status-ticker {
    position: fixed;
    bottom: 20px;
    right: 80px; 
    display: flex;
    gap: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(5px);
    padding: 8px 15px;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    z-index: 900;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    opacity: 0.7;
    transition: opacity 0.3s;
    will-change: opacity;
}

#status-ticker:hover {
    opacity: 1;
}

body.game-active #status-ticker {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

body.game-active .touch-toggle-btn {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

@media (hover: none) and (pointer: coarse) {
    #status-ticker {
        display: none !important;
    }
}

.ticker-item { display: flex; gap: 5px; }
.ticker-label { color: var(--accent); font-weight: 700; }
.ticker-val { color: #fff; min-width: 40px; }

#flashlight-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9998; 
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(
        circle 150px at var(--x, 50%) var(--y, 50%),
        transparent 0%,
        rgba(0, 0, 0, 0.98) 100%
    );
}

#flashlight-overlay.active { opacity: 1; }

#neural-trigger {
    transition: text-shadow 0.3s, color 0.3s;
    cursor: pointer; 
}

.obscure-clue {
    font-size: 0.7em;
    color: #333; 
    vertical-align: middle;
    opacity: 0.5;
    transition: opacity 0.3s, color 0.3s;
}

.pc-title:hover .obscure-clue {
    opacity: 1;
    color: var(--accent);
}

.footer-system-log {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted); 
    opacity: 0.7;
    margin-left: 10px;
    transition: color 0.3s, opacity 0.3s;
}

footer:hover .footer-system-log {
    color: #fff;
    opacity: 1;
}

body.debug-mode {
    background: #000 !important;
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
}

body.debug-mode *:not(.wireframe-help-btn):not(.wireframe-modal):not(.wireframe-modal *):not(.feature-popup):not(.feature-popup *):not(#cv-overlay):not(#cv-overlay *):not(.modal-overlay):not(.modal-overlay *):not(.debug-watermark-corner) {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    color: #00ff88 !important;
    font-family: 'JetBrains Mono', monospace !important;
    border-radius: 0 !important;
}

body.debug-mode img, 
body.debug-mode canvas, 
body.debug-mode .glass-surface::before {
    opacity: 0.2 !important;
    filter: grayscale(100%) !important;
}

body.debug-mode #cv-overlay,
body.debug-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.6) !important; 
}

body.debug-mode .cv-container,
body.debug-mode .modal-content {
    background: rgba(10, 10, 10, 0.9) !important; 
    backdrop-filter: blur(15px) !important; 
    border: 1px solid #00ff88 !important; 
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.15) !important;
    border-radius: 10px !important; 
}


body.debug-mode .cv-container *,
body.debug-mode .modal-content * {
    opacity: 1 !important;
    filter: none !important;
    color: #e2e8f0 !important; 
    font-family: 'JetBrains Mono', monospace !important; 
    border-color: rgba(255, 255, 255, 0.1) !important; 
}


body.debug-mode .cv-name,
body.debug-mode .cv-section-title,
body.debug-mode .modal-title,
body.debug-mode .modal-tag {
    color: #00ff88 !important;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3) !important;
}


.debug-watermark-corner {
    position: fixed;
    top: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(0, 255, 136, 0.6) !important;
    pointer-events: none;
    z-index: 9999;
    border: none !important;
    text-transform: uppercase;
    animation: blink-text 1.5s infinite alternate;
}

#debug-watermark-left { left: 20px; }
#debug-watermark-right { right: 20px; }

@keyframes blink-text {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

.wireframe-help-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #000 !important;
    border: 2px solid #00ff88 !important;
    color: #00ff88 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    border-radius: 50% !important;
    cursor: none !important;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2) !important;
}
.wireframe-help-btn:hover {
    background: #00ff88 !important;
    color: #000 !important;
}

.wireframe-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85) !important; 
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto !important;
    backdrop-filter: blur(5px);
}

.wireframe-modal-content {
    background: #000 !important; 
    border: 2px solid #00ff88 !important;
    padding: 40px !important;
    max-width: 500px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace !important;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.1) !important;
}

.wireframe-modal-content h3 {
    color: #00ff88 !important;
    font-size: 1.5rem !important;
    margin-bottom: 20px !important;
    border: none !important;
}

.wireframe-modal-content p {
    color: #00ff88 !important;
    margin-bottom: 15px !important;
    border: none !important;
}

.wireframe-code {
    background: rgba(0, 255, 136, 0.1) !important;
    padding: 15px !important;
    margin: 20px 0 !important;
    border: 1px dashed #00ff88 !important;
    color: #fff !important;
}

#wf-close-modal {
    background: #00ff88 !important;
    color: #000 !important;
    border: none !important;
    padding: 10px 30px !important;
    font-weight: bold !important;
    cursor: none !important;
}


.feature-popup {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #050505; 
    border: 1px solid var(--accent);
    padding: 20px 30px;
    border-radius: 8px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    z-index: 10002;
    text-align: center;
    box-shadow: 0 0 30px rgba(3, 179, 195, 0.15);
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-popup.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.feature-popup h3 {
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.feature-popup p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.feature-popup .key-badge {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
}

.touch-toggle-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.touch-toggle-btn.active {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent);
    transform: scale(1.1);
    border-color: #fff;
}

.touch-toggle-btn:active {
    transform: scale(0.9);
}

@media (min-width: 1025px) {
    .touch-toggle-btn {
        display: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    .obscure-clue,
    .desktop-clue {
        display: none !important;
    }
}

#sling-clue {
    cursor: pointer;
    display: none;
    -webkit-user-select: none;
    user-select: none;
    transition: color 0.2s;
}

@media (hover: none) and (pointer: coarse) {
    #sling-clue {
        display: inline !important;
        color: var(--text-muted);
    }
}