/* CRT overlay and scanlines effect */

body {
    text-shadow: 
        0.05em 0 0 rgba(255,0,0,0.7),
        -0.025em -0.025em 0 rgba(0,255,0,0.7),
        0.025em 0.025em 0 rgba(0,0,255,0.7),
        0 0 10px currentColor, 
        0 0 4px currentColor;
    animation: crt-flicker 0.15s infinite;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.15),
        rgba(0,0,0,0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 10;
    pointer-events: none;
    animation: scanline-scroll 8s linear infinite;
}

.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,0,0,0.02) 50%, rgba(0,0,0,0.6) 100%);
    z-index: 9;
    pointer-events: none;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.9);
    animation: crt-pulse 4s infinite alternate;
}

@keyframes crt-flicker {
    0% { opacity: 0.98; }
    50% { opacity: 0.95; transform: translate(0.5px, 0); }
    100% { opacity: 1; transform: translate(-0.5px, 0); }
}

@keyframes scanline-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

@keyframes crt-pulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}
