/* v3 mission HUD (step engine). transform/opacity only. */
.mission-hud {
  position: fixed;
  z-index: 45;
  top: calc(var(--header-h, 68px) + 8px);
  right: var(--s-3, 16px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.mission-hud.is-on .mh-bob { animation: mh-bob 5s ease-in-out infinite; }
@keyframes mh-bob { 50% { transform: translate3d(0, 3px, 0); } }
.mission-hud.is-on { opacity: 1; visibility: visible; transition: opacity 0.35s ease, visibility 0s; }
.mh-card {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  border-radius: 14px;
  background: rgba(10, 30, 34, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.74rem; letter-spacing: 0.08em; color: var(--cream, #fff);
  transform: translate3d(0, var(--mh-lag, 0px), 0);
  will-change: transform;
}
.mission-hud.is-pulse .mh-card { animation: mh-pulse 0.7s ease-out; }
@keyframes mh-pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 230, 224, 0.75), 0 8px 24px rgba(0, 0, 0, 0.35); }
  100% { box-shadow: 0 0 0 14px rgba(62, 230, 224, 0), 0 8px 24px rgba(0, 0, 0, 0.35); }
}
.mh-title { color: var(--cyan, #3ee6e0); }
.mh-pct { min-width: 3.4ch; text-align: right; font-weight: 500; }
.mh-track { display: flex; gap: 3px; }
.mh-track i { width: 14px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); transition: background 0.3s; }
.mh-track i.done { background: rgba(62, 230, 224, 0.55); }
.mh-track i.on { background: var(--cyan, #3ee6e0); box-shadow: 0 0 8px var(--cyan, #3ee6e0); }
.mh-stage { min-width: 7ch; color: var(--cyan, #3ee6e0); }
@media (max-width: 899px) {
  .mission-hud { top: calc(var(--header-h, 68px) - 2px); left: 0; right: 0; }
  .mh-card {
    width: 100%; justify-content: space-between; gap: 8px;
    padding: 5px var(--s-3, 16px); border-radius: 0; border-width: 1px 0;
    font-size: 0.68rem;
  }
  .mh-track i { width: 10px; }
  .mh-stage { min-width: 6.5ch; text-align: right; }
}
html.fx-off .mission-hud, html.fx-off .mh-card { transition: none; }
html.fx-off .mh-bob { animation: none !important; }
html.fx-off .mission-hud.is-pulse .mh-card { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .mission-hud, .mh-card { transition: none; }
  .mh-bob { animation: none !important; }
  .mission-hud.is-pulse .mh-card { animation: none; }
}
