/* The map of one map, full screen (2026-10-16, js/localmap.js): the user's LORDNINE picture
   (ref/worldmap/lordnine_map_example.webp) laid out the same, in the game's obsidian + gold. Laid out at 1440 x 860 and
   scaled to the window (.lm-stage). No soft halos round text: at most a crisp 1px dark ring. */
#lmap { position: fixed; inset: 0; z-index: 900; pointer-events: auto; overflow: hidden; user-select: none; font-family: 'Mali', sans-serif; color: #f2ead6;
  background: radial-gradient(ellipse 70% 65% at 52% 55%, #232029 0%, #141318 62%, #0c0b0f 100%); animation: lmIn 0.22s ease-out both; }
@keyframes lmIn { from { opacity: 0; } to { opacity: 1; } }
#lmap[hidden] { display: none; }
#lmap button { font-family: 'Mali', sans-serif; }
#lmap .lm-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
#lmap .lm-stage > * { position: absolute; }
/* crisp 1px dark ring for light text over the map (not a soft halo) */
#lmap .ring { text-shadow: 1px 0 0 #120c08, -1px 0 0 #120c08, 0 1px 0 #120c08, 0 -1px 0 #120c08; }

/* ---- top bar: HP / MP, money, title + exit ---- */
#lmap .lm-top { left: 0; top: 0; right: 0; height: 44px; background: linear-gradient(#0b0a0e, #17151c); border-bottom: 1px solid rgba(217, 164, 67, 0.35); }
#lmap .lm-vit { position: absolute; left: 16px; top: 5px; width: 236px; display: flex; flex-direction: column; gap: 3px; }
#lmap .lm-bar { position: relative; height: 15px; background: #2a2630; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
#lmap .lm-bar i { position: absolute; left: 0; top: 0; bottom: 0; transition: width 0.2s; }
#lmap .lm-bar.hp i { background: linear-gradient(#e2535a, #a8222e); }
#lmap .lm-bar.mp { width: 92%; }
#lmap .lm-bar.mp i { background: linear-gradient(#45b9e8, #1f6fae); }
#lmap .lm-bar span { position: absolute; left: 8px; top: 0; font: 700 11.5px/15px Fredoka, Mali, sans-serif; color: #fff; text-shadow: 1px 0 0 #1a0c0c, -1px 0 0 #1a0c0c, 0 1px 0 #1a0c0c, 0 -1px 0 #1a0c0c; }
#lmap .lm-cur { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: flex; gap: 8px; }
#lmap .lm-cur > span { display: flex; align-items: center; gap: 6px; height: 24px; min-width: 110px; padding: 0 10px 0 6px; border-radius: 4px; background: #0a090c;
  box-shadow: inset 0 0 0 1px rgba(217, 164, 67, 0.4); }
#lmap .lm-cur img { width: 18px; height: 18px; object-fit: contain; }
#lmap .lm-cur b { font: 800 12px Fredoka, sans-serif; color: #1c1408; background: #d9a443; border-radius: 3px; padding: 0 4px; }
#lmap .lm-cur em { margin-left: auto; font: 700 13px Fredoka, Mali, sans-serif; font-style: normal; color: #f6ead0; font-variant-numeric: tabular-nums; }
#lmap .lm-title { position: absolute; right: 12px; top: 4px; display: flex; align-items: center; gap: 10px; }
#lmap .lm-title b { font: 700 23px/36px 'Mali', sans-serif; color: #d9c9a2; letter-spacing: 1px; }
#lmap .lm-exit { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; cursor: pointer; background: none; display: grid; place-items: center; }
#lmap .lm-exit i { width: 30px; height: 30px; background: var(--uib-btn_close, url(../assets/ui_book/btn_close.png)) center / contain no-repeat; transition: transform 0.12s, filter 0.12s; }
#lmap .lm-exit:hover i, #lmap .lm-exit:focus-visible i { transform: scale(1.1); filter: brightness(1.2); }

/* ---- 📍 current location ---- */
#lmap .lm-here { left: 14px; top: 50px; display: flex; align-items: center; gap: 10px; }
#lmap .lm-pinic { width: 13px; height: 13px; margin: 0 4px 4px; border: 2.5px solid #e6d3a3; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
#lmap .lm-here span { display: flex; flex-direction: column; }
#lmap .lm-here small { font: 500 11px/1.2 Mali, sans-serif; color: #a89e8a; }
#lmap .lm-here b { font: 700 15px/1.3 Mali, sans-serif; color: #f2dfae; }

/* ---- left: land tabs, region icons, the region's maps ---- */
#lmap .lm-left { left: 0; top: 88px; bottom: 0; width: 276px; display: flex; flex-direction: column; background: linear-gradient(90deg, #17161c, #1b1a21);
  border-right: 1px solid rgba(217, 164, 67, 0.22); border-top: 1px solid rgba(217, 164, 67, 0.22); }
