#dino-game.hidden {
  display: none;
}

#dino-container {
  position: fixed;
  bottom: 40px;
  left: 50%;
  top: 400px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: #f7f7f7;
  border: 2px solid #333;
  overflow: hidden;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: flex-end;
}

#dino, #obstaculo {
  position: absolute;
  bottom: 0;
}

#dino img, #obstaculo img {
  height: 60px;
  width: auto;
  user-select: none;
  pointer-events: none;
}

#obstaculo {
  right: -60px;
  animation: move-obstaculo 2s linear infinite;
}

@keyframes move-obstaculo {
  0% { right: -60px; }
  100% { right: 100%; }
}

.jump {
  animation: jump 0.5s ease-out;
}

@keyframes jump {
  0% { bottom: 0; }
  50% { bottom: 80px; }
  100% { bottom: 0; }
}

#score {
  position: absolute;
  top: 5px;
  right: 10px;
  font-weight: bold;
  color: #333;
}
