* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    position: fixed;
    width: 100%;
    height: 100%;
}

#gameBox {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.game-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.7);
}

.game-screen.active {
    display: flex;
}

/* === GAME OVER === */
.game-over-card {
    background-color: #F5E6D3;
    border-radius: 40px;
    padding: 40px 60px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.game-over-badge {
    background-color: #E85D4A;
    color: white;
    font-size: 28px;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 30px;
    margin-bottom: 20px;
    display: inline-block;
}

.victory .game-over-badge {
    background-color: #4CAF50;
}

.score-label {
    color: #999;
    font-size: 24px;
    font-weight: bold;
    margin: 15px 0 10px 0;
    text-transform: uppercase;
}

.score-value {
    background-color: #D4C4B0;
    color: #666;
    font-size: 48px;
    font-weight: bold;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.defeat-image {
    width: 180px;
    height: 180px;
    margin: 20px auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.stats {
    font-size: 20px;
    margin: 20px 0;
    color: #888;
    font-weight: bold;
}

.replay-button {
    background-color: #4CAF50;
    color: white;
    font-size: 22px;
    font-weight: bold;
    padding: 15px 50px;
    border-radius: 25px;
    margin-top: 20px;
    cursor: pointer;
    display: inline-block;
    text-transform: uppercase;
    transition: transform 0.2s;
    border: none;
}

.replay-button:hover,
.replay-button:active {
    transform: scale(1.05);
    background-color: #45a049;
}

#gameLogo {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: auto;
    z-index: 60;
    pointer-events: none;
}

#gameHUD {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 50;
    font-weight: bold;
    font-size: 22px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#gameHUD div {
    margin-bottom: 8px;
}

/* === CONTRÔLES MOBILES === */
#mobileControls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 15px;
    z-index: 70;
    touch-action: none;
}

.control-btn {
    width: 80px;
    height: 80px;
    cursor: pointer;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    object-fit: contain;
    transition: transform 0.1s;
}

.control-btn.jump {
    width: 120px;
    height: 80px;
}

.control-btn:active {
    transform: scale(0.9);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    #gameHUD {
        font-size: 18px;
        top: 15px;
        left: 15px;
    }

    #gameLogo {
        width: 150px;
        top: 15px;
    }

    .game-over-card {
        padding: 30px 40px;
        max-width: 90%;
    }

    .score-value {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    #gameHUD {
        font-size: 16px;
    }

    #gameLogo {
        width: 120px;
    }

    .control-btn {
        width: 70px;
        height: 70px;
    }

    .control-btn.jump {
        width: 110px;
        height: 70px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    #mobileControls {
        bottom: 15px;
        gap: 10px;
    }

    .control-btn {
        width: 60px;
        height: 60px;
    }

    .control-btn.jump {
        width: 100px;
        height: 60px;
    }
}