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

body {
  background-color: #10131c;
  color: white;
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 30px 15px;
}

h1 {
  margin-bottom: 25px;
  color: #55d6ff;
}

.game-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.game-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 18px;
}

#game-area {
  width: 100%;
  height: 400px;
  background-color: #202638;
  border: 2px solid #55d6ff;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

#player {
  width: 30px;
  height: 30px;
  background-color: #55d6ff;
  border-radius: 6px;
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translate(-50%);
}

#start-button {
  margin-top: 20px;
  padding: 12px 28px;
  background-color: #55d6ff;
  color: #10131c;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

.obstacle {
  width: 30px;
  height: 60px;
  background-color: red;
  border-radius: 5px;
  position: absolute;
  top: -70px;
  left: 100px;
}

.game-over {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: #10131cf3;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 15px;
  display: flex;
}

.esconder {
  display: none;
}



.controles-mobile {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  margin: 60px auto;
  width: 90%;
}

.controles-mobile button {
  width: 75px;
  height: 60px;
  font-size: 28px;
  border: none;
  border-radius: 12px;
  background: #222;
  color: white;
  cursor: pointer;
  touch-action: manipulation;
}

.controles-mobile button:active {
  background: #555;
  transform: scale(0.95);
}

.jogo-finalizado {
  display: none;
}


