/* Smooth rendering (Dec 3).
   The town drawing is split into still layers, three thin "flow" layers that hold only the animated
   river and sea lines, a live layer for things scripts add (shutters, decorations, bus bays, snow)
   and the map lettering. raster.js swaps each still layer for one picture of itself, so the browser
   handles a few images instead of 22,000 shapes on every frame. */
#mz-floor-0 svg.town-stack,#mz-floor-0 svg.town-flow,#mz-floor-0 svg.town-dyn,#mz-floor-0 svg.town-carto,#mz-floor-0 img.town-still{position:absolute;left:0;top:0;width:3520px;height:1560px}
#mz-floor-0 svg.town-flow,#mz-floor-0 svg.town-dyn,#mz-floor-0 svg.town-carto,#mz-floor-0 img.town-still{pointer-events:none}
#mz-floor-0 img.town-still{display:block;max-width:none;user-select:none;-webkit-user-drag:none}
#mz-floor-0 img.town-still.town-base-img{position:static}
#mz-floor-0 svg.town-part.is-cached{display:none}
/* each moving layer gets its own GPU layer so its changes never repaint the still ones */
#mz-floor-0 img.town-still,#mz-floor-0 svg.town-flow,#mz-floor-0 .town-life,#mz-floor-0 .npc-layer{will-change:opacity}
/* Dec 5: phones. Lite mode (on by itself on phones and weaker devices) now also stops the river and
   sea current lines, the walkers' pulsing halos, the sleeping-house badges and the drifting clouds,
   and lets the still pictures share one GPU layer instead of one each. Those layers were each the full
   3520x1560 town, which is what ran low-memory phones out of graphics memory (flicker, blank patches,
   the page reloading by itself). */
html.mz-lite #mz-floor-0 .district-river-current,html.mz-lite .npc-layer .npc-halo,html.mz-lite .npc-layer .house-badge{animation:none!important}
html.mz-lite .town-fx .cloud{display:none}
html.mz-lite #mz-floor-0 img.town-still,html.mz-lite #mz-floor-0 svg.town-flow{will-change:auto}
/* Dec 5 (phones): riders, cats and crows are small sprites in their own layer under the characters
   (bglife.js). Each sprite is moved by the graphics card (transform) so nothing big is repainted. */
#mz-floor-0 .bl-sprites{position:absolute;left:0;top:0;width:0;height:0;z-index:5;pointer-events:none;overflow:visible}
#mz-floor-0 .bl-sprites .bl-defs{position:absolute;left:0;top:0;width:0;height:0;overflow:hidden}
#mz-floor-0 .bl-sprite{position:absolute;left:0;top:0;overflow:visible;transform-origin:24px 24px;will-change:transform;contain:layout style}
#mz-floor-0 .bl-sprites.bl-rez .bl-sprite{will-change:auto}

/* Dec 5 (asset 20261205-8a): walkers' level of detail, set by npc.js from the zoom.
   mid = zoomed out: no name tags, no pulsing halo. far = zoomed far out: one coloured dot each. */
.npc-layer .npc-dot{display:none}
.npc-layer.npc-mid .npc .npc-tag,.npc-layer.npc-far .npc .npc-tag{display:none}
.npc-layer.npc-mid .npc .npc-halo{animation:none}
.npc-layer.npc-far .npc>:not(.npc-dot):not(.npc-hit):not(.npc-bubble):not(.npc-emote){display:none}
.npc-layer.npc-far .npc>.npc-dot{display:inline;stroke:#fff;stroke-width:2.2;transform:scale(var(--dotk,1));transform-box:fill-box;transform-origin:center}
.npc-layer.npc-far .npc.selected>.npc-dot,.npc-layer.npc-far .npc:hover>.npc-dot{stroke:#152326;stroke-width:3}
.npc-layer.npc-far .npc>.npc-hit{transform:scale(var(--dotk,1));transform-box:fill-box;transform-origin:center}
.npc-layer.npc-far .npc.couple-walk>.npc-dot{stroke:#ff8fb8}
