:root {
    --amber: #FFB000;
    --amber-dim: #CC8C00;
    --amber-bright: #FFD700;
    --black: #0a0a0a;
    --char-width: 9.6px;
    --char-height: 20px;
}

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

body {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

.crt-container {
    position: relative;
    width: 820px;
    height: 580px;
}

.crt-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--black);
    border-radius: 20px;
    padding: 20px;
    box-shadow:
        0 0 20px rgba(255, 176, 0, 0.3),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
}

.terminal {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 16px;
    line-height: var(--char-height);
    color: var(--amber);
    background: transparent;
    width: 768px;
    height: 520px;
    overflow: hidden;
    white-space: pre;
    text-shadow: 0 0 5px var(--amber);
    position: relative;
    z-index: 20;
}

.terminal-content {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 20;
}

.terminal-line {
    height: var(--char-height);
    width: 100%;
    display: block;
}

.terminal-char {
    display: inline;
}

.terminal-text {
    display: inline;
    white-space: pre;
    color: var(--amber);
}

.cursor {
    display: inline;
    background: var(--amber);
    color: var(--black);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0.3; }
}

.hidden-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.connection-status {
    position: fixed;
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--amber);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border: 1px solid var(--amber-dim);
    border-radius: 4px;
}

.connection-status.connected {
    border-color: #00ff00;
    color: #00ff00;
}

.connection-status.disconnected {
    border-color: #ff0000;
    color: #ff0000;
}
