/* =============================================
   STANDALONE CRT OVERLAY - GRUNGE EDITION
   Halved darkness from the original you liked
   (scanlines now 0.125 instead of 0.25, flicker layer 0.05 instead of 0.1)
   Perfect subtle grunge without washing out your yellows/blues
   ============================================= */

#crt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
}

/* === SCANLINES + RGB SPLIT (halved) === */
#crt::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.125) 50%), 
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 100;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* === FLICKER LAYER (halved) === */
#crt::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.05);
    opacity: 0;
    z-index: 100;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

/* === SOFT FLICKER ANIMATION === */
@keyframes flicker {
    0%   { opacity: 0.06; }
    100% { opacity: 0.02; }
}