/* Dark Souls: Remastered · jefes sobre el Muro compartido. */
.page-ds1.muro {
  --bg: #090e12;
  --bg2: #101920;
  --bg3: #1a2932;
  --crim: #b8753d;
  --crim-l: #e4a45f;
  --crim-d: #754522;
  --amber: #a7bfca;
  --amber-l: #d1e0e5;
  --viol: #506d7b;
  --muro-text: #9eabb1;
  --muro-text-l: #dce2e1;
  --muro-white: #f2efe5;
  --crim-rgb: 184,117,61;
  --crim-l-rgb: 228,164,95;
  --crim-d-rgb: 117,69,34;
  --amber-rgb: 167,191,202;
  --amber-l-rgb: 209,224,229;
  --viol-rgb: 80,109,123;
  --viol-l-rgb: 115,148,162;
  --bg-rgb: 9,14,18;
  --bg-deep-rgb: 3,6,8;
  --bg2-rgb: 16,25,32;
  --bg3-rgb: 26,41,50;
  --muro-text-rgb: 158,171,177;
  --muro-embers: 228 164 95, 167 191 202, 115 148 162, 242 239 229;
}
.ds1-boss-page {
  --muro-crim: var(--crim);
  --muro-crim-l: var(--crim-l);
  --muro-crim-rgb: 184,117,61;
  --muro-amber: var(--amber);
  --muro-amber-l: var(--amber-l);
  --muro-amber-rgb: 167,191,202;
  --muro-bg: var(--bg);
  --muro-bg2: var(--bg2);
  --muro-bg3: var(--bg3);
  --muro-white: #f2efe5;
  --muro-text-l: #dce2e1;
  --muro-text: #9eabb1;
  --muro-text-rgb: 158,171,177;
}
.ds1-boss-page .cover > p { max-width: 780px; }
.ds1-boss-command .cmd-in { justify-content: center; }
.ds1-boss-filter-row {
  display: flex;
  width: min(1420px, calc(100% - clamp(2.5rem, 10vw, 10rem)));
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 13px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ds1-boss-seg { width: fit-content; max-width: 100%; margin: 0; }
.ds1-boss-filter-row .muro-select-shell,
.ds1-boss-base-zone .muro-select-shell { width: min(300px, 100%); }
.ds1-boss-filter-row .muro-select-shell[hidden] { display: none !important; }
.ds1-boss-base-zone[hidden] { display: none !important; }
.ds1-boss-page .wall-shot .plate .quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; }
.ds1-boss-page .wall-shot .plate .quick > div { min-width: 0; }
.ds1-boss-page .wall-shot .plate .quick b { display: block; overflow-wrap: anywhere; }
.ds1-boss-page .wall-shot .plate .quick .ds1-boss-card-rewards b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ds1-boss-page .wall-shot .plate .quick .ds1-boss-card-location { grid-column: 1 / -1; }
.ds1-boss-page .wall-shot .plate .quick .ds1-boss-card-location b { white-space: normal; }

