/* ===== DIÁLOGO DE NPC ===== */
.npcDialog{
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  background: rgba(0,0,0,.18);
  pointer-events: auto;
}

.npcDialog.hidden{
  display: none;
}

.npcDialogCard{
  width: min(520px, calc(100vw - 22px));
  border: 1px solid rgba(191,156,87,.75);
  border-radius: 16px;
  background: linear-gradient(to bottom, rgba(40,30,18,.96), rgba(10,8,6,.97));
  color: #f6e6b2;
  box-shadow: 0 8px 30px rgba(0,0,0,.75), inset 0 0 10px rgba(255,215,0,.08);
  overflow: hidden;
}

.npcDialogHeader{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(191,156,87,.35);
}

.npcDialogHeader strong{
  display: block;
  font-size: 16px;
}

#npcDialogType{
  font-size: 11px;
  opacity: .75;
  text-transform: uppercase;
}

#npcDialogClose{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 22px;
}

.npcDialogText{
  padding: 14px 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #fff4cf;
  white-space: pre-wrap;
}

.npcDialogActions{
  padding: 10px 12px 12px;
  display: flex;
  justify-content: flex-end;
}

.npcDialogActions button{
  border: 1px solid rgba(191,156,87,.65);
  background: linear-gradient(to bottom, #6e4b1f, #2b1a08);
  color: #f8e7a5;
  padding: 9px 14px;
  border-radius: 10px;
}


/* ===== SHOP NPC ===== */
.shopUI{
  position: fixed;
  inset: 0;
  z-index: 10090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0,0,0,.28);
}
.shopUI.hidden{ display:none; }
.shopPanel{
  width: min(680px, calc(100vw - 20px));
  max-height: min(78vh, 620px);
  border: 1px solid rgba(191,156,87,.75);
  border-radius: 16px;
  background: linear-gradient(to bottom, rgba(38,28,16,.98), rgba(8,7,6,.98));
  color: #f6e6b2;
  box-shadow: 0 10px 34px rgba(0,0,0,.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.shopHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-bottom:1px solid rgba(191,156,87,.35);
}
.shopHeader strong{display:block;font-size:16px}
#shopGold{font-size:12px;color:#ffd36a}
#shopCloseBtn{
  width:34px;height:34px;border-radius:10px;border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);color:#fff;font-size:22px;
}
.shopTabs{display:flex;gap:6px;padding:8px 10px;border-bottom:1px solid rgba(191,156,87,.25)}
.shopTabs button,.npcDialogActions #npcDialogShopBtn{
  border:1px solid rgba(191,156,87,.55);
  background:rgba(255,255,255,.08);
  color:#f8e7a5;
  border-radius:10px;
  padding:8px 12px;
}
.shopTabs button.active{
  background:linear-gradient(to bottom,#705225,#2c1b08);
}
.shopMessage{min-height:18px;padding:0 12px 6px;font-size:12px;color:#fff4cf}
.shopList{overflow:auto;padding:8px;display:flex;flex-direction:column;gap:6px}
.shopList.hidden{display:none}
.shopRow{
  display:flex;justify-content:space-between;align-items:center;gap:8px;
  padding:8px;border:1px solid rgba(255,255,255,.1);border-radius:12px;
  background:rgba(255,255,255,.05);
}
.shopRow.disabled{opacity:.55;filter:grayscale(.5)}
.shopItemInfo b{display:block;font-size:13px}
.shopItemInfo small{display:block;font-size:11px;opacity:.75}
.shopItemAction{display:flex;align-items:center;gap:8px;font-size:12px;color:#ffd36a}
.shopItemAction button{
  border:1px solid rgba(191,156,87,.6);
  border-radius:10px;
  padding:7px 10px;
  background:linear-gradient(to bottom,#6e4b1f,#2b1a08);
  color:#f8e7a5;
}
.shopEmpty{padding:14px;text-align:center;opacity:.75}
.hidden{display:none!important}


/* ===== QUESTS NO DIÁLOGO DO NPC ===== */
.npcQuestList{
  padding: 0 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.npcQuestList.hidden{
  display: none;
}

.npcQuestCard{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  padding: 8px;
}

.npcQuestTop{
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.npcQuestTop b{
  color: #ffe9a8;
  font-size: 13px;
}

.npcQuestTop span{
  font-size: 10px;
  opacity: .8;
  text-transform: uppercase;
}

.npcQuestCard p{
  margin: 5px 0;
  font-size: 12px;
  color: #fff4cf;
}

.npcQuestCard small{
  display: block;
  font-size: 10px;
  opacity: .82;
  margin-top: 3px;
}

.npcQuestCard button{
  margin-top: 7px;
  border: 1px solid rgba(191,156,87,.6);
  border-radius: 10px;
  padding: 7px 10px;
  background: linear-gradient(to bottom,#6e4b1f,#2b1a08);
  color: #f8e7a5;
}

.npcQuestCard button:disabled{
  opacity: .45;
  filter: grayscale(.7);
}


.npcQuestCard button:not(:disabled){
  box-shadow: 0 0 8px rgba(255, 210, 90, .25);
}
