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

body {
    font-family: 'Courier New', monospace;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.game-container {
    text-align: center;
    padding: 10px 20px;
}

h1 {
    color: #0f0;
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-shadow: 0 0 10px #0f0;
}

.game-area {
    display: inline-block;
}

.stats {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

canvas {
    background: #000;
    border: 4px solid #0f0;
    display: block;
}

.controls {
    margin-top: 15px;
}

.controls-info {
    position: fixed;
    top: 10px;
    right: 15px;
    font-size: 0.9rem;
    color: #888;
}

button {
    background: #0f0;
    color: #000;
    border: none;
    padding: 10px 30px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    margin: 5px;
}

button:hover {
    background: #0a0;
}

#game-over {
    margin-top: 20px;
}

#game-over.hidden {
    display: none;
}

#game-over h2 {
    color: #f00;
    margin-bottom: 10px;
}

#player-name {
    padding: 10px;
    font-family: inherit;
    font-size: 1rem;
    margin: 10px 0;
    width: 200px;
}

.highscores {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: flex-start;
}

.highscores .score-item {
    text-align: center;
    font-size: 0.85rem;
}

.highscores .score-name {
    color: #0f0;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.highscores .score-value {
    color: #888;
}
