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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 15px;
}

.header h1 {
    color: #ffd700;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.score-board {
    display: flex;
    justify-content: space-around;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
}

.score-board div {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.score-board span {
    color: #ffd700;
}

#gameCanvas {
    border: 3px solid #ffd700;
    border-radius: 10px;
    background: linear-gradient(to bottom, #0a0a2e 0%, #1a1a3e 100%);
    display: block;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.controls {
    text-align: center;
    margin-top: 15px;
    color: #fff;
}

.controls p {
    margin-bottom: 10px;
    font-size: 0.9em;
    opacity: 0.8;
}

.btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    margin: 0 5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn:active {
    transform: translateY(0);
}

.game-over, .pause-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid #ffd700;
    z-index: 10;
    min-width: 300px;
}

.game-over h2, .pause-screen h2 {
    color: #ffd700;
    font-size: 2em;
    margin-bottom: 20px;
}

.game-over p, .pause-screen p {
    color: #fff;
    font-size: 1.3em;
    margin: 10px 0;
}

.game-over span {
    color: #ffd700;
    font-weight: bold;
}

@media (max-width: 650px) {
    #gameCanvas {
        width: 100%;
        height: auto;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .score-board {
        font-size: 1em;
    }
}
