* {
    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;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #2b5912;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.game-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

#gameCanvas {
    border: 4px solid #2b5912;
    border-radius: 10px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 89, 18, 0.78);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    transition: opacity 0.3s ease;
}

.game-over.hidden {
    display: none;
}

.game-over h2 {
    color: rgb(170, 215, 81);
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.game-over .final-score {
    color: rgb(170, 215, 81);
    font-size: 2.25em;
    font-weight: bold;
    margin-bottom: 20px;
}

.game-over .instructions {
    color: rgb(162, 209, 73);
    font-size: 1.75em;
    margin: 5px 0;
}

.score-display {
    margin-top: 20px;
    font-size: 1.5em;
    color: #2b5912;
    font-weight: bold;
}

.score-display span {
    color: #cc3333;
}

.controls {
    margin-top: 15px;
    color: #555;
    font-size: 1em;
}

.controls p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    #gameCanvas {
        max-width: 100%;
        height: auto;
    }

    .game-over h2 {
        font-size: 3em;
    }

    .game-over .final-score {
        font-size: 1.75em;
    }

    .game-over .instructions {
        font-size: 1.25em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    .game-over h2 {
        font-size: 2em;
    }

    .game-over .final-score {
        font-size: 1.5em;
    }

    .game-over .instructions {
        font-size: 1em;
    }
}
