@font-face {
  font-family: system-ui;
}

.hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  font-family: system-ui, -apple-system, sans-serif;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.hud-barres {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 220px;
}

.hud-barra { margin-bottom: 8px; }
.hud-label { font-size: 12px; opacity: 0.85; }
.hud-fons {
  background: rgba(0,0,0,0.45);
  border-radius: 6px;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
}
.hud-omplert { height: 100%; transition: width 0.15s linear; }
.hud-omplert.resist { background: linear-gradient(90deg, #4caf50, #8bc34a); width: 100%; }
.hud-omplert.oxi { background: linear-gradient(90deg, #2196f3, #64b5f6); width: 100%; }

.hud-stats {
  position: absolute;
  top: 14px;
  right: 14px;
  text-align: right;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-panell {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0,0,0,0.72);
  pointer-events: all;
}
.hud-panell h2 { margin: 0; font-size: 28px; }
.hud-panell button {
  padding: 12px 28px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: #ff8a3d;
  color: #1a1200;
  font-weight: bold;
}

.joystick-base {
  position: fixed;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.35);
  opacity: 0.5;
  transition: opacity 0.15s;
  pointer-events: none;
}
.joystick-stick {
  position: absolute;
  left: 30px;
  top: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
}
