/* Hax Duty — HUD minimale: nome + HP + stamina, niente chat/tools */

[data-hv-sector="haxDuty"] {
  --hv-chat-height: 96px;
}

[data-hv-sector="haxDuty"] .chatContainer {
  display: none !important;
}

[data-hv-sector="haxDuty"] .bottomSection {
  height: auto;
  min-height: 0;
  padding-bottom: 10px;
  pointer-events: none;
}

[data-hv-sector="haxDuty"] .hvHudDock {
  pointer-events: none;
  width: min(300px, 56vw);
  max-width: min(300px, 56vw);
  min-width: 220px;
  margin-bottom: 4px;
}

/* Duty HUD (HP/arma) vive nel dock: non nasconderlo con l'opzione "tools". */
html[data-hv-sector="haxDuty"] body.hv-tools-hud-hidden #hvHudDock {
  display: flex !important;
}

[data-hv-sector="haxDuty"] .hv-duty-net-stack,
[data-hv-sector="haxDuty"] .bottomSection > .hvPingGraph {
  margin-left: auto;
}

/* Il clip diagonale del card tagliava le barre */
[data-hv-sector="haxDuty"] .hv-hud-card {
  --hv-hud-cut: 6px;
  width: 100%;
  overflow: visible;
  clip-path: none;
  border-radius: 4px;
}

[data-hv-sector="haxDuty"] .hv-hud-card-frame {
  overflow: visible;
  border-radius: 4px;
}

[data-hv-sector="haxDuty"] .hv-hud-divider,
[data-hv-sector="haxDuty"] .hv-game-toolbar {
  display: none !important;
}

[data-hv-sector="haxDuty"] .hv-ub-avatar-wrap,
[data-hv-sector="haxDuty"] .hv-ub-head,
[data-hv-sector="haxDuty"] .hv-ub-level,
[data-hv-sector="haxDuty"] .hv-ub-xp,
[data-hv-sector="haxDuty"] .hv-ub-next {
  display: none !important;
}

[data-hv-sector="haxDuty"] .hv-user-badge {
  display: block !important;
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px 14px;
}

[data-hv-sector="haxDuty"] .hv-user-badge[hidden] {
  display: block !important;
}

[data-hv-sector="haxDuty"] .hv-ub-inner {
  display: block;
  width: 100%;
}

[data-hv-sector="haxDuty"] .hv-ub-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

[data-hv-sector="haxDuty"] .hv-ub-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f4f7fb;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-hv-sector="haxDuty"] .hv-duty-vitals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

[data-hv-sector="haxDuty"] .hv-duty-bar {
  position: relative;
  width: 100%;
  height: 10px;
  box-sizing: border-box;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

[data-hv-sector="haxDuty"] .hv-duty-bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  max-width: 100%;
  border-radius: inherit;
  transition: width 120ms linear;
}

[data-hv-sector="haxDuty"] .hv-duty-bar-hp .hv-duty-bar-fill {
  background: linear-gradient(90deg, #b71c1c 0%, #e53935 55%, #ff6659 100%);
  box-shadow: 0 0 8px rgba(229, 57, 53, 0.35);
}

[data-hv-sector="haxDuty"] .hv-duty-bar-sta .hv-duty-bar-fill {
  background: linear-gradient(90deg, #c9a000 0%, #f5c518 55%, #ffe566 100%);
  box-shadow: 0 0 8px rgba(245, 197, 24, 0.3);
}

[data-hv-sector="haxDuty"] .hv-duty-vitals-nums {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

[data-hv-sector="haxDuty"] .hv-duty-vitals-nums #hvDutyHpNum {
  color: rgba(255, 140, 130, 0.9);
}

[data-hv-sector="haxDuty"] .hv-duty-vitals-nums #hvDutyStaNum {
  color: rgba(255, 230, 120, 0.9);
}

[data-hv-sector="haxDuty"] .hv-duty-ammo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-hv-sector="haxDuty"] .hv-duty-weapon-tabs {
  display: flex;
  gap: 4px;
  width: 100%;
}

[data-hv-sector="haxDuty"] .hv-duty-weapon-tab {
  flex: 1;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(220, 230, 245, 0.75);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 6px;
  border-radius: 3px;
  cursor: pointer;
}

[data-hv-sector="haxDuty"] .hv-duty-weapon-tab.is-active {
  color: #fff;
  border-color: rgba(255, 200, 80, 0.55);
  background: rgba(255, 170, 40, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 200, 80, 0.15) inset;
}

