/* Scanlines — subtle CRT scan effect */
@keyframes scanlineScroll {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 4px;
    }
}

@keyframes scanFlicker {
    0%, 100% {
        opacity: 0.14;
    }
    50% {
        opacity: 0.22;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        color-mix(in srgb, var(--anim-c-accent) 12%, transparent) 2px,
        color-mix(in srgb, var(--anim-c-accent) 12%, transparent) 4px
    );
    animation: scanlineScroll 0.5s linear infinite, scanFlicker 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse 90% 80% at 50% 50%,
        transparent 50%,
        color-mix(in srgb, var(--anim-c-purple) 40%, transparent) 100%
    );
    pointer-events: none;
    z-index: -1;
}
