/* CRT atmosphere — subtle, non-intrusive */

html.fallout-ui {
    background: #000;
}

.crt-wrap {
    position: relative;
    min-height: 100vh;
}

.fx-scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.07;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(0, 0, 0, 0.45) 3px
    );
    mix-blend-mode: multiply;
}

.fx-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    background: radial-gradient(ellipse 88% 82% at 50% 48%, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
}

.fx-flicker {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9996;
    background: #000;
    opacity: 0;
    animation: vt-flicker 12s infinite;
}

@keyframes vt-flicker {
    0%, 97%, 100% { opacity: 0; }
    97.4%         { opacity: 0.03; }
    98.1%         { opacity: 0.015; }
}

.vt-phosphor-glow {
    text-shadow: 0 0 6px var(--vt-glow), 0 0 14px var(--vt-glow-soft);
}

@media (prefers-reduced-motion: reduce) {
    .fx-flicker {
        animation: none;
    }
}