[data-hv-sector="haxDuty"] .hv-duty-gun {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-hv-sector="haxDuty"] .hv-duty-gun-img {
  display: block;
  width: 100%;
  height: 36px;
  object-fit: contain;
  pointer-events: none;
  flex-basis: 100%;
  background: transparent;
}

[data-hv-sector="haxDuty"] .hv-duty-ammo-nums {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f4f7fb;
}

[data-hv-sector="haxDuty"] .hvPingGraph {
  opacity: 0.85;
  pointer-events: none;
}

/* Admin map picker — stacked above ping chart */
[data-hv-sector="haxDuty"] .hv-duty-net-stack {
  position: relative;
  flex-shrink: 0;
  align-self: flex-end;
  order: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 8px;
  pointer-events: none;
  z-index: 40;
}

[data-hv-sector="haxDuty"] .hv-duty-net-stack .hvPingGraph {
  margin-bottom: 0;
  order: unset;
}

[data-hv-sector="haxDuty"] .hv-duty-map-dock {
  position: relative;
  margin: 0;
  pointer-events: auto;
  cursor: default;
}

[data-hv-sector="haxDuty"] .hv-duty-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(12, 16, 22, 0.88);
  color: #d7e2ef;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

[data-hv-sector="haxDuty"] .hv-duty-map-btn:hover {
  background: rgba(20, 28, 38, 0.95);
  border-color: rgba(78, 205, 196, 0.55);
  color: #4ecdc4;
}

[data-hv-sector="haxDuty"] .hv-duty-map-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

[data-hv-sector="haxDuty"] .hv-duty-map-overlay[hidden] {
  display: none !important;
}

[data-hv-sector="haxDuty"] .hv-duty-map-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 12, 0.72);
}

[data-hv-sector="haxDuty"] .hv-duty-map-panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  max-height: min(70vh, 640px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(165deg, rgba(28, 36, 46, 0.98) 0%, rgba(12, 16, 22, 0.98) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: #e8eef5;
  font-family: "Segoe UI", system-ui, sans-serif;
}

[data-hv-sector="haxDuty"] .hv-duty-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

[data-hv-sector="haxDuty"] .hv-duty-map-kicker {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(78, 205, 196, 0.85);
}

[data-hv-sector="haxDuty"] .hv-duty-map-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

[data-hv-sector="haxDuty"] .hv-duty-map-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

[data-hv-sector="haxDuty"] .hv-duty-map-hint {
  margin: 0;
  font-size: 13px;
  color: rgba(232, 238, 245, 0.65);
}

[data-hv-sector="haxDuty"] .hv-duty-map-list {
  flex: 1;
  min-height: 180px;
  max-height: 42vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

[data-hv-sector="haxDuty"] .hv-duty-map-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

[data-hv-sector="haxDuty"] .hv-duty-map-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

[data-hv-sector="haxDuty"] .hv-duty-map-item.is-selected {
  border-color: rgba(78, 205, 196, 0.55);
  background: rgba(78, 205, 196, 0.12);
}

[data-hv-sector="haxDuty"] .hv-duty-map-item-name {
  font-size: 14px;
  font-weight: 650;
}

[data-hv-sector="haxDuty"] .hv-duty-map-item-meta {
  font-size: 11px;
  color: rgba(232, 238, 245, 0.5);
}

[data-hv-sector="haxDuty"] .hv-duty-map-root {
  margin: 4px 8px 8px;
  font-size: 11px;
  color: rgba(232, 238, 245, 0.45);
  word-break: break-all;
}

[data-hv-sector="haxDuty"] .hv-duty-map-empty {
  margin: 24px 12px;
  text-align: center;
  color: rgba(232, 238, 245, 0.55);
  font-size: 13px;
}

[data-hv-sector="haxDuty"] .hv-duty-map-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

[data-hv-sector="haxDuty"] .hv-duty-map-refresh,
[data-hv-sector="haxDuty"] .hv-duty-map-play {
  min-width: 96px;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
  cursor: pointer;
}

[data-hv-sector="haxDuty"] .hv-duty-map-refresh {
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef5;
}

[data-hv-sector="haxDuty"] .hv-duty-map-play {
  background: #4ecdc4;
  border-color: #4ecdc4;
  color: #0b1218;
}

[data-hv-sector="haxDuty"] .hv-duty-map-play:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Mira col cursore */
[data-hv-sector="haxDuty"] canvas,
html.hv-duty-aim-cursor[data-hv-sector="haxDuty"] canvas,
[data-hv-sector="haxDuty"] {
  cursor: crosshair;
}

[data-hv-sector="haxDuty"] .hvHudDock,
[data-hv-sector="haxDuty"] .hv-hud-card,
[data-hv-sector="haxDuty"] .hvPingGraph {
  cursor: default;
}

[data-hv-sector="haxDuty"] .hv-duty-match-overlay {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

[data-hv-sector="haxDuty"] .hv-duty-match-overlay[hidden] {
  display: none !important;
}

[data-hv-sector="haxDuty"] .hv-duty-match-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 12, 0.78);
}

[data-hv-sector="haxDuty"] .hv-duty-match-panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 32px));
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(28, 36, 46, 0.98) 0%, rgba(12, 16, 22, 0.98) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: #e8eef5;
  font-family: "Segoe UI", system-ui, sans-serif;
}

