#npc-dialog {
  display: none;
  position: absolute;
  right: 12px;
  top: 80px;
  width: 260px;
  max-height: 50%;
  overflow-y: auto;
  background: rgba(10, 10, 14, 0.92);
  border: 1px solid #6b5a2e;
  border-radius: 6px;
  color: #e8e0c8;
  font-size: 13px;
  z-index: 40;
  box-shadow: 0px 0px 12px 0px black;
}

#npc-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #2a2118;
  border-bottom: 1px solid #6b5a2e;
  font-weight: bold;
  border-radius: 6px 6px 0 0;
}

#npc-dialog-close {
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
}

#npc-dialog-close:hover {
  color: white;
}

#npc-dialog-message {
  padding: 8px 10px;
  line-height: 1.4;
}

#npc-dialog-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 10px 10px 10px;
  /* The option list is the full set of configured keywords, which can be
     long (67 on al_dee). Cap the list and keep it scrollable instead of
     silently dropping buttons. */
  max-height: 40vh;
  overflow-y: auto;
  align-content: flex-start;
}

#npc-dialog-buttons button {
  background: #3a2f1d;
  border: 1px solid #6b5a2e;
  border-radius: 4px;
  color: #ffd97a;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 10px;
}

#npc-dialog-buttons button:hover {
  background: #54432a;
  color: white;
}
