/* Interactive OmniVisor — visor chrome, not a GDD infographic page */
.hud-lab { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.hud-lab[hidden] { display: none !important; }
.hud-lab:has(#win-hud-inspect[hidden]) { grid-template-columns: 1fr; }
@media (max-width: 1100px) { .hud-lab { grid-template-columns: 1fr; } }
#win-hud .win-body { flex: none; width: 100%; }
.win-body > .visor { border: 0; box-shadow: none; width: 100%; }

.visor {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #030508;
  border: 1px solid #2a6a88;
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(0,0,0,.65), 0 0 0 1px #041018;
  cursor: crosshair;
}
.visor-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.visor .world {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(40, 80, 70, .18), transparent 42%),
    linear-gradient(180deg, #0a1824 0%, #071018 42%, #05080c 100%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(40,90,110,.12) 46px 47px);
  opacity: .95;
  z-index: 0;
}
.visor .vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,.72) 100%);
  box-shadow: inset 0 28px 40px rgba(4,10,16,.85), inset 0 -36px 40px rgba(4,10,16,.9);
  z-index: 1;
}
.visor-frame {
  position: absolute; inset: 10px;
  border: 1px solid rgba(90,220,235,.28);
  clip-path: polygon(4% 0, 96% 0, 100% 8%, 100% 92%, 96% 100%, 4% 100%, 0 92%, 0 8%);
  pointer-events: none;
  z-index: 2;
}
.visor.mode-ir .world { filter: hue-rotate(90deg) saturate(1.4) brightness(1.1); }
.visor.mode-heat .world { filter: hue-rotate(-40deg) saturate(2) contrast(1.2); background-color: #2a1010; }
.visor.mode-uv .world { filter: hue-rotate(200deg) saturate(1.6); }
.visor.mode-sonar .world { filter: grayscale(1) contrast(1.4) brightness(.8); }
.visor.mode-trace .world { filter: contrast(1.3) brightness(.7) saturate(.4); }
.visor.mode-aether .world { filter: hue-rotate(250deg) saturate(1.8) brightness(1.05); }

.hotspot {
  position: absolute;
  cursor: pointer;
  border: 1px solid transparent;
  z-index: 3;
}
.hotspot:hover, .hotspot:focus, .hotspot.on {
  border-color: var(--cyan);
  background: rgba(90,220,235,.08);
  outline: none;
}

.vitals { top: 8%; left: 4%; width: 22%; }
.bars { display: flex; flex-direction: column; gap: 5px; }
.bar-row { display: grid; grid-template-columns: 72px 1fr; gap: 6px; align-items: center; }
.v-lab { display: flex; align-items: center; gap: 5px; font-size: 9px; letter-spacing: .12em; color: #cfe8f0; text-transform: uppercase; }
.v-lab [data-ico], .v-lab .ico { width: 14px; height: 14px; flex: 0 0 14px; }
.v-lab .ico { display: block; }
.bar {
  height: 9px; background: #10202c; transform: skewX(-16deg);
  border: 1px solid rgba(255,255,255,.18);
}
.bar > i { display: block; height: 100%; width: 100%; transform-origin: left; }
.bar.shield > i { background: linear-gradient(90deg, #1c6ad0, var(--shield)); }
.bar.armor > i { background: linear-gradient(90deg, #a06a18, var(--armor)); }
.bar.health > i { background: linear-gradient(90deg, #8a2030, var(--health)); }
.visor.overshield .bar.shield > i,
.visor.overshield .bar.armor > i { background: linear-gradient(90deg, #6a3ad0, var(--purple)); }

.ultimate { top: 4%; left: 42%; width: 16%; height: 22%; display: flex; flex-direction: column; align-items: center; }
.tf-gem {
  width: 52px; height: 64px;
  display: grid; place-items: center;
  background: transparent;
  position: relative;
}
.tf-gem svg.tf-mark,
.tf-gem img.tf-mark { width: 44px; height: 56px; fill: none; object-fit: contain; }
.tf-gem img.tf-mark { display: block; }
.tf-gem[data-charge="0"] img.tf-mark { filter: grayscale(1) brightness(0.35); opacity: 0.85; }
.tf-gem[data-charge="25"] img.tf-mark { filter: grayscale(0.55) brightness(0.7); }
.tf-gem[data-charge="50"] img.tf-mark { filter: saturate(0.85) brightness(0.9); }
.tf-gem[data-charge="75"] img.tf-mark { filter: saturate(1.1) brightness(1.05); }
.tf-gem[data-charge="100"] img.tf-mark { filter: none; }
.tf-gem svg.tf-mark .outer {
  fill: none;
  stroke: #5adceb;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.tf-gem svg.tf-mark .inner {
  fill: none;
  stroke: #5adceb;
  stroke-width: 1.1;
  opacity: 0.55;
  stroke-linejoin: round;
}
.tf-gem[data-charge="0"] svg.tf-mark .outer,
.tf-gem[data-charge="0"] svg.tf-mark .inner { stroke: #2a3034; filter: none; opacity: 1; }
.tf-gem[data-charge="0"] svg.tf-mark .inner { opacity: 0.4; }
.tf-gem[data-charge="25"] { box-shadow: 0 0 8px rgba(90,220,235,.4); }
.tf-gem[data-charge="25"] svg.tf-mark .outer { stroke: #5adceb; }
.tf-gem[data-charge="25"] svg.tf-mark .inner { stroke: #3a4448; }
.tf-gem[data-charge="50"] { box-shadow: 0 0 12px rgba(90,220,235,.7); }
.tf-gem[data-charge="50"] svg.tf-mark .outer { stroke: #5adceb; }
.tf-gem[data-charge="50"] svg.tf-mark .inner { stroke: #e85a1a; opacity: 0.7; }
.tf-gem[data-charge="75"] { box-shadow: 0 0 16px rgba(255,180,80,.8); }
.tf-gem[data-charge="75"] svg.tf-mark .outer,
.tf-gem[data-charge="75"] svg.tf-mark .inner { stroke: #f0b446; }
.tf-gem[data-charge="100"] { box-shadow: 0 0 22px rgba(255,140,40,1); }
.tf-gem[data-charge="100"] svg.tf-mark .outer,
.tf-gem[data-charge="100"] svg.tf-mark .inner { stroke: #ff9a28; filter: drop-shadow(0 0 6px #ff6a00); }
.flow-ring {
  position: absolute; inset: -6px; border: 1px solid rgba(90,220,235,.45); border-radius: 50%;
  pointer-events: none;
}
.vision-chip {
  margin-top: 6px; font-size: 9px; letter-spacing: .14em; color: var(--cyan);
  border: 1px solid rgba(90,220,235,.4); padding: 2px 8px; background: rgba(6,16,24,.55);
}
.pips { display: flex; gap: 3px; margin-top: 4px; }
.pips i { width: 7px; height: 7px; border: 1px solid var(--cyan); opacity: .35; }
.pips i.on { opacity: 1; background: var(--cyan); }

.xp { top: 3.2%; right: 4%; width: 22%; text-align: left; }
.xp-lab { display: flex; align-items: baseline; gap: 8px; color: var(--cyan); letter-spacing: .14em; text-transform: uppercase; font-size: 9px; }
.xp-lab strong { font-size: 18px; letter-spacing: .04em; }
.xp-track { height: 6px; margin-top: 4px; background: #10202c; border: 1px solid #2a6a88; }
.xp-track i { display: block; height: 100%; background: var(--amber); }
.energy { top: 11%; right: 4%; width: 22%; }
.energy .label { font-size: 9px; letter-spacing: .14em; color: #cfe8f0; margin-bottom: 4px; }
.energy-seg { display: flex; gap: 3px; }
.energy-seg b {
  flex: 1; height: 12px; transform: skewX(-16deg);
  background: #143044; border: 1px solid rgba(90,220,235,.3);
}
.energy-seg b.on { background: linear-gradient(180deg, #7af0ff, #2a88aa); }
.tent-pips { display: flex; gap: 4px; margin-top: 6px; }
.tent-pips i {
  width: 10px; height: 10px; border: 1px solid var(--teal); border-radius: 50%;
  font-size: 0;
}
.tent-pips i.off { opacity: .4; }
.tent-pips i.def { background: #2a88aa; }
.tent-pips i.ond { background: #d07040; }

.hotbar { top: 22%; right: 4%; width: 22%; display: flex; gap: 4px; }
.hotbar .sk {
  width: 32px; height: 32px; border: 1px solid #3a88a8; background: #102030;
  position: relative; display: grid; place-items: center; padding: 4px;
}
.hotbar .sk .ico { width: 20px; height: 20px; display: block; }
.hotbar .sk.cd::after {
  content: ""; position: absolute; inset: 0;
  background: conic-gradient(transparent 0 var(--cd, 40%), rgba(0,0,0,.65) var(--cd, 40%));
}
.hotbar .sk.aura { box-shadow: inset 0 0 0 2px var(--green); }

.reticle {
  top: 50%; left: 50%; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(90,220,235,.85);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 6;
  background: transparent;
  box-shadow: 0 0 8px rgba(90,220,235,.25);
}
.reticle::before, .reticle::after {
  content: ""; position: absolute; background: var(--cyan);
}
.reticle::before { width: 1px; height: 10px; left: 17px; top: 13px; }
.reticle::after { height: 1px; width: 10px; top: 17px; left: 13px; }
.charge-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--amber);
  transform: rotate(-90deg);
  display: none;
}
.visor.charging .charge-ring { display: block; }

.tracker { bottom: 8%; left: 4%; width: 14%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(90,220,235,.45); background: radial-gradient(circle, rgba(40,120,140,.25), transparent 70%);
}
.trk-ring {
  position: absolute; inset: 12%; border-radius: 50%;
  border: 1px dashed rgba(90,220,235,.35); pointer-events: none;
}
.tracker .blip { position: absolute; width: 4px; height: 4px; background: var(--red); border-radius: 50%; top: 30%; left: 62%; }
.tracker .blip-wp {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #f0b446;
  top: 22%;
  left: 58%;
  transform: rotate(45deg);
  box-shadow: 0 0 6px #f0b446;
}
.visor.mode-sonar .tracker { box-shadow: 0 0 16px var(--cyan); }

.ammo { bottom: 8%; right: 4%; width: 18%; color: var(--cyan); text-align: right; }
.ammo .mag { font-size: 28px; font-weight: 650; letter-spacing: .04em; line-height: 1; }
.ammo .res { font-size: 12px; color: var(--muted); }
.ammo .brick { font-size: 9px; letter-spacing: .14em; margin-top: 4px; }
.grenade { font-size: 11px; margin-top: 4px; color: var(--amber); }
.ammo .brick, .grenade { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.ammo .brick .ico, .grenade .ico { width: 16px; height: 16px; }

.target {
  top: 12%; left: 38%; width: 24%; display: none;
  background: rgba(8,16,24,.55); border: 1px solid rgba(90,220,235,.35); padding: 6px 8px;
}
.visor.show-target .target { display: block; }
.target .name, .aim-plate .name, .boss-plate .name { font-size: 11px; letter-spacing: .1em; }
.target .mini, .aim-plate .mini, .boss-plate .mini { height: 4px; margin: 3px 0; background: #10202c; }
.target .mini i, .aim-plate .mini i, .boss-plate .mini i { display: block; height: 100%; }
.target .s i, .aim-plate .s i, .boss-plate .s i { width: 70%; background: var(--shield); }
.target .a i, .aim-plate .a i, .boss-plate .a i { width: 90%; background: var(--armor); }
.target .h i, .aim-plate .h i, .boss-plate .h i { width: 100%; background: var(--health); }

.hostiles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hostile {
  position: absolute;
  width: 7%;
  height: 28%;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  transform: translate(-50%, -100%);
}
.hostile-body {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, #1a2834 0%, #0c141c 100%);
  clip-path: polygon(35% 0, 65% 0, 72% 14%, 62% 18%, 80% 48%, 62% 52%, 60% 100%, 40% 100%, 38% 52%, 20% 48%, 38% 18%, 28% 14%);
  border: 1px solid rgba(90,220,235,.35);
  box-shadow: 0 0 12px rgba(0,0,0,.6);
}
.hostile-body.elite {
  filter: hue-rotate(-20deg) brightness(1.15);
  box-shadow: 0 0 14px rgba(235,95,105,.35);
}
.hostile:hover .hostile-body,
.hostile.aimed .hostile-body {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(90,220,235,.45);
}

.aim-plate {
  position: absolute;
  width: 168px;
  display: none;
  z-index: 5;
  pointer-events: none;
  background: rgba(6,14,22,.82);
  border: 1px solid rgba(90,220,235,.55);
  padding: 6px 8px;
  transform: translate(-50%, calc(-100% - 10px));
}
.visor.show-target .aim-plate { display: block; }
.aim-plate.rank-grunt { width: 132px; }
.aim-plate.rank-elite { width: 188px; }

.boss-plate {
  position: absolute;
  left: 50%;
  bottom: 6.5%;
  transform: translateX(-50%);
  width: min(44%, 460px);
  display: none;
  z-index: 5;
  background: rgba(8,12,18,.88);
  border: 1px solid rgba(235,95,105,.65);
  padding: 8px 12px 10px;
  text-align: center;
}
.visor.boss-fight .boss-plate { display: block; }
.boss-kicker {
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--red);
  margin-bottom: 4px;
}
.boss-plate .name { color: var(--red); letter-spacing: .16em; font-size: 13px; }
.boss-plate .mini { height: 6px; }

.load-pip { top: 4%; left: 58%; font-size: 9px; color: var(--amber); letter-spacing: .12em; padding: 2px 6px; }

.hud-side {
  position: sticky; top: 52px;
}
.hud-side-pad { padding: 14px; overflow: auto; }
.hud-side h3 { margin: 0 0 8px; color: var(--cyan); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.hud-side p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.hud-side label { display: block; font-size: 11px; color: var(--muted); margin: 10px 0 4px; letter-spacing: .08em; text-transform: uppercase; }
.hud-side input[type=range] { width: 100%; }
.hud-side .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hud-side button, .tour-btn {
  background: #102838; color: var(--cyan); border: 1px solid #2a6a88;
  padding: 6px 10px; font: inherit; font-size: 12px; cursor: pointer;
}
.hud-side button.on, .hud-side button:hover { background: #16485e; }
.legend { font-size: 11px; color: var(--muted); margin-top: 12px; }
.legend kbd {
  background: #0a1824; border: 1px solid #2a6a88; padding: 1px 5px; font-size: 10px; color: var(--white);
}

.visor.tpp .reticle { opacity: 0; }
.hit-chev {
  position: absolute; width: 18px; height: 18px; border-left: 2px solid var(--red); border-top: 2px solid var(--red);
  top: 28%; left: 12%; transform: rotate(-40deg); display: none;
}
.visor.hit .hit-chev { display: block; }

.wp-3d {
  position: absolute;
  left: 64%;
  top: 42%;
  transform: translateX(-50%);
  width: auto;
  background: transparent;
  border: 0;
  color: var(--cyan);
  text-align: center;
  cursor: pointer;
  z-index: 4;
}
.wp-3d .wp-diamond {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border: 2px solid #f0b446;
  transform: rotate(45deg);
  background: transparent;
}
.wp-3d b,
.wp-3d span {
  display: none;
  color: #f0b446;
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.visor.wp-ping .wp-3d b,
.visor.wp-ping .wp-3d span { display: block; }
.visor.wp-ping .wp-3d span { color: var(--cyan); }
.visor.wp-ping .wp-3d .wp-diamond {
  box-shadow: 0 0 10px #f0b446;
}
.wp-rim {
  position: absolute;
  left: 10px;
  top: 48%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 8px solid #f0b446;
  z-index: 4;
  opacity: 0.7;
}
.visor.wp-ping .wp-rim { filter: drop-shadow(0 0 6px #f0b446); }

.heading {
  top: 7.5%;
  left: 22%;
  width: 56%;
  height: 22px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(8, 24, 36, 0.55) 12%, rgba(8, 24, 36, 0.55) 88%, transparent);
  border-bottom: 1px solid rgba(90, 220, 235, 0.35);
  z-index: 3;
}
.heading .ht-w, .heading .ht-n, .heading .ht-e {
  position: absolute;
  top: 2px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.heading .ht-w { left: 8%; }
.heading .ht-n { left: 50%; transform: translateX(-50%); color: var(--cyan); }
.heading .ht-e { right: 8%; }
.heading .ht-pip {
  position: absolute;
  top: 8px;
  left: 62%;
  width: 8px;
  height: 8px;
  background: #f0b446;
  transform: rotate(45deg);
  box-shadow: 0 0 6px #f0b446;
}

.hud-chat {
  left: 4.5%;
  bottom: 26%;
  width: 34%;
  max-width: 360px;
  z-index: 6;
  border: 0;
  background: transparent;
  padding: 4px;
  text-align: left;
  cursor: pointer;
}
.hud-chat-log {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(207, 232, 240, 0.5);
  line-height: 1.4;
  max-height: 4.4em;
  overflow: hidden;
  pointer-events: none;
}
.visor.chat-open .hud-chat-log {
  color: rgba(236, 246, 250, 0.88);
  max-height: 6.2em;
}
.hud-chat-line {
  display: block;
  white-space: pre-wrap;
  overflow: hidden;
}
.hud-chat-line b {
  font-weight: 700;
  margin-right: 6px;
  letter-spacing: 0.1em;
}
.hud-chat-line[data-ch="fireteam"] b { color: #f0b446; }
.hud-chat-line[data-ch="clan"] b { color: #5adceb; }
.hud-chat-line[data-ch="general"] b { color: #cfe8f0; }
.hud-chat-compose {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  margin-top: 6px;
  background: rgba(6, 14, 22, 0.86);
  border: 1px solid rgba(90, 220, 235, 0.45);
  padding: 6px 8px;
}
.hud-chat-compose[hidden] { display: none !important; }
.hud-chat-ch {
  flex: 0 0 auto;
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 3px 6px;
  border: 1px solid currentColor;
  color: #f0b446;
}
.hud-chat-ch[data-ch="clan"] { color: #5adceb; }
.hud-chat-ch[data-ch="general"] { color: #ecf6fa; }
#hud-chat-in {
  flex: 1;
  background: transparent;
  border: 0;
  color: #ecf6fa;
  font: inherit;
  font-size: 12px;
  resize: none;
  outline: none;
  min-height: 18px;
  max-height: 64px;
  cursor: text;
  line-height: 1.35;
}
.hud-side .chk {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}
.hud-side .chk input { width: auto; }
