#quest-board-panel .panel-header {
  background: linear-gradient(90deg, #1b273d, #2b4b7e);
  color: #fff;
  font-weight: bold;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #415a77;
}

#quest-board-panel .panel-title {
  font-size: 18px;
  color: #E9FC4E;
  font-weight: bold;
  flex-shrink: 0;
}

#quest-board-panel .panel-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  padding: 8px 10px 10px;
}
/* Tabs container directly under title bar */
#quest-board-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.quest-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 86px;
  padding: 6px 10px;
  background: rgba(10, 15, 25, 0.6);
  border: 1px solid #324a6f;
  border-radius: 4px;
  color: #bbb;
  font-size: 13px;
  line-height: 1.1;
  font-weight: bold;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, border 0.2s;
}

.quest-tab:hover {
  color: #fff;
  background: rgba(60, 90, 130, 0.5);
}

.quest-tab.active {
  color: #fff;
  background: rgba(70, 120, 180, 0.4);
  border: 1px solid #5da9f1;
}

/* Scrollable content area below header */
.quest-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.quest-list {
  display: none;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.quest-list.visible {
  display: flex;
}

/* ============================
   Quest Entry Box (Expanded)
   ============================ */
.quest-entry {
  border-radius: 8px;
  transition: background 0.2s, transform 0.1s, border-color 0.2s;
  font-size: 14px;
  line-height: 1.5;
}

.quest-entry:hover {
}

.quest-title {
  font-weight: bold;
}

.quest-desc {
  font-size: 0.9em;
  color: #ddd;
  line-height: 1.4;
  margin-bottom: 8px;
  white-space: pre-wrap;
}

/* ✅ Step list display */
.quest-steps {
  color: #ccc;
  font-size: 0.9em;
  line-height: 1.4;
}

.quest-step {
}

.quest-step-status {
  font-size: 0.95em;
  color: #8fffa8;
}

.quest-step-title {
  font-weight: 600;
}

.quest-step-meta{
  margin-left: auto;
  font-size: 0.85em;
  opacity: 0.9;
  color: #d7e6ff;
}

.quest-badge{
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: #d7e6ff;
  vertical-align: middle;
}

.quest-accept{
  margin-top: 10px;
  padding: 8px 10px;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
}

.quest-accept:hover{
  background: rgba(255,255,255,0.10);
}

.quest-step-desc {
  color: #b8c9e3;
  font-size: 0.85em;
  line-height: 1.35;
  opacity: 0.9;
  white-space: pre-wrap;
}

/* ✅ Progress + Reward footer */
.quest-status,
.quest-progress,
.quest-reward {
  font-size: 0.85em;
  color: #8fd3ff;
  margin-top: 6px;
  opacity: 0.9;
}

/* Locked / Completed styling */
.quest-entry.locked {
  opacity: 0.55;
  filter: grayscale(0.6);
}

.quest-entry.completed {
}

/* ✅ Mini-banner (active quest indicator) */
#quest-minibanner {
  display: none;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 30, 50, 0.92);
  border: 1px solid #5da9f1;
  border-radius: 6px;
  padding: 4px 10px;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  z-index: 1500;
  text-align: center;
  box-shadow: 0 0 6px rgba(93, 169, 241, 0.5);
}

/* ============================
   Shop Panel (FINAL — CLEAN)
   ============================ */
#shop-panel.panel {
  background: rgba(13, 27, 42, 0.9);
  border: 2px solid #415a77;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

#shop-panel.visible {
  display: flex;
  flex-direction: row;
}

/* ============================
   LEFT SIDE (IMAGE + RINGS + BUY/SELL)
   ============================ */
#shop-panel .shop-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 2px solid #415a77;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Shopkeeper image */
#shop-panel #shop-keeper {
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
}
