/* Combat vitals stay on opposite sides, clear of the arena and touch controls. */
.combat-health {
  position: absolute;
  top: max(84px, calc(env(safe-area-inset-top) + 64px));
  width: clamp(120px, 16vw, 190px);
  padding: 0;
  background: none;
  border: 0;
  pointer-events: none;
}
.combat-self {
  left: max(18px, env(safe-area-inset-left));
}
.combat-opponent {
  right: max(18px, env(safe-area-inset-right));
}
.combat-heading {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}
.combat-heading span,
.combat-health label,
.combat-health small,
.combat-health .component-status {
  display: none;
}
.combat-heading strong {
  font-size: 13px;
  line-height: 1.2;
  text-shadow: 0 1px 3px #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.combat-health progress {
  display: block;
  width: 100%;
  height: 6px;
}
.combat-health progress::-webkit-progress-value {
  background: #62d66c;
}
.combat-health progress::-moz-progress-bar {
  background: #62d66c;
}
body .match #trainingBanner {
  top: 60px;
  max-width: 90%;
  white-space: normal;
  text-align: center;
}
body .match .match-bottom .hud-meter {
  width: clamp(140px, 25vw, 260px);
}
body .match .weapon-hud {
  width: auto;
  max-width: 430px;
}
@media (max-width: 700px), (max-height: 500px) {
  .combat-health {
    top: max(80px, calc(env(safe-area-inset-top) + 62px));
    width: min(34vw, 150px);
  }
  .combat-self {
    left: max(8px, env(safe-area-inset-left));
  }
  .combat-opponent {
    right: max(8px, env(safe-area-inset-right));
  }
  .combat-heading strong {
    font-size: 12px;
  }
  .combat-health progress {
    height: 5px;
  }
  body .match #trainingBanner {
    top: 50px;
    padding: 4px;
    font-size: 8px;
  }
  body .match .weapon-hud {
    max-width: 52%;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .combat-health {
    top: max(68px, calc(env(safe-area-inset-top) + 62px));
    width: min(28vw, 150px);
  }
  body .match #trainingBanner {
    display: none;
  }
}
