/* HUD — верхний и нижний бары поверх карты */
.hud__top, .hud__bottom { position: fixed; left: 50%; transform: translateX(-50%); max-width: 520px; width: 100%; }
.hud__top { top: 0; }
.hud__bottom { bottom: 0; }

/* Аватар с гексагоном */
.hud__avatar { cursor: pointer;
  position: relative;
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hud__hex {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent));
}
.hud__avatar-img {
  width: 70%; height: 70%;
  object-fit: contain;
  z-index: 1;
}
.hud__lvl { cursor: pointer;
  position: absolute;
  bottom: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: var(--accent);
  z-index: 2;
  font-family: var(--mono);
}

/* Ник + XP */
.hud__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hud__name-row { display: flex; align-items: baseline; gap: 8px; }
.hud__name { cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--team-0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud__xp {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}
.hud__xpbar {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
}
.hud__xpbar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #a855f7);
  transition: width .3s var(--ease);
}

/* Кнопки HUD (OPS / COMM) */
.hud__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: background .15s var(--ease), border-color .15s var(--ease);
  position: relative;
}
.hud__btn:hover { background: var(--border); border-color: var(--accent); }
.hud__btn:active { transform: scale(.96); }
.hud__btn--right { margin-left: auto; }
.hud__btn-label { display: none; }
@media (min-width: 380px) { .hud__btn-label { display: inline; } }

.hud__badge {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  font-family: var(--mono);
}

/* Статусная строка (снизу) */
.hud__status {
  flex: 1;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
  font-family: var(--mono);
}
.hud__status .hud__status-team { color: var(--team-0); font-weight: 600; }

/* Эффекты — бейджи ниже top бара */
.effects {
  position: fixed;
  top: calc(var(--hud-h) + 8px);
  left: 50%;
  transform: translateX(calc(-50% - 240px + 12px));
  max-width: 520px;
  width: 100%;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 19;
  pointer-events: none;
}
.effect {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
.effect[data-type='6'] { border-color: var(--accent); color: var(--accent); }
.effect[data-type='7'] { border-color: var(--purple); color: var(--purple); }

/* Навигационный флоатер */
.navi-floater {
  position: fixed;
  bottom: calc(var(--hud-h) + 12px);
  right: 12px;
  width: 220px;
  max-width: calc(100vw - 24px);
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--team-0);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  backdrop-filter: blur(10px);
  z-index: 18;
  transition: height .2s var(--ease);
  overflow: hidden;
}
.navi-floater.closed { height: 36px; padding: 4px 10px; }
.navi-floater.closed .navi-image, .navi-floater.closed .navi-row { display: none; }
.navi-sizer {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 22px;
  border-radius: 4px;
}
.navi-sizer:hover { background: var(--border); }
.navi-image {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
  flex-shrink: 0;
}
.navi-meta { flex: 1; min-width: 0; }
.navi-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navi-row { display: flex; gap: 8px; font-size: 11px; color: var(--text-dim); font-family: var(--mono); margin-top: 2px; }
.navi-bearing-wrp { flex-shrink: 0; }
#navi-bearing { transition: transform .2s var(--ease); color: var(--accent); }

@media (max-width: 480px) {
  .hud__status { font-size: 11px; }
  .hud__name { font-size: 14px; }
}
