@import url("styles.css?v=navmenu1");

body.quest-bot-page .page {
  max-width: 64rem;
}

.quest-intro {
  margin-bottom: 1.25rem;
}

.quest-intro p {
  margin: 0 0 0.5rem;
  color: var(--ts-muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.quest-toolbar {
  margin-bottom: 1rem;
}

.quest-toolbar .search-label {
  display: block;
  font-size: 0.8rem;
  color: var(--ts-muted);
  margin-bottom: 0.35rem;
}

.quest-toolbar input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #ffffff1a;
  background: var(--ts-surface);
  color: var(--ts-text);
  font: inherit;
}

.quest-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quest-step {
  border: 1px solid #ffffff14;
  border-radius: 0.65rem;
  background: var(--ts-card);
  overflow: hidden;
}

.quest-step-head {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  padding: 0.75rem 0.85rem;
  border: none;
  background: #1e282f;
  color: var(--ts-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.quest-step-head:hover {
  background: #243038;
}

.quest-step-level {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ts-gold);
  white-space: nowrap;
}

.quest-step-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.quest-step-avg {
  font-size: 0.75rem;
  color: var(--ts-jade);
  white-space: nowrap;
}

.quest-step-chevron {
  color: var(--ts-muted);
  font-size: 0.85rem;
}

.quest-step-body {
  display: none;
  padding: 0.75rem 0.85rem 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-top: 1px solid #ffffff0f;
}

/* กรอบรูปเท่ากันทุกขั้น (280×250 ตามต้นฉบับบล็อก) */
.quest-figure {
  width: min(100%, 17.5rem);
  aspect-ratio: 280 / 250;
  margin: 0 auto 0.75rem;
  padding: 0.35rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1218;
  border: 1px solid #ffffff14;
  border-radius: 0.5rem;
  overflow: hidden;
}

.quest-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0.25rem;
}

.quest-step.is-open .quest-step-body {
  display: block;
}

.quest-step.is-open .quest-step-chevron {
  transform: rotate(90deg);
}

.quest-dl {
  margin: 0 0 0.65rem;
  display: grid;
  grid-template-columns: minmax(5.5rem, auto) 1fr;
  gap: 0.25rem 0.65rem;
}

.quest-dl dt {
  margin: 0;
  color: var(--ts-muted);
  font-size: 0.8rem;
}

.quest-dl dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.quest-warp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.btn-copy-warp {
  border: 1px solid #ffffff22;
  background: var(--ts-surface);
  color: var(--ts-jade);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  cursor: pointer;
}

.btn-copy-warp:hover {
  border-color: var(--ts-jade);
}

.quest-npcs {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--ts-muted);
}

.quest-npcs li {
  margin-bottom: 0.25rem;
}

.quest-script {
  margin: 0.65rem 0 0;
  padding: 0.5rem 0.6rem;
  border-radius: 0.4rem;
  background: #0a1218;
  border: 1px solid #ffffff12;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.quest-body {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ts-text);
  background: transparent;
  border: none;
}

.quest-body a {
  color: var(--ts-jade);
}

.quest-copy-row {
  margin: 0.75rem 0 0;
}

.quest-intro p:last-child {
  color: #ff6b6b;
  font-weight: 600;
}

.quest-notes {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--ts-muted);
  font-size: 0.8125rem;
}

.quest-variant {
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #ffd70022;
  color: var(--ts-gold);
  border: 1px solid #ffd70044;
}

.quest-side {
  margin-bottom: 1.5rem;
  border-color: #20b2aa44;
}

.quest-side h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ts-jade);
}

.quest-side ol,
.quest-guide {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ts-muted);
  line-height: 1.55;
  font-size: 0.875rem;
}

.quest-guide li {
  margin-bottom: 0.35rem;
}

.quest-section-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ts-gold);
}

.quest-section-label--tight {
  margin: 0.65rem 0 0.25rem;
}

.quest-guide-block {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.5rem;
  background: #0f1a20;
  border: 1px solid #ffd70022;
}

.quest-chain-wrap {
  margin-bottom: 1.25rem;
  border-color: #ffd70033;
}

.quest-chain-wrap h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--ts-gold);
}

.quest-chain-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.quest-chain-item {
  border: 1px solid #ffffff14;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #1e282f;
}

.quest-chain-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--ts-text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.quest-chain-head:hover {
  background: #243038;
}

.quest-chain-body {
  display: none;
  padding: 0 0.75rem 0.75rem;
  border-top: 1px solid #ffffff0f;
}

.quest-chain-item.is-open .quest-chain-body {
  display: block;
}

.quest-chain-item.is-open .quest-step-chevron {
  transform: rotate(90deg);
}

.quest-source {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ts-muted);
  text-align: center;
}

.quest-source a {
  color: var(--ts-jade);
}

.quest-empty {
  text-align: center;
  color: var(--ts-muted);
  padding: 2rem 1rem;
}
