/* --- ESTILOS GERAIS E LAYOUT --- */
body { font-family: Arial, sans-serif; margin: 0; display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color: #333; }
.game-wrapper { height: 98vh; max-height: 900px; width: calc(var(--wrapper-height, 98vh) * (9 / 16)); max-width: 95vw; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); border-radius: 20px; overflow: hidden; position: relative; background-color: white; --wrapper-height: 98vh; }
.container { padding: 40px; text-align: center; width: 100%; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.logo { max-width: 150px; margin-bottom: 20px; align-self: center; }
h1 { margin-bottom: 10px; color: #333; }
p { color: #666; margin-bottom: 30px; }

/* --- TELA DO JOGO --- */
#gameScreen { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
#game-container { position: relative; width: 100%; height: 100%; overflow: hidden; background-size: cover; background-position: center; background-repeat: no-repeat; }
#score { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-size: 24px; font-weight: bold; color: white; text-shadow: 2px 2px 4px #000; z-index: 10; }

/* --- ELEMENTOS DO JOGO --- */
#character { position: absolute; width: 40px; height: 40px; background-size: contain; background-repeat: no-repeat; left: 50%; transform: translateX(-50%); bottom: 50%; z-index: 5; }
.collectible { position: absolute; width: 80px; height: 80px; background-image: url('imgs/sprites/coin.png'); background-size: contain; background-repeat: no-repeat; z-index: 4; }
.obstacle-orbiter { position: absolute; top: 50%; left: 50%; width: 250px; height: 250px; }
.pizza-obstacle { position: absolute; width: 70px; height: 70px; background-image: url("imgs/sprites/bat-placeholder.png"); background-size: contain; background-repeat: no-repeat; }

/* --- ESTILOS DOS MENUS E BOTÕES --- */
#loginForm { display: flex; flex-direction: column; }
#nicknameInput { padding: 15px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; margin-bottom: 10px; }
#phoneInput { padding: 15px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; margin-bottom: 10px; }
.error-message { color: #f44336; font-size: 14px; min-height: 20px; margin-bottom: 0; margin-top: -5px; }
#playButton, .menu-button { display: block; width: 100%; padding: 15px; margin-top: 15px; border: none; border-radius: 8px; background-color: #4CAF50; color: white; font-size: 18px; cursor: pointer; transition: background-color 0.2s; }
#playButton:disabled { background-color: #cccccc; cursor: not-allowed; opacity: 0.7; }
.menu-button:hover { background-color: #45a049; }
.back-button, #playAgainButton { background-color: #888; }
.back-button:hover, #playAgainButton:hover { background-color: #777; }
#showRankingButton { background-color: #2196F3; }
#showRankingButton:hover { background-color: #1e88e5; }

/* --- NOVO ESTILO PARA O BOTÃO DE INÍCIO COM PULSE --- */
#startGameButton {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 80%;
    padding: 20px;
    font-size: 20px;
    animation: button-pulse 1.5s ease-in-out infinite; /* Adicionada a animação */
}

/* --- TELA DE RANKING --- */
#rankingList { list-style: none; padding: 0; margin: 20px 0; width: 100%; text-align: left; }
#rankingList li { display: flex; justify-content: space-between; padding: 12px 5px; border-bottom: 1px solid #eee; font-size: 16px; }
#rankingList li:last-child { border-bottom: none; }
#rankingList li span:first-child { font-weight: bold; }
#playerRankDisplay { margin-top: 25px; padding-top: 15px; border-top: 2px solid #eee; font-size: 18px; font-weight: bold; color: #333; }

/* --- ANIMAÇÕES --- */
@keyframes continuous-rotation { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes smoke-puff { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.5) translateY(40px); opacity: 0; } }
@keyframes button-pulse { /* Nova animação para o botão */
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); }
}

/* --- CLASSE UTILITÁRIA --- */
.hidden { display: none !important; }