.wuchang-hero.small {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 0 !important;
}
.wuchang-hero .hero-content {
  padding: 2.2rem 0;
}
.wuchang-hero.small::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
      1200px 500px at 50% 0%,
      rgba(0, 0, 0, 0.22),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(20, 12, 8, 0.62), rgba(8, 6, 5, 0.86));
}
.wuchang-hero.small .container,
.wuchang-hero.small .hero-content {
  position: relative;
  z-index: 2;
}
.wuchang-hero.small .hero-content h1 {
  text-shadow: 0 14px 44px rgba(0, 0, 0, 0.65), 0 0 2px rgba(0, 0, 0, 0.7);
}
.wuchang-hero.small .hero-content p {
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 1px rgba(0, 0, 0, 0.65);
}
.wuchang-hero.small::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -18px;
  height: 72px;
  pointer-events: none;
  z-index: 3;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  background: linear-gradient(
    to bottom,
    rgba(20, 12, 8, 0.28),
    rgba(20, 12, 8, 0)
  );
}
.wuchang-hero.small .hero-bg {
  transform: scale(1.03);
  transform-origin: center top;
  background-size: cover;
  background-position: center 46%;
  will-change: transform;
}
@media (max-width: 1100px) {
  .wuchang-hero.small {
    min-height: 60vh;
  }
  .wuchang-hero.small .hero-bg {
    transform: scale(1.01);
  }
}
@media (max-width: 640px) {
  .wuchang-hero.small {
    min-height: 50vh;
  }
  .wuchang-hero.small .hero-bg {
    transform: none;
  }
}
.bosses-section .container {
  padding-top: 24px;
  padding-bottom: 48px;
}
.bosses-section .breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 18px 0 12px;
  color: var(--muted);
  padding: 4px 6px;
  background: #16100c;
  border: 1px solid #2f231c;
  border-radius: 999px;
}
.bosses-section .breadcrumbs a,
.bosses-section .breadcrumbs span[aria-current="page"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: #ccb8a6;
  text-decoration: none;
  border: 0;
  background: transparent;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease;
}
.bosses-section .breadcrumbs a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #efe4d7;
}
.bosses-section .breadcrumbs a:active {
  transform: translateY(1px);
}
.bosses-section .breadcrumbs a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(215, 134, 60, 0.22);
  color: #f3ebdf;
}
.bosses-section .breadcrumbs span[aria-current="page"] {
  background: rgba(215, 134, 60, 0.08);
  color: #f3ebdf;
  cursor: default;
}
.bosses-section .breadcrumbs > span[aria-hidden="true"] {
  display: none;
}
.bosses-section .breadcrumbs > a:not(:first-child)::before,
.bosses-section
  .breadcrumbs
  > span[aria-current="page"]:not(:first-child)::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 16px;
  background: #2f231c;
  margin: 0 6px 0 2px;
  vertical-align: middle;
}
@media (max-width: 640px) {
  .bosses-section .breadcrumbs {
    margin-top: 14px;
    margin-bottom: 10px;
    padding: 3px 5px;
  }
  .bosses-section .breadcrumbs a,
  .bosses-section .breadcrumbs span[aria-current="page"] {
    padding: 5px 9px;
  }
}

.bosses-section .bosses-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}
@media (max-width: 1000px) {
  .bosses-section .bosses-layout {
    grid-template-columns: 1fr;
  }
}

