/* Visor telemetry follows the helmet edge; the deployment console remains a
   solid, clickable command surface. Focus-entry motion is owned by main.js. */
#mobahud {
  --battle-orange: #ff5a32;
  --battle-cyan: #65e4e3;
  --battle-descent: 10px;
  position: fixed;
  top: 76px;
  right: 24px;
  z-index: 6;
  width: 370px;
  box-sizing: border-box;
  padding: 14px 23px 13px 12px;
  color: #c4d8d5;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
  font: 400 11px/1.3 "Share Tech Mono", ui-monospace, monospace;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px #031114, 0 0 5px #031114;
  pointer-events: none;
}
#mobahud::before {
  content: "";
  position: absolute;
  inset: -15px -11px -19px -28px;
  z-index: -2;
  /* A soft visor tint has no enclosing edge. It keeps the smaller data legible
     over the bright city without turning the instruments back into a card. */
  background: linear-gradient(100deg, transparent, rgba(3, 17, 21, .72) 28%, rgba(3, 17, 21, .82) 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 78%, transparent);
}
#mobahud::after {
  content: "";
  position: absolute;
  inset: -12px -5px -14px -9px;
  z-index: -1;
  /* The crown rolls into the right edge, with no lower return enclosing a card.
     The outward sweep compensates for the instrument's desktop viewing angle. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 290' preserveAspectRatio='none'%3E%3Cpath d='M4 8 C132 8 265 8 342 22 C360 32 361 80 374 162 L391 278' fill='none' stroke='%230d3338' stroke-opacity='.65' stroke-width='10'/%3E%3Cpath d='M4 8 C132 8 265 8 342 22 C360 32 361 80 374 162 L391 278' fill='none' stroke='%2365e4e3' stroke-opacity='.6' stroke-width='1'/%3E%3Cpath d='M4 8 C132 8 265 8 342 22 C353 28 356 45 359 62' fill='none' stroke='%23ff693c' stroke-opacity='.85' stroke-width='1.5'/%3E%3Cpath d='M355 75 C363 128 370 204 381 267' fill='none' stroke='%2365e4e3' stroke-opacity='.35' stroke-width='1' stroke-dasharray='1 8'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
body.paused #mobahud, body.paused #mobamarks, body.paused #mobasky,
body.paused #mobatel, body.paused #mobalaser-source { visibility: hidden; }
body.freecam #mobahud, body.freecam #mobamarks, body.freecam #mobasky,
body.freecam #mobatel, body.freecam #mobadeploy, body.freecam #mobalaser-source { display: none !important; }
#mobahud .battle-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--battle-orange);
  white-space: nowrap;
  transform: none;
  transform-origin: right center;
}
#mobahud .battle-title-code {
  padding: 3px 5px 2px 0;
  border: 0;
  border-right: 1px solid rgba(255, 90, 50, .4);
  font-size: 9px;
  letter-spacing: -.01em;
}
#mobahud .battle-title strong { font-size: 13px; font-weight: 400; letter-spacing: .09em; }
#mobahud .battle-link {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  margin-right: 18px;
  color: var(--battle-cyan);
  font-size: 8px;
  letter-spacing: .1em;
}
#mobahud .battle-link i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: battle-link-pulse 3s ease-in-out infinite;
}
#mobahud .battle-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px 0 9px;
  margin-bottom: 7px;
  border-bottom: 0;
}
#mobahud .battle-stat { display: flex; flex-direction: column; gap: 2px; }
#mobahud .battle-stat + .battle-stat { padding-left: 12px; }
#mobahud .battle-stat:nth-child(2) { translate: 0 3px; }
#mobahud .battle-stat:nth-child(3) { translate: 0 7px; }
#mobahud .battle-stat-label { color: #89a1a2; font-size: 8px; letter-spacing: .08em; }
#mobahud .battle-stat strong { font-size: 17px; font-weight: 400; line-height: 1; }
#mobahud .battle-friendly { color: #59c9ed; }
#mobahud .battle-hostile { color: #ff775d; }
#mobahud .battle-reinforce { color: var(--battle-cyan); }
#mobahud .battle-legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 1px 5px;
  color: #7e999a;
  font-size: 8px;
  letter-spacing: .04em;
}
#mobahud .battle-legend i { font-style: normal; }
#mobahud .battle-lane {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 43px;
  box-sizing: border-box;
  margin-bottom: 5px;
  padding: 6px 8px 6px 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
#mobahud .battle-lane.is-current {
  background: none;
  box-shadow: none;
}
#mobahud .battle-lane + .battle-lane { margin-left: 4px; }
#mobahud .battle-lane + .battle-lane + .battle-lane { margin-left: 9px; }
#mobahud .battle-lane::before {
  content: "";
  position: absolute;
  inset: auto 1px 0 0;
  height: 17px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 330 22' preserveAspectRatio='none'%3E%3Cpath d='M2 2 Q165 3 328 20' fill='none' stroke='%2365e4e3' stroke-opacity='.28' stroke-width='1'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .6;
}
#mobahud .battle-lane.is-current::before { opacity: 1; filter: drop-shadow(0 0 3px rgba(101, 228, 227, .22)); }
#mobahud .battle-lane::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 13px;
  right: 1px;
  top: 10px;
  translate: 0 var(--battle-descent);
  border-radius: 50%;
  background: var(--battle-cyan);
  opacity: .2;
  transform: scaleY(.45);
  transition: transform .3s ease, opacity .3s ease;
}
#mobahud .battle-lane.is-current::after { opacity: 1; transform: scaleY(1); }
#mobahud .battle-channel {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 31px;
  border-radius: 50%;
  color: var(--battle-orange);
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.08em;
  transition: color .25s ease, background-color .25s ease;
}
#mobahud .is-current .battle-channel {
  color: #ff9a72;
  background: radial-gradient(ellipse at 25% 50%, rgba(255, 90, 50, .22), transparent 72%);
  text-shadow: 0 0 9px rgba(255, 90, 50, .55);
}
#mobahud .battle-lane-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
#mobahud .battle-front { display: flex; align-items: center; gap: 6px; }
#mobahud .battle-count { min-width: 21px; font-size: 12px; line-height: 1; text-align: center; }
#mobahud .battle-capture { display: flex; flex: 1; gap: 3px; }
#mobahud .battle-cell {
  flex: 1;
  height: 9px;
  min-width: 0;
  border: 1px solid rgba(120, 141, 146, .4);
  border-radius: 2px;
  transform: translateY(var(--capture-rise, 0px)) rotate(var(--capture-tilt, 0deg)) skewX(-8deg);
  transition: background-color .18s linear, border-color .18s linear;
}
#mobahud .battle-cell:nth-child(1) { --capture-rise: 0px; --capture-tilt: 0deg; }
#mobahud .battle-cell:nth-child(2) { --capture-rise: calc(var(--battle-descent) * .03); --capture-tilt: 1deg; }
#mobahud .battle-cell:nth-child(3) { --capture-rise: calc(var(--battle-descent) * .1); --capture-tilt: 2deg; }
#mobahud .battle-cell:nth-child(4) { --capture-rise: calc(var(--battle-descent) * .21); --capture-tilt: 3deg; }
#mobahud .battle-cell:nth-child(5) { --capture-rise: calc(var(--battle-descent) * .36); --capture-tilt: 4deg; }
#mobahud .battle-cell:nth-child(6) { --capture-rise: calc(var(--battle-descent) * .55); --capture-tilt: 6deg; }
#mobahud .battle-cell:nth-child(7) { --capture-rise: calc(var(--battle-descent) * .78); --capture-tilt: 8deg; }
#mobahud .battle-cell:nth-child(8) { --capture-rise: var(--battle-descent); --capture-tilt: 10deg; }
#mobahud .battle-count:last-child { translate: 0 var(--battle-descent); }
#mobahud .battle-doctrine { translate: 0 calc(var(--battle-descent) * .65); }
#mobahud .battle-lane-detail { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
#mobahud .battle-composition { display: inline-flex; gap: 10px; font-size: 9px; line-height: 1; }
#mobahud .battle-type { display: inline-flex; align-items: center; gap: 2px; }
#mobahud .battle-type-glyph { margin-right: 1px; color: #a6bfba; }
#mobahud .battle-separator { color: #748c89; opacity: .65; }
#mobahud .battle-doctrine {
  min-width: 51px;
  padding-left: 5px;
  border-left: 0;
  color: var(--battle-cyan);
  font-size: 8px;
  letter-spacing: .05em;
  text-align: right;
}
#mobahud .battle-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 5px;
  padding-right: 16px;
  color: #819b99;
  font-size: 8px;
  line-height: 10px;
  letter-spacing: .07em;
}
#mobahud .battle-hazard {
  width: 33px;
  height: 7px;
  background: repeating-linear-gradient(125deg, transparent 0 3px, var(--battle-orange) 3px 6px);
  opacity: .75;
}
#mobahud .battle-barcode {
  width: 32px;
  height: 8px;
  margin-left: auto;
  background: repeating-linear-gradient(90deg, #74a9a5 0 1px, transparent 1px 3px, #74a9a5 3px 5px, transparent 5px 8px);
  opacity: .55;
}
#mobahud .battle-result { padding: 14px 0 7px; font-size: 13px; letter-spacing: .06em; }
#mobahud.battle-resolved > :not(.battle-title):not(.battle-result) { display: none; }
.battle-alert {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  max-width: calc(100vw - 36px);
  box-sizing: border-box;
  padding: 8px 17px 7px;
  color: #ff8d66;
  background: linear-gradient(90deg, transparent, rgba(22, 19, 17, .87) 16%, rgba(22, 19, 17, .87) 84%, transparent);
  border: 0;
  border-bottom: 1px solid rgba(255, 90, 50, .6);
  border-radius: 50% / 15%;
  font: 400 13px/1.35 "Share Tech Mono", ui-monospace, monospace;
  text-align: center;
  letter-spacing: .13em;
  pointer-events: none;
  animation: battle-alert-in .2s ease-out;
}
.battle-alert::before { content: "!"; margin-right: 12px; font-weight: 700; color: #ff5a32; }
#mobasky { top: 17%; z-index: 9; font-variant-numeric: tabular-nums; }
#mobasky::before { display: none; }
#mobasky .laser-alert-title { font-weight: 400; }
#mobasky .laser-alert-detail, #mobasky .laser-alert-meter { display: none; }
#mobasky[data-hot="true"] {
  min-width: min(290px, calc(100vw - 36px));
  padding: 10px 20px 12px;
  color: #ffd7c9;
  background: linear-gradient(90deg, rgba(37, 19, 16, .85), rgba(61, 24, 16, .96), rgba(37, 19, 16, .85));
  border-color: #ff8057;
  border-radius: 2px 2px 18% 18% / 2px 2px 12% 12%;
  text-shadow: 0 1px 3px #140805;
}
#mobasky[data-hot="true"] .laser-alert-title { display: block; font-size: 16px; letter-spacing: .16em; }
#mobasky[data-hot="true"] .laser-alert-title::before { content: "!"; color: #ff895c; margin-right: 10px; }
#mobasky[data-hot="true"] .laser-alert-detail { display: block; margin-top: 4px; color: #ffb58e; font-size: 10px; letter-spacing: .09em; }
#mobasky[data-hot="true"] .laser-alert-meter {
  display: block;
  height: 2px;
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  background: rgba(255, 145, 97, .18);
}
#mobasky .laser-alert-meter::after {
  content: "";
  display: block;
  height: 100%;
  background: #ff9a67;
  transform: scaleX(var(--laser-progress, 0));
  transform-origin: left;
}
#mobasky[data-firing="true"] { border-color: #ff583c; background: rgba(77, 22, 14, .96); }
#mobasky[data-firing="true"] .laser-alert-detail { color: #fff0da; }

/* Above the visor's other telemetry, below menus. The label never blinks or
   rotates: only the small reticle/arrow pulses with the prefire world sight. */