[data-hv-sector="haxDuty"] .hv-duty-match-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

[data-hv-sector="haxDuty"] .hv-duty-match-kicker {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(78, 205, 196, 0.85);
}

[data-hv-sector="haxDuty"] .hv-duty-match-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

[data-hv-sector="haxDuty"] .hv-duty-match-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

[data-hv-sector="haxDuty"] .hv-duty-match-body {
  min-height: 180px;
  overflow: auto;
}

[data-hv-sector="haxDuty"] .hv-duty-match-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(232, 238, 245, 0.65);
}

[data-hv-sector="haxDuty"] .hv-duty-match-modes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

[data-hv-sector="haxDuty"] .hv-duty-match-mode {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

[data-hv-sector="haxDuty"] .hv-duty-match-mode.is-selected,
[data-hv-sector="haxDuty"] .hv-duty-match-mode:hover:not(:disabled) {
  border-color: rgba(78, 205, 196, 0.55);
  background: rgba(78, 205, 196, 0.12);
}

[data-hv-sector="haxDuty"] .hv-duty-match-mode.is-locked,
[data-hv-sector="haxDuty"] .hv-duty-match-mode:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

[data-hv-sector="haxDuty"] .hv-duty-match-mode-title {
  font-size: 16px;
  font-weight: 700;
}

[data-hv-sector="haxDuty"] .hv-duty-match-mode-meta {
  font-size: 11px;
  color: rgba(232, 238, 245, 0.5);
}

[data-hv-sector="haxDuty"] .hv-duty-match-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

[data-hv-sector="haxDuty"] .hv-duty-match-toggle {
  grid-column: 1 / -1;
}

[data-hv-sector="haxDuty"] .hv-duty-match-toggle span {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 13px;
}

[data-hv-sector="haxDuty"] .hv-duty-match-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #4ecdc4;
}

[data-hv-sector="haxDuty"] .hv-duty-match-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(232, 238, 245, 0.7);
}

[data-hv-sector="haxDuty"] .hv-duty-match-fields input {
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

[data-hv-sector="haxDuty"] .hv-duty-match-maps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 28vh;
  overflow: auto;
  padding: 4px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

[data-hv-sector="haxDuty"] .hv-duty-match-map {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

[data-hv-sector="haxDuty"] .hv-duty-match-map.is-selected {
  border-color: rgba(78, 205, 196, 0.55);
  background: rgba(78, 205, 196, 0.12);
}

[data-hv-sector="haxDuty"] .hv-duty-match-map-name {
  font-weight: 650;
}

[data-hv-sector="haxDuty"] .hv-duty-match-map-file {
  font-size: 11px;
  color: rgba(232, 238, 245, 0.5);
}

[data-hv-sector="haxDuty"] .hv-duty-match-empty {
  margin: 16px;
  text-align: center;
  color: rgba(232, 238, 245, 0.55);
}

[data-hv-sector="haxDuty"] .hv-duty-match-summary {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
  color: rgba(232, 238, 245, 0.8);
}

[data-hv-sector="haxDuty"] .hv-duty-match-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

[data-hv-sector="haxDuty"] .hv-duty-match-back,
[data-hv-sector="haxDuty"] .hv-duty-match-save,
[data-hv-sector="haxDuty"] .hv-duty-match-start {
  min-width: 110px;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
  cursor: pointer;
}

[data-hv-sector="haxDuty"] .hv-duty-match-back {
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef5;
}

[data-hv-sector="haxDuty"] .hv-duty-match-save,
[data-hv-sector="haxDuty"] .hv-duty-match-start {
  background: #4ecdc4;
  border-color: #4ecdc4;
  color: #0b1218;
}

[data-hv-sector="haxDuty"] .hv-duty-match-save:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

[data-hv-sector="haxDuty"] .hv-duty-match-hud,
[data-hv-sector="haxDuty"] .hv-duty-match-hud[hidden] {
  display: none !important;
}

[data-hv-sector="haxDuty"] .hv-duty-death-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

[data-hv-sector="haxDuty"] .hv-duty-death-overlay[hidden] {
  display: none !important;
}

[data-hv-sector="haxDuty"] .hv-duty-death-card {
  text-align: center;
}

[data-hv-sector="haxDuty"] .hv-duty-death-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4f7fb;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.75);
}

