html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: linear-gradient(#87CEEB, #E0F6FF);
}
.scoreboard {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 32px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.3rem;
    background: rgba(255,255,255,0.85);
    color: #222;
    padding: 6px 18px;
    border: 2px solid #222;
    border-radius: 8px;
    z-index: 20;
    user-select: none;
}
.restart-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 32px;
    font-size: 1.5rem;
    font-family: 'Consolas', 'Courier New', monospace;
    background: #f7f7f7;
    color: #222;
    border: 2px solid #222;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    z-index: 10;
    letter-spacing: 1px;
    text-shadow: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.restart-btn:hover {
    background: #e0e0e0;
    color: #000;
    border: 2px solid #000;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

.game-board {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-bottom: 15px solid rgb(35, 160, 35);
    margin: 0;
    position: relative;
    overflow: hidden;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.pipe {
    position: absolute;
    bottom: 0;
    width: 8vw;
    min-width: 60px;
    max-width: 120px;
    animation: pipe-animation 1s infinite linear;
}

.mario {
    height: 10vw;
    min-height: 65px;
    max-height: 120px;
    width: auto;
    object-fit: contain;
    object-position: bottom;
    position: absolute;
    left: 2vw;
    bottom: 0;
    /* transition removido para evitar animação ao morrer */
}

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

.clouds {
    position: absolute;
    width: 300px;
    min-width: 300px;
    max-width: 700px;
    animation: clouds-animation 5s infinite linear;    
}

@keyframes jump {
    0% {
        bottom: 0;
    }
    40% {
        bottom: 180px;
    }
    50% {
        bottom: 180px;
    }
    60% {
        bottom: 180px;
    }
    100% {
        bottom: 0;
    }
}

@keyframes pipe-animation {
    
    from {
        right: -80px;
    }

    to {
        right: 100%;
    }
}

@keyframes clouds-animation {
    
    from {
        right: -550px;
    }

    to {
        right: 100%;
    }
}