/* The city on the homepage. Colours are variables so the city turns into a night city in dark mode. */

:root {
  --c-ground: #e4ece1;
  --c-slab-l: #d4ddd0;
  --c-slab-r: #c3cebf;
  --c-road: #e1e5e9;
  --c-mark: #ffffff;
  --c-walk: #fbfbfc;
  --c-curb-l: #edf0f2;
  --c-curb-r: #dfe4e8;
  --c-lawn: #dbead3;
  --c-plaza: #f0f2f4;
  --c-plaza-line: #e2e6ea;
  --c-lawn-stripe: #d1e4c7;
  --c-path: #f3eee4;
  --c-water: #cde2f1;
  --c-top: #ffffff;
  --c-left: #f1f4f7;
  --c-right: #e2e7ed;
  --c-edge: rgba(110, 126, 142, 0.3);
  --c-roof-lit: #fbfcfd;
  --c-roof-shade: #e6eaef;
  --c-glass: #d2e0ee;
  --c-glass-r: #c1d2e4;
  --c-glass-off: #d2e0ee;
  --c-tree: #b9d6ae;
  --c-tree-hi: #d3e8ca;
  --c-shadow: rgba(60, 80, 100, 0.1);
  --c-hot: #dff0e5;
  --c-lamp: #fff2c4;
  --c-cloud: #ffffff;
  --c-cloud-shadow: rgba(60, 80, 100, 0.07);
  --c-label: #ffffff;
  --c-label-edge: rgba(29, 42, 34, 0.1);
  --c-legs: #4a5560;
  --c-ballast: #d6d0c6;
  --c-sleeper: #b8a995;
  --c-rail: #8f99a3;
  --c-pitch: #cde5c1;
  --c-parking: #e7eaed;
  --c-edge-line: #f2d27a;
  --c-cw-l: #cddff0;
  --c-cw-r: #b7cbe1;
  --c-span-l: #eef2f6;
  --c-span-r: #dde3ea;
  --c-mull: #ffffff;
  --c-fin-l: #ffffff;
  --c-fin-r: #eef2f6;
  --c-lit-l: transparent;
  --c-lit-r: transparent;
  --c-win-b-l: var(--c-glass);
  --c-win-b-r: var(--c-glass-r);
  --c-rail-glass: rgba(205, 225, 240, 0.85);
  --c-ribbon: #4c6176;
  --c-night: transparent;
  --c-garden: #cfe5c4;
  --c-shell: #f3efe7;
  --c-shell-edge: #e2dbcf;
  --c-band: #6b737b;
  --wtc-1: #e9e65c;
  --wtc-2: #b6dc6b;
  --wtc-3: #6ec98f;
  --wtc-4: #49b3a4;
  --wtc-g1: #4a545e;
  --wtc-g2: #2a3138;
  --wtc-bl1: #e2eff9;
  --wtc-bl2: #a9d0f0;
  --wtc-bl3: #3f92d8;
  --wtc-br1: #d2e5f4;
  --wtc-br2: #92bfe6;
  --wtc-br3: #2f7fc4;
  --c-strip: #3d5266;
  --c-b0: #6f9fd2;
  --c-b1: #7dabd9;
  --c-b2: #8ab6df;
  --c-b3: #97c1e6;
  --c-b-top: #dbe9f6;
  --c-floor-w: rgba(255, 255, 255, 0.78);
  --c-hill-0: #d6eac8;
  --c-hill-1: #cfe6bf;
  --c-hill-2: #c8e1b6;
  --c-hill-3: #c1dcad;
  --c-hill-4: #b9d7a4;
  --c-hill-5: #b2d29b;
  --c-hill-6: #aacc92;
  --c-hill-7: #a2c689;
  --c-hill-wall-l: #9cc287;
  --c-hill-wall-r: #8ab477;
  --c-hill-path: #f4eddd;
  --c-stone-wall: #d9d2c6;
  --c-river: #a9d0e8;
  --c-river-side: #8dbcd9;
  --c-quay: #d3d8dc;
  --c-quay-r: #c3c9ce;
  --c-bank: #d6e8ca;
  --c-bank-path: #efe7d6;
  --c-wave: rgba(255, 255, 255, 0.8);
  --c-fall: #e3f2fa;
  --c-market: #f2e8d8;
  --c-sand: #f1e0b6;
  --c-steel: #5f7f9c;
  --c-hall: #d3e3f0;
  --c-hall-r: #bfd3e5;
  --c-shell-0: #f7f3ec;
  --c-shell-1: #eee8dd;
  --c-shell-2: #e4ddd0;
  --c-stairs: #5d646d;
  --c-church-win: #8297ab;
  --c-bike: #e3b0a8;
  --c-kade: #d9a47f;
  --c-kade-line: rgba(140, 80, 50, 0.28);
  --c-kade-wall: #b3a99b;
  --c-kade-low: #948b7f;
  --c-coping: #f1e9db;
  --c-wood-t: #e6cfae;
  --c-wood-l: #d8b98f;
  --c-wood-r: #c6a47a;
  --c-warm: #f6d9a3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-ground: #1b251f;
    --c-slab-l: #17201a;
    --c-slab-r: #111813;
    --c-road: #252d33;
    --c-mark: #46515a;
    --c-walk: #30393f;
    --c-curb-l: #293136;
    --c-curb-r: #21282d;
    --c-lawn: #21322a;
    --c-plaza: #2a3238;
    --c-plaza-line: #333c43;
    --c-lawn-stripe: #1d2e25;
    --c-path: #36362f;
    --c-water: #1f3749;
    --c-top: #4a5562;
    --c-left: #3c4652;
    --c-right: #2f3842;
    --c-edge: rgba(0, 0, 0, 0.35);
    --c-roof-lit: #46515d;
    --c-roof-shade: #343d47;
    --c-glass: #f2c56b;
    --c-glass-r: #dcab52;
    --c-glass-off: #2b3440;
    --c-tree: #33553e;
    --c-tree-hi: #426c4e;
    --c-shadow: rgba(0, 0, 0, 0.28);
    --c-hot: #2e5a43;
    --c-lamp: #ffd98a;
    --c-cloud: #8a97a4;
    --c-cloud-alpha: 0.3;
    --c-cloud-shadow: rgba(0, 0, 0, 0.12);
    --c-label: #22302a;
    --c-label-edge: rgba(255, 255, 255, 0.1);
    --c-legs: #1e252b;
    --c-ballast: #3a3631;
    --c-sleeper: #4e463c;
    --c-rail: #6c7680;
    --c-pitch: #24402e;
    --c-parking: #2b3238;
    --c-edge-line: #b89a4a;
    --c-cw-l: #273444;
    --c-cw-r: #202b38;
    --c-span-l: #3c4652;
    --c-span-r: #2f3842;
    --c-mull: #4b5663;
    --c-fin-l: #4a5562;
    --c-fin-r: #3c4652;
    --c-lit-l: #f2c56b;
    --c-lit-r: #dcab52;
    --c-win-b-l: #f2c56b;
    --c-win-b-r: #dcab52;
    --c-rail-glass: rgba(120, 140, 160, 0.5);
    --c-ribbon: #e2b45f;
    --c-night: #e9b965;
    --c-garden: #2f4a36;
    --c-shell: #59606a;
    --c-shell-edge: #464c55;
    --c-band: #3a4047;
    --wtc-1: #8a8a3c;
    --wtc-2: #6c8a45;
    --wtc-3: #3f7a57;
    --wtc-4: #2e6a62;
    --wtc-g1: #262d33;
    --wtc-g2: #161b20;
    --wtc-bl1: #34506b;
    --wtc-bl2: #2a4560;
    --wtc-bl3: #1d3a5c;
    --wtc-br1: #2b445c;
    --wtc-br2: #233b53;
    --wtc-br3: #18324f;
    --c-strip: #f0c060;
    --c-b0: #213a55;
    --c-b1: #25415f;
    --c-b2: #294868;
    --c-b3: #2e5072;
    --c-b-top: #3b5168;
    --c-floor-w: rgba(255, 255, 255, 0.12);
    --c-hill-0: #2d4735;
    --c-hill-1: #2a4332;
    --c-hill-2: #27402f;
    --c-hill-3: #253c2c;
    --c-hill-4: #223929;
    --c-hill-5: #203526;
    --c-hill-6: #1d3224;
    --c-hill-7: #1b2f21;
    --c-hill-wall-l: #1d2f22;
    --c-hill-wall-r: #18281d;
    --c-hill-path: #46473d;
    --c-stone-wall: #4b4841;
    --c-river: #1b3347;
    --c-river-side: #142738;
    --c-quay: #2b3136;
    --c-quay-r: #232a2e;
    --c-bank: #1c2b20;
    --c-bank-path: #33352e;
    --c-wave: rgba(140, 180, 210, 0.35);
    --c-fall: #3b6b8c;
    --c-market: #302c26;
    --c-sand: #4a4334;
    --c-steel: #8aa6c0;
    --c-hall: #f2c56b;
    --c-hall-r: #dcab52;
    --c-shell-0: #5f666f;
    --c-shell-1: #555c65;
    --c-shell-2: #4b525a;
    --c-stairs: #15191c;
    --c-church-win: #e9b965;
    --c-bike: #5b3a36;
    --c-kade: #6a4a3a;
    --c-kade-line: rgba(0, 0, 0, 0.25);
    --c-kade-wall: #4a4640;
    --c-kade-low: #3a3732;
    --c-coping: #7a756c;
    --c-pale-t: #5a5f66;
    --c-pale-l: #4c5157;
    --c-pale-r: #3f4449;
    --c-wood-t: #6b5a45;
    --c-wood-l: #5d4c39;
    --c-wood-r: #4f402f;
    --c-warm: #f2b45a;
  }
}
:root[data-theme="dark"] {
    --c-ground: #1b251f;
    --c-slab-l: #17201a;
    --c-slab-r: #111813;
    --c-road: #252d33;
    --c-mark: #46515a;
    --c-walk: #30393f;
    --c-curb-l: #293136;
    --c-curb-r: #21282d;
    --c-lawn: #21322a;
    --c-plaza: #2a3238;
    --c-plaza-line: #333c43;
    --c-lawn-stripe: #1d2e25;
    --c-path: #36362f;
    --c-water: #1f3749;
    --c-top: #4a5562;
    --c-left: #3c4652;
    --c-right: #2f3842;
    --c-edge: rgba(0, 0, 0, 0.35);
    --c-roof-lit: #46515d;
    --c-roof-shade: #343d47;
    --c-glass: #f2c56b;
    --c-glass-r: #dcab52;
    --c-glass-off: #2b3440;
    --c-tree: #33553e;
    --c-tree-hi: #426c4e;
    --c-shadow: rgba(0, 0, 0, 0.28);
    --c-hot: #2e5a43;
    --c-lamp: #ffd98a;
    --c-cloud: #8a97a4;
    --c-cloud-alpha: 0.3;
    --c-cloud-shadow: rgba(0, 0, 0, 0.12);
    --c-label: #22302a;
    --c-label-edge: rgba(255, 255, 255, 0.1);
    --c-legs: #1e252b;
    --c-ballast: #3a3631;
    --c-sleeper: #4e463c;
    --c-rail: #6c7680;
    --c-pitch: #24402e;
    --c-parking: #2b3238;
    --c-edge-line: #b89a4a;
    --c-cw-l: #273444;
    --c-cw-r: #202b38;
    --c-span-l: #3c4652;
    --c-span-r: #2f3842;
    --c-mull: #4b5663;
    --c-fin-l: #4a5562;
    --c-fin-r: #3c4652;
    --c-lit-l: #f2c56b;
    --c-lit-r: #dcab52;
    --c-win-b-l: #f2c56b;
    --c-win-b-r: #dcab52;
    --c-rail-glass: rgba(120, 140, 160, 0.5);
    --c-ribbon: #e2b45f;
    --c-night: #e9b965;
    --c-garden: #2f4a36;
    --c-shell: #59606a;
    --c-shell-edge: #464c55;
    --c-band: #3a4047;
    --wtc-1: #8a8a3c;
    --wtc-2: #6c8a45;
    --wtc-3: #3f7a57;
    --wtc-4: #2e6a62;
    --wtc-g1: #262d33;
    --wtc-g2: #161b20;
    --wtc-bl1: #34506b;
    --wtc-bl2: #2a4560;
    --wtc-bl3: #1d3a5c;
    --wtc-br1: #2b445c;
    --wtc-br2: #233b53;
    --wtc-br3: #18324f;
    --c-strip: #f0c060;
    --c-b0: #213a55;
    --c-b1: #25415f;
    --c-b2: #294868;
    --c-b3: #2e5072;
    --c-b-top: #3b5168;
    --c-floor-w: rgba(255, 255, 255, 0.12);
    --c-hill-0: #2d4735;
    --c-hill-1: #2a4332;
    --c-hill-2: #27402f;
    --c-hill-3: #253c2c;
    --c-hill-4: #223929;
    --c-hill-5: #203526;
    --c-hill-6: #1d3224;
    --c-hill-7: #1b2f21;
    --c-hill-wall-l: #1d2f22;
    --c-hill-wall-r: #18281d;
    --c-hill-path: #46473d;
    --c-stone-wall: #4b4841;
    --c-river: #1b3347;
    --c-river-side: #142738;
    --c-quay: #2b3136;
    --c-quay-r: #232a2e;
    --c-bank: #1c2b20;
    --c-bank-path: #33352e;
    --c-wave: rgba(140, 180, 210, 0.35);
    --c-fall: #3b6b8c;
    --c-market: #302c26;
    --c-sand: #4a4334;
    --c-steel: #8aa6c0;
    --c-hall: #f2c56b;
    --c-hall-r: #dcab52;
    --c-shell-0: #5f666f;
    --c-shell-1: #555c65;
    --c-shell-2: #4b525a;
    --c-stairs: #15191c;
    --c-church-win: #e9b965;
    --c-bike: #5b3a36;
    --c-kade: #6a4a3a;
    --c-kade-line: rgba(0, 0, 0, 0.25);
    --c-kade-wall: #4a4640;
    --c-kade-low: #3a3732;
    --c-coping: #7a756c;
    --c-pale-t: #5a5f66;
    --c-pale-l: #4c5157;
    --c-pale-r: #3f4449;
    --c-wood-t: #6b5a45;
    --c-wood-l: #5d4c39;
    --c-wood-r: #4f402f;
    --c-warm: #f2b45a;
  }