.ds1-boss-ficha.ficha { grid-template-columns: minmax(290px, 36%) minmax(0, 1fr); }
.ds1-boss-ficha .ficha-vis {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--crim-d) transparent;
  background: radial-gradient(ellipse at 50% 18%, #1a2932, var(--bg) 78%);
}
.ds1-boss-ficha .ficha-vis::after { display: none; }
.ds1-boss-ficha .ficha-data { padding-bottom: 96px; }
.ds1-boss-art {
  position: relative;
  display: grid;
  flex: 0 0 min(48vh, 470px);
  min-height: 260px;
  max-height: 500px;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, rgba(var(--amber-rgb), .16), transparent 70%);
}
.ds1-boss-art img {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 18px;
  box-sizing: border-box;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, .72));
}
.ds1-boss-art img[hidden] { display: none; }
.ds1-boss-location { position: relative; z-index: 1; padding: 4px clamp(20px, 2.8vw, 38px) 28px; }
.ds1-boss-location > h3 { margin: 0 0 14px; color: var(--amber-l); font: 700 11px/1.5 Cinzel, serif; letter-spacing: .2em; text-transform: uppercase; }
.ds1-boss-location[hidden], .ds1-boss-place[hidden] { display: none !important; }
.ds1-boss-place { margin: 0 0 10px; padding: 14px 15px; border: 1px solid rgba(var(--amber-rgb), .2); background: rgba(var(--bg2-rgb), .78); }
.ds1-boss-place h4 { margin: 0; color: var(--crim-l); font: 700 10px/1.5 Cinzel, serif; letter-spacing: .16em; text-transform: uppercase; }
.ds1-boss-page .ds1-boss-stats { grid-template-columns: minmax(0, 1.4fr) minmax(120px, 1fr) minmax(100px, .7fr); }
.ds1-boss-page .ds1-boss-stats .fds:first-child b { line-height: 1.45; overflow-wrap: anywhere; }
.ds1-boss-cycle-note { color: var(--muro-text); font-size: 11px; line-height: 1.75; }
.ds1-boss-details { display: grid; gap: 12px; margin-top: 18px; padding-bottom: 24px; }

/* La ficha de jefes conserva la vitrina aunque todavía no tenga retrato. */
.ds1-boss-ficha.ficha.no-visual { grid-template-columns: minmax(290px, 36%) minmax(0, 1fr); }
.ds1-boss-ficha.no-visual .ficha-vis { display: flex; }
.ds1-boss-ficha.no-visual .ficha-data { grid-column: 2; width: auto; margin: 0; }