#lmap .lm-ctabs { display: flex; height: 38px; flex: none; }
#lmap .lm-ctabs button { flex: 1; border: 0; background: none; color: #8f877a; font: 600 13px Mali, sans-serif; white-space: nowrap; cursor: pointer; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
#lmap .lm-ctabs button.on { color: #f2c66a; border-bottom: 2px solid #d9a443; background: linear-gradient(rgba(217, 164, 67, 0), rgba(217, 164, 67, 0.14)); }
#lmap .lm-ctabs button:not(.on):hover { color: #e6d3a3; }
#lmap .lm-lbody { flex: 1; min-height: 0; display: flex; }
#lmap .lm-regions { width: 46px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 10px; border-right: 1px solid rgba(255, 255, 255, 0.06); }
#lmap .lm-reg { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px; cursor: pointer; background: none; display: grid; place-items: center; }
#lmap .lm-reg img { width: 30px; height: 30px; border-radius: 50%; filter: grayscale(0.85) brightness(0.8); box-shadow: 0 0 0 1.5px rgba(230, 211, 163, 0.5); }
#lmap .lm-reg b { font: 800 16px Fredoka, sans-serif; color: #8f877a; }
#lmap .lm-reg:hover img { filter: grayscale(0.3); }
#lmap .lm-reg.on { background: rgba(217, 164, 67, 0.16); box-shadow: inset 0 0 0 1.5px #d9a443; }
#lmap .lm-reg.on img { filter: none; box-shadow: 0 0 0 1.5px #f6dc98; }
#lmap .lm-maps { flex: 1; min-width: 0; overflow-y: auto; padding: 8px 6px 10px 6px; scrollbar-width: thin; scrollbar-color: #6b5a3a transparent; }
#lmap .lm-rhead { position: relative; display: flex; align-items: baseline; gap: 6px; height: 34px; padding: 0 10px; margin-bottom: 4px; border-radius: 3px; overflow: hidden;
  background-color: #2b3242; box-shadow: inset 0 0 0 1px rgba(217, 164, 67, 0.3); }
#lmap .lm-rhead::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 16, 26, 0.85), rgba(14, 16, 26, 0.35)); }
#lmap .lm-rhead b, #lmap .lm-rhead small { position: relative; line-height: 34px; }
#lmap .lm-rhead b { font: 700 14.5px Mali, sans-serif; color: #f6ead0; }
#lmap .lm-rhead small { font: 600 11px Fredoka, Mali, sans-serif; color: #d9c9a2; }
#lmap .lm-mrow { display: grid; grid-template-columns: 32px minmax(0, 1fr) 24px; align-items: center; gap: 8px; padding: 6px 4px 6px 6px; cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07); border-radius: 2px; }
#lmap .lm-mrow:hover { background: rgba(217, 164, 67, 0.08); }
#lmap .lm-mrow.sel { background: linear-gradient(90deg, rgba(122, 82, 32, 0.55), rgba(70, 48, 22, 0.45)); box-shadow: inset 0 0 0 1px #c99a3c; border-bottom-color: transparent; }
#lmap .lm-mrow .ic { width: 32px; height: 32px; display: grid; place-items: center; }
#lmap .lm-mrow .ic img { width: 30px; height: 30px; object-fit: contain; }
#lmap .lm-mrow .ic img.face { border-radius: 50%; background: #241d1d; box-shadow: 0 0 0 2px #b8423a; }
#lmap .lm-mrow .nm { display: flex; flex-direction: column; min-width: 0; }
#lmap .lm-mrow .nm b { font: 700 13px/1.25 Mali, sans-serif; color: #f2ead6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lmap .lm-mrow .nm small { font: 500 11px/1.3 Mali, sans-serif; color: #9b927f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lmap .lm-mrow .nm small em { font-style: normal; color: #f0a8c8; }
#lmap .lm-mrow.st-hard .nm small { color: #e08a7a; }
#lmap .lm-mrow .fav { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 17px; line-height: 1; color: #6f675b; }
#lmap .lm-mrow .fav:hover { color: #c9b88a; }
#lmap .lm-mrow .fav.on { color: #ffd75a; }

/* ---- the map ---- */
#lmap .lm-mapbox { left: 277px; top: 88px; right: 346px; bottom: 0; overflow: hidden; cursor: grab; touch-action: none; }
#lmap .lm-mapbox:active { cursor: grabbing; }
#lmap .lm-view { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
/* the map picture as dark parchment: its edges fade into the dark */
#lmap .lm-img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: sepia(0.72) saturate(0.5) brightness(0.86) contrast(1.06);
  -webkit-mask-image: radial-gradient(ellipse 58% 58% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 58% 58% at 50% 50%, #000 70%, transparent 100%); }
#lmap .lm-areas, #lmap .lm-zones, #lmap .lm-marks { position: absolute; inset: 0; }
#lmap .lm-areas, #lmap .lm-zones { pointer-events: none; }
#lmap .lm-areas i { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(226, 70, 58, 0.2); border: 2px dashed rgba(255, 140, 120, 0.85); }
#lmap .lm-zone { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; white-space: nowrap;
  font: 700 21px/1.1 'Mali', sans-serif; letter-spacing: 1.5px; color: rgba(255, 238, 196, 0.8); text-shadow: 0 1px 0 rgba(20, 12, 6, 0.7); }