/* Hero layout */

.city-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 62% 55%, var(--surface) 0%, var(--bg) 70%);
}
.city-stage { position: relative; }
.city-stage svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.city-ground { pointer-events: none; }
/* Separate layers: the ground is rasterised once, and moving things only repaint the layer on top. */
.city-stage svg { will-change: transform; }
/* The camera boxes only move the drawings; the city SVG itself takes the pointer. */
.city-cam { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; pointer-events: none; }
.city-cam > #city { pointer-events: auto; }
.city-tools { position: absolute; z-index: 2; right: max(1rem, calc((100vw - 80rem) / 2)); top: 1rem; display: flex; gap: 0.5rem; }
.city-tool, .copy-hide {
  padding: 0.4rem 0.85rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.city-tool:hover, .copy-hide:hover, .city-tool:focus-visible, .copy-hide:focus-visible { border-color: var(--accent); color: var(--accent); }
.city-tool:focus-visible, .copy-hide:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.city-tool[hidden], .copy-hide[hidden] { display: none; }
.tool-icon { display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.4em; border-radius: 50%; vertical-align: -0.05em; background: #f0b93c; box-shadow: 0 0 0 2px color-mix(in srgb, #f0b93c 35%, transparent); }
#themeToggle[data-mode="day"] .tool-icon { background: transparent; box-shadow: inset -0.28em -0.12em 0 0 #6f7fa8; }
.copy-hide { position: absolute; top: 0.9rem; right: 0.9rem; padding: 0.25rem 0.7rem; pointer-events: auto; }
.city-copy .lead { margin-top: 0.75rem; }
.city-copy { transition: opacity 0.4s ease; }
.city-hero.zoomed .city-copy { opacity: 0; }

.explore { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.25rem 0 0; padding: 0; }
.explore a {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.explore a:hover, .explore a.hot, .explore a:focus-visible { border-color: var(--accent); color: var(--accent); }
.explore a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.scroll-cue { margin: 1.25rem 0 0; font-size: 0.9375rem; }
.scroll-cue a { color: var(--muted); }

@media (min-width: 56.25rem) {
  .city-hero { height: clamp(36rem, calc(100svh - 3.6rem), 62rem); }
  .city-stage { position: absolute; inset: 0; }
  .city-copy {
    position: absolute;
    z-index: 1;
    top: clamp(1.25rem, 5vh, 3.5rem);
    left: max(1.5rem, calc((100vw - 80rem) / 2));
    width: min(26rem, 33vw);
    padding: 1.5rem 1.5rem 1.25rem;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(20, 30, 25, 0.08);
    backdrop-filter: blur(10px);
    pointer-events: none;
  }
  .city-copy a, .city-copy button { pointer-events: auto; }
  .city-copy { transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s; }
  .city-hero.copy-hidden .city-copy, .city-hero.walking .city-copy { opacity: 0; visibility: hidden; transform: translateY(-10px); }
}
@media (max-width: 56.24rem) {
  .walk-hint { width: max-content; max-width: calc(100% - 2rem); bottom: 3.6rem; white-space: normal; text-align: center; }
  .copy-hide, #copyShow { display: none; }
  .city-tools { top: auto; bottom: 0.75rem; right: 0.75rem; }
}

@media (max-width: 56.24rem) {
  .city-copy { padding: 1.5rem 1rem 0; }
  .city-stage { aspect-ratio: 1660 / 1270; }
}

.city-copy > * { animation: copy-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.city-copy > :nth-child(2) { animation-delay: 0.08s; }
.city-copy > :nth-child(3) { animation-delay: 0.16s; }
.city-copy > :nth-child(4) { animation-delay: 0.6s; }
.city-copy > :nth-child(5) { animation-delay: 0.9s; }
@keyframes copy-in { from { opacity: 0; transform: translateY(12px); } }

/* The drawing */

.city polygon { stroke-linejoin: round; }
.city .item polygon { stroke: var(--c-edge); stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.ground { opacity: 0; transition: opacity 0.8s ease; }
.ground.on { opacity: 1; }

.slab-top { fill: var(--c-ground); }
.slab-l { fill: var(--c-slab-l); }
.slab-r { fill: var(--c-slab-r); }
.road { fill: var(--c-road); }
.mark { stroke: var(--c-mark); stroke-width: 1.4; stroke-dasharray: 7 7; stroke-linecap: round; }
.zebra { fill: var(--c-mark); }
.walk { fill: var(--c-walk); }
.curb-l { fill: var(--c-curb-l); }
.curb-r { fill: var(--c-curb-r); }
.lawn { fill: var(--c-lawn); }
.plaza { fill: var(--c-plaza); }
.plaza-line { stroke: var(--c-plaza-line); stroke-width: 0.9; fill: none; }
.lawn-stripe { fill: var(--c-lawn-stripe); }
.bin { --t: #55645b; --l: #48564e; --r: #3c4841; }
.hatch { --t: #c9ced3; --l: #b8bec4; --r: #a7aeb5; }
.duck { fill: #fbfaf5; }
.duck-head { fill: #3f7a52; }
.buoy-r { fill: #d9534f; --t: #d9534f; --l: #c74844; --r: #b23f3b; }
.buoy-g { fill: #3f9b6b; --t: #3f9b6b; --l: #378a5e; --r: #2f7751; }
.reed { stroke: #9bb56f; stroke-width: 1.1; }
.path { fill: var(--c-path); }
.water { fill: var(--c-water); stroke: var(--c-edge); stroke-width: 0.8; }
.shadow { fill: var(--c-shadow); }

.f-top { fill: var(--t, var(--c-top)); }
.f-left { fill: var(--l, var(--c-left)); }
.f-right { fill: var(--r, var(--c-right)); }
.r-lit { fill: var(--t, var(--c-roof-lit)); }
.r-shade { fill: var(--r, var(--c-roof-shade)); }
.glass { fill: var(--c-glass); }
.glass-r { fill: var(--c-glass-r); }
.glass.off, .glass-r.off { fill: var(--c-glass-off); }
.vent { fill: var(--c-right); }
.door { fill: var(--c-right); }
.accent { fill: var(--accent); }
.trunk { --t: #cdb79e; --l: #c2ab90; --r: #b19a7f; }
.hedge { --t: #b6d3aa; --l: #a6c79a; --r: #95b889; }
.crate { --t: #e9d9bf; --l: #dcc9aa; --r: #cbb695; }
.bench { --t: #d9c3a5; --l: #cbb393; --r: #b9a080; }
.mailbox, .awning, .umbrella { --t: var(--accent); --l: var(--accent); --r: var(--accent); }
.tree { fill: var(--c-tree); }
.tree-hi { fill: var(--c-tree-hi); }
.mast { stroke: var(--c-edge); stroke-width: 1.6; stroke-linecap: round; }
.city .mast { stroke: #aab4bf; }
.beacon { fill: #e05d5d; }
.lamp { fill: var(--c-lamp); }
.fan { fill: var(--c-right); }

/* Landmarks */

.bld { cursor: pointer; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bld.hot { transform: translateY(-6px); }
.bld.hot .f-top, .bld.hot .r-lit { fill: var(--c-hot); }
/* The 3D view: the WebGL canvas draws the city; the SVG above it keeps the labels and the
   (invisible) shapes that find the building under the pointer. */
.city-gl { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; }
.city-hero.gl .city-gl { opacity: 1; }
/* While the 3D view loads at the start (gl-wait), the drawing stays hidden too. */
.city-hero.gl .city-ground, .city-hero.gl .city-veil, .city-hero.gl .city-focus,
.city-hero.gl .city .mv, .city-hero.gl .city .cloud,
.city-hero.gl-wait .city-ground, .city-hero.gl-wait .city .mv, .city-hero.gl-wait .city .cloud { display: none; }
.city-hero.gl .city .item, .city-hero.gl-wait .city .item { visibility: hidden; }
.city-hero.gl .city .bld { pointer-events: all; }
#gfxToggle[data-mode="real"] { border-color: var(--accent); }
#gfxToggle[aria-busy="true"] { cursor: progress; opacity: 0.7; }

/* Walking: a hint at the bottom, and a button above the dino at a landmark's door. */
#walkToggle[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.walk-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.45rem 0.95rem;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg);
  font-size: 0.875rem;
  white-space: nowrap;
  pointer-events: none;
}
.walk-enter {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  padding: 0.4rem 0.85rem;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(20, 30, 25, 0.2);
  color: var(--accent-fg);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.walk-enter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.walk-hint { transition: opacity 0.8s ease; }
.walk-hint.faded { opacity: 0; }
.walk-hint[hidden], .walk-enter[hidden] { display: none; }
.city-hero.walking #copyShow { display: none; }
.city-hero.walking .city-stage { cursor: pointer; }

.city-veil { position: absolute; inset: 0; background: var(--bg); opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.city-hero.zoomed .city-veil { opacity: 0.45; }
.city-focus { pointer-events: none; }

.lbl { cursor: pointer; opacity: 0; transform: translateY(10px) scale(0.85); transform-box: fill-box; transform-origin: 50% 100%; transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 1.4, 0.4, 1); }
.lbl.show { opacity: 1; transform: none; }
.city.zoomed .lbl { opacity: 0; pointer-events: none; transition: none; }
.lbl-pin { display: none; fill: var(--accent); stroke: var(--c-label); stroke-width: 2; }
.city.compact .lbl-bg, .city.compact .lbl-text, .city.compact .lbl-dot { display: none; }
.city.compact .lbl-pin { display: inline; }
.city.compact .lbl-tip { fill: var(--accent); }
.lbl.hot .lbl-bob { animation: bob 0.9s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-4px); } }
.lbl-bg { fill: var(--c-label); stroke: var(--c-label-edge); stroke-width: 1; }
.lbl-tip { fill: var(--c-label); }
.lbl-dot { fill: var(--accent); }
.lbl-text { fill: var(--fg); font-size: 13px; font-weight: 600; font-family: inherit; }
.lbl.hot .lbl-bg, .lbl.hot .lbl-tip { fill: var(--accent); stroke: var(--accent); }
.lbl.hot .lbl-text { fill: var(--accent-fg); }
.lbl.hot .lbl-dot { fill: var(--accent-fg); }

/* Traffic, people and clouds */

.mv { opacity: 0; transition: opacity 0.9s ease; pointer-events: none; }
.city.alive .mv { opacity: 1; }
.cb { --t: #ffffff; --l: #eef1f4; --r: #dce2e8; }
.c1 .cb { --t: #3a8f5d; --l: #2f7d4f; --r: #276a43; }
.c2 .cb { --t: #5b8def; --l: #4c7fd9; --r: #3f6dbf; }
.c3 .cb { --t: #f08a5d; --l: #e07a4f; --r: #c96a43; }
.c5 .cb { --t: #f4c75a; --l: #e8b545; --r: #cf9f37; }
.cabin { --t: #e3ebf3; --l: #cfdcea; --r: #bdcde0; }
.car polygon { stroke: rgba(0, 0, 0, 0.12); stroke-width: 0.5; vector-effect: non-scaling-stroke; }
.p-shadow { fill: var(--c-shadow); }
.p-legs { fill: var(--c-legs); }
.s1 .p-shirt { fill: #2f7d4f; }
.s2 .p-shirt { fill: #4c7fd9; }
.s3 .p-shirt { fill: #e07a4f; }
.s4 .p-shirt { fill: #8e6cc9; }
.s5 .p-shirt { fill: #f0bb3c; }
.s6 .p-shirt { fill: #d9577a; }
.k1 .p-head { fill: #f2cfae; }
.k2 .p-head { fill: #d9a679; }
.k3 .p-head { fill: #a8714a; }
.k4 .p-head { fill: #6e4a33; }
.ballast { fill: var(--c-ballast); }
.sleeper { fill: var(--c-sleeper); }
.rail { stroke: var(--c-rail); stroke-width: 1.6; }
.platform-edge { fill: var(--c-edge-line); }
.pitch { fill: var(--c-pitch); }
.pitch-line { stroke: #ffffff; stroke-opacity: 0.8; stroke-width: 1.1; }
.parking { fill: var(--c-parking); }
.bay { stroke: #ffffff; stroke-opacity: 0.85; stroke-width: 1; }
.tunnel { fill: #3b4148; }
.clock { fill: #ffffff; stroke: var(--accent); stroke-width: 1; }
.city .item .clock { stroke: var(--accent); stroke-width: 1; }
.store-sign { fill: #e8673f; }
.sign-text { fill: #ffffff; font-weight: 700; font-family: inherit; letter-spacing: 0.01em; }
.awning-2 { --t: #e8673f; }
.awning-3 { --t: #4c7fd9; }
.chimney { --t: #e2cfc0; --l: #d6c0ae; --r: #c4ac98; }
.tank { --t: #eef1f4; --l: #e3e8ed; --r: #d3dae1; }
.goal { stroke: #ffffff; stroke-width: 1.4; stroke-linecap: round; }
.shelter { fill: var(--c-glass); fill-opacity: 0.75; }
.shelter-roof { --t: #f4f6f8; --l: #e6eaee; --r: #d8dee4; }
.stop-sign { fill: var(--accent); }
.bus polygon, .train polygon { stroke: rgba(0, 0, 0, 0.14); stroke-width: 0.5; vector-effect: non-scaling-stroke; }
.train { pointer-events: none; }
.train .cb { --t: #f7f8fa; --l: #e8ecf0; --r: #d5dce3; }
.train .bogie { --t: #5b646d; --l: #4c555d; --r: #40474e; }
/* Facade patterns (one polygon per wall) and their panes */
.pat-cw-l { fill: var(--c-cw-l); }
.pat-cw-r { fill: var(--c-cw-r); }
.pat-lit-l { fill: var(--c-lit-l); }
.pat-lit-r { fill: var(--c-lit-r); }
.pat-span-l { fill: var(--c-span-l); }
.pat-span-r { fill: var(--c-span-r); }
.pat-mull { fill: var(--c-mull); }
.pat-fin-l { fill: var(--c-fin-l); }
.pat-fin-r { fill: var(--c-fin-r); }
.pat-wall-l, .pat-slab-l { fill: var(--c-left); }
.pat-wall-r, .pat-slab-r { fill: var(--c-right); }
.pat-win-l.pat-a { fill: var(--c-glass-off); }
.pat-win-r.pat-a { fill: var(--c-glass-off); }
.pat-win-l.pat-b { fill: var(--c-win-b-l); }
.pat-win-r.pat-b { fill: var(--c-win-b-r); }
.pat-sill { fill: var(--c-right); }
.pat-rail { fill: var(--c-rail-glass); }
.roof-garden { fill: var(--c-garden); }
.helipad { fill: #5a636c; }
.helipad-mark { fill: none; stroke: #ffffff; stroke-width: 1.2; }
/* Curved buildings: facets shaded by the way they face */
.w0 { fill: var(--c-right); }
.w1 { fill: color-mix(in srgb, var(--c-right) 65%, var(--c-left)); }
.w2 { fill: color-mix(in srgb, var(--c-right) 35%, var(--c-left)); }
.w3 { fill: var(--c-left); }
.g0 { fill: var(--c-cw-r); }
.g1 { fill: color-mix(in srgb, var(--c-cw-r) 65%, var(--c-cw-l)); }
.g2 { fill: color-mix(in srgb, var(--c-cw-r) 35%, var(--c-cw-l)); }
.g3 { fill: var(--c-cw-l); }
.g-top { fill: var(--c-top); }
.floor-band { fill: var(--c-span-l); }
.night-lit { fill: var(--c-night); }
.ribbon { fill: var(--c-ribbon); }
.ribbon.off { fill: var(--c-glass-off); }
/* WTC Arnhem and Arnhem Centraal */
.wtc-win { fill: rgba(40, 70, 90, 0.42); }
.wtc-mullion { stroke: #e6f0f8; stroke-width: 1; }
.wtc-side { fill: rgba(0, 30, 35, 0.13); }
.wtc-line { fill: rgba(255, 255, 255, 0.7); }
.st-wtc1 { stop-color: var(--wtc-1); }
.st-wtc2 { stop-color: var(--wtc-2); }
.st-wtc3 { stop-color: var(--wtc-3); }
.st-wtc4 { stop-color: var(--wtc-4); }
.st-glass1 { stop-color: var(--wtc-g1); }
.st-glass2 { stop-color: var(--wtc-g2); }
.shell { fill: var(--c-shell); stroke: var(--c-shell-edge); stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.shell-edge, .shell-end { fill: var(--c-shell-edge); }
.seam { fill: none; stroke: var(--c-shell-edge); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.band { fill: var(--c-band); }
/* The cosy corner */
.wood { --t: var(--c-wood-t); --l: var(--c-wood-l); --r: var(--c-wood-r); }
.brick { --t: #d9a48a; --l: #c98f74; --r: #b47b62; }
.warm { fill: var(--c-warm); }
.cafe-sign { fill: #3d5a45; }
.book-sign { fill: #7a3b48; }
.awning-cafe { --t: #3d5a45; }
.umbrella-cafe { --t: #f3ead8; }
.chair { --t: #8a6a4a; --l: #7a5c3f; --r: #6b4f35; }
.table { fill: #ffffff; }
.plant { fill: #7fae6b; }
.pot { --t: #c4835f; --l: #b5734f; --r: #a06444; }
.string { fill: none; stroke: #8a8f96; stroke-width: 0.6; }
.bulb { fill: #ffe7a6; }
.shelf { fill: #6b4a33; }
.shelf-board { fill: #8a6446; }
.bk1 { fill: #c2564b; }
.bk2 { fill: #4f7fbf; }
.bk3 { fill: #e0b04a; }
.bk4 { fill: #2f7d4f; }
.bk5 { fill: #8e6cc9; }
.cloud { fill: var(--c-cloud); fill-opacity: var(--c-cloud-alpha, 0.85); pointer-events: none; }
.cloud-shadow { fill: var(--c-cloud-shadow); }

/* Arnhem: Sonsbeek on its hill, the beek, the Rhine and the bridge */
.hill { stroke-width: 0.6; }
.hill0 { fill: var(--c-hill-0); stroke: var(--c-hill-0); }
.hill1 { fill: var(--c-hill-1); stroke: var(--c-hill-1); }
.hill2 { fill: var(--c-hill-2); stroke: var(--c-hill-2); }
.hill3 { fill: var(--c-hill-3); stroke: var(--c-hill-3); }
.hill4 { fill: var(--c-hill-4); stroke: var(--c-hill-4); }
.hill5 { fill: var(--c-hill-5); stroke: var(--c-hill-5); }
.hill6 { fill: var(--c-hill-6); stroke: var(--c-hill-6); }
.hill7 { fill: var(--c-hill-7); stroke: var(--c-hill-7); }
.hill-wall-l { fill: var(--c-hill-wall-l); stroke: var(--c-hill-wall-l); stroke-width: 0.6; }
.hill-wall-r { fill: var(--c-hill-wall-r); stroke: var(--c-hill-wall-r); stroke-width: 0.6; }
.hill-path { fill: none; stroke: var(--c-hill-path); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.steps { fill: var(--c-hill-path); }
.portal-stone { fill: var(--c-stone-wall); }
.beek { fill: var(--c-river); }
.fall { fill: var(--c-fall); }
.foam { stroke: #ffffff; stroke-opacity: 0.8; stroke-width: 1.2; stroke-dasharray: 3 5; }
.parapet { stroke: #a3acb5; stroke-width: 1.4; stroke-linecap: round; }
.footbridge { fill: var(--c-wood-t); }
.river { fill: var(--c-river); }
.river-side { fill: var(--c-river-side); }
.quay { fill: var(--c-quay); }
.quay-r { fill: var(--c-quay-r); }
.bank { fill: var(--c-bank); }
.bank-path { fill: var(--c-bank-path); }
.wave { stroke: var(--c-wave); stroke-width: 1.4; stroke-linecap: round; }
.crossing { fill: var(--c-road); }
.fence { stroke: #9aa3ad; stroke-width: 1.6; stroke-dasharray: 2 2; }
.sand { fill: var(--c-sand); }
.market-floor { fill: var(--c-market); }
.stairs { fill: var(--c-stairs); }
.step { stroke: #8a9199; stroke-width: 0.8; }
.deck, .stall-table, .post { --t: var(--c-wood-t); --l: var(--c-wood-l); --r: var(--c-wood-r); }
.deck-b { --t: #d7dbdf; --l: #c4c9ce; --r: #b3b9bf; }
.mark-b { fill: none; stroke: #ffffff; stroke-width: 1; stroke-dasharray: 5 5; }
.arch { fill: var(--c-steel); }
.hanger { stroke: var(--c-steel); stroke-width: 1; }
.quay-rail, .bridge-rail, .rail-line { fill: none; stroke: #9aa3ad; stroke-width: 1.1; }
.hull { --t: #ffffff; --l: #eef1f4; --r: #dce2e8; }
.barge .hull { --t: #5c6a78; --l: #4b5866; --r: #3f4b57; }
.box-c1 { --t: #ef8a6b; --l: #e76f51; --r: #cf5f44; }
.box-c2 { --t: #4fb3a6; --l: #2a9d8f; --r: #22877b; }
.box-c3 { --t: #f2d27a; --l: #e9c46a; --r: #d4ae55; }
.sail { fill: #ffffff; }
.cow { --t: #ffffff; --l: #f2f2f0; --r: #e1e1de; }
.cow-head, .cow-leg { --t: #3a3a3a; --l: #2f2f2f; --r: #262626; }
.turf { --t: var(--c-hill-2); --l: var(--c-hill-wall-l); --r: var(--c-hill-wall-r); }
.pine { --t: #8fbf85; --l: #7fb075; --r: #6c9d63; }
.dino { --t: #8cc97a; --l: #74b464; --r: #5f9c51; }
.dino-eye { fill: #1d2a22; }
.wheel { fill: #8a6446; }
.spoke { stroke: #5c4030; stroke-width: 1; }
.lookout { --t: #f6f3ec; --l: #ebe5d9; --r: #d9d1c3; }
.pav-wall { --t: #cfd2d6; --l: #bcc0c5; --r: #aab0b6; }
.pav-glass, .metro-glass, .glass-box { --t: #e2eef7; --l: var(--c-glass); --r: var(--c-glass-r); }
.stall-1 { --t: #e76f51; }
.stall-2 { --t: #2a9d8f; }
.stall-3 { --t: #f4a261; }
.stall-4 { --t: #4c7fd9; }
.stripe { stroke: #ffffff; stroke-opacity: 0.75; stroke-width: 1.4; }
.fruit.f1 { fill: #e05d5d; }
.fruit.f2 { fill: #f0bb3c; }
.fruit.f3 { fill: #7fae6b; }
.fruit.f4 { fill: #f08a5d; }
.kerk { --t: #7f8b97; --r: #6d7884; }
.stone { --t: #ece6dc; --l: #ddd5c8; --r: #cbc2b4; }
.louvre { fill: #6b6255; }
.church-win { fill: var(--c-church-win); }
.spire { --t: #9cc8b6; --l: #86b8a4; --r: #73a591; }
.metro-band { fill: var(--accent); }
.metro-sign { fill: #4c7fd9; stroke: #ffffff; stroke-width: 1; }
.swing, .rope { stroke: #8a8f96; stroke-width: 1.1; }
.slide { --t: #f4a261; --l: #e8914f; --r: #d07e40; }
.art { fill: var(--accent); }
.harbour-light { --t: #ffffff; --l: #e05d5d; --r: #c94a4a; }
.b0 { fill: var(--c-b0); }
.b1 { fill: var(--c-b1); }
.b2 { fill: var(--c-b2); }
.b3 { fill: var(--c-b3); }
.b-top { fill: var(--c-b-top); }
.floor-band-w { fill: var(--c-floor-w); }
.hall-glass { fill: var(--c-hall); fill-opacity: 0.92; }
.hall-glass-r { fill: var(--c-hall-r); fill-opacity: 0.92; }
.mullion { stroke: rgba(255, 255, 255, 0.7); stroke-width: 0.8; }
.st-column { stroke: #c3c9cf; stroke-width: 1.6; }
.shell0 { fill: var(--c-shell-0); }
.shell1 { fill: var(--c-shell-1); }
.shell2 { fill: var(--c-shell-2); }
.station-sign { fill: #2c3e50; }
.accent-y { fill: var(--accent); }
.pole { stroke: #59636d; stroke-width: 1.1; stroke-linecap: round; }
.bus .cb { --t: #6e98d6; --l: #5a86c5; --r: #4c75b0; }
.bus-b .cb { --t: #ffffff; --l: #eef2f5; --r: #dde3e9; }
.xing { stroke: #e05d5d; stroke-width: 1.4; }
.xing-light { fill: #6b3a3a; }
.city.xing-on.xing-p .xing-light:not(.b), .city.xing-on:not(.xing-p) .xing-light.b { fill: #ff5a4f; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lookout, :root:not([data-theme="light"]) .stone, :root:not([data-theme="light"]) .deck-b, :root:not([data-theme="light"]) .hull, :root:not([data-theme="light"]) .pav-wall, :root:not([data-theme="light"]) .cow { --t: var(--c-pale-t); --l: var(--c-pale-l); --r: var(--c-pale-r); }
  :root:not([data-theme="light"]) .kerk { --t: #3a424b; --r: #30373f; }
  :root:not([data-theme="light"]) .sail { fill: #aeb6bf; }
  :root:not([data-theme="light"]) .spire { --t: #4f7a6c; --l: #43695d; --r: #385a4f; }
  :root:not([data-theme="light"]) .barge .hull { --t: #39434d; --l: #2f3841; --r: #262e36; }
  :root:not([data-theme="light"]) .brick { --t: #8a5a49; --l: #7a4d3e; --r: #6a4235; }
  :root:not([data-theme="light"]) .chimney { --t: #6e5f55; --l: #62544b; --r: #564941; }
  :root:not([data-theme="light"]) .hedge { --t: #2f4a36; --l: #2a4230; --r: #243a2a; }
  :root:not([data-theme="light"]) .crate, :root:not([data-theme="light"]) .bench, :root:not([data-theme="light"]) .trunk { --t: #5d5246; --l: #52483d; --r: #463e35; }
  :root:not([data-theme="light"]) .harbour-light { --t: #6b7078; }
  :root:not([data-theme="light"]) .villa, :root:not([data-theme="light"]) .sculpt, :root:not([data-theme="light"]) .lookout { --t: #6b7078; --l: #5f646b; --r: #52575e; }
  :root:not([data-theme="light"]) .villa .glass, :root:not([data-theme="light"]) .villa .glass-r { fill: #f2c56b; }
  :root:not([data-theme="light"]) .urn, :root:not([data-theme="light"]) .sculpt-ball { fill: #7a8088; }
  :root:not([data-theme="light"]) .pat-bal-l { fill: #6b7078; }
  :root:not([data-theme="light"]) .pat-bal-r { fill: #5f646b; }
  :root:not([data-theme="light"]) .pat-stone { fill: #6e6a62; }
  :root:not([data-theme="light"]) .pat-brick-l { fill: #6e4235; }
  :root:not([data-theme="light"]) .pat-brick-r { fill: #5e382d; }
  :root:not([data-theme="light"]) .s0 { fill: #4a4740; }
  :root:not([data-theme="light"]) .s1 { fill: #504d45; }
  :root:not([data-theme="light"]) .s2 { fill: #57534b; }
  :root:not([data-theme="light"]) .s3 { fill: #5e5a51; }
  :root:not([data-theme="light"]) .s-top { fill: #66625a; }
  :root:not([data-theme="light"]) .kerk-roof, :root:not([data-theme="light"]) .slate { --t: #3a424b; --l: #30373f; --r: #282e35; }
  :root:not([data-theme="light"]) .cruise-hull { --t: #6b7078; --l: #1f3550; --r: #1a2d44; }
  :root:not([data-theme="light"]) .cruise-deck { --t: #5f646b; --l: #52575e; --r: #464b51; }
  :root:not([data-theme="light"]) .pier { --t: #4d4a44; --l: #44413c; --r: #3b3934; }
  :root:not([data-theme="light"]) .bridge-steel { --t: #4f655e; --l: #445953; --r: #3a4d48; }
  :root:not([data-theme="light"]) .arch { fill: #5d7770; }
  :root:not([data-theme="light"]) .hanger, :root:not([data-theme="light"]) .brace { stroke: #5d7770; }
  :root:not([data-theme="light"]) .stairs-k { fill: #3a4045; }
  :root:not([data-theme="light"]) .cobble { stroke: rgba(255, 255, 255, 0.05); }
  :root:not([data-theme="light"]) .vb { --t: #5a636d; --l: #4c555f; --r: #404850; }
  :root:not([data-theme="light"]) .train-body { --t: #c9a12f; --l: #bf9714; --r: #a8840f; }
  :root:not([data-theme="light"]) .train-band { fill: #f2c56b; }
  :root:not([data-theme="light"]) .train-roof { fill: #59606a; }
  :root:not([data-theme="light"]) .wtc-strip { fill: #22303d; }
  :root:not([data-theme="light"]) .wtc-mullion { stroke: #2f4a66; }
  :root:not([data-theme="light"]) .wtc-strip:not(.off) { fill: #e9b965; }
  :root:not([data-theme="light"]) .wtc-text { fill: #a9c3dd; }
  :root:not([data-theme="light"]) .px-w1 { fill: rgba(255, 220, 140, 0.22); }
  :root:not([data-theme="light"]) .px-w2 { fill: rgba(255, 210, 120, 0.4); }
  :root:not([data-theme="light"]) .cornice { --t: #6e6a62; --l: #625e57; --r: #57534d; }
  :root:not([data-theme="light"]) .hotel-glass { fill: #f2c56b; }
  :root:not([data-theme="light"]) .wing-light { fill: rgba(255, 120, 160, 0.85); }
  :root:not([data-theme="light"]) .cafe-wall { --t: #6b6458; --l: #5f584d; --r: #534d43; }
  :root:not([data-theme="light"]) .cafe-front, :root:not([data-theme="light"]) .door-green { fill: #1f3d2f; }
  :root:not([data-theme="light"]) .th2 { --t: #6b7078; --l: #5f646b; --r: #52575e; }
  :root:not([data-theme="light"]) .th4 { --t: #8a7a50; --l: #7a6b45; --r: #6b5d3c; }
  :root:not([data-theme="light"]) .ticket, :root:not([data-theme="light"]) .info-pillar { --t: #5a636d; }
  :root:not([data-theme="light"]) .stall-table, :root:not([data-theme="light"]) .deck, :root:not([data-theme="light"]) .post { --t: #5d5246; --l: #52483d; --r: #463e35; }
}
:root[data-theme="dark"] .lookout, :root[data-theme="dark"] .stone, :root[data-theme="dark"] .deck-b, :root[data-theme="dark"] .hull, :root[data-theme="dark"] .pav-wall, :root[data-theme="dark"] .cow { --t: var(--c-pale-t); --l: var(--c-pale-l); --r: var(--c-pale-r); }
:root[data-theme="dark"] .kerk { --t: #3a424b; --r: #30373f; }
:root[data-theme="dark"] .sail { fill: #aeb6bf; }
:root[data-theme="dark"] .spire { --t: #4f7a6c; --l: #43695d; --r: #385a4f; }
:root[data-theme="dark"] .barge .hull { --t: #39434d; --l: #2f3841; --r: #262e36; }
:root[data-theme="dark"] .brick { --t: #8a5a49; --l: #7a4d3e; --r: #6a4235; }
:root[data-theme="dark"] .chimney { --t: #6e5f55; --l: #62544b; --r: #564941; }
:root[data-theme="dark"] .hedge { --t: #2f4a36; --l: #2a4230; --r: #243a2a; }
:root[data-theme="dark"] .crate, :root[data-theme="dark"] .bench, :root[data-theme="dark"] .trunk { --t: #5d5246; --l: #52483d; --r: #463e35; }
:root[data-theme="dark"] .harbour-light { --t: #6b7078; }
:root[data-theme="dark"] .villa, :root[data-theme="dark"] .sculpt, :root[data-theme="dark"] .lookout { --t: #6b7078; --l: #5f646b; --r: #52575e; }
:root[data-theme="dark"] .villa .glass, :root[data-theme="dark"] .villa .glass-r { fill: #f2c56b; }
:root[data-theme="dark"] .urn, :root[data-theme="dark"] .sculpt-ball { fill: #7a8088; }
:root[data-theme="dark"] .pat-bal-l { fill: #6b7078; }
:root[data-theme="dark"] .pat-bal-r { fill: #5f646b; }
:root[data-theme="dark"] .pat-stone { fill: #6e6a62; }
:root[data-theme="dark"] .pat-brick-l { fill: #6e4235; }
:root[data-theme="dark"] .pat-brick-r { fill: #5e382d; }
:root[data-theme="dark"] .s0 { fill: #4a4740; }
:root[data-theme="dark"] .s1 { fill: #504d45; }
:root[data-theme="dark"] .s2 { fill: #57534b; }
:root[data-theme="dark"] .s3 { fill: #5e5a51; }
:root[data-theme="dark"] .s-top { fill: #66625a; }
:root[data-theme="dark"] .kerk-roof, :root[data-theme="dark"] .slate { --t: #3a424b; --l: #30373f; --r: #282e35; }
:root[data-theme="dark"] .cruise-hull { --t: #6b7078; --l: #1f3550; --r: #1a2d44; }
:root[data-theme="dark"] .cruise-deck { --t: #5f646b; --l: #52575e; --r: #464b51; }
:root[data-theme="dark"] .pier { --t: #4d4a44; --l: #44413c; --r: #3b3934; }
:root[data-theme="dark"] .bridge-steel { --t: #4f655e; --l: #445953; --r: #3a4d48; }
:root[data-theme="dark"] .arch { fill: #5d7770; }
:root[data-theme="dark"] .hanger, :root[data-theme="dark"] .brace { stroke: #5d7770; }
:root[data-theme="dark"] .stairs-k { fill: #3a4045; }
:root[data-theme="dark"] .cobble { stroke: rgba(255, 255, 255, 0.05); }
:root[data-theme="dark"] .vb { --t: #5a636d; --l: #4c555f; --r: #404850; }
:root[data-theme="dark"] .train-body { --t: #c9a12f; --l: #bf9714; --r: #a8840f; }
:root[data-theme="dark"] .train-band { fill: #f2c56b; }
:root[data-theme="dark"] .train-roof { fill: #59606a; }
:root[data-theme="dark"] .wtc-strip { fill: #22303d; }
:root[data-theme="dark"] .wtc-mullion { stroke: #2f4a66; }
:root[data-theme="dark"] .wtc-strip:not(.off) { fill: #e9b965; }
:root[data-theme="dark"] .wtc-text { fill: #a9c3dd; }
:root[data-theme="dark"] .px-w1 { fill: rgba(255, 220, 140, 0.22); }
:root[data-theme="dark"] .px-w2 { fill: rgba(255, 210, 120, 0.4); }
:root[data-theme="dark"] .cornice { --t: #6e6a62; --l: #625e57; --r: #57534d; }
:root[data-theme="dark"] .hotel-glass { fill: #f2c56b; }
:root[data-theme="dark"] .wing-light { fill: rgba(255, 120, 160, 0.85); }
:root[data-theme="dark"] .cafe-wall { --t: #6b6458; --l: #5f584d; --r: #534d43; }
:root[data-theme="dark"] .cafe-front, :root[data-theme="dark"] .door-green { fill: #1f3d2f; }
:root[data-theme="dark"] .th2 { --t: #6b7078; --l: #5f646b; --r: #52575e; }
:root[data-theme="dark"] .th4 { --t: #8a7a50; --l: #7a6b45; --r: #6b5d3c; }
:root[data-theme="dark"] .ticket, :root[data-theme="dark"] .info-pillar { --t: #5a636d; }
:root[data-theme="dark"] .stall-table, :root[data-theme="dark"] .deck, :root[data-theme="dark"] .post { --t: #5d5246; --l: #52483d; --r: #463e35; }


/* v5: the Markt, Villa Sonsbeek, the WTC, the hotel, the kade, the bridge, traffic */
.w-top { fill: var(--c-top); }
.s0 { fill: var(--c-stone-r, #cbc2b4); }
.s1 { fill: color-mix(in srgb, #cbc2b4 65%, #ddd5c8); }
.s2 { fill: color-mix(in srgb, #cbc2b4 35%, #ddd5c8); }
.s3 { fill: #ddd5c8; }
.s-top { fill: #ece6dc; }
.kerk-roof, .slate { --t: #7f8b97; --l: #6d7884; --r: #5f6a76; }
.rose { fill: var(--c-church-win); stroke: #ece6dc; stroke-width: 1; }
.villa { --t: #ffffff; --l: #f6f4ef; --r: #e7e3da; }
.villa-glass { --t: #eef4f7; --l: var(--c-glass); --r: var(--c-glass-r); }
.parasol { --t: #3f474f; --l: #353c43; --r: #2c3238; }
.urn { fill: #f3f0e8; }
.pat-bal-l { fill: #fbfaf6; }
.pat-bal-r { fill: #e8e4db; }
.pat-stone { fill: #efe7d8; }
.pat-brick-l { fill: #b86a50; }
.pat-brick-r { fill: #a15a43; }
.sculpt { --t: #ffffff; --l: #f2f2f0; --r: #e2e2df; }
.sculpt-ball { fill: #f6f6f4; }
.cruise-hull { --t: #ffffff; --l: #2f4f6f; --r: #27425d; }
.cruise-deck { --t: #f4f6f8; --l: #e8ecf0; --r: #d6dce2; }
.bollard { --t: #4a525a; --l: #3d444b; --r: #32383e; }
.pier { --t: #c9c4ba; --l: #b8b2a7; --r: #a7a195; }
.bridge-steel { --t: #7d978f; --l: #6b857d; --r: #5c766e; }
.arch { fill: #6b857d; }
.hanger, .brace { stroke: #6b857d; stroke-width: 1.1; }
.brace { stroke-width: 1.3; }
.kade { fill: var(--c-kade); }
.kade-lines { stroke: var(--c-kade-line); stroke-width: 0.7; }
.kade-wall { fill: var(--c-kade-wall); }
.kade-low { fill: var(--c-kade-low); }
.coping { fill: var(--c-coping); }
.waterline { fill: rgba(40, 60, 70, 0.25); }
.entrance { fill: #2b3a48; }
.door-frame { stroke: #e8eef3; stroke-width: 1; }
.step { --t: #e3e6e9; }
.stairs-k { fill: #efe6d6; }
.square-floor { fill: var(--c-market); }
.cobble { stroke: rgba(150, 130, 100, 0.18); stroke-width: 0.6; }
.bike-lane { fill: var(--c-bike); }
.vb { --t: #ffffff; --l: #eef1f4; --r: #dde3e9; }
.v2 .vb { --t: #f2f4f6; --l: #c9534a; --r: #b04840; }
.van-stripe { fill: var(--accent); }
.tyre { fill: none; stroke: #2f353b; stroke-width: 1.2; }
.frame { stroke: #59636d; stroke-width: 1.1; stroke-linecap: round; }
.rider { --t: #2f7d4f; --l: #2a7047; --r: #22603c; }
.rk2 .rider { --t: #4c7fd9; --l: #4271c2; --r: #3863ab; }
.rk3 .rider { --t: #e07a4f; --l: #c96a43; --r: #b45d3a; }
.rk4 .rider { --t: #8e6cc9; --l: #7f60b4; --r: #6f539e; }
.rider-head { fill: #f2cfae; }
.train-body { --t: #ffd23f; --l: #ffc917; --r: #e8b410; }
.train-band { fill: #24313f; }
.train-door { fill: #1f4f9f; }
.train-stripe { fill: #1f4f9f; }
.train-roof { fill: #d7dbe0; }
.train polygon { stroke: rgba(0, 0, 0, 0.14); stroke-width: 0.5; vector-effect: non-scaling-stroke; }
.wtc-strip { fill: #3d5266; }
.wtc-text { fill: #2b4a6b; font-weight: 700; font-family: inherit; letter-spacing: 0.08em; }
.wtc-dark { fill: #2f363d; }
.wtc-crown { fill: #2a3138; }
.wtc-roof { fill: #3a4148; }
.wtc-roofbox { --t: #4a525a; --l: #3d444b; --r: #32383e; }
.solar { fill: #2d4767; stroke: #8fa6bf; stroke-width: 0.5; }
.solar-frame { fill: #5b6670; }
.aviation { fill: #e0473c; }
.wtc-win2 { fill: rgba(30, 40, 45, 0.55); }
.px-w1 { fill: rgba(255, 255, 255, 0.22); }
.px-w2 { fill: rgba(255, 250, 200, 0.38); }
.px-d1 { fill: rgba(10, 60, 40, 0.16); }
.st-bl1 { stop-color: var(--wtc-bl1); }
.st-bl2 { stop-color: var(--wtc-bl2); }
.st-bl3 { stop-color: var(--wtc-bl3); }
.st-br1 { stop-color: var(--wtc-br1); }
.st-br2 { stop-color: var(--wtc-br2); }
.st-br3 { stop-color: var(--wtc-br3); }
.corten { --t: #9a5a38; --l: #8a4f30; --r: #77432a; }
.olive { fill: #9fb08a; }
.trunk-s { stroke: #8a7a66; stroke-width: 1.4; }
.gold { fill: #d4a93a; }
.gold-line { fill: none; stroke: #d4a93a; stroke-width: 1.3; }
.gold-text { fill: #d4a93a; font-weight: 700; font-family: inherit; letter-spacing: 0.06em; }
.canopy-black { --t: #2c2f33; --l: #222528; --r: #1b1d20; }
.cornice { --t: #e8dfcf; --l: #ddd3c1; --r: #cfc4b0; }
.hotel-glass { fill: #c9d9e6; }
.flag-a { fill: var(--accent); }
.flag-b { fill: #d4a93a; }
.wing-light { fill: rgba(255, 140, 170, 0.0); }
.cafe-wall { --t: #f4ede1; --l: #efe6d6; --r: #e0d5c2; }
.cafe-front { fill: #2f5a45; }
.door-green { fill: #2f5a45; }
.mullion-d { stroke: #2f5a45; stroke-width: 1.4; }
.flowerbox { --t: #8a6446; --l: #7a5a3e; --r: #6b4f35; }
.bloom.b1 { fill: #e05d7a; }
.bloom.b2 { fill: #f0bb3c; }
.bloom.b3 { fill: #e76f51; }
.umbrella-top { --t: #f3ead8; --l: #e5dac4; --r: #d5c9b0; }
.chalkboard { fill: #2f3a33; }
.shop-frame { fill: none; stroke: #2f5a45; stroke-width: 1.4; }
.cat { --t: #3a3a3a; --l: #2f2f2f; --r: #262626; fill: #3a3a3a; }
.th1 { --t: #d9a48a; --l: #b9654b; --r: #a3573f; }
.th2 { --t: #f4f1ea; --l: #f0ece3; --r: #ddd7cb; }
.th3 { --t: #a9c2b0; --l: #3f6b55; --r: #355c49; }
.th4 { --t: #f2dfb0; --l: #e2c27a; --r: #cfac64; }
.ticket { --t: #f0f2f4; --l: #e05d5d; --r: #c94a4a; }
.info-pillar { --t: #e9edf1; --l: #2f5a85; --r: #284e75; }
.cinema { --t: #4a525a; --l: #3d444b; --r: #32383e; }
.poster.p1 { fill: #e76f51; }
.poster.p2 { fill: #4c7fd9; }
.poster.p3 { fill: #f0bb3c; }
.cinema-stripe { fill: #c94a4a; }
.cinema-sign { fill: #c94a4a; }
.dome0 { fill: #5f9a86; }
.dome1 { fill: #6aa792; }
.dome2 { fill: #76b39e; }
.dome3 { fill: #82bfaa; }
.dome-top { fill: #8fcab5; }
.awning-beach { --t: #4fb3a6; }
.lounger { --t: #ffffff; --l: #eef1f4; --r: #dde3e9; }
.parasol-1 { --t: #f08a5d; --l: #e07a4f; --r: #c96a43; }
.parasol-2 { --t: #f6cf63; --l: #ecbf4c; --r: #d6a93c; }
.parasol-3 { --t: #5b8def; --l: #4c7fd9; --r: #3f6dbf; }

/* Night colours for parts that are fixed by day */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pine { --t: #3f6b4a; --l: #355d40; --r: #2c4f36; }
  :root:not([data-theme="light"]) .dino { --t: #4f7a45; --l: #43693b; --r: #385a32; }
  :root:not([data-theme="light"]) .shelter-roof { --t: var(--c-pale-t); --l: var(--c-pale-l); --r: var(--c-pale-r); }
  :root:not([data-theme="light"]) .tunnel { fill: #0b0e10; }
}
:root[data-theme="dark"] .pine { --t: #3f6b4a; --l: #355d40; --r: #2c4f36; }
:root[data-theme="dark"] .dino { --t: #4f7a45; --l: #43693b; --r: #385a32; }
:root[data-theme="dark"] .shelter-roof { --t: var(--c-pale-t); --l: var(--c-pale-l); --r: var(--c-pale-r); }
:root[data-theme="dark"] .tunnel { fill: #0b0e10; }

/* The panel that opens for a building */

.city-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(28rem, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  background: var(--surface);
  border: 0;
  border-left: 1px solid var(--border);
  color: var(--fg);
  box-shadow: -18px 0 48px rgba(20, 30, 25, 0.12);
}
.city-panel[open] { animation: panel-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.city-panel.closing { animation: panel-out 0.28s ease-in forwards; }
@keyframes panel-in { from { transform: translateX(100%); } }
@keyframes panel-out { to { transform: translateX(100%); } }
.city-panel::backdrop { background: rgba(18, 24, 20, 0.08); }

.panel-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
  background: var(--surface);
}
.panel-head h2 { margin: 0.1rem 0 0; font-size: 1.625rem; }
.panel-close {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.panel-close:hover, .panel-close:focus-visible { border-color: var(--accent); color: var(--accent); }
.panel-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel-body { padding: 0.25rem 1.25rem 2rem; }
.panel-body .about, .panel-body .cards { grid-template-columns: minmax(0, 1fr); }
.panel-body .actions { justify-content: flex-start; }
.panel-body > :first-child > :first-child { margin-top: 0; }

@media (max-width: 56.24rem) {
  .city-panel {
    inset: auto 0 0 0;
    width: 100%;
    height: auto;
    max-height: 62dvh;
    border-left: 0;
    border-top: 1px solid var(--border);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 48px rgba(20, 30, 25, 0.14);
  }
  .city-panel[open] { animation-name: sheet-in; }
  .city-panel.closing { animation-name: sheet-out; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .city-panel::backdrop { background: rgba(0, 0, 0, 0.35); }
}
:root[data-theme="dark"] .city-panel::backdrop { background: rgba(0, 0, 0, 0.35); }


@media (prefers-reduced-motion: reduce) {
  .city-copy > *, .city-panel[open], .city-panel.closing, .lbl-bob { animation: none; }
  .bld, .lbl, .mv, .ground, .city .item, .city-gl { transition: none; }
}
