:root {
    --bg-color: #030303;
    --text-dull: #888888;
    --text-dim: #3a7c2b;
    --text-flash: #dcdcdc;
    --term-green: #4af626;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-dim);
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    cursor: default;
    transition: transform 0.05s ease-out;
}

.crt::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.crt::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,0.8) 100%);
    z-index: 3;
    pointer-events: none;
}

.container {
    text-align: center;
    z-index: 1;
    position: relative;
    letter-spacing: 2px;
    line-height: 1.5;
}

.glitch-text {
    position: relative;
    animation: chromatic-shift 8s infinite alternate-reverse;
}

@keyframes chromatic-shift {
    0%, 98% { text-shadow: none; }
    99% { text-shadow: 1px 0 0 rgba(255,0,0,0.5), -1px 0 0 rgba(0,255,255,0.5); }
    100% { text-shadow: -1px 0 0 rgba(255,0,0,0.3), 1px 0 0 rgba(0,255,255,0.3); }
}

.flash-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: white;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

pre {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 40px;
    text-align: left;
    display: inline-block;
    transition: color 2s;
}

.text-line {
    font-size: 14px;
    min-height: 20px;
    margin: 15px 0;
    opacity: 0.8;
    transition: opacity 3s, color 0.5s;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background-color: var(--text-dim);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

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

#audio-toggle {
    position: fixed;
    bottom: 10px;
    right: 15px;
    font-size: 10px;
    color: var(--text-dim);
    opacity: 0.1;
    cursor: pointer;
    z-index: 20;
    transition: opacity 0.5s;
}

#audio-toggle:hover {
    opacity: 0.4;
}

#easter-egg {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-flash);
    font-size: 14px;
    z-index: 50;
    display: none;
}
