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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #a8d8f0 0%, #87ceeb 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow: hidden;
}

.game-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

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

h1 {
    color: #4a90a4;
    font-size: 2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.score-board {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.score, .high-score, .missed {
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 15px;
    border-radius: 15px;
    font-weight: bold;
    color: #2c5f7a;
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 500px;
    background: linear-gradient(to bottom, #b8e6f5 0%, #a0d9f0 50%, #8cc8e0 100%);
    border-radius: 15px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    touch-action: none;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 100;
    min-width: 250px;
}

.game-over.show {
    display: block;
}

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

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

#restartBtn {
    background: linear-gradient(135deg, #5fb3d3 0%, #4a90a4 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#restartBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#restartBtn:active {
    transform: translateY(0);
}

.instructions {
    text-align: center;
    margin-top: 10px;
    color: #2c5f7a;
    font-size: 0.9em;
    opacity: 0.8;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.5em;
    }
    
    #gameCanvas {
        height: 400px;
    }
    
    .score-board {
        font-size: 0.8em;
    }
    
    .score, .high-score, .missed {
        padding: 6px 10px;
    }
}

@media (max-height: 700px) {
    #gameCanvas {
        height: 350px;
    }
}

