* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #2d5a1b;
    background-image: 
        radial-gradient(circle at 20% 30%, #3a6b22 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, #1e4a10 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #2d5a1b 0%, transparent 70%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

#game-container {
    text-align: center;
    padding: 20px;
}

h1 {
    color: #c8e6a0;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

#score-board {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 12px;
    font-size: 1.3em;
    color: #f0f7e6;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

#game-canvas {
    border: 4px solid #4a7c2e;
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(0,0,0,0.4),
        inset 0 0 30px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

#message {
    color: #f0f7e6;
    font-size: 1.2em;
    margin-top: 14px;
    min-height: 1.5em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

#controls {
    margin-top: 10px;
    color: #a0c880;
    font-size: 0.95em;
}

#mobile-controls {
    display: none;
    margin-top: 12px;
    user-select: none;
}

.control-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5em;
    border: 2px solid #4a7c2e;
    border-radius: 12px;
    background: rgba(74, 124, 46, 0.5);
    color: white;
    cursor: pointer;
    margin: 4px;
    touch-action: manipulation;
    transition: background 0.15s;
}

.control-btn:active {
    background: rgba(74, 124, 46, 0.9);
}

.control-row {
    display: flex;
    justify-content: center;
}

/* Show mobile controls on touch devices */
@media (hover: none) and (pointer: coarse) {
    #mobile-controls {
        display: block;
    }
}

@media (max-width: 450px) {
    #game-canvas {
        width: 320px;
        height: 320px;
    }
    h1 {
        font-size: 1.6em;
    }
}
