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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    overflow: hidden;
    touch-action: none;
}

#gameContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

#gameCanvas {
    position: relative;
    border: 3px solid #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

#gameScreen {
    display: block;
    background: #000;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

#gameUI {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 10;
}

#scoreBoard {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.score-item {
    font-size: 14px;
    font-weight: bold;
}

#gameControls {
    display: flex;
    gap: 5px;
    justify-content: center;
}

button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: all 0.3s;
}

button:hover {
    background: #ff5252;
    transform: scale(1.05);
}

#gameMenu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #fff;
}

#gameMenu h2 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 24px;
}

.menu-item {
    margin: 10px 0;
    color: #ccc;
}

.menu-controls {
    margin: 15px 0;
    font-size: 12px;
    color: #aaa;
}

#leaderboard {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 5px;
    min-width: 150px;
}

#leaderboard h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
}

.score-entry {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 12px;
}