#mobalaser-source {
  position: fixed;
  z-index: 10;
  width: 0;
  height: 0;
  color: #ffb275;
  font: 400 10px/1.4 "Share Tech Mono", ui-monospace, monospace;
  letter-spacing: .06em;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px #120706);
}
.laser-source-reticle {
  position: absolute;
  left: 0;
  top: 0;
  width: 23px;
  height: 23px;
  border: 2px solid currentColor;
  box-sizing: border-box;
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(70, 26, 12, .17);
  box-shadow: 0 0 9px rgba(255, 138, 74, .35);
}
.laser-source-reticle::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  left: 8px;
  top: 8px;
  background: currentColor;
}
.laser-source-arrow {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 23px;
  height: 25px;
  transform: translate(-50%, -50%) rotate(var(--laser-bearing));
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 27% 50%);
}
.laser-source-label {
  position: absolute;
  top: 0;
  left: 23px;
  width: max-content;
  max-width: min(178px, calc(50vw - 32px));
  box-sizing: border-box;
  padding: 5px 7px;
  border-left: 2px solid currentColor;
  background: rgba(28, 18, 14, .91);
  transform: translateY(-50%);
}
.laser-source-label strong { display: block; font-weight: 400; }
.laser-source-direction { display: block; color: #ffe1c6; font-size: 9px; letter-spacing: .02em; }
#mobalaser-source[data-label-side="left"] .laser-source-label { left: auto; right: 23px; border-left: 0; border-right: 2px solid currentColor; text-align: right; }
#mobalaser-source[data-label-vertical="below"] .laser-source-label { transform: none; }
#mobalaser-source[data-label-vertical="above"] .laser-source-label { transform: translateY(-100%); }
#mobalaser-source[data-offscreen="true"] .laser-source-reticle { display: none; }
#mobalaser-source[data-offscreen="true"] .laser-source-arrow { display: block; }
#mobalaser-source[data-pulse="false"] .laser-source-reticle,
#mobalaser-source[data-pulse="false"] .laser-source-arrow { opacity: .45; }
#mobalaser-source[data-firing="true"] { color: #ff775d; }
#mobatel { top: 24%; }
/* OFF-FRONT NUDGE (roadmap #3): dim, steady — guidance, not an alarm */
#mobaoff {
  position: fixed;
  left: 50%;
  top: 31%;
  transform: translateX(-50%);
  z-index: 5;
  max-width: calc(100vw - 36px);
  box-sizing: border-box;
  padding: 6px 15px 5px;
  color: #7fa8a4;
  background: linear-gradient(90deg, transparent, rgba(14, 22, 24, .78) 16%, rgba(14, 22, 24, .78) 84%, transparent);
  border-bottom: 1px solid rgba(101, 228, 227, .35);
  font: 400 11px/1.35 "Share Tech Mono", ui-monospace, monospace;
  letter-spacing: .12em;
  text-align: center;
  pointer-events: none;
}
#mobaoff[data-threat="charging"] { color: #ffbf66; border-bottom-color: rgba(255, 191, 102, .6); }
#mobaoff[data-threat="firing"] { color: #ff775d; border-bottom-color: rgba(255, 119, 93, .75); animation: battle-link-pulse .6s ease-in-out infinite; }
body.paused #mobaoff { visibility: hidden; }
body.freecam #mobaoff { display: none !important; }
@keyframes battle-link-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes battle-alert-in {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 1100px) {
  #mobahud { right: 16px; width: 308px; padding: 10px 16px 9px 9px; }
  #mobahud .battle-title { gap: 7px; }
  #mobahud .battle-title strong { font-size: 11px; letter-spacing: .07em; }
  #mobahud .battle-title-code { font-size: 8px; }
  #mobahud .battle-lane { grid-template-columns: 27px minmax(0, 1fr); gap: 6px; padding-right: 6px; }
  #mobahud .battle-channel { font-size: 22px; }
  #mobahud .battle-composition { gap: 5px; font-size: 8px; }
  #mobahud .battle-capture { gap: 2px; }
  #mobahud .battle-front { gap: 3px; }
  #mobahud .battle-doctrine { min-width: 44px; font-size: 7px; }
}
@media (max-width: 700px) {
  #mobahud { top: 67px; right: 10px; width: min(280px, 46vw); padding: 8px 10px 8px 7px; }
  #mobahud::before { inset: -12px -5px -14px -16px; }
  #mobahud { --battle-descent: 6px; }
  #mobahud .battle-lane + .battle-lane { margin-left: 2px; }
  #mobahud .battle-lane + .battle-lane + .battle-lane { margin-left: 4px; }
  #mobahud .battle-title-code, #mobahud .battle-link, #mobahud .battle-legend > :last-child,
  #mobahud .battle-hazard, #mobahud .battle-barcode { display: none; }
  #mobahud .battle-title strong { font-size: 10px; }
  #mobahud .battle-telemetry { gap: 4px; padding: 7px 0; margin-bottom: 5px; }
  #mobahud .battle-stat + .battle-stat { padding-left: 5px; }
  #mobahud .battle-stat-label { font-size: 6px; letter-spacing: 0; }
  #mobahud .battle-stat strong { font-size: 14px; }
  #mobahud .battle-lane { grid-template-columns: 20px minmax(0, 1fr); gap: 4px; padding: 5px 3px; }
  #mobahud .battle-channel { font-size: 17px; }
  #mobahud .battle-count { min-width: 14px; font-size: 10px; }
  #mobahud .battle-composition { gap: 3px; font-size: 7px; }
  #mobahud .battle-type { gap: 1px; }
  #mobahud .battle-type-glyph { margin: 0; }
  #mobahud .battle-doctrine { min-width: 0; padding-left: 3px; font-size: 6px; }
  #mobahud .battle-footer { padding-right: 0; font-size: 6px; letter-spacing: .03em; }
  .battle-alert { font-size: 10px; letter-spacing: .08em; padding: 6px 10px; }
  #mobasky[data-hot="true"] { padding: 8px 13px 11px; }
  #mobasky[data-hot="true"] .laser-alert-title { font-size: 13px; }
  #mobasky[data-hot="true"] .laser-alert-detail { font-size: 9px; }
  #mobalaser-source { font-size: 9px; }
  .laser-source-direction { font-size: 8px; }
}
@media (max-height: 600px) and (min-width: 701px) {
  #mobahud { top: 58px; right: 12px; width: 290px; padding: 8px 15px 8px 7px; }
  #mobahud .battle-title-code, #mobahud .battle-legend { display: none; }
  #mobahud .battle-telemetry { padding: 6px 0; margin-bottom: 5px; }
  #mobahud .battle-stat { flex-direction: row; align-items: baseline; gap: 4px; }
  #mobahud .battle-stat-label { font-size: 6px; }
  #mobahud .battle-stat strong { font-size: 12px; }
  #mobahud .battle-stat + .battle-stat { padding-left: 4px; }
  #mobahud .battle-lane { min-height: 35px; margin-bottom: 3px; padding-top: 4px; padding-bottom: 4px; }
  #mobahud .battle-lane-body { gap: 4px; }
  #mobahud .battle-footer { padding-top: 2px; }
  #mobasky { top: 15%; }
  #mobatel { top: 24%; }
}
@media (prefers-reduced-motion: reduce) {
  #mobahud, #mobahud .battle-link i, .battle-alert { animation: none; }
  #mobahud .battle-lane, #mobahud .battle-lane::after, #mobahud .battle-channel,
  #mobahud .battle-cell { transition: none; }
  #mobalaser-source[data-pulse] .laser-source-reticle, #mobalaser-source[data-pulse] .laser-source-arrow { opacity: 1; }
}

