:root {
    --green: #00ff41;
    --dim: #003b00;
    --bg: #050505;
}

body {
    background: var(--bg);
    color: var(--green);
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    padding-top: 50px;
    margin: 0;
}

.crt-screen {
    width: 400px;
    padding: 20px;
    border: 3px solid var(--green);
    background: radial-gradient(circle, #001a00 0%, #050505 100%);
    box-shadow: 0 0 20px var(--dim), inset 0 0 30px #000;
    position: relative;
    overflow: hidden;
}

/* CRT Scanline Effect */
.scanlines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
}

.visualizer {
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--dim);
    margin: 15px 0;
}

pre { font-size: 1.4rem; text-shadow: 0 0 10px var(--green); transition: 0.3s; }

.stat-row { margin: 10px 0; font-size: 0.7rem; }
.progress-bg { height: 8px; background: #001a00; border: 1px solid var(--dim); margin-top: 4px; }
.progress-fill { height: 100%; background: var(--green); width: 0%; transition: width 0.4s; }
.progress-fill.alert { background: #ff3333; box-shadow: 0 0 10px #ff3333; }
.progress-fill.grow { background: #33ccff; }

button {
    width: 100%;
    padding: 8px;
    margin: 4px 0;
    background: transparent;
    border: 1px solid var(--green);
    color: var(--green);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
}

button:hover { background: var(--green); color: #000; }

.event-log {
    font-size: 0.65rem;
    height: 60px;
    overflow: hidden;
    color: #008f11;
    margin-top: 10px;
    border-top: 1px dashed var(--dim);
    padding-top: 5px;
}

.dead { filter: grayscale(1) contrast(0.5); }