/* Aim HUD — ishoutu/Valorant style
 * Assets: /aim-hud/ (C:\Users\Breno\Downloads\valaim\aim-hud\)
 */
.aim-hud {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  font-family: "Barlow Condensed", "Segoe UI", system-ui, sans-serif;
  color: #e8eef6;
}

.aim-hud__mm {
  position: absolute;
  top: 14px;
  left: 14px;
  pointer-events: none;
}

.aim-mm {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  background: #0a0e14;
  overflow: hidden;
}
.aim-mm__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  pointer-events: none;
}
.aim-mm__cv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Kill confirm — acima do canvas / stage overlays */
.aim-hud__killhost {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  z-index: 60;
  pointer-events: none;
}
.aim-kill-banner {
  width: min(300px, 38vw);
  aspect-ratio: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}
.aim-kill-banner[hidden] {
  display: none !important;
}
.aim-kill-banner__canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Shop hint (top center) */
.aim-hud__shop-hint {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  padding: 10px 18px;
  border-radius: 4px;
  background: rgba(8, 12, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: rgba(232, 238, 246, 0.92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}
.aim-hud__shop-hint kbd {
  display: inline-block;
  padding: 1px 7px;
  margin: 0 3px;
  border: 1px solid rgba(157, 255, 184, 0.45);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.4);
  font: 13px/1.35 ui-monospace, monospace;
  color: #9dffb8;
}
.aim-hud__shop-hint.is-fade {
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
}

/* Kit 1 / 2 / 3 — estilo weapon-hud */
.aim-hud__kit {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  margin-left: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}
.aim-hud__kit-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  min-width: 108px;
  height: 84px;
}
.aim-hud__kit-slot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 26px;
  opacity: 0.38;
  transition: opacity 0.12s ease;
}
.aim-hud__kit-slot.is-active {
  opacity: 1;
}
.aim-hud__kit-icon {
  display: block;
  height: 24px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.aim-hud__kit-slot[data-kit-slot="3"] .aim-hud__kit-icon {
  height: 18px;
  max-width: 64px;
}
.aim-hud__kit-rail {
  position: relative;
  width: 22px;
  height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  box-sizing: border-box;
}
.aim-hud__kit-rail-line {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
  background: rgba(245, 247, 250, 0.85);
}
.aim-hud__kit-pip {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  color: rgba(232, 238, 246, 0.55);
  opacity: 0.45;
  transition: opacity 0.12s ease, color 0.12s ease;
}
.aim-hud__kit-pip.is-active {
  opacity: 1;
  color: #f5f7fa;
}

/* Bottom vitals */
.aim-hud__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.aim-hud__vitals {
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.aim-hud__hp,
.aim-hud__armor {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.aim-hud__hp span,
.aim-hud__armor span,
.aim-hud__ammo span {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}
.aim-hud__hp span {
  color: #e8eef6;
}
.aim-hud__armor span {
  color: #7ec8ff;
  font-size: 28px;
}
.aim-hud__vitals small,
.aim-hud__ammo small {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 238, 246, 0.55);
  margin-top: 2px;
}
.aim-hud__ammo {
  text-align: center;
  min-width: 140px;
}
.aim-hud__ammo i {
  font-style: normal;
  opacity: 0.45;
  margin: 0 4px;
  font-size: 28px;
}
.aim-hud__ammo [data-reserve] {
  font-size: 26px;
  opacity: 0.7;
}
.aim-hud__prompts {
  font-size: 13px;
  color: rgba(232, 238, 246, 0.7);
  letter-spacing: 0.04em;
}
.aim-hud__prompts kbd {
  display: inline-block;
  padding: 1px 6px;
  margin: 0 2px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  font: 12px/1.4 ui-monospace, monospace;
  color: #9dffb8;
}

/* Buy menu — pointer-events only when open */
.aim-hud__buyhost {
  pointer-events: none;
}
.aim-buy.is-open {
  pointer-events: auto;
}
.aim-buy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: rgba(4, 8, 12, 0.78);
  backdrop-filter: blur(8px);
  z-index: 6;
  padding: 2vh 1.5vw;
  box-sizing: border-box;
}
.aim-buy[hidden] {
  display: none !important;
}
.aim-buy__panel {
  width: min(1320px, 98vw);
  max-height: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr minmax(200px, 240px);
  grid-template-rows: 1fr auto;
  gap: 0;
  background: rgba(14, 18, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.65);
}
.aim-buy__grid {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 8px;
  padding: 16px 14px 10px 16px;
  overflow: auto;
  align-content: start;
}
.aim-buy__detail {
  grid-column: 2;
  grid-row: 1;
  padding: 14px 14px 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  overflow: auto;
}
.aim-buy__foot {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(232, 238, 246, 0.65);
}
.aim-buy__col header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 238, 246, 0.82);
  margin-bottom: 8px;
}
.aim-buy__col header i {
  width: 3px;
  height: 12px;
  background: #5b8cff;
  display: inline-block;
  flex-shrink: 0;
}
.aim-buy__split {
  height: 1px;
  margin: 12px 0 10px;
  background: rgba(255, 255, 255, 0.08);
}
.aim-buy__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  margin: 0 0 8px;
  padding: 12px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 28, 36, 0.92);
  color: inherit;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
  font: inherit;
  text-align: center;
}
.aim-buy__card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(30, 38, 48, 0.96);
}
.aim-buy__card.is-selected {
  border-color: rgba(200, 212, 228, 0.55);
  background: rgba(32, 40, 52, 0.98);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.aim-buy__card.is-equipped {
  border-color: rgba(126, 200, 255, 0.42);
  background: rgba(24, 32, 42, 0.94);
}
.aim-buy__card.is-equipped.is-selected {
  border-color: rgba(160, 210, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(126, 200, 255, 0.15);
}
.aim-buy__card img {
  width: 82%;
  height: 44px;
  object-fit: contain;
  filter: brightness(1.08) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.aim-buy__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 2px;
}
.aim-buy__sub {
  font-size: 10px;
  line-height: 1.3;
  color: rgba(232, 238, 246, 0.5);
  letter-spacing: 0.02em;
}
.aim-buy__tag {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 238, 246, 0.55);
  min-height: 12px;
  z-index: 1;
  padding: 2px 5px;
  background: transparent;
  border-radius: 2px;
  max-width: calc(100% - 8px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aim-buy__card.is-equipped .aim-buy__tag {
  color: rgba(232, 238, 246, 0.92);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.aim-buy__card--armor {
  min-height: 92px;
  justify-content: center;
}
.aim-buy__armor-ico {
  width: 36px;
  height: 40px;
  margin: 4px 0;
  background: linear-gradient(180deg, rgba(126, 200, 255, 0.35), rgba(60, 120, 180, 0.2));
  clip-path: polygon(50% 0%, 100% 22%, 100% 78%, 50% 100%, 0% 78%, 0% 22%);
  border: 1px solid rgba(126, 200, 255, 0.45);
  box-sizing: border-box;
}
.aim-buy__detail-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.aim-buy__detail-head strong {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.aim-buy__detail-head span {
  font-size: 12px;
  color: rgba(232, 238, 246, 0.55);
}
.aim-buy__hero {
  width: 100%;
  height: 90px;
  object-fit: contain;
  margin-bottom: 12px;
}
.aim-buy__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.aim-buy__stats li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 4px;
}
.aim-buy__stats span {
  color: rgba(232, 238, 246, 0.55);
}
.aim-buy__dmg {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.aim-buy__range {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}
.aim-buy__range-head {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 238, 246, 0.55);
  margin-bottom: 8px;
}
.aim-buy__range-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  color: rgba(232, 238, 246, 0.55);
}
.aim-buy__range-row--val {
  color: rgba(232, 238, 246, 0.92);
}
.aim-buy__range-row--val b {
  font-weight: 600;
}
.aim-buy__using {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 238, 246, 0.45);
  min-height: 16px;
}
.aim-buy__using:not(:empty) {
  color: rgba(200, 218, 240, 0.85);
}

/* Hide legacy text HUD when aim-hud is present */
.aim-native-stage:has(.aim-hud) .aim-native-hud {
  display: none;
}