#lmap .lm-zone small { font: 700 12px Fredoka, Mali, sans-serif; letter-spacing: 0.5px; color: rgba(255, 226, 150, 0.85); }
/* markers: centred on their spot, the name under them */
#lmap .lm-mk { position: absolute; transform: translate(-50%, -50%); padding: 0; border: 0; background: none; cursor: pointer; display: grid; justify-items: center; }
#lmap .lm-lab { position: absolute; top: calc(100% + 1px); left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font: 700 12px/1.25 'Mali', sans-serif; color: #fff4dc; text-shadow: 1px 0 0 #140c06, -1px 0 0 #140c06, 0 1px 0 #140c06, 0 -1px 0 #140c06; }
#lmap .lm-lab em { font: 700 11px Fredoka, Mali, sans-serif; font-style: normal; color: #ffd27a; }
#lmap .lm-lab.hid { visibility: hidden; }
#lmap .lm-rest { font-style: normal; font-weight: 700; color: #ff9a7a; font-variant-numeric: tabular-nums; }   /* (a map boss in its 2-hour rest: "เกิดอีก 1:42:10") */
#lmap .lm-mk:hover { z-index: 6; }
#lmap .lm-mk:hover .lm-lab.hid { visibility: visible; }
/* monster groups: a red crest with the monster's face (a point under it, like a map pin) */
#lmap .lm-mk.mob img { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: #2a1b1b; border: 2.5px solid #d8463a; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); transition: transform 0.12s; }
#lmap .lm-mk.mob::after { content: ''; position: absolute; left: 50%; top: calc(100% - 4px); transform: translateX(-50%); border: 6px solid transparent; border-top: 7px solid #d8463a; }
#lmap .lm-mk.mob .lm-lab { top: calc(100% + 6px); }
#lmap .lm-mk.mob:hover img { transform: scale(1.15); }
#lmap .lm-mk.guard img { border-color: #f0912a; }
#lmap .lm-mk.guard::after { border-top-color: #f0912a; }
#lmap .lm-mk.mini img { width: 40px; height: 40px; border: 3px solid #f07a2a; }
#lmap .lm-mk.mini::after { border-top-color: #f07a2a; }
#lmap .lm-mk.mini .lm-lab { color: #ffd2a8; }
#lmap .lm-mk.boss img { width: 52px; height: 52px; border: 3.5px solid #e0a92a; box-shadow: 0 0 0 2px #3a2408, 0 3px 6px rgba(0, 0, 0, 0.7); }
#lmap .lm-mk.boss::after { border-top-color: #e0a92a; }
#lmap .lm-mk.boss u { position: absolute; z-index: 2; top: -14px; left: 50%; transform: translateX(-50%); text-decoration: none; font-size: 17px; line-height: 1; }
#lmap .lm-mk.boss .lm-lab { color: #ffe08a; font-size: 13px; }
#lmap .lm-mk.dim { opacity: 0.28; }
#lmap .lm-mk.on { z-index: 5; }
#lmap .lm-mk.on img { transform: scale(1.18); border-color: #fff2a8; }
/* places: an orange pin; warp pads: the warp platform; the ways out: a gold arrow */
#lmap .lm-mk.place i { width: 13px; height: 13px; margin-bottom: 3px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg, #ffbf6a, #e0702a); box-shadow: 0 0 0 2px #3a1a08; }
#lmap .lm-mk.place .lm-lab { color: #ffdcb0; font-size: 11.5px; }
#lmap .lm-mk.pad img { width: 38px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); }
#lmap .lm-lab.pad { color: #b4f2ea; }
#lmap .lm-mk.exit i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 5px; font: 800 14px/1 sans-serif; font-style: normal; color: #9fe6ff;
  background: linear-gradient(#2c4a5a, #18262f); box-shadow: 0 0 0 1.5px #d9a443, 0 2px 4px rgba(0, 0, 0, 0.6); }
#lmap .lm-lab.exit { color: #bfeaff; }
#lmap .lm-mk.pin { cursor: default; pointer-events: none; }
#lmap .lm-mk.pin i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff6dc; background: #4b9a2a; box-shadow: 0 0 0 2px #1a1208; animation: lmPin 1s ease-in-out infinite; }
@keyframes lmPin { 50% { transform: scale(1.25); } }
/* you: a yellow arrow and its view cone (the element is turned the way you go) */
#lmap .lm-me { position: absolute; width: 0; height: 0; z-index: 7; pointer-events: none; }
#lmap .lm-me .cone { position: absolute; left: -55px; top: -88px; width: 110px; height: 88px; clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: linear-gradient(to top, rgba(255, 214, 90, 0.55), rgba(255, 214, 90, 0)); }
#lmap .lm-me .arw { position: absolute; left: -13px; top: -16px; width: 26px; height: 30px; clip-path: polygon(50% 0, 100% 100%, 50% 76%, 0 100%);
  background: linear-gradient(#fff3a8, #f0b81e); filter: drop-shadow(0 0 1px #2a1a04); }
#lmap .lm-mapname { position: absolute; z-index: 8; left: 0; top: 0; display: flex; flex-direction: column; padding: 8px 60px 10px 16px; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 11, 15, 0.85), rgba(12, 11, 15, 0.6) 60%, rgba(12, 11, 15, 0)); }
#lmap .lm-mapname b { font: 700 19px/1.2 'Mali', sans-serif; color: #f2dfae; }
#lmap .lm-mapname small { font: 600 12px/1.3 Mali, sans-serif; color: #a89e8a; }
#lmap .lm-pinbar { position: absolute; z-index: 8; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 10px;
  background: rgba(12, 11, 15, 0.92); box-shadow: inset 0 0 0 1px rgba(217, 164, 67, 0.45), 0 6px 18px rgba(0, 0, 0, 0.5); }
#lmap .lm-pinbar[hidden], #lmap .lm-note[hidden] { display: none; }
#lmap .lm-pinbar > span { font: 600 13px Mali, sans-serif; color: #d9c9a2; }
#lmap .lm-pinbar > span small { display: block; font: 500 11px Mali, sans-serif; color: #a89a7c; }   /* (the double-click hint, js/localmap.js) */
#lmap .lm-note { position: absolute; z-index: 8; left: 50%; bottom: 74px; transform: translateX(-50%); padding: 8px 16px; border-radius: 8px; background: rgba(60, 14, 10, 0.92); color: #ffd8cc;
  font: 600 13.5px Mali, sans-serif; box-shadow: inset 0 0 0 1px rgba(255, 120, 100, 0.5); }
