.bb-bossgear-page .cover p {
  max-width: 780px;
  margin-inline: auto;
}

.bb-bossgear-layout {
  width: min(1500px, calc(100% - 48px));
  margin: 34px auto 0;
  display: grid;
  gap: 24px;
}

.bb-bg-panel {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 30px);
  color: #eee3df;
  background: #151014;
  border: 1px solid rgba(221, 169, 131, .22);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .2);
}

.bb-bg-section-head,
.bb-bg-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.bb-bg-section-head > span,
.bb-bg-results-head > div > span {
  display: block;
  margin-bottom: 5px;
  color: #ce8b68;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bb-bg-section-head h2,
.bb-bg-results-head h2 {
  margin: 0;
  color: #f1dfd5;
  font: 600 clamp(1.35rem, 2.4vw, 1.8rem)/1.2 Cinzel, Georgia, serif;
}

.bb-bg-boss-controls,
.bb-bg-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bb-bg-boss-controls label,
.bb-bg-controls label,
.bb-bg-stat-grid label {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.bb-bg-boss-controls label > span,
.bb-bg-controls label > span,
.bb-bg-stat-grid label > span {
  color: #c6aaa0;
  font: 600 .76rem/1.35 Cinzel, Georgia, serif;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.bb-bg-boss-controls select,
.bb-bg-controls select,
.bb-bg-controls input[type="search"],
.bb-bg-stat-grid input {
  width: 100%;
  min-height: 46px;
  padding: 10px 38px 10px 13px;
  color: #f1e6e2;
  background-color: #21171d;
  border: 1px solid rgba(217, 166, 135, .35);
  border-radius: 0;
  outline: none;
  font: 500 .93rem/1.35 Cinzel, Georgia, serif;
  color-scheme: dark;
}

.bb-bg-boss-controls select,
.bb-bg-controls select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m2 4.5 5 5 5-5' fill='none' stroke='%23cf8d69' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}

.bb-bg-boss-controls select:focus-visible,
.bb-bg-controls select:focus-visible,
.bb-bg-controls input:focus-visible,
.bb-bg-stat-grid input:focus-visible,
.bb-bg-reset:focus-visible,
.bb-bg-link:focus-visible {
  outline: 2px solid #e7a16f;
  outline-offset: 2px;
}

.bb-bg-boss-controls option,
.bb-bg-controls option {
  color: #f1e6e2;
  background: #21171d;
}

.bb-bg-boss-summary {
  margin-top: 18px;
  padding: 17px;
  background: #100c0f;
  border: 1px solid rgba(217, 166, 135, .2);
}

.bb-bg-summary-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.bb-bg-summary-title h3 {
  margin: 0;
  color: #f0ddd1;
  font: 600 1.12rem/1.3 Cinzel, Georgia, serif;
}

.bb-bg-summary-title p {
  margin: 5px 0 0;
  color: #b9a8b0;
  font-size: .88rem;
}

.bb-bg-summary-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.bb-bg-summary-stats span {
  padding: 7px 10px;
  color: #d6c6c3;
  background: #1b1419;
  border: 1px solid rgba(217, 166, 135, .2);
  font-size: .8rem;
}

.bb-bg-summary-stats b {
  color: #e6a273;
}

.bb-bg-defense-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
}

.bb-bg-defense-grid span {
  padding: 8px 7px;
  color: #f0ded6;
  background: #1b1419;
  text-align: center;
  font-size: .8rem;
}

.bb-bg-defense-grid b {
  display: block;
  margin-bottom: 3px;
  color: #bb9cb1;
  font: 500 .68rem/1.3 Cinzel, Georgia, serif;
  text-transform: uppercase;
}

.bb-bg-build {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 166, 135, .17);
}

.bb-bg-build-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.bb-bg-build-label {
  color: #cf8d69;
  font: 600 .82rem/1.35 Cinzel, Georgia, serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bb-bg-build-head p {
  margin: 4px 0 0;
  color: #b9a8b0;
  font-size: .85rem;
}

.bb-bg-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bb-bg-stat-grid input {
  min-height: 43px;
  padding: 9px 12px;
}

.bb-bg-reset {
  min-height: 40px;
  padding: 8px 15px;
  color: #ead8cf;
  background: #20161b;
  border: 1px solid rgba(217, 166, 135, .35);
  font: 500 .78rem Cinzel, Georgia, serif;
  text-transform: uppercase;
  cursor: pointer;
}

.bb-bg-reset:hover,
.bb-bg-link:hover {
  color: #fff1e9;
  background: #4b2427;
  border-color: #a84b4b;
}

.bb-bg-results-head {
  align-items: center;
}

.bb-bg-results-head p {
  margin: 0;
  color: #b9a8b0;
  text-align: right;
  font-size: .87rem;
}

.bb-bg-controls {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.bb-bg-controls input[type="search"] {
  padding-right: 13px;
}

.bb-bg-controls input::placeholder {
  color: #8f7d86;
}

.bb-bg-controls .bb-bg-check {
  display: flex;
  align-items: center;
  align-self: end;
  min-height: 46px;
  gap: 10px;
  padding: 9px 12px;
  color: #d8c8c7;
  background: #1d151a;
  border: 1px solid rgba(217, 166, 135, .2);
  font: 500 .8rem Cinzel, Georgia, serif;
}

.bb-bg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid rgba(217, 166, 135, .35);
}

.bb-bg-tabs button {
  min-height: 48px;
  padding: 11px 20px;
  color: #b9a8b0;
  background: #130f12;
  border: 1px solid rgba(217, 166, 135, .18);
  border-bottom: 0;
  font: 600 .82rem Cinzel, Georgia, serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}

.bb-bg-tabs button[aria-selected="true"] {
  color: #f0d2bd;
  background: #321a20;
  border-color: rgba(225, 151, 106, .58);
  box-shadow: inset 0 2px #c8625a;
}

.bb-bg-tabs button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #e7a16f;
  outline-offset: 2px;
}

.bb-bg-check input {
  width: 17px;
  height: 17px;
  accent-color: #b4494d;
}

.bb-bg-note {
  margin: 3px 0 17px;
  color: #b9a8b0;
  font-size: .86rem;
  line-height: 1.6;
}

.bb-bg-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bb-bg-kind-heading,
.bb-bg-cohort-heading {
  grid-column: 1 / -1;
  margin: 7px 1px -3px;
  padding: 9px 12px;
  border-left: 2px solid #b84b50;
  background: rgba(150, 48, 58, .1);
  color: #e7ab7d;
  font: 700 .78rem/1.5 Cinzel, Georgia, serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bb-bg-cohort-heading {
  margin-top: 0;
  color: #d6bdad;
  font-size: .7rem;
}

.bb-bg-cohort-heading span {
  display: block;
  margin-top: 4px;
  color: #b9a8b0;
  font: 400 .72rem/1.55 Cinzel, Georgia, serif;
  letter-spacing: .025em;
  text-transform: none;
}

.bb-bg-card {
  min-width: 0;
  padding: 15px;
  background: linear-gradient(155deg, #1d151a, #130f12 78%);
  border: 1px solid rgba(217, 166, 135, .23);
}

.bb-bg-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(217, 166, 135, .17);
}

.bb-bg-rank {
  color: #e36c70;
  font: 700 1.5rem/1 Cinzel, Georgia, serif;
}

.bb-bg-rank-value {
  color: #e7ab7d;
  font: 600 .8rem/1.35 Cinzel, Georgia, serif;
  text-align: right;
}

.bb-bg-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(217, 166, 135, .14);
}

.bb-bg-item > img,
.bb-bg-item > span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  object-fit: contain;
  background: #0e0b0d;
  border: 1px solid rgba(217, 166, 135, .25);
  color: #d29470;
}

