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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.container {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00d4aa, #00a8e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.score, .high-score {
    padding: 10px 20px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

#gameCanvas {
    border: 3px solid #00d4aa;
    border-radius: 10px;
    background: #0a0a0a;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

.controls {
    margin-top: 20px;
}

.controls p {
    margin-bottom: 15px;
    color: #888;
}

button {
    padding: 12px 24px;
    margin: 5px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

#startBtn {
    background: linear-gradient(45deg, #00d4aa, #00a8e8);
    color: #fff;
}

#pauseBtn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a5a);
    color: #fff;
}

#restartBtn, #playAgainBtn {
    background: linear-gradient(45deg, #ffd93d, #ffb800);
    color: #1a1a2e;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #ff6b6b;
    text-align: center;
    z-index: 1000;
}

.game-over h2 {
    color: #ff6b6b;
    font-size: 2em;
    margin-bottom: 15px;
}

.game-over p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

@media (max-width: 480px) {
    #gameCanvas {
        width: 350px;
        height: 350px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    button {
        padding: 10px 18px;
        font-size: 0.9em;
    }
}