/* Lista en modo list-view con tarjeta expandible */
.bosses-grid.list-view {
  display: grid;
  gap: 16px;
}
.bosses-section .toolbar {
  margin-bottom: 10px;
}
.boss-card {
  background: linear-gradient(
    180deg,
    rgba(22, 16, 12, 0.75),
    rgba(14, 10, 8, 0.6)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.boss-card.defeated {
  border-color: rgba(63, 207, 134, 0.5);
  box-shadow: 0 0 0 1px rgba(63, 207, 134, 0.25) inset;
}
.boss-summary {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
}
.boss-summary img {
  width: 120px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #111;
}
.boss-head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.boss-head .boss-loc {
  opacity: 0.85;
  font-size: 0.9rem;
}
.boss-actions .btn {
  white-space: nowrap;
}
/* Botón Ver/Ocultar detalles con estilo marrón acorde */
.boss-card .boss-actions [data-toggle] {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 35, 28, 0.7);
  background: linear-gradient(
    180deg,
    rgba(28, 20, 14, 0.62),
    rgba(18, 12, 9, 0.52)
  );
  color: var(--fg);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.06s ease, box-shadow 0.18s ease;
}
.boss-card .boss-actions [data-toggle]:hover {
  background: linear-gradient(
    180deg,
    rgba(34, 24, 17, 0.68),
    rgba(20, 14, 10, 0.58)
  );
  border-color: rgba(63, 50, 38, 0.75);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.boss-card .boss-actions [data-toggle]:active {
  transform: translateY(1px);
}
.boss-card .boss-actions [data-toggle].active {
  background: color-mix(
    in oklab,
    var(--accent, #c9a227) 16%,
    rgba(28, 20, 14, 0.62)
  );
  border-color: color-mix(
    in oklab,
    var(--accent, #c9a227) 55%,
    rgba(63, 50, 38, 0.75)
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
/* Quick-mark button */
.boss-card .boss-actions .quick-mark {
  margin-left: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 35, 28, 0.7);
  background: rgba(50, 37, 28, 0.14);
  color: var(--fg);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.06s ease, box-shadow 0.18s ease;
}
.boss-card .boss-actions .quick-mark:hover {
  background: rgba(66, 48, 37, 0.22);
  border-color: rgba(63, 50, 38, 0.75);
}
.boss-card .boss-actions .quick-mark:active {
  transform: translateY(1px);
}
.boss-card .boss-actions .quick-mark.active {
  background: rgba(63, 207, 134, 0.16);
  border-color: rgba(63, 207, 134, 0.45);
}
.boss-details {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(17, 13, 11, 0.7),
    rgba(15, 11, 9, 0.7)
  );
}

/* Tabs y contenido - diseño más pulido alineado con la web */
.boss-tabs-header {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  margin: 4px 0 10px;
  border-radius: 12px;
  /* marrón cálido, ligeramente distinto del fondo global para contraste */
  background: linear-gradient(
    180deg,
    rgba(28, 20, 14, 0.72),
    rgba(18, 12, 9, 0.62)
  );
  border: 1px solid #2f231c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.28);
}
.boss-tabs-header .tab-indicator {
  position: absolute;
  left: 6px;
  bottom: 4px;
  height: 2px;
  width: 40px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent, #c9a227), #ffd68a);
  box-shadow: 0 0 10px rgba(240, 200, 122, 0.35);
  transform: translateX(0);
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
    width 220ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.boss-tab-btn {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 0.88rem;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease,
    transform 0.06s ease;
}
.boss-tab-btn:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
}
.boss-tab-btn:active {
  transform: translateY(1px);
}
.boss-tab-btn.active {
  color: var(--fg);
  background: linear-gradient(
    180deg,
    rgba(26, 18, 12, 0.7),
    rgba(18, 12, 9, 0.62)
  );
  border-color: rgba(47, 35, 28, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.boss-tab-content {
  padding: 8px 0 2px;
}
.pane {
  display: none;
}
.pane.active {
  display: block;
}
.pane-title {
  margin: 2px 0 8px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: linear-gradient(180deg, #fff, #f6e9c7 50%, #d9c49a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.boss-desc {
  color: var(--muted);
  line-height: 1.7;
}
.attacks-list {
  list-style: disc;
  padding-left: 20px;
  line-height: 1.6;
}

/* Fases */
.phase-toggle {
  display: inline-flex;
  gap: 6px;
  margin-top: 12px;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(28, 20, 14, 0.6),
    rgba(20, 14, 10, 0.5)
  );
  border: 1px solid rgba(47, 35, 28, 0.7);
}
.phase-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.phase-btn.active {
  color: var(--fg);
  background: color-mix(in oklab, var(--accent, #c9a227) 18%, transparent);
  border-color: color-mix(
    in oklab,
    var(--accent, #c9a227) 50%,
    rgba(255, 255, 255, 0.24)
  );
}

/* Smooth details transitions helper (JS sets inline styles) */
.boss-details {
  will-change: height, opacity;
}

/* Galería y video */
.boss-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.boss-gallery img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.boss-gallery img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.boss-video iframe,
.boss-video video {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 8px;
  margin-top: 8px;
}

/* ===================== */
/*       Mobile UI       */
/* ===================== */
@media (max-width: 640px) {
  .boss-summary {
    grid-template-columns: 88px 1fr;
    align-items: start;
    gap: 10px;
  }
  .boss-summary img {
    width: 88px;
    height: 88px;
    border-radius: 10px;
  }
  .boss-head h3 {
    font-size: 1rem;
    margin-bottom: 2px;
  }
  .boss-head .boss-loc {
    font-size: 0.9rem;
  }
  .boss-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    margin-top: 6px;
  }
  .boss-card .boss-actions [data-toggle],
  .boss-card .boss-actions .quick-mark {
    padding: 7px 10px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  /* Tabs: scrollable row */
  .boss-tabs-header {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 6px 10px;
  }
  .boss-tabs-header::-webkit-scrollbar {
    display: none;
  }
  .boss-tab-btn {
    flex: 0 0 auto;
  }
  .boss-tabs-header .tab-indicator {
    bottom: 3px;
  }

  /* Gallery smaller thumbs */
  .boss-gallery {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 6px;
  }
  .boss-gallery img {
    height: 84px;
  }

  /* Main image lower cap */
  .boss-main-image img {
    max-height: 260px;
  }
}

/* Recompensas listas: tarjeta ligera con items clicables */
.boss-rewards-list {
  background: rgba(60, 44, 34, 0.16);
  border: 1px solid rgba(47, 35, 28, 0.6);
  border-radius: 10px;
  padding: 10px 12px;
}
.boss-rewards-list .rewards-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.boss-rewards-list .rewards-ul li {
  margin: 0;
}
.boss-rewards-list .reward-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--fg);
  background: rgba(50, 37, 28, 0.14);
  border: 1px solid rgba(47, 35, 28, 0.55);
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.06s ease;
}
.boss-rewards-list .reward-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent, #c9a227), #ffd68a);
  box-shadow: 0 0 10px rgba(240, 200, 122, 0.35);
}
.boss-rewards-list .reward-item:hover {
  background: rgba(66, 48, 37, 0.22);
  border-color: rgba(63, 50, 38, 0.65);
}
.boss-rewards-list .reward-item:active {
  transform: translateY(1px);
}
.boss-rewards-list .small {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
}

/* Main big image inside details */
.boss-main-image {
  margin: 4px 0 10px 0;
}
.boss-main-image img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
}

/* Sidebar progreso */
.sidebar-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
}
.progress-circle {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 8px auto;
}
.progress-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 12;
}
.circle-fg {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 0.35s ease;
}
.circle-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 6px;
  font-weight: 600;
}
.circle-center .percent {
  font-size: 1.4rem;
}
.circle-center .fraction {
  opacity: 0.85;
}

/* Botón marcar */
.mark-btn {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: inherit;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.mark-btn:hover {
  background: rgba(63, 207, 134, 0.12);
  border-color: rgba(63, 207, 134, 0.35);
}

/* Collapsible attacks */
.attack-accordion {
  display: grid;
  gap: 8px;
  margin-block: 8px 0;
}
.attack summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  transition: background 0.2s ease;
}
.attack summary:hover {
  background: rgba(255, 255, 255, 0.07);
}
.attack[open] summary {
  background: rgba(47, 163, 104, 0.12);
  border-color: rgba(47, 163, 104, 0.35);
}
.attack .attack-body {
  padding: 10px 12px 12px 12px;
  margin-top: -4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: rgba(255, 255, 255, 0.03);
}

/* Collapsible video */
details.collapsible.video {
  margin-top: 10px;
}
details.collapsible.video > summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}
details.collapsible.video[open] > summary {
  background: rgba(215, 134, 60, 0.14);
  border-color: rgba(215, 134, 60, 0.35);
}
details.collapsible.video .boss-video {
  margin-top: 8px;
}
