/* Reset & Layout */
body {
  background: linear-gradient(120deg, #ffecd2, #fcb69f);
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.game {
  text-align: center;
}

#gameArea {
  position: relative;
  width: 600px;
  height: 200px;
  background: #fff;
  border: 2px solid #333;
  overflow: hidden;
  margin: 20px auto;
  border-radius: 10px;
}

/* Rooster */
#rooster {
  position: absolute;
  bottom: 0;
  left: 60px;
  font-size: 40px;
  transition: bottom 0.2s;
}

/* Rock */
#rock {
  position: absolute;
  bottom: 0;
  right: -50px;
  font-size: 35px;
  animation: moveRock 1.8s linear infinite;
}

/* Jump Animation */
.jump {
  animation: jump 0.5s ease-out;
}

@keyframes jump {
  0% { bottom: 0; }
  50% { bottom: 90px; }
  100% { bottom: 0; }
}

/* Rock Movement */
@keyframes moveRock {
  0% { right: -50px; }
  100% { right: 650px; }
}

h1 {
  color: #333;
}

#score {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}
