* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  background: #0a0a14;
  color: #e5e7eb;
}

canvas {
  display: block;
}

#hud {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: rgba(7, 16, 31, 0.76);
  border: 1px solid rgba(94, 234, 212, 0.45);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 360px;
  backdrop-filter: blur(6px);
  background-image: url("../../assets/ui/adventure_ui/Vector/panel_grey_bolts_dark.svg");
  background-size: cover;
}

.title {
  font-weight: 700;
  margin-bottom: 10px;
  color: #ecfeff;
}

.hp-block {
  margin-bottom: 8px;
}

.hp-label {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #dbeafe;
  margin-bottom: 4px;
}

.hp-frame {
  height: 22px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(248, 113, 113, 0.7);
  box-shadow: inset 0 0 8px rgba(127, 29, 29, 0.65), 0 0 12px rgba(239, 68, 68, 0.35);
}

#hp-fill {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  transition: width 0.16s ease-out, filter 0.16s ease-out;
  background-image: url("../../assets/ui/adventure_ui/Vector/progress_red.svg");
  background-size: cover;
  background-position: center;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 6px;
}

.progress-wrap {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.82);
  overflow: hidden;
  margin: 8px 0;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

#progress-bar {
  width: 0%;
  height: 100%;
  background-image: url("../../assets/ui/adventure_ui/Vector/progress_blue.svg");
  background-size: cover;
  background-position: center;
  transition: width 0.2s linear;
}

.help {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  background: rgba(2, 6, 23, 0.78);
  z-index: 10;
  background-image: url("../../assets/ui/adventure_ui/Vector/pattern_diagonal_grey_large.svg");
  background-size: 240px;
}

.world-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

button {
  justify-self: center;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  background: #0e7490;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #0891b2;
}

.btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.hidden {
  display: none !important;
}
