.quest-map {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--sl-raised, #1a2029);
  color: #f5e8ca;
}
.quest-map[hidden] {
  display: none;
}
.qm-surface {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  outline-offset: -3px;
}
.qm-surface:focus-visible {
  outline: 2px solid #f3c778;
}
.qm-surface.dragging {
  cursor: grabbing;
}
.qm-world,
.qm-tiles,
.qm-base,
.qm-tiles img {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.qm-world {
  left: 0;
  top: 0;
  transform-origin: 0 0;
}
.qm-tiles,
.qm-base {
  inset: 0;
  width: 100%;
  height: 100%;
}
.qm-tiles img,
.qm-base {
  display: block;
  max-width: none;
}
.qm-pin {
  display: flex;
  position: absolute;
  width: 28px;
  height: 38px;
  transform: translate(-50%, -100%);
  pointer-events: none;
}
.qm-pin svg {
  width: 100%;
  height: 100%;
  flex: none;
  filter: drop-shadow(0 1px 3px #180e02b0);
}
.qm-pin span {
  position: absolute;
  left: 28px;
  bottom: 23px;
  padding: 5px 9px;
  min-width: max-content;
  max-width: 260px;
  border: 1px solid #c7a969;
  border-radius: 5px;
  background: #11151ce8;
  box-shadow: 0 2px 5px #17180c54;
  color: #ffe0a1;
  font-weight: 650;
  font-size: clamp(0.8rem, 1vw, 1rem);
  line-height: 1.28;
}
.qm-label-left span {
  left: auto;
  right: 28px;
}
.qm-north {
  position: absolute;
  top: 12px;
  right: 17px;
  display: grid;
  justify-items: center;
  gap: 3px;
  font:
    600 13px/1 system-ui,
    sans-serif;
  color: #fbefd1;
  filter: drop-shadow(0 1px 2px #17150d);
  pointer-events: none;
}
.qm-north svg {
  width: 17px;
  height: 19px;
}
.qm-controls {
  position: absolute;
  right: 12px;
  bottom: 14px;
  display: grid;
  padding: 0 4px;
  border: 1px solid #baaa80;
  border-radius: 5px;
  background: #11151cea;
  color: #f4e3b8;
  box-shadow: 0 2px 8px #0005;
}
.qm-controls button {
  display: grid;
  place-items: center;
  min-width: 35px;
  min-height: 38px;
  padding: 7px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.qm-controls button + button {
  border-top: 1px solid #a59a6b70;
}
.qm-controls svg {
  width: 20px;
  height: 20px;
}
.qm-controls button:hover,
.qm-controls button:focus-visible {
  background: #caaa6433;
  color: #ffdb94;
}
.qm-controls button:disabled {
  opacity: 0.4;
}
.qm-scale {
  display: grid;
  position: absolute;
  bottom: 12px;
  left: 15px;
  gap: 2px;
  font:
    600 11px/1.2 system-ui,
    sans-serif;
  text-shadow:
    0 1px 2px #000,
    0 0 4px #000;
  color: #fff2ce;
  pointer-events: none;
}
.qm-scale i {
  height: 4px;
  border: solid currentColor;
  border-width: 0 1px 1px;
  filter: drop-shadow(0 1px 1px var(--sl-bg, #0b0e13));
}
@media (max-width: 760px) {
  .qm-controls {
    right: 8px;
    bottom: 8px;
    padding: 0;
  }
  .qm-controls button {
    min-width: 40px;
    min-height: 40px;
  }
  .qm-pin span {
    min-width: auto;
    width: max-content;
    max-width: min(134px, 36vw);
  }
}
