* {
    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 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.game-container {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 450px;
    width: 90%;
}

.header {
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.score-board {
    display: flex;
    justify-content: space-around;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.score, .high-score {
    font-weight: bold;
}

#gameCanvas {
    background: linear-gradient(to bottom, #000022 0%, #000044 50%, #000066 100%);
    border: 3px solid #4a90e2;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.instructions {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #aaa;
}

.instructions p {
    margin: 5px 0;
}

.game-over, .start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #4a90e2;
    z-index: 10;
}

.game-over h2, .start-screen h2 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 2rem;
}

.game-over p, .start-screen p {
    margin: 10px 0;
    font-size: 1.1rem;
}

button {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.hidden {
    display: none;
}

.start-screen {
    text-align: center;
}

.start-screen h2 {
    color: #4ecdc4;
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .score-board {
        font-size: 1rem;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
    }
}