/* Bosses lendários: lista, saguão e arena. Cor do assunto: roxo (--c-boss, data-tone="boss"). */
/* ---- tela dos chefes lendários (lista à esquerda, detalhe à direita) ---- */
.modal.win.boss-win { width: min(1200px, 100%); height: min(860px, 100%); }
.boss-win .win-body { padding: 0; display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.boss-win .actions { display: none; }
.bs { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.bs-loading { padding: 16px 18px; }
.bs-head { display: flex; align-items: center; gap: 10px; padding: 8px 18px 0; flex-wrap: wrap; }
.bs-title { flex: 1; min-width: 220px; }
.bs-title p { margin: 0; }
.bs-pill { background: #1a2230; border: 1px solid var(--hud-line, #2f3d4b); border-radius: 999px; padding: 5px 12px; font-size: 12px; color: var(--muted); }
.bs-pill b { color: var(--c-boss, #b98cff); font-size: 14px; }
.bs-lock { margin: 8px 18px 0; }
.bs-bar { display: flex; gap: 8px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--hud-line, #2f3d4b); flex-wrap: wrap; }
.bs-search { width: 230px; max-width: 100%; }
.bs-type { width: auto; }
.bs-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.bs-chip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #1a2230; border: 1px solid var(--hud-line, #2f3d4b); font-size: 12px; font-weight: 600; color: var(--text); }
.bs-chip:hover, .bs-chip:focus-visible { border-color: var(--c-boss, #b98cff); }
.bs-chip.on { background: #2c2240; border-color: var(--c-boss, #b98cff); }
.bs-count { background: rgba(255,255,255,.08); border-radius: 999px; padding: 0 6px; font-size: 11px; color: var(--muted); }
.bs-main { display: grid; grid-template-columns: 340px 1fr; flex: 1; min-height: 0; }
.bs-list { overflow: auto; border-right: 1px solid var(--hud-line, #2f3d4b); padding: 6px 10px 12px; }
.bs-empty { padding: 12px; }
.bs-tier-head { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; padding: 10px 4px 6px; position: sticky; top: -6px; background: #111821; z-index: 1; }
.bs-caret { color: var(--muted); width: 10px; }
.bs-tier-n { font-size: 12px; font-weight: 700; color: var(--c-boss, #b98cff); }
.bs-tier-badge { display: inline-grid; place-items: center; width: 22px; height: 24px; font-size: 12px; font-weight: 800; color: #10141a; clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%); }
.bs-tier-badge.big { width: 40px; height: 44px; font-size: 20px; }
.bs-tier-badge.mini { width: 14px; height: 15px; font-size: 9px; }
.bs-row-force { display: inline-flex; align-items: center; gap: 5px; }
.bs-region-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 800; background: var(--c-boss, #b98cff); color: #10141a; }
.bs-region.locked .bs-region-badge { background: #6b7684; }
.bs-region-lock { font-size: 12px; }
.bs-tier-badge.t1 { background: #9aa7b4; } .bs-tier-badge.t2 { background: #e2b84a; } .bs-tier-badge.t3 { background: #ff9a4a; }
.bs-tier-badge.t4 { background: #b98cff; } .bs-tier-badge.t5 { background: #ff5c7a; }
.bs-dots { display: inline-flex; gap: 2px; }
.bs-dots i { width: 6px; height: 6px; border-radius: 50%; background: #3a4656; }
.bs-dots i.on { background: #ffcf4a; }
.bs-row { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 6px; margin: 4px 0; border-radius: 10px; border: 1px solid transparent; }
.bs-row:hover, .bs-row:focus-visible { background: #18212c; }
.bs-row.on { background: #221c33; border-color: var(--c-boss, #b98cff); }
.bs-row.spent { opacity: .6; }
.bs-thumb { flex: none; width: 112px; height: 62px; border-radius: 8px; background: #0d1a12 center / cover; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.bs-thumb img { filter: drop-shadow(0 2px 2px rgba(0,0,0,.7)); }
.bs-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bs-row-text strong { font-size: 14px; display: flex; align-items: center; gap: 4px; }
.bs-row-text .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bs-tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #1a2230; border: 1px solid var(--hud-line, #2f3d4b); white-space: nowrap; }
.bs-tag.won { color: var(--good); border-color: rgba(120,220,140,.5); }
.bs-tag.caught { color: #ffcf4a; border-color: rgba(255,207,74,.5); }
.bs-tag.lobby { color: var(--c-boss, #b98cff); border-color: var(--c-boss, #b98cff); }
.bs-left { font-size: 12px; font-weight: 700; color: #8fd0ff; }
.bs-left.none { color: var(--muted); }
.bs-m { font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: #ffcf4a; color: #1b1405; }
.bs-detail { display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.bs-hero { position: relative; flex: none; height: 230px; display: flex; align-items: flex-end; justify-content: space-between; padding: 16px 22px; background: #0d1a12 center 40% / cover; }
.bs-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,20,.92) 0%, rgba(10,14,20,.55) 45%, rgba(10,14,20,.05) 100%), linear-gradient(0deg, #111821 0%, transparent 40%); }
.bs-hero > * { position: relative; }
.bs-hero-tags { display: flex; gap: 8px; align-items: center; }
.bs-hero-tags .type { font-size: 12px; padding: 3px 9px; }
.bs-name { margin: 6px 0 2px; font-size: 40px; line-height: 1; text-shadow: 0 2px 6px rgba(0,0,0,.8); }
.bs-where { margin: 0; font-size: 13px; color: #d7dfe8; text-shadow: 0 1px 3px #000; }
.bs-force { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; background: rgba(10,14,20,.75); border: 1px solid var(--hud-line, #2f3d4b); border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.bs-art-btn { all: unset; cursor: pointer; align-self: center; }
.bs-art { width: 168px; height: 168px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.7)); }
.bs-tabs { display: flex; gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--hud-line, #2f3d4b); flex-wrap: wrap; }
.bs-tab { all: unset; cursor: pointer; padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; }
.bs-tab:hover, .bs-tab:focus-visible { color: var(--text); }
.bs-tab.on { color: var(--text); border-bottom-color: var(--c-boss, #b98cff); }
.bs-pane { padding: 14px 18px; flex: 1; }
.bs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.bs-card { display: flex; gap: 10px; align-items: center; background: #161e29; border: 1px solid var(--hud-line, #2f3d4b); border-radius: 10px; padding: 10px 12px; }
.bs-card-ico { font-size: 20px; width: 26px; text-align: center; }
.bs-card strong { display: block; font-size: 20px; }
.bs-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.bs-tip { border-radius: 12px; padding: 10px 12px; border: 1px solid; }
.bs-tip.good { background: #13221a; border-color: #2f6b45; }
.bs-tip.bad { background: #26151b; border-color: #6b2f3e; }
.bs-tip h4 { margin: 0 0 8px; font-size: 14px; }
.bs-tip.good h4 { color: #7be09a; } .bs-tip.bad h4 { color: #ff8a9a; }
.bs-tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.bs-type-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; height: 52px; border-radius: 8px; color: #10141a; font-size: 11px; font-weight: 800; text-transform: uppercase; box-shadow: inset 0 -3px rgba(0,0,0,.2); }
.bs-type-tile b { font-size: 16px; }
.bs-moves { display: grid; gap: 6px; }
.bs-move { display: flex; align-items: center; gap: 10px; background: #161e29; border: 1px solid var(--hud-line, #2f3d4b); border-radius: 10px; padding: 8px 12px; flex-wrap: wrap; }
.bs-arena-img { height: 220px; border-radius: 12px; background: #0d1a12 center / cover; margin-bottom: 10px; }
.bs-sub { margin: 14px 0 6px; }
.bs-balls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.bs-ball { display: flex; flex-direction: column; gap: 2px; background: #161e29; border: 1px solid var(--hud-line, #2f3d4b); border-radius: 10px; padding: 8px 10px; }
.bs-ball strong { font-size: 18px; color: var(--c-boss, #b98cff); }
.bs-ball.none { opacity: .55; }
.bs-lobbies { display: grid; gap: 6px; }
.bs-lobby { display: flex; align-items: center; gap: 10px; background: #161e29; border: 1px solid var(--hud-line, #2f3d4b); border-radius: 10px; padding: 8px 12px; }
.bs-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--hud-line, #2f3d4b); background: #0f151d; flex-wrap: wrap; }
.bs-nav { all: unset; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--hud-line, #2f3d4b); border-radius: 8px; font-weight: 800; }
.bs-nav:hover, .bs-nav:focus-visible { border-color: var(--c-boss, #b98cff); }
.bs-foot-info { display: flex; flex-direction: column; margin-left: 6px; }
.bs-foot-info .good { color: var(--good); } .bs-foot-info .warn { color: var(--bad); }
.bs-go { all: unset; cursor: pointer; padding: 12px 34px; border-radius: 10px; font-size: 18px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #160f22; background: linear-gradient(180deg, #d9c2ff, #a77cff); box-shadow: 0 0 0 2px #e9dcff inset, 0 0 18px rgba(185,140,255,.45); }
.bs-go:hover:not(:disabled), .bs-go:focus-visible { filter: brightness(1.08); }
.bs-go:disabled { cursor: not-allowed; background: #2a2f38; color: var(--muted); box-shadow: none; }
@media (max-width: 820px) {
  .bs-head { padding: 6px 12px 0; gap: 6px; }
  .bs-title { display: none; }
  .bs-bar { padding: 8px 12px; flex-wrap: nowrap; overflow-x: auto; }
  .bs-search { width: 150px; flex: none; }
  .bs-chips { flex-wrap: nowrap; flex: none; }
  .bs-type { flex: none; }
  .bs-main { display: block; overflow: auto; }
  .bs-list { max-height: 230px; border-right: 0; border-bottom: 1px solid var(--hud-line, #2f3d4b); }
  .bs-detail { overflow: visible; }
  .bs-thumb { width: 84px; height: 48px; }
  .bs-hero { height: 180px; } .bs-name { font-size: 28px; } .bs-art { width: 110px; height: 110px; }
  .bs-tips { grid-template-columns: 1fr; }
  .bs-go { padding: 10px 18px; font-size: 15px; }
}
.boss-lobby-head { display: flex; gap: 12px; align-items: center; }
.boss-lobby-head h3 { margin: 0; }
.boss-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.boss-member { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-height: 74px; }
.boss-member.empty { display: grid; place-items: center; border-style: dashed; }
.boss-member.ready { border-color: var(--good); }
.boss-member.you { box-shadow: inset 0 0 0 1px var(--c-boss, #b98cff); }
.boss-ready { margin-top: 4px; font-size: 12px; }
.boss-member.ready .boss-ready { color: var(--good); font-weight: 600; }
.boss-countdown { font-size: 22px; font-weight: 800; color: var(--accent); text-align: center; margin: 8px 0; }
.boss-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.boss-pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--panel2); color: var(--text); border: 2px solid transparent; border-radius: 10px; padding: 6px; cursor: pointer; font: inherit; }
.boss-pick .track { width: 100%; }
.boss-pick.sel { border-color: var(--c-boss, #b98cff); background: #2a2238; }
.boss-pick:disabled { opacity: .5; cursor: not-allowed; }
.boss-order { position: absolute; left: 6px; top: 4px; background: var(--c-boss, #b98cff); color: #160f22; border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.boss-setup .row { margin-top: 10px; }
.boss-caught { display: flex; justify-content: center; }
p.good { color: var(--good); }

/* arena */
.boss-top { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); display: flex; gap: 10px; align-items: center; pointer-events: none; z-index: 3; }
.boss-hp { flex: 1; background: rgba(12,18,24,.88); border: 1px solid #b98cff; border-radius: 10px; padding: 6px 10px; }
.boss-hp .track { height: 12px; }
.boss-hp-name { font-weight: 700; font-size: 13px; }
.boss-timer { background: rgba(12,18,24,.88); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: 700 18px ui-monospace, monospace; }
.boss-timer.low { color: var(--bad); border-color: var(--bad); }
.boss-side { position: absolute; left: 12px; top: 80px; width: 210px; background: rgba(12,18,24,.82); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; pointer-events: none; z-index: 3; }
.boss-side h4 { margin: 0 0 6px; }
.boss-side-p { border-left: 3px solid var(--owner); padding-left: 6px; margin: 6px 0; }
.boss-side-p.you strong { color: var(--c-money, #f5c84c); }
.boss-side-line { display: flex; gap: 4px; align-items: baseline; }
.boss-side-line strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boss-meter-v { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 12px; white-space: nowrap; pointer-events: auto; }
.boss-meter-bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); margin: 2px 0 1px; overflow: hidden; }
.boss-meter-bar i { display: block; height: 100%; width: 0; background: var(--owner); transition: width .25s; }
.boss-meter-tabs { display: flex; gap: 3px; margin: 0 0 6px; pointer-events: auto; }
.boss-meter-tabs button { flex: 1; padding: 2px 4px; font: inherit; font-size: 11px; color: inherit; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 6px; cursor: pointer; }
.boss-meter-tabs button.on { background: rgba(87,169,255,.28); border-color: #57a9ff; }
.boss-side.many { max-height: calc(100% - 330px); overflow: hidden; }
.boss-side { width: 230px; }
.boss-side.many .boss-side-p { margin: 1px 0; font-size: 11px; line-height: 1.2; }
.boss-side.many .boss-meter-v { font-size: 11px; }
.boss-side.many .boss-side-p .tag { font-size: 9px; }
.boss-side.many .boss-side-mon { display: none; }
.boss-log { position: absolute; left: 12px; bottom: 16px; width: min(420px, calc(100vw - 24px)); background: rgba(12,18,24,.72); border-radius: 10px; padding: 6px 10px; font-size: 12px; pointer-events: none; z-index: 3; }
.boss-log-line.foe { color: #ffb0a8; } .boss-log-line.bad { color: var(--bad); } .boss-log-line.good { color: var(--good); }
/* barra de golpes do seu Pokémon (a mesma da Hunt), embaixo no meio */
.boss-skills { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; }
@media (min-width: 900px) { .boss-log { width: min(320px, calc(50vw - 230px)); } }
@media (max-width: 899px) { .boss-log { bottom: 120px; max-height: 90px; overflow: hidden; } }
@media (max-width: 640px) { .boss-side { top: auto; bottom: 220px; width: 170px; } }
/* nome do golpe em cima de quem usa */
.skill-tag { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 4; white-space: nowrap; font: 800 12px system-ui, sans-serif; color: #fff;
  padding: 2px 8px; border-radius: 999px; background: rgba(12,16,22,.9); border: 2px solid var(--tc); box-shadow: 0 0 10px color-mix(in srgb, var(--tc) 60%, transparent); text-shadow: 0 1px 0 #000; }
.skill-tag.foe { font-size: 14px; padding: 3px 10px; }
/* aviso da Master Ball no saguão: ele escolhe na hora qual bola vai usar no lendário */
.boss-master { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border-radius: 8px;
  border: 2px solid var(--c-money, #f5c84c); background: rgba(245, 200, 76, .1); }
.boss-master.on { background: rgba(245, 200, 76, .22); }
.boss-master img { image-rendering: pixelated; }
.boss-master-btns { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 720px) { .boss-master { flex-wrap: wrap; } }
