.bless-guide {
  --bless-frame: #52563b;
  color: #d2d1ba;
  line-height: 1.6;
}

.bless-guide h2, .bless-guide h3 {
  color: var(--cream, #e8d7b0);
  line-height: 1.25;
}

.bless-guide > section, .bless-intro, .bless-npc {
  padding: 22px;
  border: 1px solid var(--bless-frame);
  background: var(--panel, #161b13);
}

.bless-loss, .bless-npc + .bless-npc {
  margin-top: 18px;
}

.bless-guide p { margin: 0 0 12px; }
.bless-guide p:last-child { margin-bottom: 0; }
.bless-guide code { color: #edcb90; }

.bless-stats, .bless-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.bless-stats > *, .bless-contents a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--bless-frame);
  background: #22291a;
}

.bless-stats dd {
  margin: 0;
  color: #edcb90;
  font-weight: bold;
}
.bless-npc-heading h2 { margin: 0; }
.bless-location, .bless-money-note { color: #b8bba5; }
.bless-contents a:hover,
.bless-route > summary:hover {
  border-color: var(--gold, #bda16a);
  color: #f5e6c7;
}

.bless-guide [id] { scroll-margin-top: 16px; }
.bless-guide figure { margin: 14px 0; }
.bless-guide figure a { display: inline-block; max-width: 100%; vertical-align: top; }
.bless-guide figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--bless-frame);
  image-rendering: pixelated;
}

.bless-guide figcaption { margin: 7px 0 0; color: #b8bba5; }
.bless-photo figcaption { display: none; }
.bless-stages { padding-left: 22px; }
.bless-stage h3 { margin: 0; }
.bless-amulet {
  margin-top: 16px;
  padding: 14px;
  border-left: 2px solid var(--gold, #bda16a);
  background: #22291a;
}
.bless-amulet h3 { margin-top: 0; }

.bless-route > summary {
  padding: 9px 12px;
  border: 1px solid var(--bless-frame);
  color: #edcb90;
  background: #22291a;
  cursor: pointer;
}

.bless-route[open] > summary { margin-bottom: 14px; }
.bless-stage + .bless-stage { margin-top: 14px; }
.bless-loss table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.bless-loss th, .bless-loss td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--bless-frame);
  text-align: left;
}
.bless-loss thead { background: #22291a; }

.bless-dialog {
  width: min(1050px, 92vw);
  max-height: 90vh;
  padding: 15px;
  color: #e5dbbf;
  background: #171c14;
  border: 1px solid #666044;
}
.bless-dialog::backdrop { background: #090d09d9; }
.bless-dialog-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
}
.bless-dialog-bar strong { margin-right: auto; }
.bless-dialog button {
  padding: 5px 8px;
  border: 1px solid #666044;
  background: #242b1d;
  color: #e5dbbf;
  cursor: pointer;
}
.bless-dialog-image {
  display: flex;
  align-items: center;
  overflow: auto;
  max-height: 68vh;
  min-height: 120px;
  border: 1px solid #52563b;
  background: #10150f;
}
.bless-dialog-image img {
  display: block;
  height: auto;
  max-width: none;
  flex: none;
  margin: auto;
  image-rendering: pixelated;
}
.bless-dialog-caption { margin: 10px 0 0; }
