@import url('style_overlays.css');

body {
  margin: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #1e272e 0%, #2f3542 50%, #57606f 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
  user-select: none;
}

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* HUD Styling */
#hud {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.hud-box {
  background: rgba(30, 39, 46, 0.85);
  border: 2px solid rgba(255, 107, 107, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

.hud-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ff6b6b;
  margin-bottom: 2px;
  font-weight: 800;
}

.hud-val {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-family: monospace;
}

#heart-container {
  border-color: rgba(255, 71, 87, 0.5);
  min-width: 150px;
}

#hearts {
  display: flex;
  gap: 8px;
  font-size: 20px;
  margin-top: 4px;
  animation: beat 1.5s infinite alternate;
}

@keyframes beat {
  from { transform: scale(0.95); }
  to { transform: scale(1.05); }
}

.heart {
  opacity: 0.2;
  transition: opacity 0.3s, transform 0.3s;
}

.heart.active {
  opacity: 1;
  text-shadow: 0 0 10px #ff4757;
}
