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

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

.game-container {
    text-align: center;
}

.game-header {
    margin-bottom: 20px;
}

.game-header h1 {
    font-size: 3rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    margin-bottom: 10px;
}

.controls-info {
    margin-bottom: 15px;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.player-controls span {
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 3px;
}

.player-1 {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.2);
}

.player-2 {
    color: #0000ff;
    background: rgba(0, 0, 255, 0.2);
}

.player-3 {
    color: #ffff00;
    background: rgba(255, 255, 0, 0.2);
}

.player-4 {
    color: #ff00ff;
    background: rgba(255, 0, 255, 0.2);
}

#gameCanvas {
    border: 2px solid #00ff00;
    background: #001100;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.game-ui {
    margin-top: 20px;
}

.game-status {
    margin-bottom: 15px;
}

#gameState {
    font-size: 1.2rem;
    color: #00ff00;
    margin-bottom: 10px;
}

.scores {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.score {
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 3px;
}

.player-1-score {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.2);
}

.player-2-score {
    color: #0000ff;
    background: rgba(0, 0, 255, 0.2);
}

.player-3-score {
    color: #ffff00;
    background: rgba(255, 255, 0, 0.2);
}

.player-4-score {
    color: #ff00ff;
    background: rgba(255, 0, 255, 0.2);
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

button {
    background: #00ff00;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

button:hover {
    background: #00cc00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

button:active {
    transform: scale(0.95);
}

@media (max-width: 900px) {
    .game-header h1 {
        font-size: 2rem;
    }
    
    #gameCanvas {
        width: 90vw;
        height: 60vh;
    }
    
    .player-controls {
        gap: 15px;
    }
    
    .scores {
        gap: 15px;
    }
}