/* --- Base Styles --- */
:root {
    --nier-bg: #f8f9fa; /* Off-white for realism */
    --nier-fg: #2b2b2b; /* Dark text for contrast */
    --nier-orange: #ff6b00; /* Vibrant Orange */
    --nier-red: #ff003c; /* Accent Red */
    --nier-yellow: #ffb700; /* Warning yellow */
    --nier-grey: #6c757d; /* Muted text */
}

body {
    background-color: var(--nier-bg);
    color: var(--nier-fg);
    font-family: 'Share Tech Mono', monospace;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    /* Clean, light grid background */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 25px 25px;
    padding: 2rem;
    box-sizing: border-box;
}

.terminal-container {
    width: 80%;
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.terminal-container p {
    margin: 4px 0;
    font-size: 1.1em;
    display: inline;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.line-container {
    height: 1.5em;
    margin-bottom: 2px;
}

/* Status Colors mapped to Orange/Red theme */
.status-green { color: var(--nier-orange); }
.status-blue { color: var(--nier-red); }
.status-yellow { color: var(--nier-yellow); }
.status-red { color: #d32f2f; }

/* --- Animation Overlays --- */
.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 100px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    pointer-events: none;
}

.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.03) 51%
    );
    background-size: 100% 4px;
    animation: scanline-scroll 20s linear infinite;
    z-index: 11;
    pointer-events: none;
}

/* Screen flicker effect (very subtle on light theme) */
.flicker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 107, 0, 0.02);
    z-index: 12;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

/* --- Cursors and Keyframe Animations --- */
.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--nier-orange);
    margin-left: 5px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

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

@keyframes scanline-scroll {
    from { background-position-y: 0; }
    to { background-position-y: 80px; }
}

@keyframes flicker {
    0% { opacity: 0.1; }
    50% { opacity: 0.2; }
    100% { opacity: 0.1; }
}

/* "Power-On" effect */
body.glitch-start .terminal-container {
    animation: power-on 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes power-on {
    0% { opacity: 0; transform: scale(1.05) skewY(2deg); filter: blur(10px) brightness(1.5); }
    50% { opacity: 1; transform: scale(1) skewY(-1deg); filter: blur(2px) brightness(1.2); }
    100% { opacity: 1; transform: scale(1) skewY(0); filter: blur(0) brightness(1); }
}