/* --- Shared CSS --- */
html, body { height: 100%; margin: 0; padding: 0; overflow: hidden; box-sizing: border-box; }
body { background-color: #1a1a1a; display: flex; justify-content: center; align-items: center; font-family: 'VT323', monospace; color: #aaffee; }
*, *::before, *::after { box-sizing: inherit; }
#crt-container { position: relative; width: 98%; max-width: 1100px; height: 95vh; max-height: 95vh; padding: 20px; background-color: #0a0a0a; box-sizing: border-box; margin: 15px; display: flex; flex-direction: column; }
#screen { position: relative; width: 100%; flex-grow: 1; overflow: hidden; padding: 5px; box-sizing: border-box; display: flex; flex-direction: column; }
.scanlines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(170, 238, 238, 0.08) 50%, rgba(0, 0, 0, 0.25) 50%); background-size: 100% 2px; pointer-events: none; z-index: 1; }
.vignette { position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(0, 0, 0, 0.3); border-radius: 0; pointer-events: none; z-index: 2; }
#app-container { position: relative; z-index: 3; padding: 0; display: flex; flex-direction: column; flex-grow: 1; overflow: hidden; min-height: 0; }
#data-views { display: flex; flex-direction: column; flex-grow: 1; overflow: hidden; min-height: 0; padding: 10px; }
.title { text-align: center; color: #ccffff; text-shadow: 0 0 5px #00ffff; margin-bottom: 15px; font-size: 2.5em; flex-shrink: 0; }
.subtitle { text-align: center; color: #99ffff; text-shadow: 0 0 4px #00ffff; margin-top: 15px; margin-bottom: 10px; font-size: 1.8em; flex-shrink: 0; }
p { margin-top: 0; margin-bottom: 10px; line-height: 1.5; word-break: break-word; }
a { color: #00ffff; text-decoration: none; text-shadow: 0 0 3px #00ffff; }
a:hover { color: #ccffff; text-decoration: underline; }
#navigation { text-align: center; margin-bottom: 20px; border-bottom: 1px dashed #557777; padding-bottom: 15px; flex-shrink: 0; }
.nav-link { display: inline-block; padding: 5px 15px; margin: 0 10px; border: none; border-bottom: 2px solid transparent; background-color: transparent; color: #aaffee; font-family: 'VT323', monospace; font-size: 1.3em; cursor: pointer; text-decoration: none; text-shadow: 0 0 2px #aaffee; transition: color 0.1s ease-in-out, border-color 0.1s ease-in-out, text-shadow 0.1s ease-in-out; }
.nav-link:hover { color: #ccffff; text-shadow: 0 0 5px #00ffff; background-color: rgba(0, 255, 255, 0.1); }
.nav-link.active { color: #00ffff; text-shadow: 0 0 8px #00ffff, 0 0 12px #00ffff; border-bottom: 2px solid #00ffff; background-color: transparent; }
.page-content { padding: 10px 20px; overflow-y: auto; flex-grow: 1; min-height: 0; padding-right: 15px; text-align: left; }
.page-content ul { padding-left: 40px; margin-top: 5px; list-style-type: square; color: #00ff00; }
.page-content li { margin-bottom: 8px; line-height: 1.5; color: #aaffee; }
.page-content strong { color: #00ffff; text-shadow: 0 0 2px #00ffff; }
.page-content::-webkit-scrollbar { width: 8px; }
.page-content::-webkit-scrollbar-track { background: #2a2a2a; }
.page-content::-webkit-scrollbar-thumb { background: #557777; border-radius: 4px; }
.page-content::-webkit-scrollbar-thumb:hover { background: #aaffee; }
.fixed-footer-disclaimer { font-size: 0.9em; color: #88aaaa; margin-top: auto; text-align: center; border-top: 1px dotted #557777; padding: 10px 15px 8px 15px; flex-shrink: 0; background-color: #0a0a0a;}
.hidden { display: none !important; }

 /* --- Text Glitch Effect Styling --- */
 .glitching-word { display: inline-block; }
 .glitching-word.zed-glitch { animation: text-glitch-zed 0.25s linear 2; color: #ff5555 !important; text-shadow: 0 0 4px #ff0000, 0 0 8px #ff0000 !important; }
 .glitching-word.dept-glitch { animation: text-glitch-dept 0.4s linear 1; color: #aaffee !important; text-shadow: 0 0 3px #00ffff !important; }
 @keyframes text-glitch-zed { 0%, 100% { transform: translate(0, 0) skew(0); opacity: 1; } 15% { transform: translate(-3px, 2px) skew(-10deg); opacity: 0.7; } 30% { transform: translate(3px, -1px) skew(0deg); opacity: 1; } 45% { transform: translate(1px, 3px) skew(10deg); opacity: 0.6; } 60% { transform: translate(-2px, -2px) skew(0deg); opacity: 1;} 75% { transform: translate(2px, 1px) skew(-5deg); opacity: 0.8;} 90% { transform: translate(-1px, -3px) skew(5deg); opacity: 1;} }
 @keyframes text-glitch-dept { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(1px, -1px); color: #ccffff; } 50% { transform: translate(-1px, 1px); color: #99ffff;} 75% { transform: translate(1px, 0px); color: #aaffee;} }
 span.zed-edit { color: #ff8888; text-shadow: 0 0 3px #ff0000; }
/* --- End Shared CSS --- */