/* Isolated body-level pilot HUD. No global card or hologram rules. */
#orbit-fb-center.mhs-source {
  outline: 2px solid #f5d35a !important;
  box-shadow: 0 0 18px #00d9ff, 0 0 35px #edc74d !important;
}
.mhs-root {
  position: fixed;
  inset: 0;
  z-index: 2147483500;
  pointer-events: none;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #e7f8ff;
}
.mhs-root * { box-sizing: border-box; }
.mhs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 7, 20, .82);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: auto;
}
.mhs-root.mhs-open .mhs-backdrop { opacity: 1; }
.mhs-link {
  position: fixed;
  height: 3px;
  border-radius: 9px;
  background: linear-gradient(90deg, #ffdc61, #08dafa, #ffdc61);
  box-shadow: 0 0 12px #03dcff, 0 0 23px #e9c43c;
  transform-origin: left center;
  opacity: 0;
  transition: opacity 400ms ease;
}
.mhs-root.mhs-open .mhs-link { opacity: 1; }
.mhs-stage {
  position: fixed;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid #e7c454;
  border-radius: 18px;
  background: linear-gradient(145deg, #061d38 0%, #031223 55%, #071b31 100%);
  box-shadow: 0 0 0 1px #14d9f0, 0 0 35px #00d9ff99, 0 30px 80px #000b;
  opacity: .25;
  transform: scale(.94);
  transform-origin: center;
  transition: left 400ms cubic-bezier(.22,.8,.2,1), top 400ms cubic-bezier(.22,.8,.2,1), width 400ms cubic-bezier(.22,.8,.2,1), height 400ms cubic-bezier(.22,.8,.2,1), opacity 400ms ease, transform 400ms ease;
  pointer-events: auto;
}
.mhs-root.mhs-open .mhs-stage { opacity: 1; transform: scale(1); }
.mhs-header {
  position: sticky;
  top: 0;
  z-index: 1;
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 17px 26px;
  border-bottom: 1px solid #1387ab;
  background: linear-gradient(100deg, #082d4c, #04152b);
}
.mhs-title small, .mhs-kicker {
  color: #70e5fb;
  font-size: 12px;
  letter-spacing: .2em;
  font-weight: 800;
}
.mhs-title h1 {
  margin: 4px 0 0;
  color: #ffe275;
  font-size: clamp(22px, 2.5vw, 38px);
  letter-spacing: .12em;
}
.mhs-actions { display: flex; gap: 10px; }
.mhs-actions button, .mhs-item {
  cursor: pointer;
  border: 1px solid #3aa9d1;
  border-radius: 10px;
  color: #e9faff;
  background: #082a46;
}
.mhs-actions button {
  min-height: 45px;
  padding: 0 17px;
  font-size: 14px;
  font-weight: 800;
}
.mhs-actions button:hover:not(:disabled), .mhs-item:hover { border-color: #f7d65c; background: #123957; }
.mhs-actions button:disabled { opacity: .42; cursor: default; }
.mhs-status {
  flex: none;
  padding: 9px 26px;
  color: #80cfe4;
  border-bottom: 1px solid #164261;
  font-size: 12px;
  letter-spacing: .12em;
}
.mhs-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: clamp(14px, 2vw, 28px);
}
.mhs-panel {
  min-width: 0;
  margin: 0 0 18px;
  padding: clamp(15px, 2vw, 26px);
  border: 1px solid #257ba0;
  border-radius: 14px;
  background: linear-gradient(140deg, #092e4c, #061a31);
}
.mhs-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(20px, 2vw, 28px);
  color: #ffdd63;
  letter-spacing: .1em;
}
.mhs-hero .mhs-match { margin-top: 16px; }
.mhs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; }
.mhs-item { display: flex; align-items: center; width: 100%; margin: 0 0 10px; padding: 10px; text-align: left; }
.mhs-item .mhs-match { flex: 1; }
.mhs-number { padding: 0 14px 0 4px; color: #ffdc67; font-size: 19px; font-weight: 800; }
.mhs-match { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 12px; }
.mhs-team { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: clamp(16px,1.55vw,22px); }
.mhs-team:last-of-type { justify-content: flex-end; text-align: right; }
.mhs-team strong { overflow-wrap: anywhere; }
.mhs-grid > .mhs-panel:first-child .mhs-team { font-size: 16px; }
.mhs-team img, .mhs-badge-fallback { display: block; width: 54px; height: 54px; flex: none; object-fit: contain; }
.mhs-badge-fallback { display: grid; place-items: center; font-size: 28px; color: #63daf4; }
.mhs-score { white-space: nowrap; color: #ffda55; font-size: clamp(24px,2.6vw,38px); }
.mhs-match-meta { grid-column: 1 / -1; color: #93cce2; font-size: 14px; }
.mhs-match-compact .mhs-team { font-size: 16px; }
.mhs-match-compact .mhs-team img, .mhs-match-compact .mhs-badge-fallback { width: 34px; height: 34px; }
.mhs-match-compact .mhs-score { font-size: 20px; }
.mhs-detail { max-width: 1100px; margin: 0 auto; }
.mhs-detail .mhs-match { margin: 26px 0; }
.mhs-fact { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #236080; font-size: 18px; }
.mhs-fact b { color: #ffdd63; }
@media (max-width: 800px) {
  .mhs-grid { grid-template-columns: 1fr; }
  .mhs-header { padding: 12px; }
  .mhs-actions button { min-height: 40px; padding: 0 9px; font-size: 12px; }
  .mhs-status { padding: 8px 12px; }
  .mhs-body { padding: 10px; }
  .mhs-team { font-size: 14px; gap: 4px; }
  .mhs-team img, .mhs-badge-fallback { width: 32px; height: 32px; }
  .mhs-score { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .mhs-root * { transition-duration: 0ms !important; }
}
