.quest-dialog { text-align: center; }
.quest-npc-portrait { display: block; width: auto; height: min(17vh, 137px); max-width: 100%; object-fit: contain; margin: 0 auto; }
.quest-journal .quest-filter { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 10px 0; }
.quest-filter select { min-height: 44px; border-radius: 9px; padding: 0 12px; color: #fff0d5; background: #332042; border: 1px solid #ae87be; }
.quest-journal-entry { padding: 10px 0; border-bottom: 1px solid #d7b3ed30; }
.quest-journal-entry p { margin: 4px 0; }
.quest-journal-entry .secondary { min-height: 44px; }
.quest-map-mark { position: absolute; top: -20px; left: 50%; translate: -50% 0; width: 20px; height: 20px; pointer-events: none; }
.quest-map-mark[hidden], .quest-map-spot[hidden] { display: none; }
.quest-map-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.quest-map-spot { position: absolute; z-index: 7; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; translate: -50% -50%; }
.quest-map-spot img { width: 30px; height: 30px; pointer-events: none; filter: drop-shadow(0 0 7px #e6b4fc); }
.quest-join { text-align: center; }
.quest-join .capture-portrait { height: min(30vh, 195px); margin: 0 auto; }
.legend-trial .enemy-intent { border-color: #b37ae0; }
.legend-echo { animation: legend-echo .7s ease-in-out infinite alternate; }
@keyframes legend-echo { to { opacity: .42; translate: 1px 0; } }
.reduce-motion .legend-echo { animation: none; border-style: dashed; opacity: .65; }
@media (prefers-reduced-motion: reduce) {
  .legend-echo { animation: none; border-style: dashed; opacity: .65; }
}
.district-npc.quest-pin-only > :not(.quest-map-mark) { visibility: hidden; }
.district-npc.quest-pin-only > .quest-map-mark { top: auto; bottom: 0; width: 24px; height: 24px; }

.quest-dialog h2 { margin: 3px 0; }
.quest-dialog p { margin: 5px 0 8px; }
.quest-dialog .compact-options { margin-top: 3px; }
.legend-trial .battle-stage .actor.enemy { left: 35%; right: auto; top: 14%; width: 60%; height: 63%; }
.legend-trial .battle-stage .actor.enemy .samjogo .atlas-frame,
.legend-trial .battle-stage .actor.enemy .bonghwang .atlas-frame { scale: -1 1; }
.battle-view .actor.ally .mirror-art.samjogo .atlas-frame,
.battle-view .actor.ally .mirror-art.bonghwang .atlas-frame { scale: -1 1; }