#lmap .lm-zoom { position: absolute; z-index: 8; right: 14px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
#lmap .lm-zoom button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; cursor: pointer; background: rgba(12, 11, 15, 0.85); color: #e6d3a3;
  font: 700 20px/1 Fredoka, sans-serif; box-shadow: inset 0 0 0 1px rgba(217, 164, 67, 0.45); }
#lmap .lm-zoom button:hover { color: #fff; background: rgba(60, 44, 20, 0.9); }

/* ---- right: the chosen tab ---- */
#lmap .lm-right { right: 46px; top: 44px; bottom: 0; width: 300px; display: flex; flex-direction: column; padding: 0 10px; background: linear-gradient(90deg, rgba(20, 19, 24, 0.7), #141318 18%); }
#lmap .lm-right h3 { flex: none; margin: 0; padding: 12px 0 10px; text-align: center; position: relative; }
#lmap .lm-right h3 span { font: 700 19px/1.3 'Mali', sans-serif; color: #e6d3a3; }
#lmap .lm-right h3::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 2px; height: 1px; background: linear-gradient(90deg, transparent, #d9a443, transparent); }
#lmap .lm-right h3::before { content: ''; position: absolute; left: 50%; bottom: -1px; width: 7px; height: 7px; transform: translateX(-50%) rotate(45deg); background: #d9a443; }
#lmap .lm-rbody { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 2px 12px; scrollbar-width: thin; scrollbar-color: #6b5a3a transparent; }
#lmap .lm-rbody h4 { margin: 12px 0 2px; padding-bottom: 4px; font: 700 13.5px Mali, sans-serif; color: #f6dc98; border-bottom: 1px solid rgba(217, 164, 67, 0.35); }
#lmap .lm-rbody h4 small { font: 500 11px Mali, sans-serif; color: #a89e8a; }
#lmap .lm-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 4px; cursor: pointer; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
#lmap .lm-row:hover, #lmap .lm-row:focus-visible { background: rgba(217, 164, 67, 0.09); outline: none; }
#lmap .lm-row.plain { cursor: default; }
#lmap .lm-row.plain:hover { background: none; }
#lmap .lm-row .ic { width: 30px; height: 30px; display: grid; place-items: center; }
#lmap .lm-row .ic img { width: 28px; height: 28px; object-fit: contain; }
#lmap .lm-row .ic img.face { border-radius: 50%; background: #241d1d; box-shadow: 0 0 0 2px #d8463a; }
#lmap .lm-row .ic img.face.boss { box-shadow: 0 0 0 2.5px #e0a92a; }
#lmap .lm-row .ic img.face.mini, #lmap .lm-row .ic img.face.guard { box-shadow: 0 0 0 2px #f0912a; }
#lmap .lm-row .nm { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
#lmap .lm-row .nm b { display: flex; align-items: center; gap: 5px; font: 700 13.5px/1.25 Mali, sans-serif; color: #f2ead6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lmap .lm-row .nm small { font: 500 11.5px/1.3 Mali, sans-serif; color: #a89e8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lmap .lm-row .lv { font: 700 11px Fredoka, Mali, sans-serif; color: #ffd27a; }
#lmap .lm-row .ag { color: #ff9a8a; }
#lmap .lm-row .tag { flex: none; font: 800 10.5px/1 Mali, sans-serif; font-style: normal; padding: 3px 6px; border-radius: 999px; background: linear-gradient(#ffcf5a, #f07a2a); color: #3a1a08; }
#lmap .lm-row .tag.boss { background: linear-gradient(#ffd56a, #e0a92a); color: #3a2410; }
#lmap .lm-row .rt { font: 700 12px Fredoka, Mali, sans-serif; font-style: normal; color: #e6c477; white-space: nowrap; }
#lmap .lm-row.boss .nm b { color: #ffe08a; }
#lmap .lm-row.fav .rt { color: #ffd75a; }
#lmap .lm-exitic { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 5px; font: 800 13px/1 sans-serif; font-style: normal; color: #9fe6ff;
  background: linear-gradient(#2c4a5a, #18262f); box-shadow: 0 0 0 1.5px #d9a443; }
#lmap .lm-placeic { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg, #ffbf6a, #e0702a); }
#lmap .lm-sum { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px rgba(217, 164, 67, 0.3);
  font: 700 13.5px/1.3 Mali, sans-serif; color: #f6dc98; }
#lmap .lm-sum strong { font-weight: 700; }
#lmap .lm-sum b { font: 800 16px Fredoka, Mali, sans-serif; color: #ffd75a; }
#lmap .lm-sum small { font: 500 11.5px/1.35 Mali, sans-serif; color: #d8d0bd; }
#lmap .lm-tip, #lmap .lm-empty { margin: 10px 2px 0; font: 500 11.5px/1.5 Mali, sans-serif; color: #9b927f; }
#lmap .lm-empty { margin-top: 30px; text-align: center; font-size: 13px; color: #b7ad98; }
#lmap .lm-search { width: 100%; box-sizing: border-box; height: 36px; margin-top: 4px; padding: 0 12px; border: 0; border-radius: 6px; background: #0b0a0e; color: #f2ead6;
  font: 500 13.5px Mali, sans-serif; box-shadow: inset 0 0 0 1px rgba(217, 164, 67, 0.5); outline: none; }