[data-hv-sector="haxDuty"] .hv-duty-death-cd {
  margin-top: 12px;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

[data-hv-sector="haxDuty"] .hv-duty-hitmarker {
  position: fixed;
  z-index: 95;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

[data-hv-sector="haxDuty"] .hv-duty-hitmarker[hidden] {
  display: none !important;
}

[data-hv-sector="haxDuty"] .hv-duty-hitmarker i {
  position: absolute;
  width: 9px;
  height: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}

[data-hv-sector="haxDuty"] .hv-duty-hitmarker i:nth-child(1) {
  top: 3px;
  left: 2px;
  transform: rotate(45deg);
}

[data-hv-sector="haxDuty"] .hv-duty-hitmarker i:nth-child(2) {
  top: 3px;
  right: 2px;
  transform: rotate(-45deg);
}

[data-hv-sector="haxDuty"] .hv-duty-hitmarker i:nth-child(3) {
  bottom: 3px;
  left: 2px;
  transform: rotate(-45deg);
}

[data-hv-sector="haxDuty"] .hv-duty-hitmarker i:nth-child(4) {
  bottom: 3px;
  right: 2px;
  transform: rotate(45deg);
}

[data-hv-sector="haxDuty"] .hv-duty-hitmarker.is-kill i {
  background: #ff2d2d;
  box-shadow: 0 0 0 1px rgba(80, 0, 0, 0.45), 0 0 8px rgba(255, 40, 40, 0.65);
}

[data-hv-sector="haxDuty"] #hvMatchQuestsPanel,
[data-hv-sector="haxDuty"] #hvQuestToastStack {
  display: none !important;
}

[data-hv-sector="haxDuty"] {
  touch-action: manipulation;
}

[data-hv-sector="haxDuty"] canvas {
  touch-action: none;
}

[data-hv-sector="haxDuty"] .hv-score-tag {
  letter-spacing: 0.08em;
  text-transform: none;
}

html.hv-duty-spectating[data-hv-sector="haxDuty"] {
  --hv-chat-height: 200px;
}

html.hv-duty-spectating[data-hv-sector="haxDuty"] .chatContainer {
  display: flex !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

html.hv-duty-spectating[data-hv-sector="haxDuty"] .bottomSection {
  height: var(--hv-chat-height, 200px);
  min-height: var(--hv-chat-height, 200px);
  padding-bottom: 0;
  pointer-events: auto;
}

html.hv-duty-spectating[data-hv-sector="haxDuty"] .hvHudDock,
html.hv-duty-spectating[data-hv-sector="haxDuty"] .hv-duty-death-overlay {
  display: none !important;
}

[data-hv-sector="haxDuty"] .hv-duty-team-rail {
  --hv-duty-score-half: min(240px, calc(50vw - 12px));
  position: fixed;
  top: 6px;
  z-index: 46;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
}

[data-hv-sector="haxDuty"] .hv-duty-team-rail.is-red {
  right: calc(50% + var(--hv-duty-score-half) + 22px);
  flex-direction: row-reverse;
}

[data-hv-sector="haxDuty"] .hv-duty-team-rail.is-blue {
  left: calc(50% + var(--hv-duty-score-half) + 22px);
  flex-direction: row;
}

[data-hv-sector="haxDuty"] .hv-duty-portrait {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 52px;
  width: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  pointer-events: none;
}

[data-hv-sector="haxDuty"] .hv-duty-portrait-disc {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  overflow: hidden;
  background: #10141c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

[data-hv-sector="haxDuty"] .hv-duty-team-rail.is-red .hv-duty-portrait-disc {
  border-color: #ff6b6b;
}

[data-hv-sector="haxDuty"] .hv-duty-team-rail.is-blue .hv-duty-portrait-disc {
  border-color: #6aa8ff;
}

html.hv-duty-spectating[data-hv-sector="haxDuty"] .hv-duty-portrait {
  pointer-events: auto;
  cursor: pointer;
}

[data-hv-sector="haxDuty"] .hv-duty-portrait.is-followed .hv-duty-portrait-disc {
  box-shadow:
    0 0 0 2px #fff,
    0 0 12px rgba(255, 255, 255, 0.45);
}

[data-hv-sector="haxDuty"] .hv-duty-portrait-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #f4f7fb;
  background: #1a2230;
}

[data-hv-sector="haxDuty"] .hv-duty-portrait-face img,
[data-hv-sector="haxDuty"] .hv-duty-portrait-face .hv-slot-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-hv-sector="haxDuty"] .hv-duty-portrait.is-dead .hv-duty-portrait-face {
  filter: grayscale(1) brightness(0.38);
}

[data-hv-sector="haxDuty"] .hv-duty-portrait-veil {
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from -90deg, rgba(0, 0, 0, 0.12) calc(var(--cd, 0) * 1%), rgba(0, 0, 0, 0.62) 0);
}