.bb-bg-item h3 {
  margin: 0;
  color: #f0e3dc;
  font: 600 1.04rem/1.35 Cinzel, Georgia, serif;
}

.bb-bg-item p {
  margin: 5px 0 0;
  color: #c78665;
  font: 500 .72rem/1.4 Cinzel, Georgia, serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bb-bg-damage {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 14px 0;
}

.bb-bg-damage > span {
  color: #d1b4a7;
  font: 500 .73rem Cinzel, Georgia, serif;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.bb-bg-damage > strong {
  color: #e6a273;
  font: 700 1.45rem/1 Cinzel, Georgia, serif;
}

.bb-bg-damage > div {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-height: 20px;
  color: #bbaab1;
  font-size: .77rem;
}

.bb-bg-damage > div b {
  color: #d4c1bf;
  font-weight: 600;
}

.bb-bg-card-facts {
  display: grid;
  gap: 7px;
  padding-top: 11px;
  border-top: 1px solid rgba(217, 166, 135, .14);
  color: #b9a8b0;
  font-size: .76rem;
  line-height: 1.5;
}

.bb-bg-gem-loadout {
  margin-top: 12px;
  padding: 11px;
  background: #100c0f;
  border: 1px solid rgba(217, 166, 135, .2);
}

.bb-bg-gem-loadout h4 {
  margin: 0 0 9px;
  color: #e6a273;
  font: 600 .74rem/1.4 Cinzel, Georgia, serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bb-bg-gem-loadout ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-bg-gem-loadout li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 6px;
  background: #1b1419;
  border: 1px solid rgba(217, 166, 135, .12);
}

.bb-bg-gem-loadout li img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.bb-bg-gem-loadout li span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bb-bg-gem-loadout li b,
.bb-bg-gem-loadout li small {
  color: #b9a8b0;
  font-size: .68rem;
  line-height: 1.4;
}

.bb-bg-gem-loadout li strong {
  color: #f0e3dc;
  font: 600 .73rem/1.35 Cinzel, Georgia, serif;
}

.bb-bg-gem-loadout > p,
.bb-bg-gem-empty {
  margin: 8px 0 0;
  color: #b9a8b0;
  font-size: .68rem;
  line-height: 1.45;
}

.bb-bg-link {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 13px;
  padding: 10px 12px;
  color: #eddad2;
  background: #28191f;
  border: 1px solid rgba(217, 166, 135, .3);
  font: 600 .75rem Cinzel, Georgia, serif;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .18s ease, border-color .18s ease;
}

.bb-bg-empty,
.bb-bg-loading,
.bb-bg-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 18px;
  color: #c6b5bb;
  background: #110d10;
  border: 1px solid rgba(217, 166, 135, .18);
  text-align: center;
}

.bb-bg-error {
  color: #ee8f91;
}

.bb-bg-outfit {
  margin: 14px 0 20px;
  padding: 16px;
  background: #100c0f;
  border: 1px solid rgba(217, 166, 135, .24);
}

.bb-bg-outfit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.bb-bg-outfit-head span {
  color: #cf8d69;
  font: 600 .72rem Cinzel, Georgia, serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bb-bg-outfit-head h3 {
  margin: 5px 0 0;
  color: #f0ddd1;
  font: 600 1.1rem Cinzel, Georgia, serif;
}

.bb-bg-outfit-head > strong {
  color: #e6a273;
  font: 700 1.4rem Cinzel, Georgia, serif;
  text-align: right;
}

.bb-bg-outfit-head small {
  display: block;
  margin-top: 2px;
  color: #b9a8b0;
  font: 500 .67rem Cinzel, Georgia, serif;
  text-transform: uppercase;
}

.bb-bg-outfit-pieces {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bb-bg-outfit-pieces article {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  padding: 12px 9px;
  background: #1b1419;
  border: 1px solid rgba(217, 166, 135, .16);
  text-align: center;
}

.bb-bg-outfit-pieces article > span {
  color: #c3a3b3;
  font: 600 .67rem Cinzel, Georgia, serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bb-bg-outfit-pieces img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #100c0f;
  border: 1px solid rgba(217, 166, 135, .18);
}

.bb-bg-outfit-pieces h4 {
  min-height: 2.7em;
  margin: 0;
  color: #e9dbd8;
  font: 600 .78rem/1.35 Cinzel, Georgia, serif;
}

.bb-bg-outfit-pieces b {
  color: #e6a273;
  font-size: .78rem;
}

.bb-bg-runes {
  margin: 14px 0 20px;
  padding: 16px;
  background: #100c0f;
  border: 1px solid rgba(217, 166, 135, .24);
}

.bb-bg-runes[hidden] {
  display: none;
}

.bb-bg-runes > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bb-bg-runes > header > div > span {
  color: #cf8d69;
  font: 600 .68rem Cinzel, Georgia, serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bb-bg-runes h3 {
  margin: 4px 0 0;
  color: #f0ddd1;
  font: 600 1rem/1.35 Cinzel, Georgia, serif;
}

.bb-bg-runes > header > span {
  color: #bd9eae;
  font: 600 .7rem Cinzel, Georgia, serif;
  text-transform: uppercase;
}

.bb-bg-rune-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.bb-bg-rune-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  background: #1b1419;
  border: 1px solid rgba(217, 166, 135, .16);
}

.bb-bg-rune-card img,
.bb-bg-rune-placeholder {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  object-fit: contain;
  background: #100c0f;
  border: 1px solid rgba(217, 166, 135, .2);
  color: #d29470;
}

.bb-bg-rune-card h4 {
  margin: 0;
  color: #e9dbd8;
  font: 600 .77rem/1.35 Cinzel, Georgia, serif;
}

.bb-bg-rune-card p {
  margin: 4px 0 0;
  color: #b9a8b0;
  font-size: .72rem;
  line-height: 1.45;
}

.bb-bg-rune-note {
  margin: 10px 0 0;
  color: #988990;
  font-size: .7rem;
  line-height: 1.45;
}

.bb-bossgear-page .bb-rec-select-trigger:disabled {
  opacity: .58;
  cursor: not-allowed;
}

.bb-bg-clothes-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bb-bg-clothes-slot {
  min-width: 0;
  padding: 13px;
  background: #130f12;
  border: 1px solid rgba(217, 166, 135, .2);
}

.bb-bg-clothes-slot > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(217, 166, 135, .16);
}

.bb-bg-clothes-slot > header h3 {
  margin: 0;
  color: #d89a76;
  font: 600 .9rem Cinzel, Georgia, serif;
  text-transform: uppercase;
}

.bb-bg-clothes-slot > header span {
  color: #9e8d94;
  font-size: .72rem;
}

.bb-bg-clothes-slot > div {
  display: grid;
}

.bb-bg-clothes-slot article {
  display: grid;
  grid-template-columns: 25px 46px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(217, 166, 135, .1);
}

.bb-bg-clothes-slot article:last-child {
  border-bottom: 0;
}

.bb-bg-clothes-rank {
  color: #df7478;
  font: 700 .9rem Cinzel, Georgia, serif;
  text-align: center;
}

.bb-bg-clothes-slot article img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #0e0b0d;
  border: 1px solid rgba(217, 166, 135, .2);
}

.bb-bg-clothes-slot article h4 {
  margin: 0;
  color: #ded0d1;
  font: 500 .76rem/1.35 Cinzel, Georgia, serif;
}

.bb-bg-clothes-slot article b {
  display: block;
  margin-top: 3px;
  color: #e6a273;
  font-size: .72rem;
}

@media (max-width: 1050px) {
  .bb-bg-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bb-bg-defense-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .bb-bg-outfit-pieces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bb-bg-rune-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .bb-bossgear-layout {
    width: min(calc(100% - 24px), 680px);
    margin-top: 20px;
  }
  .bb-bg-boss-controls,
  .bb-bg-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bb-bg-summary-title {
    display: grid;
  }
  .bb-bg-summary-stats {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .bb-bg-panel {
    padding: 15px;
  }
  .bb-bg-results {
    grid-template-columns: 1fr;
  }
  .bb-bg-clothes-results {
    grid-template-columns: 1fr;
  }
  .bb-bg-boss-controls,
  .bb-bg-controls,
  .bb-bg-stat-grid {
    grid-template-columns: 1fr;
  }
  .bb-bg-defense-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bb-bg-outfit-pieces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bb-bg-rune-results {
    grid-template-columns: minmax(0, 1fr);
  }
  .bb-bg-results-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .bb-bg-results-head p {
    text-align: left;
  }
}

.bb-bg-protection-summary { margin: 10px 0 4px; color: #efd2bb; font-size: 1rem; line-height: 1.6; }
.bb-bg-rune-slot { display: block; margin-bottom: 6px; color: #e7ab7d; font: 600 .8rem/1.4 Cinzel, Georgia, serif; }
.bb-bg-rune-card .bb-bg-rune-route { margin-top: 9px; color: #b9a8b0; font-size: .82rem; line-height: 1.55; }
