/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Press Start 2P', cursive;
}

/* MENU */
.menu {
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at top, #da1eff, #87ceeb);
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-box {
    text-align: center;
    background: rgba(0,0,0,0.6);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 0 40px #000;
    border: 4px solid #ffffff;
    animation: pulse 1.5s infinite alternate;
}

.menu-box h1 {
    color: #ffeb3b;
    font-size: 3rem;
    text-shadow: 3px 3px 0 #000, -2px -2px 0 #f00;
    margin-bottom: 50px;
}

.menu-box button {
    background: linear-gradient(to right, #ffdf2bc2, #ff416c);
    color: #ffffffab;
    font-size: 1.5rem;
    padding: 20px 60px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.menu-box button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.menu-box .author {
    margin-top: 30px;
    color: #ffffff;
    font-size: 0.9rem;
    text-shadow: 1px 1px 0 #000;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ESCONDER ELEMENTOS */
.hidden { display: none; }

/* GAME BOARD PADRÃO */
.game-board {
    width: 100%;
    height: 600px;
    border-bottom: 15px solid rgb(35, 160, 35);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: linear-gradient(#87CEEB, #E0F6ff);
}

/* GAME BOARD FULLSCREEN GAME OVER */
.game-board.game-over-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; 
    height: 100vh; 
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    border-bottom: none;
    overflow: hidden;
}

/* PERSONAGEM */
.menininha {
    width: 150px;
    position: absolute;
    bottom: 0;
    left: 50px;
    z-index: 5;
}
.jump {
    animation: jump 0.5s ease-out;
}

/* OBSTÁCULO */
.pipe {
    position: absolute;
    bottom: 0;
    width: 70px;
    right: 0;
    animation: pipe-animation 2s infinite linear;
    z-index: 4;
}

/* ANIMAÇÕES */
@keyframes pipe-animation {
    from { right: 0; }
    to { right: 100%; }
}

@keyframes jump {
    0% { bottom: 0; }
    40% { bottom: 180px; }
    50% { bottom: 180px; }
    60% { bottom: 180px; }
    70% { bottom: 180px; }
    80% { bottom: 170px; }
    100% { bottom: 0; }
}

/* GAME OVER */
.game-over {
    max-width: 80vw;
    max-height: 80vh;
    height: auto;
    display: none;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    z-index: 60;
    position: relative;
}

.game-over.active { display: block; }