body {
    background-color: #f4f1e9;
    font-family: 'VT323', monospace;
    color: #2a2a2a;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    border-bottom: 1px solid #aaa;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.5em;
    margin: 0;
}

.subtitle {
    color: #777;
    font-size: 1.2em;
}

nav a {
    text-decoration: none;
    color: #444;
    margin: 0 5px;
}

nav a:hover {
    text-decoration: underline;
}

section {
    margin-bottom: 25px;
}

footer {
    text-align: center;
    font-size: 0.9em;
    color: #777;
    border-top: 1px solid #aaa;
    padding-top: 10px;
}

/* Glitch state (random chance) */
.glitch body {
    background-color: #000;
    color: #fff;
}

.glitch-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    color: #ff0033;
    font-size: 2em;
    text-align: center;
    padding-top: 40vh;
    z-index: 999;
    letter-spacing: 0.2em;
}

body.glitch .glitch-overlay {
    display: block;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.4; }
}
