@page { size: letter landscape; margin: 0.35in; }

:root {
  --bt-page-bg: #0b0d0c;
  --bt-sheet-bg: #202322;
  --bt-panel-bg: #292d2b;
  --bt-panel-bg-soft: #171a19;
  --bt-border: #46504b;
  --bt-border-soft: rgba(255, 255, 255, 0.14);
  --bt-text: #F1EFE8;
  --bt-text-soft: #D3D1C7;
  --bt-muted: #B8B4A8;
  --bt-assigned: #c7d6ca;

  --bt-tank-bg: #4A351C;
  --bt-tank-text: #c7d6ca;
  --bt-healer-bg: #263A20;
  --bt-healer-text: #CBE7B0;
  --bt-dps-bg: #4A2424;
  --bt-dps-text: #F0B4B4;
  --bt-phase-bg: #20394E;
  --bt-phase-text: #B9DAF5;
}

html {
  min-height: 100%;
  background: var(--bt-page-bg);
}

body {
  --bt-boss-background-image: none;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--bt-text);
  background:
    radial-gradient(circle at 18% 8%, rgba(87, 142, 99, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(8, 10, 10, 0.9), rgba(24, 29, 27, 0.88) 52%, rgba(24, 18, 29, 0.9)),
    var(--bt-boss-background-image),
    var(--bt-page-bg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  margin: 0;
  min-height: 100vh;
  padding: 20px;
}

body[data-boss-id="najentus"] {
  --bt-boss-background-image: url("../../assets/bt/backgrounds/najentus.webp");
}

body[data-boss-id="supremus"] {
  --bt-boss-background-image: url("../../assets/bt/backgrounds/supremus.webp");
}

body[data-boss-id="shade-of-akama"] {
  --bt-boss-background-image: url("../../assets/bt/backgrounds/akama.webp");
}

body[data-boss-id="teron-gorefiend"] {
  --bt-boss-background-image: url("../../assets/bt/backgrounds/gorefiend.webp");
}

body[data-boss-id="gurtogg-bloodboil"] {
  --bt-boss-background-image: url("../../assets/bt/backgrounds/bloodboil.webp");
}

body[data-boss-id="reliquary-of-souls"] {
  --bt-boss-background-image: url("../../assets/bt/backgrounds/reliquary.webp");
}

body[data-boss-id="mother-shahraz"] {
  --bt-boss-background-image: url("../../assets/bt/backgrounds/shahraz.webp");
}

body[data-boss-id="illidari-council"] {
  --bt-boss-background-image: url("../../assets/bt/backgrounds/council.webp");
}

body[data-boss-id="illidan"] {
  --bt-boss-background-image: url("../../assets/bt/backgrounds/illidian.webp");
}

.page-nav,
.screen-only {
  max-width: 1280px;
  margin: 0 auto 16px;
}

.page-nav {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.page-nav a {
  text-decoration: none;
}

.boss-tabs {
  align-items: center;
  gap: 6px;
}

.boss-tabs .boss-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 6px 9px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.sheet {
  background: var(--bt-sheet-bg);
  border-color: var(--bt-border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  color: var(--bt-text);
}

.boss-header {
  border-left: 4px solid #70a879;
  padding-left: 12px;
}

.boss-name {
  color: var(--bt-text);
}

.boss-zone,
.sheet-footer,
.image-card-label,
.image-card-caption {
  color: var(--bt-muted);
}

.setup-block {
  background: var(--bt-panel-bg);
  border: 1px solid var(--bt-border);
  border-radius: 8px;
  color: var(--bt-text-soft);
  margin-bottom: 14px;
  padding: 12px 16px;
}

.setup-label {
  margin-bottom: 8px;
  color: var(--bt-text);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.setup-grid {
  color: var(--bt-text-soft);
  font-size: 12px;
  gap: 12px;
}

.setup-grid .setup-col-misdirect-wide {
  flex: 0 0 auto;
}

body[data-boss-id="trash"] .setup-col-utility {
  min-width: 0;
}

body[data-boss-id="trash"] .setup-col-utility .setup-line {
  align-items: flex-start;
  min-width: 0;
}

body[data-boss-id="trash"] .setup-col-utility .line-text,
body[data-boss-id="trash"] .setup-col-utility .role {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.setup-col-label,
.setup-grid b {
  color: var(--bt-text);
}

.setup-block .role {
  color: var(--bt-assigned);
  font-weight: 500;
}

.setup-block .assignment-target {
  color: var(--bt-text-soft);
  font-weight: 500;
}

.setup-col-label {
  font-size: 10px;
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.setup-line {
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.setup-line span.line-text,
.setup-line .line-text {
  line-height: 1.45;
}

.setup-line .role-icon-inline {
  background: rgba(244, 241, 232, 0.08);
  border-color: var(--bt-border-soft);
}

.setup-line .role-icon-inline.raid-marker-inline {
  background: transparent;
  border-color: transparent;
}

.setup-block .role.unassigned,
.role.unassigned {
  color: var(--bt-muted);
  font-style: italic;
  font-weight: 400;
}

.setup-block .role-label,
.setup-block .tank-paren,
.role-label {
  color: #D0D0D0;
  opacity: 0.78;
}

.role-pill {
  font-size: 13px;
  padding: 8px;
  border: 1px solid var(--bt-border-soft);
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
}

.role-tank,
.col-tank {
  background: var(--bt-tank-bg);
  color: var(--bt-tank-text);
}

.role-healer,
.col-healer {
  background: var(--bt-healer-bg);
  color: var(--bt-healer-text);
}

.role-dps,
.col-dps {
  background: var(--bt-dps-bg);
  color: var(--bt-dps-text);
}

.phase-bar {
  margin-bottom: 7px;
  padding: 8px 12px;
  background: var(--bt-phase-bg);
  border: 1px solid var(--bt-border-soft);
  border-radius: 6px;
  color: var(--bt-phase-text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
}

body[data-boss-id="najentus"] .phase-block-repeat .col {
  padding-block: 7px;
}

.col {
  padding: 10px;
  border: 0.5px solid var(--bt-border-soft);
  border-radius: 6px;
}

.mech-name,
.role {
  color: var(--bt-text);
}

.mech-name {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 2px;
}

.mech-name.danger,
.critical .mech-name {
  color: #FFB3B3;
}

.mech-desc {
  font-size: 11.5px;
  color: var(--bt-text-soft);
}

.image-card {
  background: var(--bt-panel-bg-soft);
  border-color: var(--bt-border);
}

.image-placeholder {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px solid var(--bt-border-soft);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(56, 72, 57, 0.32), rgba(20, 24, 21, 0.78));
  color: var(--bt-text-soft);
  font-size: 12px;
  letter-spacing: 0.2px;
  text-align: center;
}

.reminder-card {
  background: #3A2424;
  border-color: #7D3D3D;
}

.reminder-card-label {
  color: #FFB3B3;
}

.reminder-list,
.reminder-list li {
  color: #F0D0D0;
}

.sheet-footer {
  border-top-color: var(--bt-border);
}

/* Trash guide cards are scoped so the other Hyjal sheets retain their layout. */
.trash-guide {
  display: block;
}

.trash-guide .sheet-content {
  width: 100%;
}

.trash-mob-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trash-mob-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  overflow: hidden;
  background: var(--bt-panel-bg-soft);
  border: 1px solid var(--bt-border);
  border-radius: 7px;
  break-inside: avoid;
}

.trash-guide .trash-priority-1 { border-color: #b94f4f; box-shadow: 0 0 0 1px rgba(185, 79, 79, 0.32); }
.trash-guide .trash-priority-2 { border-color: #b96845; box-shadow: 0 0 0 1px rgba(185, 104, 69, 0.28); }
.trash-guide .trash-priority-3 { border-color: #b97c43; box-shadow: 0 0 0 1px rgba(185, 124, 67, 0.26); }
.trash-guide .trash-priority-4 { border-color: #b99145; box-shadow: 0 0 0 1px rgba(185, 145, 69, 0.24); }
.trash-guide .trash-priority-5 { border-color: #ad9f4b; box-shadow: 0 0 0 1px rgba(173, 159, 75, 0.22); }
.trash-guide .trash-priority-6 { border-color: #91a34f; box-shadow: 0 0 0 1px rgba(145, 163, 79, 0.22); }
.trash-guide .trash-priority-7 { border-color: #6f9d58; box-shadow: 0 0 0 1px rgba(111, 157, 88, 0.22); }
.trash-guide .trash-priority-8 { border-color: #668d5b; box-shadow: 0 0 0 1px rgba(102, 141, 91, 0.20); }
.trash-guide .trash-priority-9 { border-color: #5c7956; box-shadow: 0 0 0 1px rgba(92, 121, 86, 0.18); }

.trash-mob-portrait {
  display: grid;
  min-height: 150px;
  overflow: hidden;
  place-items: center;
  padding: 10px;
  background:
    radial-gradient(circle at 50% 32%, rgba(125, 157, 113, 0.28), transparent 32%),
    linear-gradient(155deg, #263329, #151A17);
  border-right: 1px solid var(--bt-border-soft);
  color: var(--bt-text-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.trash-mob-portrait:has(.trash-mob-img) {
  padding: 0;
}

.trash-mob-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.trash-mob-portrait span {
  padding: 8px 4px;
  border-block: 1px solid rgba(185, 218, 245, 0.28);
}

.trash-mob-body {
  min-width: 0;
  padding: 9px 10px;
}

.trash-mob-body header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bt-border-soft);
}

.trash-mob-name {
  margin: 0;
  color: var(--bt-text);
  font-size: 14px;
  line-height: 1.2;
}

.trash-kill-priority {
  flex: 0 0 auto;
  color: #F2C98B;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.trash-ability-list {
  margin: 7px 0;
  padding: 0;
  list-style: none;
}

.trash-ability-list .mech {
  margin: 0 0 5px;
  padding: 0;
}

.trash-ability-list .mech-name {
  display: inline;
  margin-right: 4px;
}

.trash-ability-list .mech-name::after {
  content: " —";
  color: var(--bt-muted);
}

.trash-ability-list .mech-desc {
  display: inline;
}

.trash-tag {
  display: inline-block;
  margin: 0 3px 2px 0;
  padding: 1px 5px;
  border: 1px solid rgba(185, 218, 245, 0.34);
  border-radius: 999px;
  background: rgba(32, 57, 78, 0.72);
  color: var(--bt-phase-text);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
}

.trash-card-tags {
  margin-top: 6px;
}

.trash-handling {
  margin: 7px 0 0;
  padding: 6px 8px;
  background: rgba(77, 91, 67, 0.22);
  border-left: 2px solid #70a879;
  color: var(--bt-text-soft);
  font-size: 11px;
  line-height: 1.4;
}

.trash-handling .role-label {
  display: block;
  margin-bottom: 1px;
  color: #CBE7B0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 1;
  text-transform: uppercase;
}

@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html,
  body { background: white; background-image: none; }
  body { padding: 0; }
  .screen-only { display: none !important; }
  .sheet { box-shadow: none; border: none; padding: 0; max-width: none; }
  .phase-block, .setup-block, .header-row, .image-card, .reminder-card { page-break-inside: avoid; }
  .trash-mob-card { break-inside: avoid; page-break-inside: avoid; }
}

.image-placeholder {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, rgba(76, 104, 83, 0.16), rgba(91, 55, 105, 0.14));
  border: 1px dashed var(--bt-border);
}
