/* Мировые боссы: кнопка у миникарты, окно, HUD арены */
/* кнопка у миникарты: тёмно-красная медаль с золотым ободком, рогатый череп, бейдж с числом живых боссов */
.mm-btn.mm-wb { position: relative; width: 38px; height: 38px; margin-top: 4px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; overflow: visible; color: #ffe9d2;
  background: radial-gradient(circle at 36% 28%, #c2423a 0%, #7a1620 46%, #2e070b 100%); box-shadow: inset 0 2px 3px rgba(255, 190, 170, 0.35), inset 0 -3px 5px rgba(0, 0, 0, 0.7), 0 0 0 2px #e2b865, 0 0 0 3px #3a2508, 0 2px 6px rgba(0, 0, 0, 0.75); transition: transform 0.12s, filter 0.15s; }
.mm-btn.mm-wb:hover { background: radial-gradient(circle at 36% 28%, #d8554a 0%, #922030 46%, #3a0a10 100%); filter: brightness(1.12); transform: scale(1.06); }
.mm-btn.mm-wb:active { transform: scale(0.96); }
.mm-wb-skull { position: relative; z-index: 1; display: inline-flex; filter: drop-shadow(0 1px 1px #000) drop-shadow(0 0 4px rgba(255, 120, 90, 0.7)); }
.mm-wb-skull svg { display: block; }
.mm-wb-horn { position: absolute; top: 3px; width: 11px; height: 12px; border: 3px solid #f2dcb0; border-bottom: 0; border-radius: 12px 12px 0 0; filter: drop-shadow(0 1px 1px #000); pointer-events: none; }
.mm-wb-horn.l { left: 2px; border-right: 0; transform: rotate(-28deg); }
.mm-wb-horn.r { right: 2px; border-left: 0; transform: rotate(28deg); }
.mm-wb.alive { animation: wbGlow 2.2s ease-in-out infinite; }
.mm-wb.alive::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(255, 90, 70, 0.7); pointer-events: none; animation: wbRing 2.2s ease-out infinite; }
.mm-wb.alive::after { content: attr(data-n); position: absolute; z-index: 2; right: -7px; top: -7px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; font: 800 11px/16px var(--serif, serif); color: #fff; text-align: center; background: linear-gradient(180deg, #ff5a4a, #b01a1a); border: 1px solid #ffd98a; box-shadow: 0 1px 3px #000; }
@keyframes wbGlow { 0%, 100% { box-shadow: inset 0 2px 3px rgba(255, 190, 170, 0.35), inset 0 -3px 5px rgba(0, 0, 0, 0.7), 0 0 0 2px #e2b865, 0 0 0 3px #3a2508, 0 0 6px 1px rgba(255, 70, 50, 0.45), 0 2px 6px rgba(0, 0, 0, 0.75); } 50% { box-shadow: inset 0 2px 3px rgba(255, 190, 170, 0.35), inset 0 -3px 5px rgba(0, 0, 0, 0.7), 0 0 0 2px #f6d88a, 0 0 0 3px #3a2508, 0 0 16px 4px rgba(255, 70, 50, 0.8), 0 2px 6px rgba(0, 0, 0, 0.75); } }
@keyframes wbRing { 0% { transform: scale(0.85); opacity: 0.8; } 100% { transform: scale(1.3); opacity: 0; } }
@media (max-width: 720px) { .mm-btn.mm-wb { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .mm-wb.alive, .mm-wb.alive::before { animation: none; } .mm-wb.alive { box-shadow: inset 0 2px 3px rgba(255, 190, 170, 0.35), 0 0 0 2px #f6d88a, 0 0 0 3px #3a2508, 0 0 12px 3px rgba(255, 70, 50, 0.7); } .mm-wb.alive::before { opacity: 0.6; } .mm-btn.mm-wb { transition: none; } }
.w-bosses { left: 50%; top: 5%; transform: translateX(-50%); width: min(860px, calc(100vw - 16px)); }
.wb-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 12px; min-height: 380px; }
.wb-list { display: flex; flex-direction: column; gap: 6px; max-height: min(70vh, 560px); overflow-y: auto; padding-right: 2px; }
.wb-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; text-align: left; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.wb-row:hover { border-color: var(--gold2); }
.wb-row.on { border-color: var(--gold); background: #2a2515; }
.wb-row.alive .wb-st { color: #ff9d8a; }
.wb-rn { display: flex; flex-direction: column; min-width: 0; }
.wb-rn small { color: var(--dim); font-size: 11px; }
.wb-por { image-rendering: pixelated; flex: none; background: #0c0d16; border: 1px solid var(--line); border-radius: 6px; }
.wb-det { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-height: min(70vh, 560px); overflow-y: auto; }
.wb-top { display: flex; gap: 12px; align-items: flex-start; }
.wb-ttl h3 { margin: 0 0 4px; color: var(--gold); }
.wb-badges, .wb-chips, .wb-mech, .wb-gear, .wb-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wb-b { padding: 1px 7px; border-radius: 9px; font-size: 11px; border: 1px solid var(--line); background: #17130f; }
.wb-b.pvp { color: #fff; background: #a32a2a; border-color: #ff6b6b; }
.wb-b.rk3, .wb-b.rk4 { color: #ffd24a; border-color: #a9812d; }
.wb-lore { margin: 6px 0; color: var(--dim); font-size: 12.5px; font-style: italic; }
.wb-state { font-weight: 700; }
.wb-need { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; }
.wb-need.t-green { border-color: #3d8f4c; background: rgba(61, 143, 76, .14); }
.wb-need.t-yellow { border-color: #b8921f; background: rgba(184, 146, 31, .14); }
.wb-need.t-red { border-color: #b03a3a; background: rgba(176, 58, 58, .16); }
.wb-m, .wb-chip { padding: 2px 8px; border-radius: 9px; font-size: 12px; background: #17130f; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 3px; }
.wb-chip.uniq { border-color: #b667ff; }
.wb-m { cursor: help; }
.wb-go { min-width: 130px; }
.wb-why { color: #ff9d8a; font-size: 12px; }
.wb-sec h4 { margin: 4px 0; color: var(--gold2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.wb-sec { display: flex; flex-direction: column; gap: 4px; }
.wb-line { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 1px 0; }
.wb-line.me { color: var(--accent); }
.wb-line.first { color: var(--gold); }
.wb-hud { position: relative; z-index: 3; width: 100%; box-sizing: border-box; padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; border: 1px solid #a32a2a; pointer-events: auto; }
.wb-hud-head { display: flex; align-items: center; gap: 4px; }
.wb-hud-head b { flex: 1; min-width: 0; font-size: 12px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-hud:not(.mini) .wb-hud-head b { white-space: normal; }
.wb-hud-sub { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 11px; color: var(--dim); }
.wb-fold { flex: none; width: 20px; height: 20px; padding: 0; line-height: 16px; font-weight: 800; text-align: center; color: var(--text); background: #17130f; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.wb-hud.mini { padding: 3px 6px; }
.wb-hud-r .wb-line { gap: 6px; }
.wb-leave { flex: none; padding: 1px 6px; font-size: 11px; }
.wb-bar { position: relative; height: 14px; border-radius: 7px; background: #2a1010; border: 1px solid #6a2020; overflow: hidden; }
.wb-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #ff6b6b, #a32a2a); transition: width .25s; }
.wb-bar span { position: absolute; inset: 0; text-align: center; font-size: 11px; line-height: 14px; text-shadow: 0 1px 2px #000; }
.wb-hud-t { font-size: 11.5px; color: var(--dim); }
.wb-hud-r { font-size: 12px; }
@media (max-width: 720px) {
  .wb-wrap { grid-template-columns: 1fr; }
  .wb-list { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
  .wb-row { flex: none; width: 190px; }
  .wb-det { max-height: none; }
  .wb-hud { font-size: 11px; padding: 4px 6px; }
  .wb-hud-r { max-height: 64px; overflow: hidden; }
  /* рамка цели на телефоне: под рамкой героя и кошельком, слева от правой колонки (миникарта, HUD боссов и Башни) - ничего не перекрывает */
  .tf, .tf.r-boss, .tf.r-wboss { left: 6px; top: 114px; transform: none; width: calc(100vw - 172px); max-width: 300px; box-sizing: border-box; }
}
.mm-btns { bottom: 26px; }
