@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&display=swap');

:root {
    --glow-color: #00f2ff; 
    --bg-color: #040a0f;
    --burn-color: rgba(0, 242, 255, 0.4);
    --dim-color: rgba(0, 242, 255, 0.75);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    min-height: 100%;
    background-color: var(--bg-color);
    color: var(--glow-color);
    font-family: 'JetBrains Mono', monospace;
}

/* --- CRT LAYERS --- */
.crt-base { 
    position: fixed; 
    inset: 0; 
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02)); 
    background-size: 100% 3px, 3px 100%; 
    z-index: 3000; 
    pointer-events: none; 
}

.scanline-moving { 
    position: fixed; 
    top: -100px; 
    left: 0; 
    width: 100%; 
    height: 100px; 
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 242, 255, 0.03) 50%, rgba(0, 0, 0, 0) 100%); 
    opacity: 0.4; 
    animation: scanline 10s linear infinite; 
    z-index: 3001; 
}

.vignette { 
    position: fixed; 
    inset: 0; 
    background: radial-gradient(circle, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%); 
    z-index: 3002; 
    pointer-events: none; 
}

@keyframes scanline { 
    0% { top: -100px; } 
    100% { top: 100%; } 
}

/* --- GLITCHES --- */
.glitch-type-1 { text-shadow: -3px 0 #ff00c1, 3px 0 #00fff9; transform: translate(2px, -1px); }
.glitch-type-2 { transform: translateY(3px) skewX(2deg); filter: brightness(1.8); }
.glitch-type-3 { transform: scaleY(1.05) skewX(-5deg); opacity: 0.8; }

/* --- COMMON COMPONENTS --- */
.cursor { 
    display: inline-block; 
    width: 10px; 
    height: 1.1em; 
    background-color: var(--glow-color); 
    vertical-align: middle; 
    margin-left: 2px; 
    animation: blink 1s step-end infinite; 
    box-shadow: 0 0 8px var(--glow-color); 
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

footer { 
    text-align: center; 
    font-size: 0.65rem; 
    opacity: 0.75; 
    padding: 20px 15px; 
    line-height: 1.6;
    letter-spacing: 1px;
    text-shadow: 0 0 2px var(--burn-color);
}

footer a { 
    color: var(--glow-color); 
    text-decoration: none; 
    border-bottom: 1px solid rgba(0, 242, 255, 0.3); 
}

footer a:hover {
    border-bottom-color: var(--glow-color);
}

/* --- COOKIE BAR --- */
#cookie-banner {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 550px;
    background: rgba(4, 10, 15, 0.98);
    border: 1px solid var(--glow-color);
    padding: 20px;
    z-index: 2000;
    display: none;
    box-shadow: 0 0 25px var(--burn-color);
}

.cookie-text { font-size: 0.75rem; line-height: 1.5; margin-bottom: 20px; text-transform: uppercase; }
.cookie-actions { display: flex; flex-direction: row; gap: 20px; justify-content: flex-start; align-items: baseline; flex-wrap: wrap; }
.cookie-btn { background: none; border: none; color: var(--glow-color); font-family: inherit; font-weight: bold; font-size: 0.85rem; cursor: pointer; text-transform: uppercase; white-space: nowrap; padding: 4px 0; }
.cookie-btn:hover { background: var(--glow-color); color: var(--bg-color); }
.cookie-link { font-size: 0.75rem; color: var(--glow-color); opacity: 0.6; text-decoration: underline; text-transform: uppercase; }

@media (max-width: 600px) {
    .cookie-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
    #cookie-banner { bottom: 80px; }
}
