body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #ffffff, #f5faff);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.game-wrapper {
  width: 360px;
  background: #fff;
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
  text-align: center;
}

.score {
  font-weight: 600;
  margin-bottom: 10px;
}

.game {
  position: relative;
  width: 100%;
  height: 200px;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
}

/* PLAYER */
#player {
  position: absolute;
  bottom: 20px;
  left: 40px;
  width: 28px;
  height: 28px;
  background: #2ecc71;
}

/* JUMP */
.jump {
  animation: jump 450ms ease-out;
}

@keyframes jump {
  0% { bottom: 20px; }
  50% { bottom: 100px; }
  100% { bottom: 20px; }
}

/* OBSTACLE */
#obstacle {
  position: absolute;
  bottom: 20px;
  right: -30px;
  width: 24px;
  height: 24px;
  background: #e74c3c;
  animation: obstacle 1.6s linear infinite;
}

@keyframes obstacle {
  0% { right: -30px; }
  100% { right: 100%; }
}

.hint {
  margin-top: 12px;
  font-size: .85rem;
  color: #666;
}