/* The everyday view keeps only siege progress, lane forces and capture.
   H restores the full battle console through body.hud-expanded. */
body:not(.hud-expanded) #mobahud {
  width: 240px;
  padding: 10px 14px 14px 10px;
}
body:not(.hud-expanded) #mobahud::before { inset: -10px -8px -13px -20px; }
body:not(.hud-expanded) #mobahud::after { inset: -8px -4px -10px -6px; }
body:not(.hud-expanded) #mobahud .battle-title-code,
body:not(.hud-expanded) #mobahud .battle-link,
body:not(.hud-expanded) #mobahud .battle-legend,
body:not(.hud-expanded) #mobahud .battle-lane-detail,
body:not(.hud-expanded) #mobahud .battle-footer { display: none; }
body:not(.hud-expanded) #mobahud .battle-title strong { font-size: 11px; letter-spacing: .08em; }
body:not(.hud-expanded) #mobahud .battle-telemetry {
  gap: 6px;
  padding: 6px 0 5px;
  margin-bottom: 4px;
}
body:not(.hud-expanded) #mobahud .battle-stat { flex-direction: column; align-items: flex-start; gap: 2px; }
body:not(.hud-expanded) #mobahud .battle-stat + .battle-stat { padding-left: 3px; }
body:not(.hud-expanded) #mobahud .battle-stat-label { font-size: 7px; letter-spacing: .035em; white-space: nowrap; }
body:not(.hud-expanded) #mobahud .battle-stat strong { font-size: 15px; }
body:not(.hud-expanded) #mobahud .battle-lane {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 5px;
  min-height: 25px;
  margin-bottom: 3px;
  padding: 3px 5px 3px 2px;
}
body:not(.hud-expanded) #mobahud .battle-lane + .battle-lane { margin-left: 3px; }
body:not(.hud-expanded) #mobahud .battle-lane + .battle-lane + .battle-lane { margin-left: 6px; }
body:not(.hud-expanded) #mobahud .battle-lane::after { width: 2px; height: 9px; top: 9px; }
body:not(.hud-expanded) #mobahud .battle-lane::before { height: 12px; bottom: -2px; }
body:not(.hud-expanded) #mobahud .battle-channel { min-height: 20px; font-size: 17px; }
body:not(.hud-expanded) #mobahud .battle-front { gap: 3px; }
body:not(.hud-expanded) #mobahud .battle-count { min-width: 16px; font-size: 11px; }
body:not(.hud-expanded) #mobahud .battle-capture { gap: 2px; }
body:not(.hud-expanded) #mobahud .battle-cell { height: 7px; }
body:not(.hud-expanded) #mobahud .battle-result { padding: 9px 0 4px; font-size: 11px; }
@media (max-width: 700px) {
  body:not(.hud-expanded) #mobahud { width: min(230px, 46vw); padding: 8px 10px 7px 7px; }
  body:not(.hud-expanded) #mobahud .battle-title strong { font-size: 10px; }
  body:not(.hud-expanded) #mobahud .battle-stat-label { font-size: 6.5px; letter-spacing: 0; }
  body:not(.hud-expanded) #mobahud .battle-telemetry { gap: 3px; }
  body:not(.hud-expanded) #mobahud .battle-lane { grid-template-columns: 18px minmax(0, 1fr); gap: 3px; padding-right: 4px; }
  body:not(.hud-expanded) #mobahud .battle-count { min-width: 13px; font-size: 10px; }
  body:not(.hud-expanded) #mobahud .battle-lane + .battle-lane + .battle-lane { margin-left: 4px; }
}
@media (max-height: 600px) and (min-width: 701px) {
  body:not(.hud-expanded) #mobahud { width: 230px; padding-top: 8px; padding-bottom: 6px; }
}