[data-hv-sector="haxDuty"] .hv-duty-portrait-cd {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", "Arial Black", sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

[data-hv-sector="haxDuty"] .hv-duty-portrait-cd[hidden] {
  display: none !important;
}

[data-hv-sector="haxDuty"] .hv-duty-portrait-name {
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Orbitron", "Arial Black", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #e8eef6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  text-align: center;
}

[data-hv-sector="haxDuty"] .hv-duty-portrait-ka {
  font-family: "Orbitron", "Arial Black", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(232, 238, 245, 0.72);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

[data-hv-sector="haxDuty"] .hv-duty-portrait-bars {
  width: 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

[data-hv-sector="haxDuty"] .hv-duty-portrait-hp,
[data-hv-sector="haxDuty"] .hv-duty-portrait-sta {
  display: block;
  height: 3px;
  border-radius: 1px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

[data-hv-sector="haxDuty"] .hv-duty-portrait-hp i,
[data-hv-sector="haxDuty"] .hv-duty-portrait-sta i {
  display: block;
  height: 100%;
  width: 100%;
}

[data-hv-sector="haxDuty"] .hv-duty-portrait-hp i {
  background: linear-gradient(90deg, #c62828, #ff5252);
}

[data-hv-sector="haxDuty"] .hv-duty-portrait-sta i {
  background: linear-gradient(90deg, #c9a227, #ffe082);
}

[data-hv-sector="haxDuty"] .hv-duty-portrait.is-dead .hv-duty-portrait-name {
  opacity: 0.45;
}

[data-hv-sector="haxDuty"] .hv-duty-minimap {
  position: fixed;
  top: 58px;
  right: 14px;
  z-index: 72;
  width: 168px;
  height: 168px;
  pointer-events: none;
  border: 1px solid rgba(80, 210, 255, 0.28);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(8, 22, 32, 0.2), rgba(0, 0, 0, 0.12)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(40, 180, 220, 0.035) 2px,
      rgba(40, 180, 220, 0.035) 3px
    );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45) inset,
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(40, 180, 255, 0.12);
  overflow: hidden;
}

[data-hv-sector="haxDuty"] .hv-duty-minimap-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

[data-hv-sector="haxDuty"] .hv-duty-minimap-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid #6ae7ff;
  box-shadow: 0 0 6px rgba(80, 220, 255, 0.45);
}

[data-hv-sector="haxDuty"] .hv-duty-minimap-corner.tl {
  top: 3px;
  left: 3px;
  border-right: 0;
  border-bottom: 0;
}

[data-hv-sector="haxDuty"] .hv-duty-minimap-corner.tr {
  top: 3px;
  right: 3px;
  border-left: 0;
  border-bottom: 0;
}

[data-hv-sector="haxDuty"] .hv-duty-minimap-corner.bl {
  bottom: 3px;
  left: 3px;
  border-right: 0;
  border-top: 0;
}

[data-hv-sector="haxDuty"] .hv-duty-minimap-corner.br {
  bottom: 3px;
  right: 3px;
  border-left: 0;
  border-top: 0;
}

[data-hv-sector="haxDuty"] .hv-duty-minimap-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(70, 220, 255, 0.07), transparent);
  animation: hvDutyMinimapScan 3.6s linear infinite;
  pointer-events: none;
}

@keyframes hvDutyMinimapScan {
  from { transform: translateY(-120%); }
  to { transform: translateY(420%); }
}

[data-hv-sector="haxDuty"] .hv-duty-minimap-tag {
  position: absolute;
  top: 6px;
  left: 10px;
  z-index: 2;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(110, 230, 255, 0.75);
  text-shadow: 0 0 8px rgba(80, 220, 255, 0.35);
}

[data-hv-sector="haxDuty"] #hvDutyMinimapCanvas {
  position: relative;
  z-index: 0;
  display: block;
  width: 168px;
  height: 168px;
  cursor: default;
  touch-action: none;
  image-rendering: auto;
}

