.npc-row {
  grid-template-columns: 38px minmax(0, 1fr) 134px 16px;
}

.npc-row__ico {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.npc-row__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.npc-row__region {
  justify-self: center;
  text-align: center;
}

.npc-badge--shop {
  background: linear-gradient(135deg, #1f7d57, #2fae7a) !important;
}

.npc-badge--store {
  background: linear-gradient(135deg, #c77d0a, #e0a020) !important;
}

.npc-hero__art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  max-width: 220px;
}

.npc-hero__img {
  max-width: 200px;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(14, 27, 77, .28));
}

@media (max-width: 767px) {
  .quest-hero__npc.npc-hero__art { max-width: 100%; }
  .npc-hero__img { max-width: 140px; }
}

.npc-hero .quest-hero__eyebrow em { margin-left: 0; }
.npc-hero .quest-hero__main { align-items: flex-start; }

.npc-hero__quote {
  margin: 12px 0 0;
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: #c7cef0;
  max-width: 46ch;
}

.npc-none {
  color: var(--dms-muted, #6b7280);
  font-size: 14px;
  margin: 0;
}

.map-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  margin-left: 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--dms-navy-700, #1d2f6b);
  background: var(--dms-paper-2, #f7f8fc);
  border: 1px solid var(--dms-border, rgba(14, 27, 77, .10));
}

.npc-mm {
  margin-bottom: 14px;
}

.npc-mm__stage {
  position: relative;
  display: inline-block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--dms-border, rgba(14, 27, 77, .10));
  background: #0e1b4d;
}

.npc-mm__img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
}

.npc-mm__pin {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 999px;
  background: var(--dms-accent, #f82249);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(248, 34, 73, .4);
}

.npc-mm__cap {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dms-muted, #6b7280);
}

.npc-locgroup { margin-bottom: 12px; }
.npc-locgroup:last-child { margin-bottom: 0; }

.npc-locgroup__h {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--dms-muted, #6b7280);
  margin-bottom: 6px;
}

.npc-locgroup__maps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.npc-locmap {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--dms-paper-2, #f7f8fc);
  border: 1px solid var(--dms-border, rgba(14, 27, 77, .10));
  color: var(--dms-navy-900, #0e1b4d);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}

.npc-locmap:hover {
  transform: translateY(-1px);
  box-shadow: var(--dms-shadow, 0 6px 16px rgba(14, 27, 77, .12));
}

.npc-locmap i { color: var(--dms-accent, #f82249); font-size: 13px; flex: none; }
.npc-locmap span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.npc-srcgroup__h {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--dms-muted, #6b7280);
  margin: 14px 0 6px;
}

.npc-srcgroup__h:first-child { margin-top: 0; }

.npc-questlist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.npc-questrow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--dms-paper-2, #f7f8fc);
  border: 1px solid var(--dms-border, rgba(14, 27, 77, .10));
  color: var(--dms-navy-900, #0e1b4d);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}

.npc-questrow:hover {
  transform: translateY(-1px);
  box-shadow: var(--dms-shadow, 0 6px 16px rgba(14, 27, 77, .12));
}

.npc-questrow i { color: var(--dms-accent, #f82249); font-size: 13px; flex: none; }
.npc-questrow span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.npc-questrow__ico { width: 16px; height: 16px; object-fit: contain; flex: none; }
.npc-questrow__nm { flex: 1 1 auto; }
.npc-questrow__lv { flex: none; font-size: 11px; font-weight: 700; color: var(--dms-muted, #6b7280); }

.npc-shoplist {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.npc-shopitem {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--dms-paper-2, #f7f8fc);
  border: 1px solid var(--dms-border, rgba(14, 27, 77, .10));
}

.npc-shopitem__ico {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.npc-shopitem__ico img { max-width: 100%; max-height: 100%; object-fit: contain; }

.npc-shopitem__name {
  min-width: 0;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--dms-navy-900, #0e1b4d);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.npc-shopitem__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--dms-accent, #f82249);
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

.npc-shopitem__token {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 3px;
  object-fit: contain;
}

.item-chip--period {
  color: #8a5606;
  background: rgba(199, 125, 10, .16);
}

@media (max-width: 760px) {
  .npc-row {
    grid-template-columns: 38px minmax(0, 1fr) 16px;
  }
  .npc-row__region {
    display: none;
  }
}
