/* Map purchase overlay stays independent of the renderer's scenery. */
.map-fx-overlay { position: fixed; inset: 0; z-index: 11000; pointer-events: none; overflow: hidden; --map-fx-accent: #fa718f; --map-fx-deep: #604574; --map-fx-cream: #fff4d8; }
.map-fx-brick, .map-fx-tip, .map-fx-mascot-trail { position: absolute; top: 0; left: 0; transform-origin: center; color: #a5fae0; font-size: 22px; text-shadow: 0 1px 2px #452078, 0 0 12px #fff; will-change: transform, opacity; }
.map-fx-brick { width: 23px; height: 23px; border: 2px solid #d9fff3; border-radius: 5px; text-align: center; line-height: 19px; background: linear-gradient(145deg, #b382d9, #643798 70%); box-shadow: inset -3px -3px #44246c, 0 2px 6px #5d325c7a; font-size: 13px; }
.map-fx-tip { color: white; filter: drop-shadow(0 0 7px var(--map-fx-accent)); }
.map-fx-mascot-flight { position: absolute !important; top: 0 !important; left: 0 !important; z-index: 5; pointer-events: none; will-change: transform; }
.map-fx-mascot-flight .map-mascot-bob { animation: none !important; }
.map-fx-sweep { position: absolute; inset: -35% auto -35% 45%; width: 35%; z-index: 3; background: linear-gradient(90deg, transparent, #fff9, transparent); border-radius: 50%; pointer-events: none; }
.map-fx-closeup { position: absolute; top: 57%; left: 50%; width: min(212px,47vw); height: 218px; padding: 10px; border-radius: 24px; border: 3px solid #fff4cd; background: linear-gradient(150deg, #fff9ed, #ffe1ee); box-shadow: 0 7px 0 var(--map-fx-deep), 0 15px 28px #43305288, inset 0 3px #fff; text-align: center; color: var(--map-fx-deep); }
.map-fx-closeup-art, .map-fx-closeup-scaffold { position: absolute; left: 50%; top: 5px; width: min(150px,35vw); height: 162px; transform: translateX(-50%); }
.map-fx-closeup-scaffold[hidden] { display: none !important; }
.map-fx-closeup-art svg, .map-fx-closeup-scaffold svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 5px 6px #61374b55); }
.map-fx-closeup .map-fx-closeup-plaque { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); min-width: 120px; max-width: 93%; }
.map-fx-path-paint { fill: none !important; stroke-width: 13px; stroke-linecap: round; filter: drop-shadow(0 0 6px #fff); }
.map-fx-flood { position: absolute; left: -65px; top: -65px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, #fff 5%, var(--map-fx-cream) 30%, #fff7 54%, transparent 70%); mix-blend-mode: screen; }
.map-fx-gallery { position: absolute; top: 24%; left: 3%; right: 3%; height: min(225px,32vh); overflow: hidden; border-radius: 26px; border: 3px solid #fff9; background: linear-gradient(150deg, var(--map-fx-cream), #ffffffed); box-shadow: 0 12px 45px #382a5a88, inset 0 3px #fff; }
.map-fx-gallery-row { display: flex; width: max-content; align-items: stretch; height: 100%; gap: 12px; padding: 12px 20px; }
.map-fx-gallery-card { display: flex; width: clamp(125px,24vw,195px); flex: none; flex-direction: column; align-items: center; justify-content: center; border-radius: 20px; background: linear-gradient(#ffffffa8, #f9cadd9c); box-shadow: inset 0 2px #fff, 0 4px 8px #482a5340; color: var(--map-fx-deep); text-align: center; }
.map-fx-gallery-card .map-building-art { position: relative; inset: auto; flex: none; width: min(100%,110px); height: min(14vh,110px); }
.map-fx-gallery-card > :first-child:not(.map-fx-gallery-caption) { display: block; max-width: 100%; max-height: 125px; object-fit: contain; }
.map-fx-gallery-card svg { width: min(100%,110px); height: min(14vh,110px); }
.map-fx-gallery-card .cv-art { flex: none; width: min(100%,125px); height: auto; aspect-ratio: 1; margin: 4px 0; }
.map-fx-gallery-caption { font-weight: 900; font-size: clamp(10px,1.5vw,13px); padding: 3px 8px; }
.map-fx-chest { position: absolute; width: 64px; height: 50px; border-radius: 13px 13px 17px 17px; border: 4px solid #fff1b6; background: linear-gradient(155deg, #fbdc75 5%, #e8886c 48%, #ac5485); box-shadow: 0 7px 0 #7d4d63, 0 13px 20px #332c5488; color: #fff7af; text-align: center; line-height: 42px; font-size: 28px; }
.map-fx-chest::before { content: ""; position: absolute; top: -14px; left: 7px; right: 7px; height: 15px; border-radius: 15px 15px 4px 4px; background: linear-gradient(#fff4ba,#f5bb5b); border: 3px solid #b16562; }
.map-fx-banner { position: absolute; top: 53%; left: 50%; width: min(90vw,510px); padding: 15px 20px; text-align: center; border-radius: 26px; border: 4px solid #fff3b4; background: linear-gradient(150deg, #fff6dc, #ffe1e9); box-shadow: 0 9px 0 var(--map-fx-deep), 0 16px 30px #392c5988; color: var(--map-fx-deep); }
.map-fx-banner-title { font-weight: 1000; font-size: clamp(21px,5vw,35px); line-height: 1.14; }
.map-fx-banner-subtitle { margin-top: 5px; font-weight: 850; font-size: clamp(12px,2.6vw,18px); }
@media (prefers-reduced-motion: reduce) { .map-fx-overlay { display: none; } }