@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #a8e6cf 0%, #88d4ab 50%, #7bc99e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.score-panel {
    background: linear-gradient(145deg, #fff9e6, #fff5d6);
    border: 4px solid #d4a574;
    border-radius: 20px;
    padding: 15px 30px;
    box-shadow: 
        0 6px 0 #c49565,
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-label {
    font-size: 18px;
    font-weight: 600;
    color: #6b4423;
}

#score {
    font-size: 32px;
    font-weight: 700;
    color: #e85d75;
    min-width: 50px;
    text-align: center;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

#gameCanvas {
    border: 6px solid #8b6914;
    border-radius: 12px;
    box-shadow: 
        0 8px 0 #6d5210,
        0 12px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 100px rgba(255, 255, 255, 0.1);
    background: #90c56a;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.instructions {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 240, 0.95));
    border: 3px solid #d4a574;
    border-radius: 15px;
    padding: 15px 25px;
    box-shadow: 
        0 4px 0 #c49565,
        0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.instructions p {
    font-size: 14px;
    color: #5a4a3a;
    margin: 5px 0;
    font-weight: 600;
}

/* Cute bounce animation for score */
@keyframes scoreBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

#score.bounce {
    animation: scoreBounce 0.3s ease-out;
}

/* Loading state */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a8e6cf 0%, #88d4ab 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #5a4a3a;
    z-index: 1000;
}
