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

body {
    font-family: 'Arial', sans-serif;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.game-container {
    position: relative;
    border: 2px solid #4a9eff;
    box-shadow: 0 0 30px rgba(74, 158, 255, 0.3);
}

canvas {
    display: block;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><defs><radialGradient id="stars"><stop offset="0%" stop-color="white"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><rect width="800" height="600" fill="%23090a0f"/><circle cx="100" cy="100" r="1" fill="white" opacity="0.8"/><circle cx="200" cy="50" r="1.5" fill="white" opacity="0.6"/><circle cx="300" cy="150" r="1" fill="white" opacity="0.9"/><circle cx="400" cy="80" r="1" fill="white" opacity="0.7"/><circle cx="500" cy="120" r="1.5" fill="white" opacity="0.8"/><circle cx="600" cy="40" r="1" fill="white" opacity="0.6"/><circle cx="700" cy="180" r="1" fill="white" opacity="0.9"/><circle cx="150" cy="250" r="1" fill="white" opacity="0.7"/><circle cx="250" cy="300" r="1.5" fill="white" opacity="0.8"/><circle cx="350" cy="220" r="1" fill="white" opacity="0.6"/><circle cx="450" cy="280" r="1" fill="white" opacity="0.9"/><circle cx="550" cy="200" r="1" fill="white" opacity="0.7"/><circle cx="650" cy="320" r="1.5" fill="white" opacity="0.8"/><circle cx="750" cy="240" r="1" fill="white" opacity="0.6"/><circle cx="80" cy="400" r="1" fill="white" opacity="0.9"/><circle cx="180" cy="450" r="1" fill="white" opacity="0.7"/><circle cx="280" cy="380" r="1.5" fill="white" opacity="0.8"/><circle cx="380" cy="420" r="1" fill="white" opacity="0.6"/><circle cx="480" cy="480" r="1" fill="white" opacity="0.9"/><circle cx="580" cy="360" r="1.5" fill="white" opacity="0.7"/><circle cx="680" cy="440" r="1" fill="white" opacity="0.8"/><circle cx="780" cy="400" r="1" fill="white" opacity="0.6"/><circle cx="120" cy="550" r="1" fill="white" opacity="0.9"/><circle cx="220" cy="520" r="1.5" fill="white" opacity="0.7"/><circle cx="320" cy="580" r="1" fill="white" opacity="0.8"/><circle cx="420" cy="540" r="1" fill="white" opacity="0.6"/><circle cx="520" cy="560" r="1.5" fill="white" opacity="0.9"/><circle cx="620" cy="500" r="1" fill="white" opacity="0.7"/><circle cx="720" cy="580" r="1" fill="white" opacity="0.8"/></svg>');
    background-size: cover;
}

.ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    color: white;
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.8);
}

#score {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 32px;
    font-weight: bold;
    pointer-events: none;
    z-index: 10;
}

.start-screen,
.game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: auto;
}

.start-screen h1,
.game-over-screen h1 {
    font-size: 64px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #4a9eff, #7cffb2, #ff9d7c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    letter-spacing: 4px;
}

.start-screen p,
.game-over-screen p {
    font-size: 24px;
    margin-bottom: 10px;
}

#startBtn,
#restartBtn {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #4a9eff 0%, #2d7cff 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.4);
}

#startBtn:hover,
#restartBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.6);
}

.hidden {
    display: none;
}