body {
    background: #333;
    margin: 0;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
}

#crt {
    display: block;
    image-rendering: pixelated;
}

#chatInput {
    position: absolute;
    width: 574px; /* ウィンドウ幅 600px - padding分 */
    background: rgba(0, 0, 0, 0.9);
    color: #00FF00;
    border: 2px solid #555;
    font-size: 18px;
    padding: 12px;
    outline: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
    font-family: 'Courier New', monospace;
    z-index: 10;
}

/* ログインモーダル */
#loginOverlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s ease;
    opacity: 1;
}

#loginOverlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#loginBox {
    width: 400px;
    background: #222;
    border: 2px solid #00FF00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
    color: #00FF00;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#loginOverlay.hidden #loginBox {
    transform: scale(0.9);
    filter: blur(10px);
}

#loginTitle {
    background: #00FF00;
    color: #000;
    padding: 5px 10px;
    font-weight: bold;
}

#loginBody {
    padding: 20px;
    text-align: center;
}

#userNameInput {
    width: 80%;
    background: #000;
    border: 1px solid #00FF00;
    color: #00FF00;
    padding: 10px;
    font-size: 18px;
    margin-bottom: 20px;
    outline: none;
}

#loginBtn {
    background: transparent;
    border: 1px solid #00FF00;
    color: #00FF00;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
}

#loginBtn:hover {
    background: #00FF00;
    color: #000;
}