/* The whole instrument is viewed at the upper-right visor tangent. Text, counts
   and capture bars share this projection; edge-entry translate stays independent. */
@media (min-width:1001px) {
  #mobahud {
    top:120px;
    transform:perspective(900px) rotateY(17deg) rotateZ(7deg);
    transform-origin:100% 0;
  }
  body:not(.hud-expanded) #mobahud { top:94px; }
}
@media (max-height:600px) {
  #mobahud { --battle-descent:6px; }
  #mobahud .battle-lane-body { gap:9px; }
}

/* Deployment is a real command surface: select a lane, buy equipment, launch. */
#mobadeploy {
  --deploy-orange: #ff5a32;
  --deploy-cyan: #65e4e3;
  position: fixed;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 55;
  width: 650px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 115px);
  overflow: auto;
  box-sizing: border-box;
  padding: 17px 20px 19px;
  color: #c1d4d0;
  background: linear-gradient(120deg, rgba(5, 19, 20, .97), rgba(5, 14, 17, .97));
  border: 1px solid rgba(101, 228, 227, .28);
  border-top: 3px solid var(--deploy-orange);
  box-shadow: 0 16px 70px rgba(0, 0, 0, .4);
  font: 400 11px/1.4 "Share Tech Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  text-shadow: none;
  text-align: left;
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: #47716e #081718;
  animation: deploy-console-in .35s ease-out;
}
#mobadeploy::after {
  content: "";
  display: block;
  position: absolute;
  width: 80px;
  height: 3px;
  right: 20px;
  bottom: 0;
  background: var(--deploy-cyan);
}
#mobadeploy button { font-family: inherit; letter-spacing: inherit; border-radius: 0; text-shadow: none; box-sizing: border-box; }
#mobadeploy button:focus-visible { outline: 2px solid #c4ffff; outline-offset: 3px; }
#mobadeploy .deploy-system {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #769593;
  font-size: 8px;
  letter-spacing: .09em;
}
#mobadeploy .deploy-system > :last-child { margin-left: auto; }
#mobadeploy .deploy-system-mark { font-size: 13px; font-weight: 700; line-height: 1; color: var(--deploy-orange); }
#mobadeploy .deploy-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 18px; }
#mobadeploy .deploy-title { color: var(--deploy-orange); font-size: 31px; line-height: 1; letter-spacing: .08em; }
#mobadeploy .deploy-ready { display: flex; align-items: center; gap: 6px; color: #769593; font-size: 9px; white-space: nowrap; }
#mobadeploy .deploy-ready::before { content: ""; width: 5px; height: 5px; background: currentColor; }
#mobadeploy .deploy-ready.is-armed { color: var(--deploy-cyan); }
#mobadeploy .deploy-ready.is-armed::before { animation: battle-link-pulse 3s ease-in-out infinite; }
#mobadeploy .deploy-subtitle { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; font-size: 9px; color: #98b2ae; }
#mobadeploy .deploy-subtitle > :last-child { font-size: 8px; color: #849b99; }
#mobadeploy .deploy-subtitle i { display: inline-block; width: 5px; height: 5px; margin: 0 2px; vertical-align: 1px; background: #59c9ed; }
#mobadeploy .deploy-subtitle i:last-child { background: #ff775d; }
/* single-lane (roadmap #3): one full-width FRONT LINE intel card */
#mobadeploy .deploy-lanes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
#mobadeploy .deploy-lane {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  padding: 10px;
  color: #90aaa7;
  background: rgba(101, 228, 227, .025);
  border: 1px solid rgba(101, 228, 227, .23);
  cursor: pointer;
  text-align: left;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  animation: deploy-lane-in .35s calc(var(--deploy-order) * .06s + .05s) both;
}
#mobadeploy .deploy-lane::after {
  content: "";
  position: absolute;
  height: 3px;
  width: 14px;
  right: 0;
  top: 0;
  background: #658c89;
  transition: width .25s ease, background-color .25s ease;
}
#mobadeploy .deploy-lane:hover { border-color: #65a8a3; background: rgba(101, 228, 227, .07); transform: translateY(-2px); }
#mobadeploy .deploy-lane.is-selected { border-color: var(--deploy-orange); background: rgba(255, 90, 50, .11); box-shadow: inset 0 0 25px rgba(255, 90, 50, .025); }
#mobadeploy .deploy-lane.is-selected::after { width: 100%; background: var(--deploy-orange); }
#mobadeploy .deploy-lane-head { display: flex; align-items: center; gap: 9px; }
#mobadeploy .deploy-lane-number { color: #82a7a4; font-size: 38px; line-height: 1; letter-spacing: -.07em; transition: color .2s ease; }
#mobadeploy .is-selected .deploy-lane-number { color: var(--deploy-orange); }
#mobadeploy .deploy-lane-name { font-size: 10px; line-height: 1.4; letter-spacing: .09em; }
#mobadeploy .deploy-lane-state { color: #698481; font-size: 7px; }
#mobadeploy .is-selected .deploy-lane-state { color: var(--deploy-cyan); }
#mobadeploy kbd { font: inherit; border: 1px solid rgba(142, 192, 186, .4); border-radius: 0; color: #9fcac2; background: rgba(101, 228, 227, .045); box-shadow: none; padding: 1px 4px; line-height: 1.35; }
#mobadeploy .deploy-lane-head kbd { margin-left: auto; align-self: flex-start; font-size: 9px; }
#mobadeploy .deploy-capture { display: flex; gap: 3px; }
#mobadeploy .deploy-cell { flex: 1; min-width: 0; height: 8px; border: 1px solid rgba(117, 156, 151, .3); transform: skewX(-12deg); transition: background-color .18s linear; }
#mobadeploy .deploy-counts { display: flex; justify-content: space-between; gap: 4px; font-size: 8px; line-height: 1; }
#mobadeploy .deploy-friendly { color: #59c9ed; }
#mobadeploy .deploy-hostile { color: #ff775d; }
#mobadeploy .deploy-shop { margin-top: 19px; border-top: 1px solid rgba(101, 228, 227, .18); padding-top: 13px; }
#mobadeploy .deploy-shop-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 9px; color: #98b2ae; font-size: 9px; }
#mobadeploy .deploy-credit { color: var(--deploy-cyan); font-size: 20px; line-height: 1; letter-spacing: -.03em; }
#mobadeploy .deploy-shop-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
#mobadeploy .deploy-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 9px 8px 8px;
  color: #92aaa5;
  border: 1px solid rgba(101, 228, 227, .18);
  background: rgba(101, 228, 227, .025);
  text-align: left;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
  cursor: pointer;
}
#mobadeploy .deploy-item:disabled { cursor: default; }
#mobadeploy .deploy-item:not(:disabled):hover { background: rgba(101, 228, 227, .1); border-color: var(--deploy-cyan); transform: translateY(-2px); }
#mobadeploy .deploy-item-code { display: flex; justify-content: space-between; color: #607f7b; font-size: 7px; letter-spacing: .06em; }
#mobadeploy .deploy-item-code::after { content: ""; width: 12px; height: 5px; background: repeating-linear-gradient(135deg, #668f89 0 2px, transparent 2px 4px); }
#mobadeploy .deploy-item-name { color: #a4b9b5; font-size: 9px; letter-spacing: .03em; line-height: 1.15; }
#mobadeploy .deploy-item-description { color: #6e8a83; font-size: 8px; letter-spacing: 0; line-height: 1.35; min-height: 22px; }
#mobadeploy .deploy-item-cost { margin-top: auto; border-top: 1px solid rgba(101, 228, 227, .12); padding-top: 5px; color: #6f8d86; font-size: 8px; letter-spacing: 0; }
#mobadeploy .deploy-item.is-affordable { border-color: rgba(101, 228, 227, .5); }
#mobadeploy .is-affordable .deploy-item-name, #mobadeploy .is-affordable .deploy-item-cost { color: var(--deploy-cyan); }
#mobadeploy .deploy-item.is-owned { border-color: rgba(121, 205, 166, .4); }
#mobadeploy .is-owned .deploy-item-cost { color: #8bd7ab; }
#mobadeploy .deploy-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 19px; padding-top: 13px; border-top: 1px solid rgba(101, 228, 227, .18); }
#mobadeploy .deploy-help { display: flex; flex-direction: column; gap: 6px; font-size: 8px; letter-spacing: .03em; color: #799891; }
#mobadeploy .deploy-help kbd { font-size: 8px; margin-right: 3px; }
#mobadeploy .deploy-help kbd + kbd { margin-left: 8px; }
#mobadeploy .deploy-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  min-width: 174px;
  padding: 10px 12px;
  border: 1px solid var(--deploy-orange);
  background: var(--deploy-orange);
  color: #081719;
  cursor: pointer;
  font-size: 15px;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
