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

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

.game-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
    max-width: 460px;
    width: 100%;
}

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

.header h1 {
    font-size: 36px;
    color: #667eea;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.score-display, .high-score-display {
    display: inline-block;
    margin: 0 15px;
    font-size: 20px;
    font-weight: bold;
}

.score-display .label, .high-score-display .label {
    color: #666;
    margin-right: 5px;
}

.score-display #score {
    color: #667eea;
}

.high-score-display #highScore {
    color: #f59e0b;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: auto;
    border: 3px solid #667eea;
    border-radius: 10px;
    background: linear-gradient(to bottom, #87CEEB 0%, #E0F6FF 100%);
    cursor: pointer;
}

.screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 350px;
    width: 90%;
}

.screen.hidden {
    display: none;
}

.screen h2 {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 20px;
}

.screen p {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.final-score {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.high-score-msg {
    font-size: 16px;
    color: #f59e0b;
    font-weight: bold;
}

.game-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

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

.instructions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.instructions p {
    font-size: 16px;
    margin: 10px 0;
    color: #666;
}

.instructions p:first-child {
    font-weight: bold;
    color: #667eea;
    font-size: 18px;
}

@media (max-width: 500px) {
    .game-container {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .score-display, .high-score-display {
        font-size: 16px;
        margin: 0 10px;
    }
    
    .screen {
        padding: 30px 20px;
    }
    
    .screen h2 {
        font-size: 26px;
    }
}