.ds1-boss-stat-group[hidden] { display: none !important; }
.ds1-boss-ficha .fd-loot.ds1-boss-stat-group { min-width: 0; margin: 0; padding: 15px 16px; border: 1px solid rgba(var(--amber-rgb), .2); background: rgba(var(--bg2-rgb), .64); box-sizing: border-box; }
.ds1-boss-stat-group .fd-loot-h { margin: 0 0 11px; color: var(--crim-l); }
.ds1-boss-stat-group .res-list { max-width: none; }
.ds1-boss-footnote, .ds1-boss-method { margin: 9px 0 0; color: var(--muro-text); font: 400 10px/1.7 'Cinzel', serif; }
.ds1-boss-method { max-width: none; margin: 14px 0 0; padding: 12px 14px; border-left: 2px solid rgba(215, 174, 104, .45); background: rgba(215, 174, 104, .055); }
.ds1-boss-method[hidden] { display: none !important; }
.ds1-boss-encounter-note { margin: 0 0 10px; padding: 11px 13px; border-left: 2px solid var(--muro-amber); background: rgba(var(--muro-amber-rgb), .07); color: var(--muro-text-l); font: 400 11px/1.7 'Cinzel', serif; }
.ds1-boss-actor { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 10px 12px; border: 1px solid rgba(215, 174, 104, .16); background: rgba(15, 23, 29, .72); }
.ds1-boss-actor + .ds1-boss-actor { margin-top: 7px; }
.ds1-boss-actor strong { color: #ead7b0; font: 700 10px/1.5 'Cinzel', serif; }
.ds1-boss-actor p { margin: 4px 0 0; color: var(--muro-text); font: 400 10px/1.6 'Cinzel', serif; }
.ds1-boss-actor > span { color: var(--muro-amber-l); font: 700 9px/1.6 'Cinzel', serif; text-align: right; }

.ds1-boss-cycle-wrap { max-width: 100%; overflow-x: auto; }
.ds1-boss-cycle-table { width: 100%; border-collapse: collapse; color: var(--muro-text-l); font: 500 11px/1.5 'Cinzel', serif; }
.ds1-boss-cycle-table th, .ds1-boss-cycle-table td { padding: 9px 10px; border-bottom: 1px solid rgba(215, 174, 104, .15); text-align: right; white-space: nowrap; }
.ds1-boss-cycle-table thead th { color: var(--muro-amber-l); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.ds1-boss-cycle-table th:first-child, .ds1-boss-cycle-table td:first-child { text-align: left; }
.ds1-boss-cycle-table tbody th { color: #e6d4af; }
.ds1-boss-reward { display: grid; gap: 4px; }
.ds1-boss-reward strong { color: var(--muro-text-l); }
.ds1-boss-reward small { margin-left: 14px; color: var(--muro-text); font: 400 10px/1.65 'Cinzel', serif; letter-spacing: 0; }

@media (max-width: 860px) {
  .ds1-boss-filter-row { width: calc(100% - 24px); gap: 9px; flex-direction: column; align-items: stretch; }
  .ds1-boss-seg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    width: 100%;
    gap: 6px;
    border: 0;
    overflow: visible;
  }
  .ds1-boss-seg button {
    min-width: 0;
    min-height: 42px;
    padding: 9px 8px;
    border: 1px solid rgba(var(--muro-crim-rgb), .2);
    white-space: normal;
    line-height: 1.35;
  }
  .ds1-boss-page .ds1-boss-seg button:last-child { border-right: 1px solid rgba(var(--muro-crim-rgb), .2); }
  .ds1-boss-filter-row .muro-select-shell { width: 100%; }
  .ds1-boss-filter-row > .cmd-filter { width: 100%; }
  .ds1-boss-base-zone { width: 100%; }
  /* La ficha del jefe también debe desplazarse como una sola pieza. */
  .ds1-boss-page .ds1-boss-ficha.ficha-shot {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-rows: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .ds1-boss-page .ds1-boss-ficha .ficha-vis,
  .ds1-boss-page .ds1-boss-ficha .ficha-data { display: contents; overflow: visible; padding: 0; }
  .ds1-boss-page .ds1-boss-art { order: 0; flex: 0 0 clamp(190px, 30vh, 260px); width: 100%; min-height: 0; max-height: none; }
  .ds1-boss-page .ds1-boss-art img { padding: 18px; }
  .ds1-boss-page .ds1-boss-ficha .fd-counter { order: 1; width: 100%; margin: 0; padding: 18px 20px 0; box-sizing: border-box; }
  .ds1-boss-page .ds1-boss-ficha .fd-name { order: 2; width: 100%; margin: 6px 0 12px; padding: 0 20px; box-sizing: border-box; font-size: 28px; }
  .ds1-boss-page .ds1-boss-ficha .fd-orn { order: 3; width: 100%; margin: 0 0 12px; padding: 0 20px; box-sizing: border-box; }
  .ds1-boss-page .ds1-boss-ficha .fd-stats { order: 4; width: calc(100% - 40px); margin: 0 20px; }
  .ds1-boss-page .ds1-boss-ficha .fd-chips { order: 5; margin: 16px 20px 0; }
  .ds1-boss-page .ds1-boss-cycle-note { order: 6; margin: 14px 20px 0; }
  .ds1-boss-page .ds1-boss-location { order: 7; width: 100%; padding: 22px 20px 10px; box-sizing: border-box; }
  .ds1-boss-page .ds1-boss-details { order: 8; width: calc(100% - 40px); margin: 10px 20px 0; box-sizing: border-box; }
  .ds1-boss-page .ds1-boss-method { order: 9; margin: 14px 20px 0; }
  .ds1-boss-ficha.no-visual .ficha-vis { display: contents; }
  .ds1-boss-ficha.no-visual .ficha-data { grid-column: auto; width: auto; margin: 0; }
  .ds1-boss-page .ficha-nav { display: none !important; }
}

@media (max-width: 720px) {
  .ds1-boss-page .wall-shot .plate .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 11px; }
  .ds1-boss-actor { grid-template-columns: minmax(0, 1fr); }
  .ds1-boss-actor > span { text-align: left; }
}