#lmap .lm-search:focus { box-shadow: inset 0 0 0 1.5px #f2c66a; }
#lmap .lm-btns { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
#lmap .lm-btn { min-height: 36px; padding: 0 12px; border: 0; border-radius: 6px; cursor: pointer; background: #24212b; color: #e6d3a3; font: 700 13px Mali, sans-serif;
  box-shadow: inset 0 0 0 1px rgba(217, 164, 67, 0.45); }
#lmap .lm-btn:hover { background: #2f2a36; color: #fff; }
#lmap .lm-btn.gold { background: linear-gradient(#ffd56a, #d9a443); color: #2c1c08; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18); }
#lmap .lm-btn.gold:hover { filter: brightness(1.08); }
/* the quest box, as on the main screen */
#lmap .lm-quest { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px rgba(217, 164, 67, 0.3); cursor: pointer; }
#lmap .lm-quest img { width: 22px; height: 22px; display: block; flex-shrink: 0; }
#lmap .lm-quest .q-head { display: flex; align-items: center; gap: 6px; padding-bottom: 4px; border-bottom: 1px solid rgba(201, 162, 74, 0.45); }
#lmap .lm-quest .q-head b { font-size: 14px; color: #ffe7a6; }
#lmap .lm-quest .q-head span { margin-left: auto; font: 600 11px Fredoka, Mali, sans-serif; color: #c9b88a; }
#lmap .lm-quest :is(.q-fold, .q-book) { display: none; }
#lmap .lm-quest .q-title { font-weight: 700; font-size: 13px; line-height: 1.25; color: #fff6dc; }
#lmap .lm-quest .q-goal { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #f3ecd6; }
#lmap .lm-quest .q-goal span { flex: 1; min-width: 0; }
#lmap .lm-quest .q-goal b { font: 700 12px Fredoka, sans-serif; color: #fff; }
#lmap .lm-quest .q-goal.done { opacity: 0.6; }
#lmap .lm-quest .q-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
#lmap .lm-quest .q-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8fcf6a, #c6f08a); }
#lmap .lm-quest :is(.q-hint, .q-lock, .q-rest) { font-size: 11.5px; line-height: 1.4; color: #d8cfb8; }
#lmap .lm-quest .q-map { font: 600 11.5px/1.2 Fredoka, Mali, sans-serif; color: #9fd8f0; }
#lmap .lm-quest .q-auto { font: 700 12px Mali, sans-serif; color: #c6f08a; }
#lmap .lm-quest .q-side { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #f3ecd6; }
#lmap .lm-quest .q-side em { font-style: normal; font-size: 10.5px; padding: 1px 5px; border-radius: 6px; background: rgba(159, 216, 240, 0.2); color: #9fd8f0; }
#lmap .lm-quest .q-side span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
#lmap .lm-quest .q-side small { color: #b7ad98; }
#lmap .lm-row.qgo { margin-top: 8px; }
/* ---- the hunting list "พื้นที่ล่า" (the user's second LORDNINE picture): a folding header per zone, "☆ Lv <n> <name>" rows,
   elites and bosses last in their rank's colour, the chosen row in a gold outline */
