* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: system-ui, sans-serif;
  background: radial-gradient(circle at 50% 40%, #2d2038, #110c16 70%);
  color: #f4f4f8;
  user-select: none;
}

.hud {
  padding: 1rem;
}

.gold {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #ffd66b;
}

.arena {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-bottom: 2rem;
}

.enemy-title {
  margin: 0;
  font-size: 1.1rem;
  color: #c9c3d6;
}

.hp-bar {
  position: relative;
  width: min(280px, 80vw);
  height: 22px;
  border-radius: 999px;
  background: #3b2530;
  overflow: hidden;
}

.hp-fill {
  height: 100%;
  background: linear-gradient(#f05252, #b91c1c);
  transition: width 100ms ease-out;
}

.hp-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.enemy {
  padding: 0;
  border: none;
  background: none;
  font-size: 7rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.enemy:hover {
  filter: drop-shadow(0 0 16px rgba(240, 82, 82, 0.6));
}

.player {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
}

.player-sprite {
  font-size: 4rem;
  line-height: 1;
}

.player-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8f86a0;
}

.floating {
  position: fixed;
  pointer-events: none;
  font-size: 1.5rem;
  font-weight: 700;
  transform: translate(-50%, -50%);
  animation: float-up 700ms ease-out forwards;
}

.floating--damage {
  color: #f87171;
}

.floating--gold {
  font-size: 1.75rem;
  color: #ffd66b;
}

@keyframes float-up {
  to {
    opacity: 0;
    transform: translate(-50%, -150%);
  }
}
