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

:root {
    --sky-gradient: linear-gradient(#87CEEB, #E0F6FF);
    --grass-color: #23a023;
    --dirt-color: #5e3611;
}

.game-board {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: var(--sky-gradient);
}

.game-logo, .score-container {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff0000;
    padding: 10px 40px;
    border: 4px solid #000;
    box-shadow: 6px 6px 0 #000;
    color: #fff;
    font-family: 'Arial Black', sans-serif;
    z-index: 100;
}

.score-container { 
    font-size: 2.2rem; 
    min-width: 320px; 
    text-align: center; 
}

.speed-alert {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #ffd700;
    padding: 15px 30px;
    border-radius: 10px;
    font-family: 'Arial Black', sans-serif;
    border: 3px solid #ffd700;
    z-index: 500;
}

.floating-points {
    position: absolute;
    font-family: 'Arial Black', sans-serif;
    font-size: 24px;
    color: #2ecc71;
    text-shadow: 2px 2px 0 #000;
    z-index: 999;
    pointer-events: none;
    animation: floatUpFade 1s ease-out forwards;
}

@keyframes floatUpFade {
    0% { transform: translateY(-50px); opacity: 1; }
    100% { transform: translateY(-100px); opacity: 0; }
}

.cloud { 
    position: absolute; 
    top: 50px; 
    width: 550px; 
    animation: cloud-move 12s infinite linear; 
}

.ground { 
    position: absolute; 
    bottom: 0; 
    width: 100%; 
    height: 15%; 
}

.grass { 
    height: 15px; 
    background: var(--grass-color); 
    border-top: 3px solid #000; 
}

.dirt { 
    height: 100%; 
    background: var(--dirt-color); 
}

.action-layer { 
    position: absolute; 
    bottom: 15%; 
    width: 100%; 
    height: 600px; 
}

.player { 
    position: absolute; 
    bottom: 0; 
    left: 50px; 
    width: 480px; 
    z-index: 10; 
}

.player img, .cannon img, .obstacle img { 
    width: 100%; 
}

.cannon { 
    position: absolute; 
    bottom: -5px; 
    right: 0; 
    width: 380px; 
    z-index: 5; 
}

.obstacle { 
    position: absolute; 
    bottom: 30px; 
    right: 220px; 
    width: 110px; 
    z-index: 6; 
    opacity: 0; 
}

.jump-animation { 
    animation: jump 650ms ease-out; 
}

.fireball-animation { 
    animation: move-fireball linear infinite; 
}

@keyframes jump {
    0%, 100% { bottom: 0; }
    50% { bottom: 280px; } 
}

@keyframes move-fireball {
    0% { right: 280px; opacity: 0; }
    2% { opacity: 1; }
    100% { right: 115%; opacity: 1; }
}

@keyframes cloud-move { 
    from { left: 105%; } 
    to { left: -560px; } 
}


.fireball-secondary { 
    display: none; 
}

.fireball-secondary.active { 
    display: block; 
}

.overlay { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    text-align: center; 
    z-index: 110; 
}

.btn-action { 
    padding: 20px 50px; 
    font-size: 2rem; 
    cursor: pointer; 
    background: #4CAF50; 
    color: #fff; 
    border: 5px solid #000; 
    border-radius: 12px; 
}

.death-message { 
    font-size: 5rem; 
    color: #911515; 
    text-shadow: 4px 4px 0 #000; 
    margin-bottom: 20px; 
    font-family: 'Arial Black', sans-serif; 
}

.hidden { 
    display: none; 
}