@font-face {
  font-family: Minecraft;
  src: url('./assets/Minecraft.ttf');
}

* { box-sizing: border-box; }

.game-wrapper { width: 100%; max-width: 900px; }

.hud {
  color: #fff;
  font-family: Minecraft;
  font-size: clamp(18px, 4vw, 32px);
  margin-bottom: 10px;
}

.game-area {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: url('./assets/sky2.png') repeat-x;
  background-size: cover;
  overflow: hidden;
}

/* PLAYER */
.player {
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 18%;
  aspect-ratio: 16 / 9;
  background: url('./assets/dino.gif') no-repeat center / contain;
}

/* COIN */
.coin {
  position: absolute;
  width: 4%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff7b2, #f5b800);
  box-shadow: 0 0 10px rgba(255,200,0,0.8);
}

/* FIREBALL */
.fire {
  position: absolute;
  width: 22px;
  height: 10px;
  background: linear-gradient(to right, yellow, orange, red);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255,80,0,0.9);
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-family: Minecraft;
}
