/* ── Boss telegraph ring ── */
.boss-telegraph {
  position: absolute;
  pointer-events: none;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  margin-left: -70px;
  margin-top: -70px;
  border-radius: 50%;
  border: 3px solid rgba(232, 80, 0, 0.9);
  box-shadow: 0 0 18px rgba(232, 80, 0, 0.7), inset 0 0 18px rgba(232, 80, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(232, 80, 0, 0.95);
  text-transform: uppercase;
  z-index: 601;
}

/* ── Boss weak state (box-shadow/filter only, never transform) ── */
.boss-weak .boss-hp-arc path {
  stroke: #ffe066 !important;
  filter: drop-shadow(0 0 8px rgba(255, 220, 0, 0.95)) !important;
}
.boss-entity.boss-weak,
.boss1.boss-weak {
  filter: drop-shadow(0 0 16px rgba(255, 220, 80, 0.95))
          drop-shadow(0 0 6px rgba(255, 255, 200, 0.7));
}

/* ── Boss HP bar — SVG arc matching the XP progression arc ── */
#boss-hp-bar {
  position: fixed;
  top: 208px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  pointer-events: none;
  text-align: center;
}
.boss-hp-bar__arc {
  display: block;
  /* ×2 к прежнему min(1040px, 74vw) — Лео 2026-07-09, п.14 (на FHD упирается в 96vw). */
  width: min(2080px, 96vw);
  overflow: visible;
}
.boss-hp-bar__arc-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.10);
  stroke-width: 3;
  stroke-linecap: round;
}
.boss-hp-bar__arc-fill {
  fill: none;
  stroke: #ff7a2e;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  transition: stroke-dasharray 0.25s ease-out, stroke 0.4s ease;
  filter: drop-shadow(0 0 7px rgba(255, 100, 30, 0.9));
}
/* Деления на 10 отрезков (макс. HP босса = 10 → 1 отрезок = 1 HP): тёмные засечки
   поверх заливки, по pathLength=100 засечка 0.7 юнита с центром на каждых 10%. */
.boss-hp-bar__arc-ticks {
  fill: none;
  stroke: rgba(5, 8, 14, 0.92);
  stroke-width: 8;
  stroke-linecap: butt;
  stroke-dasharray: 0.7 9.3;
  stroke-dashoffset: -9.65;
  pointer-events: none;
}
.boss-hp-bar__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255, 180, 120, 0.65);
  text-shadow: 0 0 10px rgba(255, 90, 0, 0.5);
  text-transform: uppercase;
  margin-top: 4px;
}
@keyframes boss-hp-shake {
  0%   { transform: translateX(-50%) translateY(0); }
  15%  { transform: translateX(calc(-50% + 5px)) translateY(-2px); }
  30%  { transform: translateX(calc(-50% - 5px)) translateY(2px); }
  45%  { transform: translateX(calc(-50% + 3px)) translateY(-1px); }
  60%  { transform: translateX(calc(-50% - 3px)) translateY(1px); }
  75%  { transform: translateX(calc(-50% + 1px)) translateY(0); }
  100% { transform: translateX(-50%) translateY(0); }
}
#boss-hp-bar.boss-hp-bar--shake {
  animation: boss-hp-shake 0.28s ease-out forwards;
}

/* ── Boss intro crew-log chip ── */
.boss-intro-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 560px;
  width: max-content;
  padding: 14px 16px;
  background: rgba(8, 12, 19, 0.82);
  border: 1px solid rgba(232, 80, 0, 0.4);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 120, 60, 0.08);
  backdrop-filter: blur(6px);
}
.boss-intro-chip__name {
  font: 700 12px/1 'Exo 2', 'Montserrat', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff9b5a;
  margin-bottom: 6px;
}
.boss-intro-chip__body {
  font: 500 15px/1.45 'Montserrat', sans-serif;
  color: #e9eef5;
}
.boss-intro-chip__skip {
  margin-left: 14px;
  align-self: center;
  background: rgba(8, 12, 19, 0.6);
  border: 1px solid rgba(232, 80, 0, 0.45);
  color: #e85000;
  font: 600 12px/1 'Montserrat', sans-serif;
  letter-spacing: 0.12em;
  padding: 7px 14px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.boss-intro-chip__skip:hover {
  background: rgba(232, 80, 0, 0.18);
}

/* ── DYK / ship-log comm chip (bottom-center; positioned via JS) ── */
.qd-dyk-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: 560px;
  background: rgba(10, 14, 20, 0.9);
  border: 1px solid rgba(232, 80, 0, 0.35);
  border-radius: 10px;
  padding: 12px 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.qd-dyk-portrait {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex: 0 0 56px;
  border: 2px solid #e85000;
  box-shadow: 0 0 12px rgba(232, 80, 0, 0.4);
}
.qd-dyk-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.qd-dyk-txt {
  flex: 1;
  min-width: 0;
}
.qd-dyk-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #e85000;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.qd-dyk-body {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

/* ── Shield blink hint (boss combat feedback — shield canvas flashes 3×) ── */
@keyframes shield-canvas-blink {
  0%,28%,58%,93%,100% { opacity:1; }
  14%,43%,75%         { opacity:0; }
}
.shield-blink-active {
  animation:shield-canvas-blink 3.6s ease-in-out forwards;
}