#lmap .lm-zh { display: flex; align-items: baseline; gap: 6px; width: 100%; margin-top: 6px; padding: 9px 10px; border: 0; cursor: pointer; text-align: left;
  background: linear-gradient(90deg, rgba(217, 164, 67, 0.18), rgba(217, 164, 67, 0.03)); border-top: 1px solid rgba(217, 164, 67, 0.4); color: #f2dfae; }
#lmap .lm-zh b { font: 700 14px Mali, sans-serif; }
#lmap .lm-zh small { font: 600 11.5px Fredoka, Mali, sans-serif; color: #b7ad98; }
#lmap .lm-zh i { margin-left: auto; font: 800 13px/1 Fredoka, sans-serif; font-style: normal; color: #d9a443; transition: transform 0.15s; }
#lmap .lm-zh.shut i { transform: rotate(180deg); }
#lmap .lm-zh:hover { background: linear-gradient(90deg, rgba(217, 164, 67, 0.26), rgba(217, 164, 67, 0.05)); }
#lmap .lm-hrow { display: grid; grid-template-columns: 24px 50px minmax(0, 1fr) auto; align-items: center; gap: 4px; padding: 7px 6px 7px 2px; cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07); border-radius: 2px; }
#lmap .lm-hrow:hover, #lmap .lm-hrow:focus-visible { background: rgba(217, 164, 67, 0.08); outline: none; }
#lmap .lm-hrow.sel { background: rgba(217, 164, 67, 0.13); box-shadow: inset 0 0 0 1.5px #d9a443; border-bottom-color: transparent; }
#lmap .lm-hrow .st { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1; color: #6f675b; }
#lmap .lm-hrow .st:hover { color: #c9b88a; }
#lmap .lm-hrow .st.on { color: #ffd75a; }
#lmap .lm-hrow .lv { font: 700 12.5px Fredoka, Mali, sans-serif; color: #d9c9a2; white-space: nowrap; }
#lmap .lm-hrow .nm { font: 600 13.5px/1.25 Mali, sans-serif; color: #f2ead6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lmap .lm-hrow .rk { font: 700 10.5px/1 Mali, sans-serif; font-style: normal; padding: 3px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: #d8cfb8; white-space: nowrap; }
#lmap .r-elite, #lmap .lm-hrow.r-elite .nm, #lmap .lm-hrow.r-elite .rk { color: #ffa04a; }
#lmap .r-mini, #lmap .lm-hrow.r-mini .nm, #lmap .lm-hrow.r-mini .rk { color: #ff8452; }
#lmap .r-boss, #lmap .lm-hrow.r-boss .nm, #lmap .lm-hrow.r-boss .rk { color: #ff5f5a; }
/* the floor switcher at the top of the map: the whole map or one zone */
#lmap .lm-floor { position: absolute; z-index: 8; left: 50%; top: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 4px;
  border-radius: 22px; background: rgba(12, 11, 15, 0.88); box-shadow: inset 0 0 0 1px rgba(217, 164, 67, 0.5), 0 4px 12px rgba(0, 0, 0, 0.5); }
#lmap .lm-floor[hidden] { display: none; }
#lmap .lm-floor button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: #24212b; color: #f2c66a; font: 800 18px/1 Fredoka, sans-serif; }
#lmap .lm-floor button:hover { background: #3a3020; color: #fff; }
#lmap .lm-floor b { min-width: 150px; text-align: center; font: 700 14.5px Mali, sans-serif; color: #f2dfae; white-space: nowrap; }

/* (the card open beside the list covers the right of the map: the map's own buttons step left of it) */
#lmap.has-pop .lm-pinbar { left: calc(50% - 173px); }
#lmap.has-pop .lm-floor { left: calc(50% - 84px); }
#lmap.has-pop .lm-note { left: calc(50% - 173px); }
#lmap.has-pop .lm-zoom { right: 360px; }
/* ---- the monster card "ข้อมูลมอนสเตอร์ที่ปรากฏ" (beside the hunting list; over the map book: #lmpop) ---- */
.lmp { display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; color: #f2ead6; font-family: 'Mali', sans-serif; user-select: none;
  background: linear-gradient(#1d1b23, #121116); box-shadow: inset 0 0 0 1px rgba(217, 164, 67, 0.55), 0 12px 32px rgba(0, 0, 0, 0.65); }
.lmp[hidden] { display: none; }
.lmp button { font-family: 'Mali', sans-serif; }
#lmap .lm-pop { right: 352px; top: 96px; bottom: 16px; width: 340px; z-index: 9; }
#lmpop { position: fixed; z-index: 955; right: 2vw; top: 50%; width: 340px; max-height: calc((100vh - 40px) / var(--k, 1)); pointer-events: auto;
  transform: translateY(-50%) scale(var(--k, 1)); transform-origin: right center; animation: lmpIn 0.18s ease-out both; }
@keyframes lmpIn { from { opacity: 0; } to { opacity: 1; } }
.lmp-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 9px 10px 9px 14px; border-bottom: 1px solid rgba(217, 164, 67, 0.35);
  background: linear-gradient(rgba(217, 164, 67, 0.12), rgba(217, 164, 67, 0)); }
