/* One map canvas with a single objective and a single menu entry. */
.simple-map .map-hud { background: none; padding-inline: 12px; }
.simple-map .map-hud .topbar { min-height: 0; padding-top: calc(6px + var(--safe-top)); }
.current-region-label {
  color: #ffedcb; background: #1a1129da; border: 1px solid #d2ab7566;
  border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 750;
}
.map-view.simple-map .map-dock {
  right: 79px; bottom: calc(12px + var(--safe)); left: 12px; display: block;
}
.simple-objective {
  min-height: 64px; display: grid; grid-template-columns: minmax(0,1fr) auto;
  align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border: 1px solid #d9b278bb;
  border-radius: 13px; background: #251833f6; box-shadow: 0 6px 24px #120b20bb;
}
.simple-objective small { display: block; color: #d9b893; font-size: 10px; margin-bottom: 3px; }
.simple-objective strong { color: #fff0cd; font-size: 13px; line-height: 1.35; word-break: keep-all; }
.simple-objective button { min-height: 44px; min-width: 52px; padding-inline: 8px; }
.floating-menu {
  position: absolute; z-index: 10; bottom: calc(13px + var(--safe)); right: 12px;
  width: 56px; height: 56px; padding: 4px; display: grid; place-content: center;
  justify-items: center; gap: 2px; border-radius: 50%; color: #fff0c4; font-size: 10px;
  border: 1px solid #edc281; background: #312045f8; box-shadow: 0 5px 20px #170e2ecc;
}
.floating-menu svg { width: 19px; height: 19px; }
.return-to-map { position: fixed; right: max(12px,calc((100vw - 530px)/2)); }
.simple-map .map-wrap { inset: 0 0 calc(86px + var(--safe)); }
.map-wrap.region-arriving { animation: map-soft-cross .3s ease-out both; }
@keyframes map-soft-cross { from { filter: brightness(.46); } to { filter: brightness(1); } }
.map-world[data-simple-map] .map-point { min-height: 44px; }
.map-world[data-simple-map] [data-locked="true"] { opacity: .72; animation: none; }
.map-world[data-simple-map] [data-locked="true"]::after {
  content: ''; position: absolute; top: -8px; right: -5px;
  width: 18px; height: 18px; background: #24182f url("ui/lacquer/icons/lock@2x.webp") center/contain no-repeat;
  border: 1px solid #a58e91; border-radius: 9px;
}
.map-world[data-simple-map] .is-objective { z-index: 10; }
.map-world[data-simple-map] .is-objective::before {
  content: ''; position: absolute; top: -19px; left: 50%; transform: translateX(-50%) rotate(90deg);
  width: 20px; height: 20px; pointer-events: none;
  background: url("ui/lacquer/icons/arrow@2x.webp") center/contain no-repeat;
}
.map-world[data-simple-map] .district-npc.is-objective > img { width: 63px; height: 94px; }
.map-world[data-simple-map] .objective-edge { opacity: .95; }
body:has(.simple-map) .toast { top: auto; bottom: calc(91px + var(--safe)); width: min(calc(100% - 28px),430px); }
body:has(.simple-map) .toast.show { transform: translate(-50%,0); }
.compact-view { padding-bottom: calc(85px + var(--safe)); }
.compact-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.compact-options button,.compact-toolbar button,.compact-sheet select { min-height: 44px; }
.compact-wide { grid-column: 1 / -1; }
.compact-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.compact-copy { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; word-break: keep-all; }
.modal-root .compact-modal { max-height: min(71dvh,525px); padding-top: 14px; }
.compact-modal:has(.map-journal) { max-height: min(64dvh,490px); }
.compact-sheet h3 { margin-block: 6px; color: #efd2a2; font-size: 13px; }
.compact-sheet select { color: #fff0ce; background: #281735; border: 1px solid #a788ac; border-radius: 10px; padding: 5px 10px; margin: 6px; }
.compact-sheet .gift-tray { position: static; width: 100%; transform: none; }
.map-journal ul { list-style: none; padding: 0; margin: 0; }
.map-journal li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 5px; border-bottom: 1px solid #a3819944; font-size: 12px; text-align: left; }
.map-journal li strong { white-space: nowrap; color: #f3d5a5; font-size: 11px; }
.map-journal .sheet-cancel { position: sticky; bottom: 0; }
.compact-view .party-slots { margin-top: 5px; }
.compact-view .companion-showcase { padding: 10px; text-align: center; }
.compact-view .companion-portrait { height: min(33dvh,245px); }
.compact-view .companion-portrait .creature-art { height: 100%; max-height: 220px; }
.compact-view .companion-showcase > .compact-copy { margin-block: 4px; }
.compact-view .grid-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.battle-view .turn-command-deck .cmd-row-sub { grid-template-columns: 1fr; }
.battle-view .turn-command-deck .cmd-connect { min-height: 44px; }
.battle-view .battle-utility-row { display: flex; gap: 6px; margin-top: 4px; }
.battle-view .battle-utility-row button { flex: 1; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .map-wrap.region-arriving { animation: none; } }
.simple-objective .objective-notice { display: block; font-size: 11px; color: #ffd095; }
.simple-map .map-wrap::after {
  background: linear-gradient(180deg,#100b2277,transparent 18%,transparent 80%,#120c22a0 94%,#120c22);
}
.storyteller .sheet-cancel { width: 100%; }
.heard-mark { color: #d8f7d5; border: 1px solid #88b08f; border-radius: 8px; padding: 1px 6px; font-size: 11px; }
.volume-row { display: block; padding: 7px 0 3px; }
.volume-row > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.volume-row output { color: #f2d699; font-size: 13px; }
.volume-row input { width: 100%; height: 44px; margin: 0; accent-color: #e8b968; cursor: pointer; }
.volume-row input::-webkit-slider-runnable-track { height: 8px; border-radius: 9px; background: #714f82; }
.volume-row input::-webkit-slider-thumb { margin-top: -5px; }
.volume-settings .compact-options { margin-top: 7px; }
.map-world .objective-face {
  position: relative; display: block; width: 57px; height: 57px; overflow: hidden;
  border: 2px solid #ffe3a3; border-radius: 50%; background: #402952;
  box-shadow: 0 0 15px #ffd789aa; pointer-events: none;
}
.map-world .objective-face img {
  position: absolute; top: -3px; left: 50%; width: 176px; height: auto; max-width: none;
  transform: translateX(-50%);
}
.map-world[data-simple-map] .map-point:not(.is-objective) { animation: none; box-shadow: none; }
.compact-sheet label:has(select) { display: grid; grid-template-columns: 1fr minmax(0,1.15fr); align-items: center; text-align: left; }
.compact-sheet label select { width: 100%; margin-inline: 0; }

/* Only offscreen objectives leave their map anchor. The depth of on-map sprites follows their feet. */
.map-world[data-simple-map] :is(.map-point,.district-npc) {
  transition: opacity .15s ease, visibility 0s;
}
.map-world[data-simple-map] :is(.map-point,.district-npc).pin-hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s ease, visibility 0s linear .15s;
}
.map-world[data-simple-map] .npc-label,
.map-world[data-simple-map] .map-pin-name { transition: opacity .15s ease; }
.map-world[data-simple-map] .npc-label .map-pin-name { font-style: normal; }
.map-world[data-simple-map] .pin-label-hidden .npc-label { opacity: 0; pointer-events: none; }
.map-world[data-simple-map] .pin-near-hero .map-pin-name { opacity: .55; }
@media (prefers-reduced-motion: reduce) {
  .map-world[data-simple-map] :is(.map-point,.district-npc,.npc-label,.map-pin-name) { transition: none; }
}
html.reduce-motion .map-world[data-simple-map] :is(.map-point,.district-npc,.npc-label,.map-pin-name) { transition: none; }

.simple-objective .objective-level { margin: 3px 0 0; color: #f0c995; }

/* Continue the terrain at an edge when the explorer must clear the HUD. */
.simple-map .map-edge-fill {
  display: none;
  position: absolute;
  inset-inline: 0;
  height: 320px;
  z-index: 0;
  background-size: 100% var(--map-edge-height);
  background-repeat: no-repeat;
  transform: scaleY(-1);
  pointer-events: none;
}
.simple-map .needs-top-edge > .map-edge-top {
  display: block;
  bottom: 100%;
  background-position: center top;
}
.simple-map .needs-bottom-edge > .map-edge-bottom {
  display: block;
  top: 100%;
  background-position: center bottom;
}
.simple-map .phase-night .map-edge-fill { filter: brightness(.62) saturate(.78); }
body:has(.simple-map) .toast {
  bottom: var(--map-toast-bottom, calc(91px + var(--safe)));
}
