.health-hud {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 78px);
  right: 22px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 142px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  background: rgba(6, 14, 20, 0.68);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.health-track {
  position: relative;
  width: 84px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.health-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #bd5555;
  transition: width 150ms ease-out;
}

.health-text {
  min-width: 42px;
  color: rgba(248, 245, 238, 0.92);
  font-size: 10px;
  font-weight: 720;
  text-align: right;
  white-space: nowrap;
}

.speed-hud {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 118px);
  right: 22px;
  z-index: 9;
  min-width: 142px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(6, 14, 20, 0.60);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.13);
  backdrop-filter: blur(8px);
  color: rgba(248, 245, 238, 0.88);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
}

.death-notice {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 12;
  width: min(360px, calc(100vw - 36px));
  transform: translate(-50%, -50%);
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(5, 12, 18, 0.78);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  color: #f4f0e8;
  text-align: center;
  pointer-events: none;
}

.death-notice strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.death-notice span {
  color: rgba(244, 240, 232, 0.68);
  font-size: 12px;
}

@media (max-width: 760px) {
  .health-hud {
    top: calc(env(safe-area-inset-top, 0px) + 70px);
    right: 12px;
    min-width: 122px;
    height: 30px;
    padding-inline: 8px;
  }

  .health-track {
    width: 66px;
  }

  .health-text {
    min-width: 36px;
    font-size: 9px;
  }

  .speed-hud {
    top: calc(env(safe-area-inset-top, 0px) + 105px);
    right: 12px;
    min-width: 122px;
    height: 26px;
    padding-inline: 8px;
    font-size: 9px;
  }
}
