/* Study Quest — css/world-map.css (V7.0): the world map's engine view inside the map frame (js/world/map.js).
 * The frame, the bar, the foot and the travel card keep world-ui.css's .wm-* look (Ember & Iron). */
.wv-overlay .wv-view { background: #8c7a5c; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.wv-overlay .wv-view:active { cursor: grabbing; }
.wv-host { position: absolute; inset: 0; overflow: hidden; }
.wv-host > canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.wv-host > .wv-ov { pointer-events: none; }
.wv-host > .wv-still { display: none; pointer-events: none; }
.wv-host > .wv-vig { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 90px rgba(6, 4, 2, 0.55), inset 0 0 2px rgba(176, 122, 60, 0.6); }
.wv-host > .wv-note { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(8, 9, 11, 0.55); pointer-events: none; z-index: 4; }
.wv-host > .wv-note.on { display: flex; }
.wv-host > .wv-note > div { padding: 16px 24px; background: linear-gradient(#1b1e22, #101215); border: 1px solid var(--cx-bronze, #b07a3c); color: var(--cx-text, #ebe4d6);
  font: italic 17px var(--cx-font-flavor, Alegreya, serif); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7); text-align: center; }
.wv-host > .wv-note > div b { display: block; font: 700 14px var(--cx-font-head, Cinzel, serif); color: var(--cx-gold-text, #e3b562); margin-bottom: 4px; font-style: normal; }
/* while the engine loads (the first M of a session): a calm note over the parchment */
.wv-loading { position: absolute; inset: 0; z-index: 5; display: none; align-items: center; justify-content: center; gap: 12px; pointer-events: none;
  font: italic 500 18px/1.3 var(--cx-font-flavor, Alegreya, serif); color: var(--cx-gold-3, #c8a26a); text-shadow: 0 1px 0 #000, 0 0 8px #000; background: rgba(14, 12, 10, 0.35); }
.wv-overlay.is-loading .wv-loading, .wv-overlay.is-failed .wv-loading { display: flex; }
.wv-overlay.is-failed .wv-loading .codex-astrolabe { display: none; }
.wv-zoomtxt { font: 700 13px/1 var(--cx-font-num, 'Alegreya Sans', sans-serif); color: var(--cx-gold-text, #e3b562); min-width: 64px; text-align: right; text-shadow: 0 1px 0 #000; }
.wv-overlay .wm-crumb.is-current { color: var(--cx-gold-text, #e3b562); }
.wv-overlay .wm-foot .wm-hint { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .wv-overlay { animation: none; } }
/* the zoom buttons sit top right (the overlay's compass rose takes the bottom right corner) */
.wv-overlay .wm-view > .wm-zoom { top: 14px; right: 14px; bottom: auto; }
.wv-overlay.wm-compact .wm-view > .wm-zoom { top: 8px; right: 8px; bottom: auto; }

/* ---- V7.1 "Map mode" (docs/V7.1-MAP-MODE.md §1): the world view IS the game screen (js/world/map.js) ---------------
 * #world: full window under the HUD (z 1; the HUD is 10, the toasts 40, the windows 50, the travel card 990). The map
 * view (M) lifts it over the HUD and the toasts (45), with V7.0's slim map chrome on top; M, Esc or Home go back. */
#world { position: fixed; inset: 0; z-index: 1; background: #8c7a5c; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: default; }
#world:not(.is-mounted) { display: none; }
#world.is-mapview { z-index: 45; }
#world > .wv-host > .wv-life { pointer-events: none; }
#world > .wv-host > .wv-vig { box-shadow: inset 0 0 120px rgba(6, 4, 2, 0.45); }
#world.is-mapview > .wv-host > .wv-vig { box-shadow: inset 0 0 90px rgba(6, 4, 2, 0.55), inset 0 0 2px rgba(176, 122, 60, 0.6); }
#world > .wm-chrome { display: none; position: absolute; inset: 0; z-index: 6; pointer-events: none; }
#world.is-mapview > .wm-chrome { display: block; animation: cx-fade var(--cx-dur-calm, 420ms) var(--cx-ease, ease-out) both; }
#world .wm-chrome > .wm-bar { position: absolute; top: 0; left: 0; right: 0; margin: 0; padding: 6px 16px; pointer-events: auto;
  background: linear-gradient(rgba(10, 9, 8, 0.86), rgba(10, 9, 8, 0.62)); border-bottom: 1px solid rgba(176, 122, 60, 0.7); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
#world .wm-chrome .wm-title { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); max-width: 46%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#world .wm-chrome > .wm-zoom { position: absolute; top: 58px; right: 16px; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: auto; }
#world .wm-chrome > .wm-foot { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: auto; background: linear-gradient(rgba(10, 9, 8, 0.55), rgba(10, 9, 8, 0.85)); border-top: 1px solid rgba(176, 122, 60, 0.6); }
#world > .wv-calm { display: none; position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 7; padding: 14px 22px; pointer-events: none;
  background: linear-gradient(#1b1e22, #101215); border: 1px solid var(--cx-bronze, #b07a3c); color: var(--cx-text, #ebe4d6); font: italic 17px var(--cx-font-flavor, Alegreya, serif); }
#world.is-failed > .wv-calm { display: block; }
/* V7.1 fix round 1: no WebGL at all: V7.0's still picture under the calm line (js/world/map.js stillPicture) */
#world.is-failed.has-still > .wv-host > .wv-still { display: block; }
/* a short note at the pointer: "No way across here", "Uncharted", "… open at level 19" */
#world > .wv-tip { position: fixed; z-index: 8; width: 240px; text-align: center; pointer-events: none; opacity: 0; transition: opacity 0.2s;
  font: 600 14px/1.25 var(--cx-font-body, Alegreya, serif); color: var(--cx-text, #ebe4d6); text-shadow: 0 1px 0 #000, 0 0 6px #000, 0 0 2px #000; }
#world > .wv-tip.on { opacity: 1; }
.wm-card--point .wm-card-break span { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { #world.is-mapview > .wm-chrome { animation: none; } #world > .wv-tip { transition: none; } }
body.reduced-motion #world.is-mapview > .wm-chrome { animation: none; }
/* V7.1 world life (js/world/worldlife.js): the hover card of a land, a quest giver, the inn sign, a mob; the travel card's
   quest line */
#world .wl-tip { position: fixed; z-index: 9; max-width: 300px; padding: 7px 11px 8px; pointer-events: none; opacity: 0; transition: opacity 0.15s;
  background: linear-gradient(#1b1e22, #101215); border: 1px solid var(--cx-bronze, #b07a3c); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  font: 14px/1.35 var(--cx-font-body, Alegreya, serif); color: var(--cx-text, #ebe4d6); }
#world .wl-tip.on { opacity: 1; }
#world .wl-tip b { font-family: var(--cx-font-display, Cinzel, serif); color: var(--cx-gold, #e3b562); font-weight: 700; }
#world .wl-tip .wl-lv { color: #ffd34a; font-size: 13px; }
#world .wl-tip .wl-dim { color: #aea89c; }
#world .wl-tip .wl-mob { color: #ffcf8a; }
#world .wl-tip i { color: #d8cfc0; }
.wm-card .wm-card-quests { margin: 6px 0 2px; color: #ffd34a; font: 600 14px var(--cx-font-body, Alegreya, serif); }
@media (prefers-reduced-motion: reduce) { #world .wl-tip { transition: none; } }
/* V7.3 lane D (v73-subzones, LATE-REQUESTS 17): "Explored: n of m" in the map's bar (the zone's sub-zones found) */
.wm-explored { font: 600 12px/1 var(--cx-font-num, 'Alegreya Sans', sans-serif); color: #d8cdb4; letter-spacing: 0.02em; text-shadow: 0 1px 0 #000; white-space: nowrap; cursor: default; }
.wm-explored.is-full { color: var(--cx-gold-text, #e3b562); }
.wm-explored[hidden] { display: none; }
/* V7.3 lane D (v73-subzones, LATE-REQUESTS 17c): the card of a found part at the zone view (js/world/subzones.js attachHover) */
#world .wl-tip.sz-tip { max-width: 280px; }
#world .wl-tip.sz-tip b { display: block; }
#world .wl-tip.sz-tip small { display: block; color: #d8cfc0; font-style: italic; font-size: 12.5px; margin-top: 1px; }
#world .wl-tip.sz-tip .sz-tip-d { display: block; color: #aea89c; font-size: 12px; margin-top: 3px; }
/* V7.16.5 (MR45): the ONE place card (js/world/hovercard.js composePlace): where you are first (the town, else the part), the hunting
   ground after it (never inside a safe town) */
#world .wl-tip .hc-m { display: block; color: #d8cfc0; font-style: italic; font-size: 12.5px; margin-top: 1px; }
#world .wl-tip .hc-sub { display: block; color: #cbbf9f; font-size: 12.5px; margin-top: 1px; }
#world .wl-tip .hc-wild { display: block; margin-top: 5px; padding-top: 4px; border-top: 1px solid rgba(176, 122, 60, 0.35); }
#world .wl-tip .hc-wild .wl-lv { margin-left: 0; white-space: nowrap; }   /* (a wrapped level line never starts indented) */
#world .wl-tip .hc-g { display: block; font-size: 12.5px; }
#world .wl-tip .hc-mobs { display: block; margin-top: 2px; }
#world .wl-tip .hc-rum { display: block; margin-top: 3px; max-width: 270px; }
#world .wl-tip.sz-tip { max-width: 300px; }
