/* Slice 7.15I — desktop HUD parity with the validated phone layout. */
@media (pointer:fine) and (min-width:901px) {
  #hud {
    --dt-left: max(30px, 2.5vw);
    --dt-right: max(34px, 2.5vw);
    --dt-top: 18px;
  }

  /* Phone hierarchy: radar owns upper-left. Remove the legacy left data stack. */
  #hud .top-left.panel {
    display: none !important;
  }

  /* Phone has no cockpit frame clutter or lower-right systems slab. */
  #hud .cockpit,
  #hud .weapons-panel {
    display: none !important;
  }

  /* Wide, high compass with the current heading emphasized in the center. */
  #hud .heading-compass {
    top: 8px !important;
    width: min(56vw, 800px) !important;
    opacity: .82;
  }
  #hud .compass-window {
    width: 100% !important;
    height: 42px !important;
    background: linear-gradient(
      90deg,
      rgba(0,0,0,.28),
      rgba(0,24,12,.12) 18%,
      rgba(0,24,12,.12) 82%,
      rgba(0,0,0,.28)
    ) !important;
    border-top-color: rgba(110,255,135,.38) !important;
    border-bottom-color: rgba(110,255,135,.22) !important;
  }
  #hud .compass-tape span {
    padding-top: 12px !important;
    font-size: 11px !important;
  }
  #hud .compass-tape span.cardinal {
    padding-top: 10px !important;
    font-size: 14px !important;
  }
  #hud .compass-readout {
    margin-top: 0 !important;
    font-size: 12px !important;
    opacity: .82;
  }

  /* Phone-style radar cluster. */
  #hud .radar-wrap {
    top: 34px !important;
    left: var(--dt-left) !important;
    bottom: auto !important;
    width: 154px !important;
    transform: none !important;
  }
  #hud .radar {
    width: 138px !important;
    height: 138px !important;
  }
  #hud .radar-label,
  #hud .radar-legend {
    display: none !important;
  }
  #hud .radar-curved-legend {
    position: absolute;
    z-index: 15;
    overflow: visible;
    pointer-events: none;
    filter: drop-shadow(0 0 3px rgba(72,255,135,.26));
  }
  #hud .radar-curved-legend-outer-ring,
  #hud .radar-curved-legend-inner-ring {
    fill: none;
    stroke: rgba(114,255,140,.44);
  }
  #hud .radar-curved-legend-outer-ring { stroke-width: .95; }
  #hud .radar-curved-legend-inner-ring { stroke-width: .7; opacity: .82; }
  #hud .radar-curved-key {
    font-family: "Courier New", monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .8px;
    stroke: none;
    paint-order: normal;
    opacity: .98;
  }
  #hud .radar-key-hostile { fill:#ff5a5a; }
  #hud .radar-key-human { fill:#40dfff; }
  #hud .radar-key-cache { fill:#ffd45a; }
  #hud .radar-key-context {
    fill:#39dfff;
    font-size:10px;
    letter-spacing:.7px;
    opacity:0;
  }
  #hud .radar-context-active .radar-key-context { opacity:.98; }

  /* Compact awareness stack, matching the phone's information hierarchy. */
  #hud .top-right.panel {
    top: var(--dt-top) !important;
    right: var(--dt-right) !important;
    font-size: 13px !important;
    line-height: 1.48 !important;
    letter-spacing: .08em !important;
    min-width: 235px;
  }
  #hud .top-right .hud-score-row {
    margin-bottom: 10px !important;
    font-size: clamp(17px,1.45vw,24px) !important;
  }
  #hud .top-right [data-desktop-awareness="velocity"] {
    display: block;
  }

  /* Same clean bottom-center identity stack as phone, scaled for desktop. */
  #hud .bottom-center.status {
    left: 50% !important;
    bottom: 14px !important;
    width: min(520px, 44vw) !important;
    transform: translateX(-50%) !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    letter-spacing: .16em !important;
    z-index: 10;
  }
  #hud .bottom-center.status .upgrade-status {
    margin-top: 1px !important;
    font-size: 10px !important;
  }
  #hud .desktop-brand-sector-row {
    display:flex;
    justify-content:center;
    align-items:baseline;
    gap:46px;
    margin-top:2px;
    white-space:nowrap;
  }
  #hud .desktop-brand-sector-row .brand,
  #hud .desktop-brand-sector-row .sector-name {
    position:static !important;
    inset:auto !important;
    transform:none !important;
    margin:0 !important;
    padding:0 !important;
    font-size:12px !important;
    line-height:1.2 !important;
    letter-spacing:.34em !important;
  }
  #hud .desktop-brand-sector-row .sector-name {
    color:#59d8ff;
    opacity:.94;
  }

  /* Touch UI must stay absent on desktop. */
  #hud .touch-btn,
  #hud .stick,
  #hud .touch-settings,
  #hud .touch-settings-panel {
    display:none !important;
  }

  /* Preserve a clean center aiming lane. */
  #hud .reticle { top:47.5% !important; }
}
