/* World map (/world-map, switch worldmap) — map canvas, side panel and the game-look hover card. Ported from the explorer's world map
   (.wm-* in its index.css); the card art lives in /assets/img/ui/explorer/<handle>.webp (make-worldmap.mjs). Markup: pages/world-map.php,
   drawing: assets/js/world-map.js. */

/* frame and panels in the look of the other database pages (.page-hero, world bosses .wb-panel, FAQ): dark glass, thin gold line */
.world-map-page { --wm-line: var(--border-color, #2a2a35); --wm-panel: rgba(10, 10, 15, .55); --wm-frame: rgba(196, 162, 78, .18);
  --wm-radius: var(--border-radius-lg, 8px); --wm-solid: #111217; --wm-gold: #c4a24e; --wm-gold-2: #e9cf8a;
  --wm-serif: 'OldFenris', 'Times New Roman', serif; --wm-body: 'D4 PT Serif', 'PT Serif', Georgia, serif; }
.wm-hero { margin-bottom: 1rem; }
/* the section name is longer than the usual hero buttons: on phones the two buttons wrap instead of running out of the box */
@media (max-width: 900px) {
  .wm-hero .page-hero__actions { flex-wrap: wrap; }
  .wm-hero .page-hero__actions .btn { flex: 1 1 auto; white-space: normal; text-align: center; }
}

/* layout: map + side panel */
.wm { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; min-height: 0; scroll-margin-top: calc(var(--header-height, 64px) + 12px); }
.wm-map-wrap { position: relative; height: clamp(420px, calc(100vh - 13rem), 920px); min-height: 0; border: 1px solid var(--wm-frame); border-radius: var(--wm-radius);
  overflow: hidden; background: #6b6552; box-shadow: inset 0 0 0 1px #000; }
.wm-canvas { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; outline: none;
  --wm-ui: calc(.8px * var(--wm-k, 1)); }
.wm-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--wm-gold); }
.wm-canvas.is-dragging { cursor: grabbing; }
.wm-layer { position: absolute; inset: 0; pointer-events: none; }
.wm-tile { position: absolute; max-width: none; pointer-events: none; -webkit-user-select: none; user-select: none; }
.wm-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 7; color: #f4e6c4;
  font-family: var(--wm-serif); letter-spacing: .06em; text-shadow: 0 0 4px #000; background: rgba(12, 9, 6, .35); pointer-events: none; }
.wm-status[hidden] { display: none; }

/* labels */
.wm-region { position: absolute; z-index: 2; display: flex; align-items: center; gap: calc(5 * var(--wm-ui)); pointer-events: none; }
.wm-region.west { flex-direction: row-reverse; transform: translate(-100%); }
.wm-region img { width: calc(75 * var(--wm-ui)); height: calc(75 * var(--wm-ui)); object-fit: contain; flex: none; }
.wm-region span { width: max-content; font-family: var(--wm-serif); font-size: calc(28 * var(--wm-ui)); line-height: 1.1; text-transform: uppercase; color: #28221c;
  hyphens: manual; overflow-wrap: normal; }
