/* Celestial Peak — bestiário da página Chefes (js/chefes.js). Usa as variáveis de css/site.css e os ícones,
   raridades e linhas de drop de css/items.css (.it-ico, .loot-*, .c-high...). Mobile-first, 320-1920 px. */

.bst-bar { display: grid; gap: 14px; margin-bottom: 18px; }
.bst-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(10, 14, 34, .7); }
.bst-tab {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 10px; border: 0; border-radius: 12px;
  background: transparent; color: var(--muted); font: 700 clamp(13px, 3.4vw, 15px)/1.15 var(--f-label); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: background .2s, color .2s;
}
.bst-tab svg { width: 18px; height: 18px; flex: none; }
.bst-tab span { min-width: 26px; padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12px; letter-spacing: 0; color: var(--muted); }
.bst-tab:hover { color: #fff; }
.bst-tab[aria-selected="true"] { color: #1a1206; background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 8px 24px -12px rgba(244, 199, 106, .8); }
.bst-tab[aria-selected="true"] span { background: rgba(26, 18, 6, .16); color: #1a1206; }
.bst-tools { display: grid; gap: 10px; }
.bst-search { max-width: none; }
.bst-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
.bst-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bst-chip { min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 14, 34, .6); color: var(--muted); font: 700 13px/1 var(--f-label); letter-spacing: .06em; cursor: pointer; }
.bst-chip:hover { color: #fff; }
.bst-chip[aria-pressed="true"] { color: var(--gold-2); border-color: rgba(244, 199, 106, .5); background: rgba(244, 199, 106, .1); }
.bst-count { margin: 0 0 14px; color: var(--muted); font-size: 14px; min-height: 1.4em; }
.bst-note { display: grid; gap: 6px; margin: 0 0 22px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(10, 14, 34, .5); color: var(--muted); font-size: 14px; }
.bst-note b { color: #e7ebff; font-weight: 600; }
@media (min-width: 760px) {
  .bst-tools { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

/* grupos (dungeon, região, evento) */
.bst-group { --dc: var(--gold); }
.bst-group + .bst-group { margin-top: clamp(30px, 5vw, 46px); }
.bst-gh { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--dc) 35%, transparent); }
.bst-gi { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--dc); background: color-mix(in srgb, var(--dc) 14%, rgba(10, 14, 34, .8)); border: 1px solid color-mix(in srgb, var(--dc) 40%, transparent); }
.bst-gi svg { width: 22px; height: 22px; }
.bst-gh h3 { font: 700 clamp(19px, 2.4vw, 26px)/1.15 var(--f-display); overflow-wrap: anywhere; }
.bst-gh p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.bst-gh a { color: var(--dc); text-decoration: underline; text-underline-offset: 3px; }
.bst-gd { margin: 10px 0 0; color: #c3c9e8; font-size: 14.5px; max-width: 80ch; }
.bst-cards { display: grid; gap: 14px; margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }

/* ficha do chefe */
.bc {
  --dc: var(--gold); --ec: var(--muted); position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px;
  border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--dc) 26%, var(--line)); scroll-margin-top: calc(var(--header-h) + 70px);
  background: radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--dc) 12%, transparent), transparent 60%), rgba(12, 16, 40, .72);
}
.bc.is-colossus { border-color: color-mix(in srgb, var(--gold) 45%, transparent); box-shadow: 0 0 0 1px rgba(244, 199, 106, .12), 0 24px 50px -30px rgba(244, 199, 106, .5); }
.bc.is-mini { background: rgba(12, 16, 40, .55); }
.bc.is-focus { animation: bc-focus 1.6s var(--ease) 2; }
@keyframes bc-focus { 50% { box-shadow: 0 0 0 2px var(--gold), 0 0 40px -6px var(--gold); } }
.bc-head { display: flex; gap: 14px; align-items: flex-start; }
.bc-art { position: relative; flex: none; width: 92px; height: 92px; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--ec) 40%, transparent), rgba(8, 10, 28, .95) 70%); border: 1px solid color-mix(in srgb, var(--ec) 40%, transparent); }
.bc-banner { position: relative; margin: -14px -14px -46px; height: 132px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.bc-banner img { width: 100%; height: 100%; object-fit: cover; }
.bc-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 16, 40, 1) 4%, rgba(12, 16, 40, .55) 50%, rgba(12, 16, 40, .1)); }
.bc.has-shot .bc-head { position: relative; }
.bc-glyph { color: var(--ec); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--ec) 70%, transparent)); }
.bc-glyph svg { width: 40px; height: 40px; }
.bc-lv { position: absolute; z-index: 1; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 7px; background: rgba(6, 8, 22, .82); color: var(--gold-2); font: 800 12px/1.3 var(--f-label); letter-spacing: .04em; }
.bc-title { min-width: 0; flex: 1; }
.bc-kind { margin: 0 0 3px; font: 700 11.5px/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--dc); }
.bc.is-colossus .bc-kind { color: var(--gold); }
.bc-title h3 { font: 700 clamp(18px, 2vw, 21px)/1.15 var(--f-display); color: #fff; overflow-wrap: anywhere; }
.bc-sub { margin: 2px 0 0; color: #cdd2ee; font-size: 14px; line-height: 1.3; }
.bc-where { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.bc-where svg { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.bc-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: 0; }
.bc-stats div { padding: 7px 9px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); min-width: 0; }
.bc-stats dt { font: 700 10.5px/1.2 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.bc-stats dd { margin: 2px 0 0; font: 600 14px/1.25 var(--f-ui); color: #e7ebff; overflow-wrap: anywhere; }
.bc-weak { display: flex; gap: 8px; margin: 0; font-size: 13.5px; line-height: 1.5; color: #c3c9e8; }
.bc-weak svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--ec); }
.bc-best { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-best a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; }
.bc-best a span { font: 700 11.5px/1 var(--f-label); color: var(--muted); font-variant-numeric: tabular-nums; }
.bc-best a:hover span { color: #fff; }
.bc-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: auto; padding: 8px 12px;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--dc) 40%, transparent); background: color-mix(in srgb, var(--dc) 9%, transparent);
  color: #fff; font: 700 13.5px/1 var(--f-label); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s;
}
.bc-toggle:hover { background: color-mix(in srgb, var(--dc) 18%, transparent); }
.bc-toggle svg { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .25s var(--ease); }
.bc-toggle[aria-expanded="true"] svg { transform: rotate(-90deg); }
.bc-loot .loot-part:first-child { margin-top: 2px; }
.bc .loot-list { grid-template-columns: minmax(0, 1fr); list-style: none; margin: 10px 0 0; padding: 0; }
.loot-row.is-hit { border-color: var(--gold); background: rgba(244, 199, 106, .1); box-shadow: 0 0 0 1px rgba(244, 199, 106, .35); }
@media (max-width: 380px) {
  .bc { padding: 12px; }
  .bc-banner { margin: -12px -12px -40px; height: 112px; }
  .bc-art { width: 72px; height: 72px; border-radius: 13px; }
  .bc-glyph svg { width: 32px; height: 32px; }
  .loot-row { gap: 9px; padding-right: 9px; }
}
@media (prefers-reduced-motion: reduce) { .bc.is-focus { animation: none; box-shadow: 0 0 0 2px var(--gold); } .bc-toggle svg { transition: none; } }

/* dungeons da Ilha de Kurogane (cartões sem captura) e colossos ainda sem captura */
.dg-sub { margin: clamp(36px, 5vw, 56px) 0 16px; font: 700 clamp(22px, 2.6vw, 30px)/1.15 var(--f-display); }
#dungeons .card { display: flex; flex-direction: column; gap: 10px; }
#dungeons .card .tags { margin: 0; }
#dungeons .card p { margin: 0; }
.boss-ph { --ec: var(--gold); width: 96px; height: 72px; border-radius: 10px; display: grid; place-items: center; color: var(--ec);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--ec) 38%, transparent), rgba(8, 10, 28, .95) 72%); border: 1px solid color-mix(in srgb, var(--ec) 40%, transparent); }
.boss-ph svg { width: 34px; height: 34px; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--ec) 70%, transparent)); }