.lmp-head b { font: 700 15px 'Mali', sans-serif; color: #e6d3a3; }
.lmp-x { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; cursor: pointer; background: none; color: #c9b88a; font: 700 16px/1 sans-serif; }
.lmp-x:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.lmp-top { flex: none; position: relative; display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; padding: 12px; }
.lmp-card { position: relative; width: 108px; aspect-ratio: 3 / 4; }
.lmp-pc { position: absolute; left: 7%; right: 7%; top: 6%; bottom: 6%; overflow: hidden; border-radius: 3px; background: #2a2f4a center / cover no-repeat; }
.lmp-pc img { position: absolute; left: 2%; bottom: 2%; width: 96%; height: auto; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.5)); }
.lmp-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lmp-lvb { position: absolute; z-index: 2; left: -5px; bottom: -5px; min-width: 32px; height: 24px; padding: 0 6px; box-sizing: border-box; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(#3a2a12, #1c140a); box-shadow: inset 0 0 0 1.5px #d9a443, 0 2px 4px rgba(0, 0, 0, 0.6); font: 800 13px/1 Fredoka, sans-serif; color: #ffe7a6; }
.lmp-info { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; padding: 2px 34px 0 0; }
.lmp-name { font: 700 16px/1.3 'Mali', sans-serif; color: #f2ead6; }
.lmp-name em { font: 700 13px Fredoka, Mali, sans-serif; font-style: normal; color: #ffd27a; }
.lmp-name.r-elite { color: #ffa04a; } .lmp-name.r-mini { color: #ff8452; } .lmp-name.r-boss { color: #ff5f5a; }
.lmp-rank { font: 700 10.5px/1 Mali, sans-serif; font-style: normal; padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.lmp-rank.r-elite { color: #ffa04a; } .lmp-rank.r-mini { color: #ff8452; } .lmp-rank.r-boss { color: #ff5f5a; }
.lmp-line { display: flex; align-items: center; gap: 7px; font: 600 13px Mali, sans-serif; color: #e9e2cf; }
.lmp-line .ic { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #0c0b0f; box-shadow: inset 0 0 0 1px rgba(217, 164, 67, 0.6);
  font: 700 11px/1 sans-serif; font-style: normal; color: #f2c66a; }
.lmp-line .ic.dot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--kc); }
.lmp-st { font: 500 11.5px/1.35 Mali, sans-serif; color: #a89e8a; }
.lmp-st .ag { color: #ff9a8a; }
.lmp-find { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: #24212b; box-shadow: inset 0 0 0 1.5px #d9a443; }
.lmp-find:hover { background: #3a3020; }
.lmp-find i { position: relative; width: 11px; height: 11px; margin: -3px 0 0 -3px; border: 2px solid #f2c66a; border-radius: 50%; }
.lmp-find i::after { content: ''; position: absolute; left: 9px; top: 9px; width: 6px; height: 2.5px; border-radius: 2px; background: #f2c66a; transform: rotate(45deg); transform-origin: 0 50%; }
.lmp-h { flex: none; margin: 0; padding: 8px 14px 6px; font: 700 14px Mali, sans-serif; color: #f6dc98; border-top: 1px solid rgba(217, 164, 67, 0.3); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.lmp-h small { font: 500 11px Mali, sans-serif; color: #a89e8a; margin-left: 4px; }
.lmp-drops { flex: 1 1 auto; min-height: 60px; overflow-y: auto; padding: 4px 8px 6px; scrollbar-width: thin; scrollbar-color: #6b5a3a transparent; }
.lmp-drop { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 10px; padding: 5px 4px; cursor: pointer; border-bottom: 1px solid rgba(255, 255, 255, 0.06); border-radius: 3px; }
.lmp-drop:hover, .lmp-drop:focus-visible { background: rgba(217, 164, 67, 0.09); outline: none; }
.lmp-drop.gold { cursor: default; }
.lmp-drop.gold:hover { background: none; }
.lmp-drop .tslot { width: 46px; height: 46px; }
.lmp-gb { position: absolute; z-index: 3; right: 4px; bottom: 4px; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gc); box-shadow: 0 0 0 1.5px #140c06; }
.lmp-drop .nm { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lmp-drop .nm b { font: 700 13.5px/1.25 'Mali', sans-serif; color: #f2ead6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmp-drop .nm b u { text-decoration: none; font: 600 11.5px Fredoka, Mali, sans-serif; color: #d9c9a2; }
.lmp-drop .nm small { font: 500 11px/1.3 Mali, sans-serif; color: #9b927f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmp-drop .nm small em { font: 700 11.5px Fredoka, Mali, sans-serif; font-style: normal; color: #e6c477; }
/* the knowledge rank (js/loot.js): the badge shows it; at rank 0 a lock on the darkened portrait and the details hidden */
.lmp-card.locked .lmp-pc img { filter: brightness(0.25) saturate(0.4); }
.lmp-card.locked .lmp-pc { filter: saturate(0.5) brightness(0.7); }
.lmp-lock { position: absolute; z-index: 2; left: 50%; top: 46%; transform: translate(-50%, -50%); font-size: 30px; font-style: normal; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.7)); }
.lmp-locked { font: 600 12.5px/1.4 Mali, sans-serif; color: #d8cfb8; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px rgba(217, 164, 67, 0.3); }
.lmp-lore { font: 500 11px/1.3 Mali, sans-serif; color: #a89e8a; }
.lmp-lore b { color: #f2c66a; }
/* an item card's "monsters that drop it" (js/localmap.js eqPop): tap one for its card */
#itempop .lmp-who { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; padding: 5px 8px; margin: 2px 0; border: 0; border-radius: 8px; cursor: pointer; text-align: left;
  background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 0 0 1px rgba(217, 164, 67, 0.25); color: #f2ead6; font-family: Mali, sans-serif; }
#itempop .lmp-who:hover { background: rgba(217, 164, 67, 0.14); }
#itempop .lmp-who img { width: 34px; height: 34px; border-radius: 50%; background: #241d1d; box-shadow: 0 0 0 2px #d8463a; }
#itempop .lmp-who span { display: flex; flex-direction: column; min-width: 0; }
#itempop .lmp-who b { font: 700 13px/1.25 Mali, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#itempop .lmp-who b em { font: 700 11px Fredoka, sans-serif; font-style: normal; color: #ffd27a; }
#itempop .lmp-who small { font: 500 11px Mali, sans-serif; color: #a89e8a; }
#itempop .lmp-who .p { font: 700 12px Fredoka, sans-serif; font-style: normal; color: #e6c477; }
/* beside each monster: go to it (เดินไป on this map, วาร์ป + its price on another) */
#itempop .lmp-whorow { display: flex; align-items: stretch; gap: 5px; margin: 2px 0; }
#itempop .lmp-whorow .lmp-who { flex: 1; min-width: 0; margin: 0; }
/* (the same button in every item card: materials js/matinfo.js, the bag's sources js/economy.js: LocalMap.goBtn) */
#ui .lmp-wgo { flex: none; width: 62px; min-height: 34px; padding: 2px 4px; border: 0; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(#ffd56a, #d9a443); color: #2c1c08; font: 700 12.5px/1.15 Mali, sans-serif; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18); text-shadow: none; }
#ui .lmp-wgo small { display: block; font: 700 10.5px Fredoka, sans-serif; color: #5a3a0c; }
#ui .lmp-wgo.here { background: linear-gradient(#a6e07e, #5fae4a); color: #10280a; }
#ui .lmp-wgo:hover { filter: brightness(1.08); }
#ui .eco-srcgo { display: flex; align-items: stretch; gap: 5px; }
#ui .eco-srcgo > .eco-srcrow { flex: 1; min-width: 0; }
#ui .mi-map.has-go { position: relative; padding-right: 70px; min-height: 36px; }
#ui .mi-map.has-go > .lmp-wgo { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
.lmp-tip { flex: none; margin: 0; padding: 6px 14px 10px; font: 500 10.5px/1.4 Mali, sans-serif; color: #8f877a; border-top: 1px solid rgba(255, 255, 255, 0.06); }

/* ---- far right: the tab column ---- */
#lmap .lm-tabs { right: 0; top: 44px; bottom: 0; width: 46px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 8px;
  background: #0e0d12; border-left: 1px solid rgba(217, 164, 67, 0.2); }
#lmap .lm-tabs button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px; cursor: pointer; background: none; display: grid; place-items: center; }
#lmap .lm-tabs img { width: 30px; height: 30px; object-fit: contain; filter: grayscale(0.7) brightness(0.75); transition: filter 0.12s; }
#lmap .lm-tabs b { font-size: 22px; line-height: 1; color: #8f877a; }
#lmap .lm-tabs button:hover img { filter: none; }
#lmap .lm-tabs button.on { background: rgba(217, 164, 67, 0.18); box-shadow: inset 0 0 0 1.5px #d9a443; }
#lmap .lm-tabs button.on img { filter: none; }
#lmap .lm-tabs button.on b, #lmap .lm-tabs button:hover b { color: #ffd75a; }