.wm-region.west span { text-align: right; }
.wm-zone { position: absolute; transform: translate(-50%, -50%); pointer-events: none; width: max-content; max-width: 7.5em; text-align: center; line-height: 1.05;
  font-family: var(--wm-serif); font-size: 18px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #f4e6c4;
  text-shadow: 0 0 3px #000, 0 0 8px #000, 0 0 14px rgba(0, 0, 0, .8); }
.wm-town { position: absolute; z-index: 2; transform: translate(calc(13 * var(--wm-ui)), calc(26 * var(--wm-ui) - 50%)); pointer-events: none; white-space: nowrap;
  font-family: var(--wm-serif); font-size: calc(22 * var(--wm-ui)); text-transform: uppercase; color: #000;
  text-shadow: 0 0 2px #a69777, 0 0 3px #a69777, 0 0 4px #a69777, 0 0 6px #a69777; }
.wm-area { position: absolute; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap; font-size: 12px; color: #efe6d2;
  text-shadow: 0 0 2px #000, 0 0 5px #000, 0 0 8px #000; }
.wm-area.town { font-family: var(--wm-serif); font-size: calc(22 * var(--wm-ui)); text-transform: uppercase; color: #000; transform: translate(-50%, 10px); z-index: 2;
  text-shadow: 0 0 2px #a69777, 0 0 3px #a69777, 0 0 4px #a69777, 0 0 6px #a69777; }
.wm-town.hot, .wm-area.town.hot { pointer-events: auto; cursor: pointer; }
.wm-town.hot:hover, .wm-area.town.hot:hover { color: #3a2a10; }

/* markers */
.wm-marker { position: absolute; left: 0; top: 0; padding: 0; margin: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; line-height: 0; z-index: 3;
  pointer-events: auto; }
.wm-marker:hover, .wm-marker:focus-visible { z-index: 4; filter: brightness(1.25); outline: none; }
.wm-marker img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 2px #000) drop-shadow(0 0 1px #000); pointer-events: none; }
.wm-marker .wm-dot { display: block; width: 60%; height: 60%; margin: 20%; border-radius: 50%; background: var(--wm-gold-2); box-shadow: 0 0 0 2px #000; }
/* fishing spots: the game draws no map icon for them — a blue dot like the explorer */
.wm-marker.k-fishing .wm-dot { background: #4fa3d9; box-shadow: 0 0 0 1px #0d2a3d, 0 0 0 2px #000; }
.wm-marker.sel { z-index: 5; }
.wm-marker.sel::after { content: ''; position: absolute; inset: -7px; border: 2px solid var(--wm-gold-2); border-radius: 50%; box-shadow: 0 0 10px #e9cf8acc;
  animation: wm-pulse 1.4s ease-in-out infinite; }
@keyframes wm-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .wm-marker.sel::after { animation: none; } }

/* map overlays */
.wm-title { position: absolute; left: 10px; top: 10px; z-index: 6; display: flex; flex-direction: column; padding: 6px 12px; background: rgba(12, 9, 6, .82);
  border: 1px solid var(--wm-line); border-radius: 3px; pointer-events: none; }
.wm-title span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }
.wm-title b { font-family: var(--wm-serif); font-size: 17px; letter-spacing: .08em; color: var(--wm-gold-2); font-weight: 600; }
.wm-zoom { position: absolute; right: 10px; top: 10px; z-index: 6; display: flex; flex-direction: column; gap: 4px; }
.wm-zoom button { width: 36px; height: 36px; padding: 0; font-size: 18px; line-height: 1; color: var(--text-primary); background: rgba(20, 15, 10, .9);
  border: 1px solid var(--wm-line); border-radius: 3px; cursor: pointer; }
.wm-zoom button:hover, .wm-zoom button:focus-visible { border-color: var(--wm-gold); color: var(--wm-gold-2); }
.wm-hover { position: absolute; left: 0; top: 0; z-index: 8; pointer-events: none; width: max-content; max-width: 470px; transform-origin: 0 0; }
.wm-hover[hidden], .wm-sheet[hidden] { display: none; }

/* side panel */
.wm-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; max-height: clamp(420px, calc(100vh - 13rem), 920px); overflow: auto; scrollbar-width: thin; }
.wm-world, .wm-search { width: 100%; box-sizing: border-box; padding: .5rem .65rem; color: var(--text-primary); background: var(--bg-input, #1f2025);
  border: 1px solid var(--wm-line); border-radius: 4px; font: inherit; }
.wm-world:focus, .wm-search:focus { outline: none; border-color: var(--wm-gold); }
/* flex-shrink 0: the side column is height-capped and scrolls as a whole — as its only scroll container the list would otherwise be the one
   flex item that shrinks (min-height auto = 0 for overflow:auto), down to a 10px strip once the legend fills the column */
.wm-hits { flex-shrink: 0; list-style: none; margin: 0; padding: 4px; background: var(--wm-panel); border: 1px solid var(--wm-frame); border-radius: var(--wm-radius); max-height: 280px; overflow: auto; }
.wm-hits[hidden] { display: none; }
.wm-hits button { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; width: 100%; text-align: left; border: 0; background: none;
  padding: 4px 6px; border-radius: 3px; color: var(--text-primary); cursor: pointer; font: inherit; }
.wm-hits button:hover, .wm-hits button:focus-visible { background: #241b12; outline: none; }
.wm-hits img, .wm-hit-dot { width: 22px; height: 22px; grid-row: span 2; align-self: center; object-fit: contain; }
.wm-hit-dot { display: block; width: 8px; height: 8px; margin: 7px; border-radius: 50%; background: var(--text-secondary); }
.wm-hits span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-hits small { color: var(--text-dimmed); }
/* the matched loot item / aspect under the place: its icon, its name in the rarity colour */
.wm-hits .wm-hit-item { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: .85rem; }
.wm-hits .wm-hit-item img { width: 18px; height: 18px; grid-row: auto; flex: none; }
.wm-hit-item.q-unique { color: #e8b77a; } .wm-hit-item.q-mythic { color: #c79af6; } .wm-hit-item.q-legendary { color: #f0913a; }
.wm-hits .wm-hits__none { padding: 6px; color: var(--text-dimmed); font-size: .9rem; }

.wm-detail { position: relative; display: flex; flex-direction: column; gap: 8px; }
.wm-detail[hidden] { display: none; }
.wm-detail .wm-gt { --u: .64px; --f: calc(1.1 * var(--u)); --fs: calc(.96 * var(--u)); margin-top: 4px; }
.wm-detail-close { position: absolute; right: 6px; top: 6px; z-index: 5; width: 28px; height: 28px; padding: 0; font-size: 18px; line-height: 1; color: var(--text-primary);
  background: rgba(20, 15, 10, .9); border: 1px solid var(--wm-line); border-radius: 3px; cursor: pointer; }
.wm-detail-close:hover, .wm-detail-close:focus-visible { border-color: var(--wm-gold); }
.wm-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.wm-actions a, .wm-actions button { padding: .35rem .7rem; font: inherit; font-size: .9rem; color: var(--text-primary); background: var(--wm-solid);
  border: 1px solid var(--wm-line); border-radius: 3px; cursor: pointer; text-decoration: none; }
.wm-actions a:hover, .wm-actions button:hover, .wm-actions a:focus-visible, .wm-actions button:focus-visible { border-color: var(--wm-gold); color: var(--wm-gold-2); }

.wm-legend { background: var(--wm-panel); border: 1px solid var(--wm-frame); border-radius: var(--wm-radius); padding: 8px; }
.wm-legend-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
.wm-legend-head b { font-family: var(--wm-serif); color: var(--wm-gold); letter-spacing: .06em; font-weight: 400; }
.wm-legend-head small { color: var(--text-dimmed); }
.wm-legend-btns { margin-left: auto; display: flex; gap: 4px; }
.wm-legend-btns button { padding: 1px 7px; font: inherit; font-size: 12px; color: var(--text-secondary); background: none; border: 1px solid var(--wm-line);
  border-radius: 3px; cursor: pointer; }
.wm-legend-btns button:hover, .wm-legend-btns button:focus-visible { color: var(--text-primary); border-color: var(--wm-gold); }
.wm-legend-row { display: grid; grid-template-columns: 16px 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 3px 4px; border-radius: 3px;
  cursor: pointer; color: var(--text-dimmed); font-size: .95rem; }
.wm-legend-row:hover { background: #241b12; }
.wm-legend-row.on { color: var(--text-primary); }
.wm-legend-row input { margin: 0; accent-color: var(--wm-gold); }
.wm-legend-row img { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 0 1px #000); }
.wm-legend-row:not(.on) img { opacity: .45; filter: grayscale(.7); }
.wm-legend-row small { color: var(--text-dimmed); font-size: .8rem; }
.wm-legend-sym { display: block; width: 24px; height: 24px; }
.wm-legend-sym.k-fishing::before { content: ''; display: block; width: 10px; height: 10px; margin: 7px; border-radius: 50%; background: #4fa3d9; border: 1px solid #0d2a3d; }
.wm-legend-sym.k-town::before { content: 'Aa'; display: block; text-align: center; line-height: 24px; font-family: var(--wm-serif); font-weight: 600; color: var(--wm-gold-2); }
.wm-legend-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-note { margin: 0; color: var(--text-dimmed); font-size: .85rem; line-height: 1.45; }

/* below the map: panels with the small caps head of the site's panels (.wb-panel__head, .db-faq__heading) */
.wm-secrets-section, .wm-steps-section, .wm-about { margin-top: 1.25rem; padding: 1.1rem 1.25rem 1.25rem; background: var(--wm-panel); border: 1px solid var(--wm-frame);
  border-radius: var(--wm-radius); color: var(--text-secondary); line-height: 1.6; }
.wm-secrets-section, .wm-steps-section { scroll-margin-top: calc(var(--header-height, 64px) + 12px); }
.wm-secrets-section__title, .wm-about h2, .wm-riddles__title { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-secondary); line-height: 1.4; margin: 0 0 .9rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border-color, #252830); }
.wm-secrets-section__intro { margin: 0 0 1rem; max-width: 90ch; font-size: .92rem; line-height: 1.5; }
.wm-about p { max-width: 90ch; }

/* secret cards: click = scroll up, the guide opens on the map (world-map.js); the open one keeps a gold frame */
.wm-scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .85rem; margin: 0; padding: 0; list-style: none; }
.wm-scard { display: flex; flex-direction: column; gap: .45rem; padding: .8rem 1rem .9rem; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .18)); border: 1px solid var(--border-panel, #252830); border-radius: var(--wm-radius);
  transition: transform var(--transition-normal, 250ms ease), border-color var(--transition-fast, 150ms ease), box-shadow var(--transition-normal, 250ms ease); }
.wm-scard:hover { transform: translateY(-2px); border-color: rgba(212, 11, 6, .5); box-shadow: 0 10px 24px rgba(0, 0, 0, .45), 0 0 18px var(--red-glow, rgba(165, 9, 5, .35)); }
.wm-scard.is-active { border-color: var(--wm-gold); box-shadow: 0 0 0 1px rgba(196, 162, 78, .3), 0 0 20px rgba(196, 162, 78, .16); }
.wm-scard:has(.wm-scard__head:focus-visible) { border-color: var(--wm-gold); }
.wm-scard__head { display: flex; align-items: center; gap: .7rem; color: var(--text-primary); text-decoration: none; outline: none; }
.wm-scard__head img { display: block; flex: none; width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 0 2px #000); }
.wm-scard__title { flex: 1; min-width: 0; font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.wm-scard__go { flex: none; color: var(--text-dimmed); transition: color var(--transition-fast, 150ms ease); }
.wm-scard:hover .wm-scard__go, .wm-scard.is-active .wm-scard__go { color: var(--wm-gold); }
.wm-scard.is-active .wm-scard__title { color: var(--wm-gold-2); }
.wm-scard__text { margin: 0; font-size: .9rem; line-height: 1.5; }
.wm-scard .wm-ref { color: #e8c886; font-weight: 600; text-decoration: none; }
.wm-scard a.wm-ref:hover, .wm-scard a.wm-ref:focus-visible { text-decoration: underline; text-underline-offset: .15em; }
.wm-scard .wm-ref .mention-icon { display: inline-block; width: auto; height: 1.3em; vertical-align: -.3em; margin-right: .2em; }
.wm-riddles { margin-top: 1.4rem; }

/* guide page (/world-map/<slug>): hero with the guide's icon and the riddle's solution, its steps as text below the map (a click shows the
   station on the map — world-map.js) */
.wm-hero__icon { object-fit: contain; padding: 8px; box-sizing: border-box; background: rgba(0, 0, 0, .35); }
.wm-hero__solution b { color: #8fd18f; margin-right: .2rem; }
.wm-hero .wm-ref, .wm-steps-section .wm-ref { color: #e8c886; font-weight: 600; text-decoration: none; }
.wm-hero a.wm-ref:hover, .wm-steps-section a.wm-ref:hover { text-decoration: underline; text-underline-offset: .15em; }
.wm-hero .wm-ref .mention-icon, .wm-steps-section .wm-ref .mention-icon { display: inline-block; width: auto; height: 1.3em; vertical-align: -.3em; margin-right: .2em; }
.wm-steps-section .wm-guide__req { margin: 0 0 1rem; max-width: 90ch; }
.wm-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); align-items: start; gap: .6rem .85rem; margin: 0; padding: 0; list-style: none; }
.wm-steps__item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: .7rem .85rem; cursor: pointer;
  background: rgba(0, 0, 0, .25); border: 1px solid var(--border-panel, #252830); border-radius: var(--wm-radius);
  scroll-margin-top: calc(var(--header-height, 64px) + 12px); transition: border-color var(--transition-fast, 150ms ease), background var(--transition-fast, 150ms ease); }
.wm-steps__item:hover, .wm-steps__item:focus-visible { border-color: rgba(212, 11, 6, .5); background: rgba(165, 9, 5, .08); outline: none; }
.wm-steps__item:target { border-color: var(--wm-gold); }
.wm-steps__item.is-off { cursor: default; }
.wm-steps__item.is-off:hover { border-color: var(--border-panel, #252830); background: rgba(0, 0, 0, .25); }
.wm-steps__item.is-off .wm-guide__n { border-style: dashed; opacity: .7; }
.wm-steps__item b { color: #f1e6c8; font-weight: 600; }
.wm-steps__item small { margin-left: .35rem; color: var(--text-dimmed); }
.wm-steps__item p { margin: .3rem 0 0; font-size: .92rem; line-height: 1.5; }
.wm-riddles__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.wm-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border-radius: 999px; background: rgba(0, 0, 0, .25);
  border: 1px solid var(--border-panel, #252830); color: var(--text-primary); font-size: .9rem; line-height: 1.3; text-decoration: none;
  transition: border-color var(--transition-fast, 150ms ease), background var(--transition-fast, 150ms ease), color var(--transition-fast, 150ms ease); }
.wm-chip::before { content: '✦'; color: var(--wm-gold); font-size: .8em; }
.wm-chip:hover, .wm-chip:focus-visible { border-color: rgba(212, 11, 6, .5); background: rgba(165, 9, 5, .12); outline: none; }
.wm-chip.is-active { border-color: var(--wm-gold); background: rgba(196, 162, 78, .1); color: var(--wm-gold-2); }
@media (max-width: 767px) {
  .wm-secrets-section, .wm-steps-section, .wm-about { padding: .9rem 1rem 1rem; }
  .wm-scard:hover { transform: none; }
}

.wm-about__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .25rem 1.5rem; margin: .8rem 0 1rem; padding: 0; list-style: none; }
.wm-about__list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--wm-line); padding: .2rem 0; }
.wm-about__list b { color: var(--text-primary); font-weight: 600; }
.wm-about__note { font-size: .9rem; color: var(--text-dimmed); }

/* game-look card (explorer .wm-gt): medal, ornate frame, panel, head plate, section bars */
.wm-gt { --u: 1px; --f: calc(.93 * var(--u)); --fs: calc(.82 * var(--u)); position: relative; width: calc(450 * var(--u)); max-width: 100%; padding-top: calc(54 * var(--u));
  text-align: left; color: #b3a99b; font-family: var(--wm-body); font-size: calc(18 * var(--f)); line-height: calc(23.5 * var(--u)); }
.wm-gt.nomedal { padding-top: 0; }
.wm-gt-medal { position: absolute; z-index: 3; left: 50%; top: 0; width: calc(208 * var(--u)); height: calc(90 * var(--u)); transform: translate(-50%);
  background: url(/assets/img/ui/explorer/1997175597.webp) center / 100% 100% no-repeat; }
.wm-gt-medal img { position: absolute; left: 50%; top: calc(18 * var(--u)); width: calc(46 * var(--u)); height: calc(46 * var(--u)); transform: translate(-50%); object-fit: contain; }
.wm-gt-box { position: relative; padding: calc(11 * var(--u)); }
.wm-gt-box::before { content: ''; position: absolute; top: calc(9 * var(--u)); right: calc(8 * var(--u)); bottom: calc(6 * var(--u)); left: calc(10 * var(--u));
  background: url(/assets/img/ui/explorer/3682873035.webp) center / 100% 100%; }
.wm-gt-frame, .wm-gt-panel { position: absolute; inset: 0; display: grid; pointer-events: none; --c: calc(71.5 * var(--u));
  grid-template-columns: var(--c) minmax(0, 1fr) var(--c); grid-template-rows: var(--c) minmax(0, 1fr) var(--c); }
.wm-gt-frame { z-index: 2; }
.wm-gt-frame > i, .wm-gt-panel > i { min-width: 0; min-height: 0; background-repeat: no-repeat; background-size: 100% 100%; }
.wm-gt-frame > i:nth-child(1) { grid-area: 1 / 1; background-image: url(/assets/img/ui/explorer/4146987251.webp); }
.wm-gt-frame > i:nth-child(2) { grid-area: 1 / 3; background-image: url(/assets/img/ui/explorer/3713853190.webp); }
.wm-gt-frame > i:nth-child(3) { grid-area: 3 / 3; background-image: url(/assets/img/ui/explorer/1526734248.webp); }
.wm-gt-frame > i:nth-child(4) { grid-area: 3 / 1; background-image: url(/assets/img/ui/explorer/1477700437.webp); }
.wm-gt-frame > i:nth-child(5) { display: none; }
.wm-gt-frame > i:nth-child(6) { grid-area: 2 / 1; background: url(/assets/img/ui/explorer/3780277120.webp) 0 0 / var(--c) var(--c) repeat-y; }
.wm-gt-frame > i:nth-child(7) { grid-area: 1 / 2; background: url(/assets/img/ui/explorer/3758777576.webp) 0 0 / var(--c) var(--c) repeat-x; }
.wm-gt-frame > i:nth-child(8) { grid-area: 2 / 3; background: url(/assets/img/ui/explorer/202353459.webp) 0 0 / var(--c) var(--c) repeat-y; }
.wm-gt-frame > i:nth-child(9) { grid-area: 3 / 2; background: url(/assets/img/ui/explorer/1764126282.webp) 0 0 / var(--c) var(--c) repeat-x; }
.wm-gt-panel { --c: calc(38 * var(--u)); }
.wm-gt-panel > i:nth-child(1) { grid-area: 1 / 1; background-image: url(/assets/img/ui/explorer/4189434499.webp); }
.wm-gt-panel > i:nth-child(2) { grid-area: 1 / 3; background-image: url(/assets/img/ui/explorer/819645078.webp); }
.wm-gt-panel > i:nth-child(3) { grid-area: 3 / 3; background-image: url(/assets/img/ui/explorer/3592820536.webp); }
.wm-gt-panel > i:nth-child(4) { grid-area: 3 / 1; background-image: url(/assets/img/ui/explorer/2191061733.webp); }
.wm-gt-panel > i:nth-child(5) { grid-area: 2 / 2; background-image: url(/assets/img/ui/explorer/1927892788.webp); }
.wm-gt-panel > i:nth-child(6) { grid-area: 2 / 1; background: url(/assets/img/ui/explorer/147656464.webp) 0 0 / 100% calc(275.5 * var(--u)) repeat-y; }
.wm-gt-panel > i:nth-child(7) { grid-area: 1 / 2; background: url(/assets/img/ui/explorer/1305988728.webp) 0 0 / calc(278.5 * var(--u)) 100% repeat-x; }
.wm-gt-panel > i:nth-child(8) { grid-area: 2 / 3; background: url(/assets/img/ui/explorer/584956099.webp) 0 0 / 100% calc(275.5 * var(--u)) repeat-y; }
.wm-gt-panel > i:nth-child(9) { grid-area: 3 / 2; background: url(/assets/img/ui/explorer/1505111514.webp) 0 0 / calc(278.5 * var(--u)) 100% repeat-x; }
.wm-gt-content { position: relative; z-index: 1; }
.wm-gt-head { position: relative; margin: calc(-2 * var(--u)) calc(-2 * var(--u)) 0; padding: calc(20 * var(--u)) calc(15 * var(--u)); text-align: center; }
.wm-gt-head::before { content: ''; position: absolute; inset: 0; border: 0 solid transparent;
  border-image: url(/assets/img/ui/explorer/bg-1471322.webp) 45 98 50 102 fill / calc(45 * var(--u)) calc(98 * var(--u)) calc(50 * var(--u)) calc(102 * var(--u)) stretch; }
.wm-gt-head > * { position: relative; }
.wm-gt-kind { color: #e2cfb1; }
.wm-gt-title { color: #e3dcd1; font-family: var(--wm-serif); font-size: calc(30 * var(--fs)); line-height: calc(34 * var(--u)); letter-spacing: .02em; }
.wm-gt-art { width: calc(150 * var(--u)); height: calc(18 * var(--u)); margin: 0 auto; background: url(/assets/img/ui/explorer/1024885844.webp) center / 100% 100% no-repeat; }
.wm-gt-detail { white-space: pre-line; }
.wm-gt-break { position: relative; z-index: 1; height: calc(2 * var(--u)); margin: 0 calc(-8 * var(--u)); }
.wm-gt-break::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: calc(12 * var(--u)); transform: translateY(-50%);
  background: url(/assets/img/ui/explorer/108537969.webp) center / 100% 100% no-repeat; }
.wm-gt-body { position: relative; padding: calc(10 * var(--u)) calc(18 * var(--u)) calc(15 * var(--u)); }
.wm-gt-body > :not(.wm-gt-panel) { position: relative; }
.wm-gt-desc { padding: calc(3 * var(--u)) 0; color: #808080; font-style: italic; font-size: calc(17 * var(--f)); line-height: calc(25 * var(--u)); text-align: center; white-space: pre-line; }
.wm-gt-descstack { display: flex; flex-direction: column; gap: calc(10 * var(--u)); margin-top: calc(8 * var(--u)); color: #a3a3a3; }
.wm-gt-p { white-space: pre-line; }
.wm-gt-div { height: calc(11 * var(--u)); margin-bottom: calc(6 * var(--u)); background: url(/assets/img/ui/explorer/4137763948.webp) center / 100% 100% no-repeat; }
.wm-gt-locked { color: #d0463a; text-align: center; margin-top: calc(8 * var(--u)); }
.wm-gt .gt-icon-img { display: inline-block; height: 1em; width: auto; vertical-align: -.15em; margin: 0 .12em; }
.wm-gt .gt-c_important { color: #f2eee6; } .wm-gt .gt-c_pickups { color: #56aaf0; } .wm-gt .gt-c_unique { color: #e8b77a; }
.wm-gt .gt-c_mythic { color: #c79af6; } .wm-gt .gt-c_legendary { color: #f0913a; } .wm-gt .gt-c_gold { color: #dba864; }
.wm-gt .gt-c_red { color: #ba100d; } .wm-gt .gt-c_green { color: #4fbf5a; } .wm-gt .gt-c_white { color: #e9e9e9; }
.wm-gt a.gt-c_legendary { text-decoration: underline; text-underline-offset: .15em; }
.wm-gt a.gt-c_legendary:hover { color: #ffb366; }
.wm-gt .gt-c_rare { color: #eaec0a; font-style: normal; }
.wm-gt a.gt-c_rare { text-decoration: underline; text-underline-offset: .15em; }
.wm-gt a.gt-c_rare:hover { color: #f6f78a; }
.wm-gt-sec { margin: calc(12 * var(--u)) 0 calc(4 * var(--u)); padding: calc(5 * var(--u)) calc(10 * var(--u)); text-align: center;
  background: url(/assets/img/ui/explorer/1059795408.webp) center / 100% 100% no-repeat; font-family: var(--wm-serif); font-size: calc(20 * var(--fs));
  line-height: calc(20 * var(--u)); text-transform: uppercase; color: #cdbf9f; }
.wm-gt-row { position: relative; margin-bottom: calc(4 * var(--u)); padding: calc(3 * var(--u)) calc(5 * var(--u)); }
.wm-gt-row::before { content: ''; position: absolute; inset: 0; border: 0 solid transparent;
  border-image: url(/assets/img/ui/explorer/3152995244.webp) 75 fill / calc(60 * var(--u)) stretch; }
.wm-gt-row > * { position: relative; }
.wm-gt-mat { display: grid; grid-template-columns: calc(40 * var(--u)) minmax(0, 1fr) auto; align-items: center; column-gap: calc(10 * var(--u)); }
.wm-gt-mat-sq { position: relative; width: calc(40 * var(--u)); height: calc(40 * var(--u)); display: flex; align-items: center; justify-content: center; overflow: hidden;
  --sq: #3a3632; --sq-rim: #6d665c; background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--sq), #fff 14%) 0%, var(--sq) 60%, color-mix(in srgb, var(--sq), #000 32%) 100%);
  box-shadow: inset 0 0 0 1px var(--sq-rim); }
.wm-gt-mat-sq::before { content: ''; position: absolute; inset: 0; background: url(/assets/img/ui/explorer/3176627934.webp) center / 150% auto; mix-blend-mode: overlay; opacity: .9; pointer-events: none; }
.wm-gt-mat-sq img { position: relative; height: 98%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .8)); }
.wm-gt-mat-sq.q-rare { --sq: #927f1d; --sq-rim: #cdb13e; } .wm-gt-mat-sq.q-legendary { --sq: #7a3d16; --sq-rim: #b8733a; }
.wm-gt-mat-sq.q-unique { --sq: #6f5c38; --sq-rim: #b59a62; } .wm-gt-mat-sq.q-magic { --sq: #2f3d7c; --sq-rim: #6f82cc; }
.wm-gt-mat-sq.q-mythic { --sq: #57367c; --sq-rim: #a57ad6; }
.wm-gt-mat-name { color: #cdc8be; }
.wm-gt-mat-name small { display: block; font-size: calc(15 * var(--f)); line-height: calc(19 * var(--u)); color: #808080; }
.wm-gt-mat-need { padding-right: calc(5 * var(--u)); text-align: right; line-height: calc(21 * var(--u)); color: #c8c8c8; }
.wm-gt-wb { display: flex; flex-direction: column; padding: calc(6 * var(--u)) calc(12 * var(--u)); }
.wm-gt-wb-name { color: #e8b77a; font-family: var(--wm-serif); font-size: calc(20 * var(--fs)); line-height: calc(24 * var(--u)); }
.wm-gt-wb-flavor { color: #808080; font-style: italic; font-size: calc(16 * var(--f)); line-height: calc(21 * var(--u)); }
.wm-gt-gift { display: flex; justify-content: space-between; align-items: center; gap: calc(10 * var(--u)); padding: calc(6 * var(--u)) calc(12 * var(--u)); color: #c8c8c8; }
.wm-gt-gift-cost { color: #dba864; white-space: nowrap; }
.wm-gt-svcs { display: grid; grid-template-columns: 1fr 1fr; gap: calc(4 * var(--u)) calc(10 * var(--u)); }
.wm-gt-svc { display: flex; align-items: center; gap: calc(8 * var(--u)); min-height: calc(32 * var(--u)); color: #c8c8c8; font-size: calc(17 * var(--f)); line-height: calc(20 * var(--u)); }
.wm-gt-svc img, .wm-gt-svc > span:first-child { width: calc(30 * var(--u)); height: calc(30 * var(--u)); flex: none; object-fit: contain; filter: drop-shadow(0 0 1px #000); }
.wm-gt-reward { text-align: center; color: #c8c8c8; padding: calc(2 * var(--u)) 0; }
.wm-gt-drop { display: flex; align-items: center; gap: calc(10 * var(--u)); min-height: calc(32 * var(--u)); }
.wm-gt-drop img { width: calc(32 * var(--u)); height: calc(32 * var(--u)); object-fit: contain; flex: none; }
.wm-gt-drop.q-unique span { color: #e8b77a; } .wm-gt-drop.q-mythic span { color: #c79af6; } .wm-gt-drop.q-legendary span { color: #f0913a; }
.wm-gt-pool > summary { cursor: pointer; list-style: none; }
.wm-gt-pool > summary::-webkit-details-marker { display: none; }
.wm-gt-pool > summary::after { content: ' ▸'; } .wm-gt-pool[open] > summary::after { content: ' ▾'; }
a.wm-gt-drop { text-decoration: none; } a.wm-gt-drop:hover span, a.wm-gt-drop:focus-visible span { text-decoration: underline; text-underline-offset: .15em; }
/* the item a database page asked for (#find=item:<sno>) */
.wm-gt-drop.is-found { margin: 0 calc(-6 * var(--u)); padding: 0 calc(6 * var(--u)); background: rgba(233, 207, 138, .12); box-shadow: inset 0 0 0 1px rgba(233, 207, 138, .45); border-radius: 3px; }
.wm-gt-cond { color: #808080; font-size: calc(15 * var(--f)); line-height: calc(20 * var(--u)); margin-top: calc(10 * var(--u)); }

/* secrets (worldmap-secrets.mjs): start marks, numbered steps, approximate zones, the list and the guide panel */
.wm-secret-mark { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 3px; border: 2px solid var(--wm-gold-2);
  border-radius: 50%; background: radial-gradient(circle, #2a1f10 0%, #120d07 75%); box-shadow: 0 0 0 2px #000, 0 0 12px rgba(233, 207, 138, .55);
  cursor: pointer; pointer-events: auto; z-index: 6; line-height: 0; }
.wm-secret-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 1px #000); pointer-events: none; }
.wm-secret-mark.g-emotes { width: 28px; height: 28px; margin: -14px 0 0 -14px; border-color: #b8a4e8; box-shadow: 0 0 0 2px #000, 0 0 10px rgba(184, 164, 232, .5); }
.wm-secret-mark:hover, .wm-secret-mark:focus-visible { filter: brightness(1.2); outline: none; z-index: 7; }
.wm-step { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 0; margin: -14px 0 0 -14px; border: 0; background: none;
  cursor: pointer; pointer-events: auto; z-index: 7; }
.wm-step__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1a130a; border: 2px solid var(--wm-gold-2);
  box-shadow: 0 0 0 2px #000, 0 0 14px rgba(233, 207, 138, .6); color: var(--wm-gold-2); font: 700 14px/1 var(--font-body); }
.wm-step__label { max-width: 220px; padding: 2px 7px; border-radius: 3px; background: rgba(12, 9, 6, .82); border: 1px solid rgba(233, 207, 138, .35);
  color: #f1e6c8; font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-step:hover .wm-step__n, .wm-step.on .wm-step__n { background: var(--wm-gold-2); color: #1a130a; }
.wm-step.on .wm-step__n { animation: wm-pulse 1.4s ease-in-out infinite; }
.wm-zone-ring { position: absolute; left: 0; top: 0; margin: 0; border-radius: 50%; border: 2px dashed var(--wm-gold-2); background: rgba(233, 207, 138, .16);
  pointer-events: none; z-index: 5; translate: -50% -50%; }
.wm-tip { width: max-content; max-width: 320px; padding: 8px 10px; border: 1px solid rgba(233, 207, 138, .45); border-radius: 4px; background: rgba(14, 10, 6, .95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .6); color: #d9d2c3; font-size: 13px; line-height: 1.4; }
.wm-tip b { display: flex; align-items: center; gap: 6px; color: #f1e6c8; font-weight: 600; }
.wm-tip small { display: block; color: #a39a86; }
.wm-tip p { margin: 4px 0 0; }
.wm-tip__n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--wm-gold-2); color: #1a130a; font-size: 11px; }
.wm-tip--guide small { text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; color: var(--wm-gold); }
.wm-flag { display: inline-block; margin: 4px 6px 0 0; padding: 0 6px; border-radius: 3px; font-style: normal; font-size: 11.5px; line-height: 18px; }
.wm-flag--report { color: #e2c48a; background: rgba(196, 162, 78, .14); border: 1px solid rgba(196, 162, 78, .35); }
.wm-flag--report::before { content: '⚑ '; }
.wm-flag--approx { color: #cdd6e0; background: rgba(160, 180, 200, .12); border: 1px dashed rgba(160, 180, 200, .45); }
.wm-secrets[hidden] { display: none; }
.wm-secrets__group { background: var(--wm-panel); border: 1px solid var(--wm-frame); border-radius: var(--wm-radius); }
.wm-secrets__group + .wm-secrets__group { margin-top: 8px; }
.wm-secrets__group summary { cursor: pointer; padding: 8px 10px; font-family: var(--wm-serif); color: var(--wm-gold); letter-spacing: .05em; list-style-position: inside; }
.wm-secrets__group summary small { color: var(--text-dimmed); font-family: var(--font-body); letter-spacing: 0; }
.wm-secrets ul { list-style: none; margin: 0; padding: 0 4px 6px; }
.wm-secrets button { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; width: 100%; padding: 5px 6px; border: 0; border-radius: 3px;
  background: none; color: var(--text-primary); text-align: left; font: inherit; cursor: pointer; }
.wm-secrets button:hover, .wm-secrets button:focus-visible, .wm-secrets button[aria-current] { background: #241b12; outline: none; }
.wm-secrets img, .wm-secrets .wm-hit-dot { width: 26px; height: 26px; grid-row: span 2; object-fit: contain; }
.wm-secrets button > span { font-weight: 600; font-size: .95rem; }
.wm-secrets button > small { color: var(--text-dimmed); font-size: .8rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wm-guide { padding: 12px; background: var(--wm-panel); border: 1px solid rgba(233, 207, 138, .35); border-radius: var(--wm-radius); color: var(--text-secondary); }
/* opened from the list below the map: one glow so the eye finds what was clicked */
.wm-guide.is-flash { animation: wm-flash 1.6s ease-out; }
@keyframes wm-flash { 0%, 25% { box-shadow: 0 0 0 2px var(--wm-gold), 0 0 26px rgba(196, 162, 78, .55); } 100% { box-shadow: 0 0 0 0 rgba(196, 162, 78, 0); } }
@media (prefers-reduced-motion: reduce) { .wm-guide.is-flash { animation: none; box-shadow: 0 0 0 1px var(--wm-gold); } }
.wm-guide__head { display: flex; gap: 10px; align-items: center; padding-right: 26px; }
.wm-guide__head img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.wm-guide__head small { color: var(--wm-gold); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.wm-guide__head h3 { margin: 0; font-family: var(--wm-serif); font-weight: 400; font-size: 1.25rem; color: #f1e6c8; line-height: 1.2; }
.wm-guide__sum { margin: 10px 0; color: var(--text-primary); line-height: 1.5; }
.wm-guide__solution { margin: 0 0 10px; padding: 8px 10px; border-left: 2px solid #8fd18f; background: rgba(120, 200, 120, .08); color: var(--text-primary); }
.wm-guide__solution b { color: #8fd18f; font-size: .85rem; margin-right: 4px; }
.wm-guide .wm-ref, .wm-tip .wm-ref { color: #e8c886; font-weight: 600; text-decoration: none; white-space: nowrap; }
.wm-guide a.wm-ref:hover, .wm-guide a.wm-ref:focus-visible { text-decoration: underline; text-underline-offset: .15em; }
.wm-guide .wm-ref .mention-icon, .wm-tip .wm-ref .mention-icon { display: inline-block; width: auto; height: 1.35em; vertical-align: -.35em; margin-right: .2em; }
.wm-guide__req { margin: 0 0 10px; padding: 8px 10px; border-left: 2px solid var(--wm-gold); background: rgba(196, 162, 78, .07); }
.wm-guide__req b { color: var(--wm-gold); font-size: .85rem; }
.wm-guide__req ul { margin: 4px 0 0; padding-left: 18px; }
.wm-guide__steps { list-style: none; margin: 0 0 10px; padding: 0; counter-reset: none; }
.wm-guide__steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 7px 6px; border-radius: 3px; border-top: 1px solid var(--wm-line); }
.wm-guide__steps li.has-pos { cursor: pointer; }
.wm-guide__steps li.has-pos:hover, .wm-guide__steps li.has-pos:focus-visible, .wm-guide__steps li.on { background: #241b12; outline: none; }
.wm-guide__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--wm-gold-2); color: var(--wm-gold-2);
  font-size: 12px; font-weight: 700; }
.wm-guide__steps li.no-pos .wm-guide__n { border-style: dashed; opacity: .7; }
.wm-guide__steps li.on .wm-guide__n { background: var(--wm-gold-2); color: #1a130a; }
.wm-guide__steps b { color: #f1e6c8; font-weight: 600; }
.wm-guide__steps small { color: var(--text-dimmed); }
.wm-guide__steps p { margin: 3px 0 0; font-size: .92rem; line-height: 1.45; }
.wm-guide__off { font-style: italic; }
.wm-legend-sym.k-secret::before { content: '✦'; display: block; text-align: center; line-height: 24px; font-size: 17px; color: var(--wm-gold-2);
  text-shadow: 0 0 6px rgba(233, 207, 138, .7); }
.wm-legend-row--secret { border-bottom: 1px solid var(--wm-line); margin-bottom: 3px; padding-bottom: 6px; }

/* full view: the whole block (map + side panel) covers the browser window, not the monitor (.wm--full). .main-content is its own stacking
   context (z-index 1) under the sticky header — html.wm-lock lifts it above the header (below the search dialog and modals, 1000+) and stops
   the page behind from scrolling */
.wm-zoom__full .wm-ico-exit, .wm-zoom__full.is-on .wm-ico-enter { display: none; }
.wm-zoom__full.is-on .wm-ico-exit { display: inline; }
.wm-zoom__full svg { vertical-align: middle; }
.wm.wm--full { position: fixed; inset: 0; z-index: 950; width: 100%; height: 100%; height: 100dvh; box-sizing: border-box; padding: 10px;
  background: var(--bg-primary, #15161a); grid-template-rows: minmax(0, 1fr); }
.wm.wm--full .wm-map-wrap { height: auto; min-height: 0; }
.wm.wm--full .wm-side { max-height: none; min-height: 0; }
html.wm-lock, html.wm-lock body { overflow: hidden; }
html.wm-lock { scrollbar-gutter: auto; }   /* the page keeps a stable gutter; the covered page needs none */
html.wm-lock .main-content { z-index: 950; }

/* tablet and phone: panel below the map, the selected place as a sheet over the map */
@media (max-width: 1023px) {
  .wm { grid-template-columns: minmax(0, 1fr); }
  .wm-map-wrap { height: 64vh; min-height: 360px; }
  .wm-side { max-height: none; overflow: visible; }
  .wm.wm--full { grid-template-rows: minmax(0, 1fr) minmax(0, 38%); }
  .wm.wm--full .wm-side { overflow: auto; }
  .wm-side .wm-detail { display: none; }
  .wm-zone { font-size: 14px; }
  .wm-canvas { --wm-ui: calc(.6px * var(--wm-k, 1)); }
  .wm-sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 9; max-height: 56%; overflow: auto; display: flex; flex-direction: column;
    align-items: center; gap: 6px; padding-top: 4px; overscroll-behavior: contain; }
  .wm-sheet .wm-gt { --u: .72px; --f: calc(1.08 * var(--u)); --fs: calc(.96 * var(--u)); }
  .wm-sheet .wm-detail-close { right: 2px; top: 2px; }
  .wm-sheet .wm-actions { justify-content: center; }
  .wm-sheet .wm-guide { width: 100%; box-sizing: border-box; max-height: 100%; background: var(--wm-solid); }   /* over the map: no glass */
  .wm-step__label { max-width: 150px; font-size: 11.5px; }
}
@media (min-width: 1024px) { .wm-sheet { display: none !important; } }
@media (max-width: 480px) {
  .wm-hover { display: none; }
  .wm-title b { font-size: 15px; }
}
