:root {
    --bg-color: #0a0a0a;
    --text-color: #4af626;
    --flicker-opacity: 0.05;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
}

.crt::before {
    content: " ";
    display: block;
    position: fixed;
    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: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: var(--flicker-opacity); }
    50% { opacity: 0.02; }
    100% { opacity: var(--flicker-opacity); }
}

.terminal-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ascii-art {
    font-size: 8px;
    line-height: 8px;
    white-space: pre;
    text-align: center;
    margin-bottom: 20px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--text-color);
    padding: 5px 0;
    margin-bottom: 20px;
    font-size: 0.9em;
}

main {
    min-height: 400px;
}

.thought {
    color: #888;
    font-style: italic;
    margin-bottom: 5px;
    font-size: 0.8em;
}

.speech {
    margin-bottom: 20px;
    line-height: 1.4;
}

.agent-name {
    font-weight: bold;
    text-decoration: underline;
    display: block;
    margin-bottom: 5px;
}

.conclusion {
    border: 1px solid var(--text-color);
    padding: 15px;
    margin-top: 40px;
    background: rgba(74, 246, 38, 0.05);
}

.history {
    margin-top: 50px;
    border-top: 1px solid var(--text-color);
    padding-top: 20px;
}

.history h3 {
    font-size: 1.1em;
}

.history ul {
    list-style: none;
    padding: 0;
}

.history li {
    margin-bottom: 5px;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

a:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Typing effect cursor */
.typing::after {
    content: "█";
    animation: blink 0.8s infinite;
}

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