[data-hv-sector="haxDuty"].hv-duty-ending .hv-game-pause-overlay {
  display: none !important;
}

[data-hv-sector="haxDuty"] .hv-duty-end-title {
  position: fixed;
  inset: 0;
  z-index: 24000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(6, 10, 18, 0.28) 0%, rgba(4, 6, 12, 0.72) 100%);
}

[data-hv-sector="haxDuty"] .hv-duty-end-title[hidden] {
  display: none !important;
}

[data-hv-sector="haxDuty"] .hv-duty-end-title-inner {
  text-align: center;
  animation: hvDutyEndPop 0.45s ease-out;
}

[data-hv-sector="haxDuty"] .hv-duty-end-kicker {
  margin: 0 0 8px;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 13px;
  letter-spacing: 0.42em;
  color: rgba(232, 238, 245, 0.62);
}

[data-hv-sector="haxDuty"] .hv-duty-end-headline {
  margin: 0;
  font-family: "Orbitron", "Arial Black", sans-serif;
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-shadow: 0 0 28px currentColor;
}

[data-hv-sector="haxDuty"] .hv-duty-end-title.is-red .hv-duty-end-headline {
  color: #ff6b6b;
}

[data-hv-sector="haxDuty"] .hv-duty-end-title.is-blue .hv-duty-end-headline {
  color: #5aa8ff;
}

[data-hv-sector="haxDuty"] .hv-duty-end-title.is-draw .hv-duty-end-headline {
  color: #ffe08a;
}

[data-hv-sector="haxDuty"] .hv-duty-end-title.is-round .hv-duty-end-headline {
  font-size: clamp(28px, 5vw, 62px);
}

[data-hv-sector="haxDuty"] .hv-duty-end-title.is-round {
  background: radial-gradient(ellipse at center, rgba(6, 10, 18, 0.18) 0%, rgba(4, 6, 12, 0.52) 100%);
}

[data-hv-sector="haxDuty"] .hv-duty-end-score {
  margin: 12px 0 0;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: #e8eef6;
}

@keyframes hvDutyEndPop {
  from { transform: scale(0.86); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

html.hv-duty-replay[data-hv-sector="haxDuty"] .hv-duty-team-rail {
  top: 58px;
  z-index: 80;
}

html.hv-duty-replay[data-hv-sector="haxDuty"] .hv-toolbar-meta {
  display: none;
}

html.hv-duty-replay.hv-duty-spectating[data-hv-sector="haxDuty"] .chatContainer,
html.hv-duty-replay.hv-duty-spectating[data-hv-sector="haxDuty"] .bottomSection {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
}

[data-hv-sector="haxDuty"] .hv-duty-briefing {
  position: fixed;
  inset: 0;
  z-index: 14500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.7s ease;
}

[data-hv-sector="haxDuty"] .hv-duty-briefing[hidden] {
  display: none !important;
}

[data-hv-sector="haxDuty"] .hv-duty-briefing.is-out {
  opacity: 0;
  pointer-events: none;
}

[data-hv-sector="haxDuty"] .hv-duty-briefing-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-hv-sector="haxDuty"] .hv-duty-briefing-cd {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  min-width: 64px;
  padding: 8px 14px 6px;
  text-align: center;
  font-family: "Rajdhani", "Orbitron", Impact, sans-serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #ff7a2a;
  text-shadow: 0 0 18px rgba(255, 90, 20, 0.55), 0 2px 0 #000;
  border: 1px solid rgba(80, 210, 255, 0.35);
  background: rgba(8, 12, 16, 0.72);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55) inset, 0 8px 22px rgba(0, 0, 0, 0.45);
}

[data-hv-sector="haxDuty"] .hv-duty-briefing-frame {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  pointer-events: none;
}

[data-hv-sector="haxDuty"] .hv-duty-briefing-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 36px);
  object-fit: contain;
  border: 1px solid rgba(80, 210, 255, 0.22);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}