#mobadeploy .deploy-launch kbd { border-color: rgba(5, 23, 25, .5); color: #081719; font-size: 11px; }
#mobadeploy .deploy-launch > :last-child { font-size: 23px; line-height: .8; }
#mobadeploy .deploy-launch:hover { background: #ff784f; box-shadow: 0 0 17px rgba(255, 90, 50, .17); }
#mobadeploy .deploy-launch:disabled { color: #668e84; border-color: #31564c; background: #132821; cursor: default; box-shadow: none; }
@keyframes deploy-console-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); clip-path: inset(0 0 12%); }
  to { opacity: 1; transform: translate(-50%, -50%); clip-path: inset(0); }
}
@keyframes deploy-lane-in { from { opacity: 0; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 700px) {
  #mobadeploy { top: 46%; width: 560px; padding: 13px; max-width: calc(100vw - 24px); max-height: calc(100vh - 90px); }
  #mobadeploy .deploy-heading { padding: 11px 0 15px; }
  #mobadeploy .deploy-title { font-size: 23px; }
  #mobadeploy .deploy-ready { font-size: 8px; }
  #mobadeploy .deploy-lanes { gap: 6px; }
  #mobadeploy .deploy-lane { padding: 8px 6px; gap: 8px; }
  #mobadeploy .deploy-lane-head { gap: 6px; }
  #mobadeploy .deploy-lane-number { font-size: 30px; }
  #mobadeploy .deploy-lane-name { font-size: 8px; }
  #mobadeploy .deploy-counts { font-size: 7px; letter-spacing: 0; }
  #mobadeploy .deploy-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #mobadeploy .deploy-item { padding: 7px; gap: 3px; }
  #mobadeploy .deploy-item-description { min-height: 0; }
  #mobadeploy .deploy-footer { gap: 10px; margin-top: 13px; padding-top: 10px; }
  #mobadeploy .deploy-launch { min-width: 145px; gap: 7px; }
}
@media (max-width: 440px) {
  #mobadeploy .deploy-system { font-size: 6px; }
  #mobadeploy .deploy-title { font-size: 19px; letter-spacing: .04em; }
  #mobadeploy .deploy-ready { font-size: 7px; }
  #mobadeploy .deploy-subtitle { font-size: 8px; }
  #mobadeploy .deploy-subtitle > :last-child { font-size: 6px; }
  #mobadeploy .deploy-lane-number { font-size: 25px; }
  #mobadeploy .deploy-lane-head { gap: 5px; }
  #mobadeploy .deploy-lane-head kbd { display: none; }
  #mobadeploy .deploy-counts { font-size: 6px; }
  #mobadeploy .deploy-capture { gap: 2px; }
  #mobadeploy .deploy-cell { height: 6px; }
  #mobadeploy .deploy-help { font-size: 6px; }
  #mobadeploy .deploy-help kbd { font-size: 6px; }
  #mobadeploy .deploy-launch { min-width: 117px; padding: 9px 8px; font-size: 12px; }
}
@media (max-height: 600px) and (min-width: 701px) {
  #mobadeploy { top: 50%; width: 620px; max-height: calc(100vh - 30px); padding: 10px 16px; }
  #mobadeploy .deploy-heading { padding: 9px 0 10px; }
  #mobadeploy .deploy-title { font-size: 25px; }
  #mobadeploy .deploy-lane { padding: 7px 9px; gap: 7px; }
  #mobadeploy .deploy-lane-number { font-size: 30px; }
  #mobadeploy .deploy-shop { margin-top: 11px; padding-top: 9px; }
  #mobadeploy .deploy-item { padding: 7px; gap: 3px; }
  #mobadeploy .deploy-footer { margin-top: 10px; padding-top: 9px; }
  #mobadeploy .deploy-launch { padding-top: 7px; padding-bottom: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  #mobadeploy, #mobadeploy .deploy-lane, #mobadeploy .deploy-ready.is-armed::before { animation: none; }
  #mobadeploy .deploy-lane, #mobadeploy .deploy-lane::after, #mobadeploy .deploy-lane-number,
  #mobadeploy .deploy-cell, #mobadeploy .deploy-item, #mobadeploy .deploy-launch { transition: none; }
}
