/* scene.css
   Ported from reference/example-v1 (the approved style): palette, line classes,
   sea, glints, moon reflection (glade), stars, boats, gulls and all their timings.
   Removed on purpose: the old town mask, its windows, its reflections and the
   lighthouse. Those were tied to the old 2D town and get rebuilt for the new one. */

.hx{--hx-rule-strong:rgba(244,246,250,.5);--hx-ground:#F4F5F1;--hx-ink:#1C4B97;--hx-sea:#163D79;--hx-on:#F4F6FA;--hx-muted:#BDCBE3;--hx-rule:rgba(244,246,250,.2);--hx-glow:#FFD27D;--hx-pin:#4E9A62;--hx-star:#FFFFFF;--hx-cta:#F4F5F1;--hx-cta-ink:#163D79;--hx-cta-hover:#FFFFFF;display:block;background:var(--hx-sea);color:var(--hx-on);font-family:'Commissioner','Segoe UI',system-ui,sans-serif;transition:background-color 1.2s}
.hx[data-tone="night"]{--hx-rule-strong:rgba(244,246,250,.42);--hx-ground:#0E1B35;--hx-ink:#C3D2EC;--hx-sea:#09142A;--hx-muted:#A8B8D6;--hx-rule:rgba(244,246,250,.16);--hx-cta:#FFD27D;--hx-cta-ink:#0A1730;--hx-cta-hover:#FFE3A8}
.hx a{color:inherit;text-decoration:none}.hx a:hover{text-decoration:underline;text-underline-offset:3px}
.hx a:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:3px}
.hx-sky{overflow:hidden;padding-top:28px;background:var(--hx-ground);transition:background-color 1.2s}
.hx-scene{position:relative;width:max(100%,1100px);aspect-ratio:2400/560;margin-left:min(0px,max((100% - 1100px) * .42,min(50% - 277.75px,-62.75px - (100% - 430px) * 147.25 / 170,100% - 453.75px)));margin-bottom:calc(max(100%,1100px) * -43 / 2400)}
/* which part shows: below 1100 px the scene stays 1100 px wide (2400 units in 1100 px) and slides left. From 600 px up by
   0.42 of what does not fit, as before (scene x 1008 stays at 42% of the width). On a phone, up to 430 px, the tennis court
   is in the middle (step 8e, Alex): scene x 606, the middle of the court with its road and trees (x 519 to 693, its pin at
   x 593 to 623), at 50% of the width (606 units are 277.75 px). From 430 to 600 px the view slides from the one to the
   other with the width, with no jump (the line through -62.75 px at 430 and -210 px at 600). Under 352 px the view stops
   at scene x 990 on the right (990 units are 453.75 px), so the moon's phone spot (below) stays whole on the smallest
   phones, the court a little left of the middle. From 1100 px up the whole scene shows, no margin.
   The negative margin-bottom crops the scene's bottom 43 units (y 517 to 560) under .hx-sky's overflow:hidden: there the ported
   deep-sea lines merge into a solid blue band that read as part of the footer bar (Alex, step 3). Nothing is squashed. */
.hx-fill{position:absolute;inset:0}
.hx-layer{position:absolute;inset:0;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:var(--hx-ink);transition:background-color 1.2s}
.hx-wide{left:-2.5%;right:auto;width:105%}
.hx-sea1{--hx-m:url("../scene/ported/sea1.svg");-webkit-mask-image:var(--hx-m);mask-image:var(--hx-m);animation:hx-drift 9s ease-in-out infinite}
.hx-sea2{--hx-m:url("../scene/ported/sea2.svg");-webkit-mask-image:var(--hx-m);mask-image:var(--hx-m);animation:hx-drift2 13s ease-in-out infinite}
.hx-sea3{--hx-m:url("../scene/ported/sea3.svg");-webkit-mask-image:var(--hx-m);mask-image:var(--hx-m);animation:hx-drift2 16s ease-in-out -6s infinite reverse}
.hx-deep{background-color:var(--hx-sea);--hx-m:url("../scene/ported/deep.svg");-webkit-mask-image:var(--hx-m);mask-image:var(--hx-m);animation:hx-drift2 21s ease-in-out -3s infinite}
.hx-glint{opacity:0;animation:hx-glint 7s ease-in-out infinite}
.hx-glint1{--hx-m:url("../scene/ported/glint1.svg");-webkit-mask-image:var(--hx-m);mask-image:var(--hx-m)}
.hx-glint2{--hx-m:url("../scene/ported/glint2.svg");-webkit-mask-image:var(--hx-m);mask-image:var(--hx-m);animation-delay:-2.4s}
.hx-glint3{--hx-m:url("../scene/ported/glint3.svg");-webkit-mask-image:var(--hx-m);mask-image:var(--hx-m);animation-delay:-4.8s}
.hx-night{opacity:0;visibility:hidden;transition:opacity 1.4s,visibility 0s 1.4s}
.hx[data-tone="night"] .hx-night{opacity:1;visibility:visible;transition:opacity 1.4s,visibility 0s}
.hx-day{transition:opacity 1.4s}
.hx[data-tone="night"] .hx-day{opacity:0}
.hx-stars{background-color:var(--hx-star)}
.hx-star1{--hx-m:url("../scene/ported/star1.svg");-webkit-mask-image:var(--hx-m);mask-image:var(--hx-m);animation:hx-twinkle 4.6s ease-in-out infinite}
.hx-star2{--hx-m:url("../scene/ported/star2.svg");-webkit-mask-image:var(--hx-m);mask-image:var(--hx-m);animation:hx-twinkle 3.1s ease-in-out -1.7s infinite}
.hx-moon{position:absolute;overflow:visible}
.hx-glade{background-color:#FFE7B0;--hx-m:url("../scene/ported/glade.svg");-webkit-mask-image:var(--hx-m);mask-image:var(--hx-m);animation:hx-shimmer 2.3s ease-in-out infinite}
.hx-moonp{fill:#F3EBD2;stroke:#FFF6DE;stroke-width:1}
/* step 8e, Alex: the moon on a phone. Under 520 px its 8b spot (disc centre x 1350, y 70) is off the screen, so the moon
   and its reflection move to x 952: the disc centre at (952, 56), 30 units above hill C's ridge, in the upper right of a
   phone's view; one star (x 936, y 60) is behind its lit crescent there, none in its dark part or near its edge. The
   reflection moves the same 398.2 units left, at its height, into the open water in front of the mole's free end, which
   hides its narrow top, as on wide screens. The moon's box: left = centre x - 35.2, top = centre y - 32.16 (its viewBox).
   Its spot is set inline in index.html, hence the !important; the reflection moves by left, as its shimmer is a transform. */
@media (max-width:519.98px){
  .hx-moon{left:38.2%!important;top:4.257%!important}
  .hx-night .hx-glade{left:-19.092%}
}
.hx-boat,.hx-gull{position:absolute;overflow:visible}
.hx-f{fill:var(--hx-ground);transition:fill 1.2s}
.hx-l{fill:none;stroke:var(--hx-ink);stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;transition:stroke 1.2s}
.hx-t{fill:none;stroke:var(--hx-ink);stroke-width:.8;stroke-linecap:round;stroke-linejoin:round;transition:stroke 1.2s}
.hx-k{fill:var(--hx-ink);transition:fill 1.2s}
.hx-flagp{fill:var(--hx-ground);stroke:var(--hx-ink);stroke-width:.9;stroke-linejoin:round;transition:fill 1.2s,stroke 1.2s}
.hx-hull{transform-box:fill-box;transform-origin:50% 100%;animation:hx-rock 5.2s ease-in-out infinite}
.hx-refl{transform-box:fill-box;transform-origin:50% 0;animation:hx-ripple 3.1s ease-in-out infinite}
.hx-flag{transform-box:fill-box;transform-origin:100% 50%;animation:hx-flutter .9s ease-in-out infinite}
.hx-wake{animation:hx-wake 1.6s ease-in-out infinite}
.hx-b1 .hx-hull{animation-duration:6.4s;animation-delay:-1.2s}
.hx-b2 .hx-hull{animation-duration:4.6s;animation-delay:-3s}
.hx-b3 .hx-hull{animation-duration:5.6s;animation-delay:-.4s}
.hx-b4 .hx-hull{animation-duration:5.9s;animation-delay:-2.2s}
.hx-b5 .hx-hull{animation-duration:4.1s;animation-delay:-1.6s}
.hx-b6 .hx-hull{animation-duration:4.4s;animation-delay:-.9s}
.hx-b7 .hx-hull{animation-duration:3.9s;animation-delay:-2.7s}
.hx-b1 .hx-refl{animation-duration:3.6s}
.hx-b3 .hx-refl,.hx-b5 .hx-refl{animation-delay:-1.4s}
.hx-cross1{animation:hx-cross1 230s linear -38s infinite}
.hx-cross1 .hx-hull{animation-duration:4.8s}
.hx-cross2{animation:hx-cross2 84s linear -9s infinite}
.hx-cross2 .hx-hull{animation-duration:2.2s}
.hx-gull .hx-glide{animation:hx-glide 5s ease-in-out infinite}
.hx-wl{transform-origin:0 0;animation:hx-flap-l .7s ease-in-out infinite}
.hx-wr{transform-origin:0 0;animation:hx-flap-r .7s ease-in-out infinite}
.hx-g1{animation:hx-fly-l 52s linear -14s infinite}
.hx-g2,.hx-g3{animation:hx-fly-r 64s linear -40s infinite}
.hx-g3 .hx-glide{animation-delay:-1.8s}
.hx-g3 .hx-wl,.hx-g3 .hx-wr{animation-duration:.62s;animation-delay:-.2s}
.hx-g2 .hx-wl,.hx-g2 .hx-wr{animation-duration:.76s}
@keyframes hx-drift{0%,100%{transform:translateX(-.12%)}50%{transform:translateX(.12%)} }
@keyframes hx-drift2{0%,100%{transform:translateX(.28%)}50%{transform:translateX(-.28%)} }
@keyframes hx-shimmer{0%,100%{transform:translateX(-.05%) scaleY(1)}50%{transform:translateX(.06%) scaleY(1.01)} }
@keyframes hx-glint{0%,100%{opacity:0;transform:translateX(-.1%)}40%{opacity:.95}70%{opacity:0;transform:translateX(.12%)} }
@keyframes hx-rock{0%,100%{transform:rotate(-1.2deg) translateY(-.5px)}50%{transform:rotate(1.1deg) translateY(.7px)} }
@keyframes hx-ripple{0%,100%{transform:scaleY(1) skewX(0deg)}50%{transform:scaleY(1.12) skewX(-5deg)} }
@keyframes hx-flutter{0%,100%{transform:scaleX(1) skewY(0deg)}50%{transform:scaleX(.8) skewY(8deg)} }
@keyframes hx-wake{0%,100%{opacity:.55}50%{opacity:1} }
@keyframes hx-flash{0%,9%,14%,19%,24%,100%{opacity:0}10.5%,12.5%,20.5%,22.5%{opacity:1} }
@keyframes hx-flap-l{0%,100%{transform:rotate(18deg)}50%{transform:rotate(-14deg)} }
@keyframes hx-flap-r{0%,100%{transform:rotate(-18deg)}50%{transform:rotate(14deg)} }
@keyframes hx-glide{0%,100%{transform:translateY(-3px)}50%{transform:translateY(3px)} }
@keyframes hx-twinkle{0%,100%{opacity:1}50%{opacity:.3} }
@keyframes hx-lights{0%,30%{opacity:1}34%,58%{opacity:.08}62%,100%{opacity:1} }
/* the two crossing boats go across and back (Alex, step 7d): each leaves at one edge and comes back from that same edge,
   going the other way. Past the edge, where it can't be seen, it turns: scaleX(-1) mirrors the boat in its own box, so
   the sailboat's bow and the jet ski's wake point the way it goes. Each leg takes as long as the one-way crossing did in
   step 3 (115 s and 42 s, v1's speed), with no pause off screen; the delays start them where they were, mid first leg. */
@keyframes hx-cross1{0%{transform:translateX(2819%) scaleX(1)}50%{transform:translateX(-112%) scaleX(1)}50.01%{transform:translateX(-112%) scaleX(-1)}100%{transform:translateX(2819%) scaleX(-1)} }
@keyframes hx-cross2{0%{transform:translateX(-79%) scaleX(1)}50%{transform:translateX(2245%) scaleX(1)}50.02%{transform:translateX(2245%) scaleX(-1)}100%{transform:translateX(-79%) scaleX(-1)} }
@keyframes hx-fly-l{from{transform:translateX(0)}to{transform:translateX(-6944%)} }
@keyframes hx-fly-r{from{transform:translateX(0)}to{transform:translateX(6944%)} }
/* under 1100 px, where a screen shows only part of the scene, scene.js (fitMovers) cuts these four paths to what it
   shows, at the same speeds (step 8f). */
@media (prefers-reduced-motion:reduce){.hx *{animation:none!important}.hx-cross1,.hx-cross2,.hx-gull{display:none} }
.hx[data-playing="false"] *{animation-play-state:paused!important}

/* ---------------------------------------------------------------- new town (inline SVG, one file per layer) */
.hx-town{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
/* line vocabulary, same as the boats: f = paper fill, l = main ink line, t = thin ink line, k = solid ink
   (its night look, step 8a, is at the end: by day its outline has no width, at night it grows in as it fades in) */
.hx-town .f{fill:var(--hx-ground);transition:fill 1.2s}
.hx-town .l{fill:none;stroke:var(--hx-ink);stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;transition:stroke 1.2s}
.hx-town .t{fill:none;stroke:var(--hx-ink);stroke-width:.8;stroke-linecap:round;stroke-linejoin:round;transition:stroke 1.2s}
.hx-town .k{fill:var(--hx-ink);stroke:transparent;stroke-width:0;stroke-linejoin:round;transition:fill 1.2s,fill-opacity 1.2s,stroke 1.2s,stroke-width 1.2s}
/* windows: ink by day, lit one by one at night (each gets --d from scene.js) */
.hx-town .win{fill:var(--hx-ink);transition:fill 1.2s}
.hx[data-tone="night"] .hx-town .win.lit{fill:var(--hx-glow);transition:fill .5s var(--d,0s)}
/* the tennis court (step 6f): its lamp heads and its house's windows always come on at night, a little after the town's
   first windows, and the light falls on the court (.glow, hidden by day). Not .win, so the town's lit windows stay. */
.hx[data-tone="night"] .hx-town .lamp{fill:var(--hx-glow);fill-opacity:1;transition:fill .6s 1.6s}
.hx-town .glow{opacity:0;transition:opacity .8s}
.hx[data-tone="night"] .hx-town .glow{opacity:1;transition:opacity 1.2s 1.6s}
/* its marker: a green pin (Alex, after step 7e; --hx-pin, the palette's one green, the same by day and night), its tennis
   ball in the lamps' warm color, bobbing slowly like a pin on a map */
.hx-town .pinfill{fill:var(--hx-pin)}
.hx-town .ballfill{fill:var(--hx-glow)}
.hx-town .court-marker{animation:hx-pin 2.8s ease-in-out infinite}
@keyframes hx-pin{0%,100%{transform:translateY(0)}50%{transform:translateY(-3.5px)} }
/* the ferry floats as one piece: a slow rise and fall with a very small roll, turning about the point where hill C's
   ridge starts on the funnel's right edge (scene x 455, y 243.4), so the funnel never leaves the ridge (step 3) */
.hx-town .hull{transform-box:view-box;transform-origin:455px 243.4px;animation:hx-float 9s ease-in-out infinite}
@keyframes hx-float{0%,100%{transform:translateY(-1.1px) rotate(-.3deg)}25%{transform:translateY(0) rotate(.35deg)}50%{transform:translateY(1.1px) rotate(.1deg)}75%{transform:translateY(0) rotate(-.35deg)} }

/* the walkers on the left quay (step 7c, walkers.svg): Hydra's donkeys and a few people, slow and calm. Each walker goes
   along the quay and back (.wk: a translate along the quay, and scaleX(-1) to face back, turning where it stands at each
   end). Its legs step only while it walks: .wk-go holds the stepping legs, .wk-st the standing ones, and they swap at the
   stops. The standing donkeys move a head, an ear or a tail now and then. Every moving part turns about its own 0,0,
   which walkers.svg sets with a translate round it. Distances are in each figure's own units (scene units / its scale). */
.hx-town :is(.wk,.wk-lg,.wk-hd,.wk-tl,.wk-er){transform-box:view-box;transform-origin:0 0}
.hx-town .wk-go{opacity:0}
.hx-town .wk-lg{animation:hx-step var(--sd) ease-in-out infinite alternate}
.hx-town .wk-lb{animation-delay:calc(var(--sd) * -1)}
@keyframes hx-step{from{transform:rotate(var(--sa))}to{transform:rotate(calc(var(--sa) * -1))} }
/* the woman: x 152 to 312, 5 units a second; the man and his daughter: x 50 to 215, 3.8; the muleteer and his donkey:
   x 40 to 240, 4.2. Each stops at the ends to turn. Each is placed (walkers.svg) where it is when its loop starts, and the
   translates move it from there; the negative delays start each loop at that point. */
.hx-town .wk-w{animation:hx-wk-w 70.4s linear -15.6s infinite;--sd:.66s;--sa:13deg}
.hx-town .wk-w .wk-go{animation:hx-go-w 70.4s linear -15.6s infinite}
.hx-town .wk-w .wk-st{animation:hx-st-w 70.4s linear -15.6s infinite}
.hx-town .wk-mc{animation:hx-wk-mc 92.8s linear -50.37s infinite;--sd:.72s;--sa:11deg}
.hx-town .wk-mc .wk-go{animation:hx-go-mc 92.8s linear -50.37s infinite}
.hx-town .wk-mc .wk-st{animation:hx-st-mc 92.8s linear -50.37s infinite}
.hx-town .wk-mc .wk-lc{--sd:.5s;--sa:15deg}
.hx-town .wk-mg{animation:hx-wk-mg 106.4s linear -20.24s infinite;--sd:.7s;--sa:12deg}
.hx-town .wk-mg .wk-go{animation:hx-go-mg 106.4s linear -20.24s infinite}
.hx-town .wk-mg .wk-st{animation:hx-st-mg 106.4s linear -20.24s infinite}
.hx-town .wk-mg .wk-lf{--sd:.6s;--sa:13deg}
.hx-town .wk-mg .wk-lh{--sd:.6s;--sa:12deg}
.hx-town .wk-mg .wk-tl{animation:hx-sway 1.2s ease-in-out infinite alternate}
@keyframes hx-wk-w{0%{transform:translateX(-67.83px) scaleX(1)}45.45%,47.73%{transform:translateX(71.3px) scaleX(1)}48.2%{transform:translateX(71.3px) scaleX(0.4)}48.22%{transform:translateX(71.3px) scaleX(-0.4)}48.72%,50%{transform:translateX(71.3px) scaleX(-1)}95.45%,97.73%{transform:translateX(-67.83px) scaleX(-1)}98.2%{transform:translateX(-67.83px) scaleX(-0.4)}98.22%{transform:translateX(-67.83px) scaleX(0.4)}98.72%,100%{transform:translateX(-67.83px) scaleX(1)} }
@keyframes hx-go-w{0%,45.45%{opacity:1}45.51%,49.94%{opacity:0}50%,95.45%{opacity:1}95.51%,100%{opacity:0} }
@keyframes hx-st-w{0%,45.45%{opacity:0}45.51%,49.94%{opacity:1}50%,95.45%{opacity:0}95.51%,100%{opacity:1} }
@keyframes hx-wk-mc{0%{transform:translateX(128.21px) scaleX(-1)}46.77%,48.06%{transform:translateX(-12.82px) scaleX(-1)}48.58%{transform:translateX(-12.82px) scaleX(-0.3)}48.6%{transform:translateX(-12.82px) scaleX(0.3)}49.14%,50%{transform:translateX(-12.82px) scaleX(1)}96.77%,98.06%{transform:translateX(128.21px) scaleX(1)}98.58%{transform:translateX(128.21px) scaleX(0.3)}98.6%{transform:translateX(128.21px) scaleX(-0.3)}99.14%,100%{transform:translateX(128.21px) scaleX(-1)} }
@keyframes hx-go-mc{0%,46.77%{opacity:1}46.81%,49.96%{opacity:0}50%,96.77%{opacity:1}96.81%,100%{opacity:0} }
@keyframes hx-st-mc{0%,46.77%{opacity:0}46.81%,49.96%{opacity:1}50%,96.77%{opacity:0}96.81%,100%{opacity:1} }
@keyframes hx-wk-mg{0%{transform:translateX(-71.43px) scaleX(1)}44.74%,47.09%{transform:translateX(96.64px) scaleX(1)}47.82%{transform:translateX(96.64px) scaleX(0.2)}47.84%{transform:translateX(96.64px) scaleX(-0.2)}48.59%,50%{transform:translateX(96.64px) scaleX(-1)}94.74%,97.09%{transform:translateX(-71.43px) scaleX(-1)}97.82%{transform:translateX(-71.43px) scaleX(-0.2)}97.84%{transform:translateX(-71.43px) scaleX(0.2)}98.59%,100%{transform:translateX(-71.43px) scaleX(1)} }
@keyframes hx-go-mg{0%,44.74%{opacity:1}44.78%,49.96%{opacity:0}50%,94.74%{opacity:1}94.78%,100%{opacity:0} }
@keyframes hx-st-mg{0%,44.74%{opacity:0}44.78%,49.96%{opacity:1}50%,94.74%{opacity:0}94.78%,100%{opacity:1} }
@keyframes hx-sway{from{transform:rotate(-6deg)}to{transform:rotate(6deg)} }
/* the standing donkeys: the dozing one lifts its head a little, the small one puts its head down to sniff the paving,
   the mule flicks an ear; all three swish their tails, each on its own time */
.hx-town .wk-hd1{animation:hx-lift 17s ease-in-out -6s infinite}
.hx-town .wk-hd3{animation:hx-sniff 21s ease-in-out -2s infinite}
.hx-town .wk-er{animation:hx-flick 7.3s ease-in-out -1.1s infinite}
.hx-town .wk-tl1{animation:hx-swish 9.2s ease-in-out -3s infinite}
.hx-town .wk-tl2{animation:hx-swish 12.6s ease-in-out -8.4s infinite}
.hx-town .wk-tl3{animation:hx-swish 10.4s ease-in-out -5.7s infinite}
@keyframes hx-lift{0%,62%,100%{transform:rotate(0)}70%,84%{transform:rotate(-8deg)} }
@keyframes hx-sniff{0%,55%,100%{transform:rotate(0)}62%,80%{transform:rotate(16deg)} }
@keyframes hx-flick{0%,88%,100%{transform:rotate(0)}91%{transform:rotate(-30deg)}95%{transform:rotate(6deg)} }
@keyframes hx-swish{0%,80%,100%{transform:rotate(0)}84%{transform:rotate(18deg)}88%{transform:rotate(-12deg)}92%{transform:rotate(9deg)}96%{transform:rotate(-3deg)} }

/* the town's reflections in the water (step 8c, town-reflections.svg): they shimmer slowly, as v1's did, with its timings:
   the columns (rf1) and the rows (rf2) each drift about a unit and a half sideways and stretch a little downward from the
   waterline (y 410), on their own time, so they never move as one piece. The pause switch and reduced motion stop them. */
.hx-town :is(.rf1,.rf2){transform-box:view-box;transform-origin:0 410px}
.hx-town .rf1{animation:hx-shimmer 3.4s ease-in-out infinite}
.hx-town .rf2{animation:hx-shimmer 2.7s ease-in-out -1.1s infinite reverse}

/* the lit windows' lights in the water (step 8d, water-lights.svg): warm dashes in the windows' own color, hidden by day.
   At night each comes on with its own window: scene.js gives it the window's lit state and delay (--d), and it fades in
   as the window does, and out with the day. They are in an rf1 group, so they shimmer with the town's reflections and
   stay on the pale dashes they cover; the pause switch and reduced motion stop them. */
.hx-town .wl{opacity:0;visibility:hidden;transition:opacity 1.2s,visibility 0s 1.2s}
.hx[data-tone="night"] .hx-town .wl.lit{opacity:1;visibility:visible;transition:opacity .5s var(--d,0s),visibility 0s var(--d,0s)}
.hx-town .wl path{fill:none;stroke:var(--hx-glow);stroke-linecap:round}

/* dev helpers: ?guides=1 and ?solo=layer */
.hx-guides{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.hx-guides line{stroke:#E0457B;stroke-width:1;stroke-dasharray:6 6;vector-effect:non-scaling-stroke}
.hx-guides text{fill:#E0457B;font:600 13px system-ui,sans-serif}
@media (prefers-reduced-motion:reduce){.hx-town *{animation:none!important;transition:none!important}}

/* depth tiers: the trick that made example-v1 read as deep. Same values it used.
   Put class="z1".."z5" on a <g>; only the ink gets lighter and thinner, the paper fill stays solid
   so nearer houses still hide what is behind them. z1 = farthest ridge, z5 = front row. */
.hx-town .z1 :is(.l,.t){stroke-width:.7;stroke-opacity:.3}
.hx-town .z1 .k{fill-opacity:.3}
.hx-town .z2 :is(.l,.t){stroke-width:.65;stroke-opacity:.48}
.hx-town .z2 :is(.k,.win){fill-opacity:.66}
.hx-town .z3 :is(.l,.t){stroke-width:.75;stroke-opacity:.62}
.hx-town .z3 :is(.k,.win){fill-opacity:.82}
.hx-town .z4 .l{stroke-width:1.1;stroke-opacity:.9}
.hx-town .z4 .t{stroke-width:.85;stroke-opacity:.8}
.hx-town .z5 .l{stroke-width:1.6}
.hx-town .z5 .t{stroke-width:1.1;stroke-opacity:.85}

/* the night look of the solid ink (step 8a). At night the ink turns pale on navy, so the solid ink (k) would turn into
   solid pale shapes: the trees into white puffs, the ferry's hull into a pale block, the shops into pale strips. Instead
   it stays dark at night (the sea's navy) with a pale outline, as v1 draws its dark shapes. The outline has the weight
   of its tier's main line, a step stronger in the far tiers (z2 like z3's lines, z3 like z4's thin ones), where the
   shapes would fade out once they lose their solid fill.
   The paper details drawn on it (fk: the ferry's white lines, the people, posts and frames in the shops and cafes)
   turn pale at night, so they read on the dark as they do by day.
   Kept pale at night, as they were: the farthest tier (z1: the hills' ridge trees, the court's surface), the faces of
   the mole and the quays (their stones are paper on a solid body: a dark body would hide them, the pale joints read as
   line work), the walkers (pale figures read at their 8 px, an outline would hollow them), the lamps, the marker, and
   the narrow marks (mark: hill D's clefts and chips, the rocks' cracks, P2's awning stripes), which an outline would
   turn into double lines. Nothing changes by day: there the outline has no width (a transparent stroke with a width
   still shifts Chrome's anti-aliasing on nearby edges). --hx-kw is the outline's width at night, by tier. */
.hx-town .z2 .k{--hx-kw:.75;stroke-opacity:.62}
.hx-town .z3 .k{--hx-kw:.85;stroke-opacity:.8}
.hx-town .z4 .k{--hx-kw:1.1;stroke-opacity:.9}
.hx-town .z5 .k{--hx-kw:1.6}
.hx[data-tone="night"] .hx-town :is(.z2,.z3,.z4,.z5) .k:not(.lamp,.mark,[data-layer=walkers] *,[data-layer=quay] *,[data-layer=breakwater] *){fill:var(--hx-sea);fill-opacity:1;stroke:var(--hx-ink);stroke-width:var(--hx-kw)}
.hx[data-tone="night"] .hx-town .fk{fill:var(--hx-ink)}
