* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #2b2b2b;
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 22px;
    line-height: 1.2;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.mode-mono {
    color: #00ff00;
}

body.mode-amber {
    color: #ffb000;
}

body.mode-herc {
    color: #b5e853;
}

body.mode-co40 {
    font-size: 28px;
}

body.mode-co80 {
    font-size: 22px;
}

.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 3px;
    pointer-events: none;
    z-index: 1000;
}

.terminal {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.terminal::-webkit-scrollbar {
    display: none;
}

.monitor-casing {
    background: #d4c5b9;
    padding: 25px;
    border-radius: 12px;
    border: 4px solid #b8a89c;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7), inset 0 2px 5px rgba(255,255,255,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monitor-brand {
    color: #554d46;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.monitor-bezel {
    background: #111;
    padding: 20px;
    border: 12px solid #332f2c;
    border-radius: 8px;
    width: 820px;
    height: 520px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.9);
}

.monitor-panel {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: flex-end;
    padding-right: 5px;
}

.power-led {
    width: 8px;
    height: 8px;
    background: #ff3333;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff0000;
}

.power-label {
    color: #554d46;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.screen {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

#output {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.prompt-line.hidden {
    display: none;
}

#prompt-text {
    white-space: pre;
}

#command-input {
    outline: none;
    border: none;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    flex: 0 1 auto;
    min-width: 0;
    caret-color: transparent;
    padding-left: 0px;
    margin-left: 0px;
    white-space: pre;
    overflow-x: hidden;
}

.cursor {
    animation: blink 1s infinite;
    font-weight: bold;
}

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

.matrix-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 1000;
    overflow: hidden;
    cursor: pointer;
}

.matrix-canvas {
    width: 100%;
    height: 100%;
}
