/* Quiet geographic play-map. The map is the hero; arithmetic is one compact control. */
body.city-exhibit-on{background:#f5f6ee;color:#305963}
.city-exhibit-on #map-root{position:fixed;inset:68px 286px 0 0;background:#faf8ef!important;border:0;box-shadow:none;border-radius:0}
.illustrated-city .leaflet-tile-pane{display:none}.illustrated-city .city-diorama{opacity:1;filter:none}
.illustrated-city .resource-geometry{fill:#a5dcef;fill-opacity:.88;stroke:#97d3e6;stroke-width:1.3;filter:none}
.illustrated-city .network-geometry{filter:none}.illustrated-city .route-casing{stroke:#fffdf4;stroke-width:7;opacity:.95}
.illustrated-city .schematic-route.street-aligned{stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;filter:none}
.illustrated-city .schematic-route.unresolved-route{stroke-width:2;opacity:.4}.city-flow{display:none;pointer-events:none;stroke-linecap:round;animation:water-glimmer 12s linear infinite}.illustrated-city .city-flow{display:block;stroke-width:2.4;opacity:.8}.city-paused .city-flow{animation-play-state:paused}
@keyframes water-glimmer{to{stroke-dashoffset:-134}}
.facility-art,.facility-picture{display:block;width:61px;height:55px}.facility-picture svg{width:100%;height:100%;filter:drop-shadow(0 2px 1px #fff9)}.facility-marker{border:0;background:none}.facility-flat{display:none}.leaflet-container:not(.illustrated-city) .facility-picture{display:none}.leaflet-container:not(.illustrated-city) .facility-flat{display:block;width:14px;height:14px;background:#249fcd;border:2px solid white;margin:35px 0 0 24px}
.illustrated-city .station-label.major{font-size:9px;background:#fffdf3;border:1px solid #d9e3d7;color:#47717b;box-shadow:none;padding:3px 6px;border-radius:5px}.illustrated-city .station-pump{width:10px;height:10px;box-shadow:0 0 0 2px #fff;border:1px solid white}.illustrated-city .station-label.minor{font-size:9px}
.district-label{font-size:11px;background:#fffef6;color:#7b8679;border:0;text-shadow:none}.district-crowd-marker{pointer-events:none!important;border:0;background:none}.district-crowd{display:flex;flex-direction:column;align-items:center;gap:5px;background:#faf8efda;padding:7px 9px;border-radius:13px;box-shadow:0 2px 8px #425f4908}.district-crowd>b{font-size:12px;font-weight:650;letter-spacing:.2px;color:#667d6c;white-space:nowrap}.crowd-figures{display:flex;justify-content:center;flex-wrap:wrap;max-width:90px;gap:2px}.city-person{display:block;width:15px;height:26px;transform-origin:bottom center}.city-person>svg{display:block;width:100%;height:100%}.person-arriving{animation:person-arrive .65s ease-out both}.city-paused .person-arriving{animation:none}@keyframes person-arrive{from{opacity:0;transform:translateY(-15px) scale(.5)}to{opacity:1;transform:none}}
.landmark-marker{background:none;border:0;pointer-events:none!important}.city-landmark{display:flex;flex-direction:column;align-items:center}.city-landmark svg{width:54px;height:48px;filter:drop-shadow(0 2px 0 white)}.city-landmark span{font-size:10px;font-weight:600;color:#697c76;white-space:nowrap;text-shadow:0 1px 2px white,1px 0 2px white,-1px 0 2px white}.landmark-tower{z-index:700!important}.landmark-palace .city-landmark{transform:translateY(17px)}.landmark-tent .city-landmark{transform:translateY(-12px)}
#city-exhibit{position:fixed;inset:84px 14px 16px;z-index:820;pointer-events:none;color:#305963}body[data-mode=intro] #city-exhibit{display:none}
.exhibit-top{display:flex;justify-content:space-between;align-items:center;margin-right:286px;gap:10px;pointer-events:none}.cycle-buttons{display:flex;gap:3px;background:#fffef8ee;padding:5px;border:1px solid #e4e8da;border-radius:14px;box-shadow:0 4px 16px #4965500a;pointer-events:auto}.cycle-buttons button{display:flex;align-items:center;gap:7px;padding:8px 11px;min-height:37px;border:0;background:none;font-size:11px;color:#667c77;border-radius:9px}.cycle-buttons button>span:first-child{font-size:19px}.cycle-buttons [aria-pressed=true]{background:#e4f0de;color:#3d705c}.exhibit-tools{display:flex;gap:5px;pointer-events:auto}.exhibit-tools button{font-size:10px;padding:7px 9px;min-height:34px;background:#fffef8;border-color:#e4e8da;color:#52736e;border-radius:9px}
.exhibit-bottom{position:absolute;top:0;right:0;bottom:0;width:258px;overflow:auto;overscroll-behavior:contain;background:#fffefa;border:1px solid #e4e7da;border-radius:20px;padding:20px;pointer-events:auto;scrollbar-width:thin;box-shadow:none}
.exhibit-bottom h1{font-size:22px;letter-spacing:-.7px;color:#305963;margin:0 0 18px}.exhibit-years{display:flex;gap:5px;margin-bottom:22px}.exhibit-years button{flex:1;font-size:12px;min-height:34px;background:#f0f3e9;border:0;color:#789084;padding:7px;border-radius:8px}.exhibit-years [aria-pressed=true]{background:#e6c66e;color:#504c2c;font-weight:700}
.population-control>span{font-size:12px;color:#72847b}.population-control>strong{display:block;font-size:31px;letter-spacing:-1px;color:#305963;margin:4px 0 10px;font-variant-numeric:tabular-nums}.map-people-actions{display:flex;gap:6px}.map-people-actions button{font-size:11px;min-height:36px;padding:7px;border-radius:9px;border:0;background:#edf3e8;color:#56786e}#map-add-people{flex:1}#map-reset-people{width:38px;font-size:20px}
.exhibit-meters{position:relative;margin:24px 0 18px;padding-top:18px;border-top:1px solid #e7ebdf}.meter-demand>span{display:block;font-size:12px;color:#7a8980}.meter-demand>strong{display:block;font-size:31px;letter-spacing:-.8px;color:#238caa;margin:7px 0 2px;font-variant-numeric:tabular-nums}.meter-demand>small{font-size:10px;color:#95a49a}.water-tank{position:absolute;right:0;top:22px;width:34px;height:63px;border:2px solid #d6e6df;border-radius:7px;overflow:hidden;background:#f6f9f2}.water-tank>div{position:absolute;bottom:0;width:100%;background:#93d7e7;transition:height .5s ease}.water-tank>div[data-shortfall=true]{background:#e4b098}.water-tank i{position:absolute;inset:10px 0;background:repeating-linear-gradient(0deg,transparent 0 12px,#ffffff99 12px 14px)}
.capacity-line{display:flex;justify-content:space-between;gap:8px;margin:17px 0 15px;font-size:10px;color:#7c8d81}.capacity-line b{color:#597365;white-space:nowrap}#exhibit-balance-card{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px;padding:11px 0;border-top:1px solid #e8ecdf;color:#5d8a64}#exhibit-margin-label{font-size:10px;flex:1 1 100%}#exhibit-margin{font-size:23px;font-variant-numeric:tabular-nums;letter-spacing:-.4px}.balance-unit{font-size:9px}#exhibit-balance-card[data-shortfall=true]{color:#bb7859}
#map-save-water{width:100%;background:#387e77;color:#fff;border:0;border-radius:11px;min-height:43px;font-size:12px}#map-save-water[aria-pressed=true]{background:#bddba6;color:#315e44}#map-save-water[aria-pressed=true]:before{content:'✓ ';font-weight:bold}.experiment-status{text-align:center;font-size:9px;color:#8c9a8d;line-height:1.5;margin:10px 0 19px}
.exhibit-details{margin:0;padding:13px 0 0;border-color:#e6ebde}.exhibit-details summary{font-size:11px;color:#7f9084}.exhibit-details p{font-size:10px;line-height:1.5;color:#7f9084}.exhibit-modes{display:flex;gap:4px}.exhibit-modes button{flex:1;padding:5px;font-size:9px;min-height:32px;background:#eef3e9;color:#668273;border:0}.exhibit-modes [aria-pressed=true]{background:#dcebd4}.people-count{display:flex;justify-content:space-between;gap:5px}.people-count span:before{content:'● ';color:#297d79}.people-count.growth span:before{color:#d49c36}.people-count.extra span:before{color:#db715b}.people-count b{white-space:nowrap}.exhibit-details>button{width:100%;font-size:10px;min-height:32px;margin-top:6px;background:#f0f4e9;color:#668273;border-color:#e2e9d9}
.map-key{position:absolute;bottom:7px;left:125px;right:300px;display:flex;flex-wrap:wrap;gap:12px;font-size:9px;color:#879580;pointer-events:none}.key-pipe:before{content:'';display:inline-block;width:17px;height:3px;background:#249fcd;margin:0 5px 2px 0}.key-people:before{content:'●';color:#397d75;margin-right:5px}
.city-exhibit-on .map-tools{top:auto;bottom:18px;left:14px;right:auto;display:flex;flex-direction:row;background:#fffef8;border:1px solid #e1e7d8;border-radius:12px;box-shadow:none;padding:3px;gap:2px}.city-exhibit-on .map-tools button{width:29px;height:32px;min-height:32px;font-size:19px;color:#537971}
.city-exhibit-on .map-panels{inset:146px auto 76px 14px;width:278px;max-height:none;display:block;z-index:840;pointer-events:none}.city-exhibit-on .map-panels .floating-panel{display:none!important}.city-exhibit-on.exhibit-settings-open .map-panels .left-panel{display:block!important;width:100%;height:100%;max-height:100%;padding:16px;box-shadow:0 10px 30px #3c625725;background:#fffef9}
.city-exhibit-on .map-caption,.city-exhibit-on .map-approximation,.city-exhibit-on .mobile-switch{display:none!important}.city-exhibit-on #people-picture,.city-exhibit-on #people-picture+.lesson-note{display:none}.city-exhibit-on .leaflet-control-attribution{font-size:8px;background:#faf8efc9;color:#9aa38f}.city-exhibit-on .leaflet-control-attribution a{color:#849e89}
:root[data-theme=night] .city-exhibit-on #map-root{background:#243e3c!important}:root[data-theme=night] .illustrated-city .city-diorama{opacity:.65}:root[data-theme=night] .district-crowd{background:#e5eee2eb}
@media(max-width:1100px) and (min-width:761px){.cycle-buttons button{font-size:10px;padding:8px}.cycle-buttons button>span:first-child{display:none}.exhibit-tools{gap:3px}.exhibit-tools button{font-size:9px;padding:7px}.exhibit-top{gap:5px}.map-key{font-size:8px}}
@media(max-width:760px){
 .city-exhibit-on #map-root{inset:111px 0 220px}.city-exhibit-on .app-header{height:110px}
 #city-exhibit{inset:119px 8px 8px}.exhibit-top{margin-right:0;display:flex;flex-wrap:wrap;gap:5px}.cycle-buttons{width:100%;justify-content:space-between;padding:3px;border-radius:11px}.cycle-buttons button{flex:1;padding:5px 2px;font-size:9px;min-height:33px;gap:3px;justify-content:center}.cycle-buttons button>span:first-child{font-size:14px}.exhibit-tools{margin-left:auto}.exhibit-tools button{font-size:9px;min-height:29px;padding:5px 8px}
 .exhibit-bottom{top:auto;bottom:0;left:0;right:0;width:auto;height:204px;border-radius:17px;padding:12px 14px;display:grid;grid-template-columns:1fr 1fr;gap:0 15px;align-content:start;overflow:auto}.exhibit-bottom h1{font-size:15px;margin:2px 0 9px;grid-column:1}.exhibit-years{grid-column:2;grid-row:1;margin:0 0 8px;gap:3px}.exhibit-years button{font-size:10px;min-height:27px;padding:4px}.population-control{grid-column:1;grid-row:2}.population-control>span{font-size:9px}.population-control>strong{font-size:24px;margin:3px 0 8px}.map-people-actions{gap:3px}.map-people-actions button{font-size:9px;min-height:29px;padding:4px}#map-reset-people{width:28px;font-size:17px}.exhibit-meters{grid-column:2;grid-row:2 / 4;margin:0;padding:0;border:0}.meter-demand>span{font-size:9px}.meter-demand>strong{font-size:24px;margin:3px 0 0}.meter-demand>small{font-size:8px}.water-tank{width:22px;height:45px;top:13px}.capacity-line{font-size:8px;margin:8px 0 4px;gap:3px}.capacity-line span{max-width:75px}#exhibit-balance-card{padding:4px 0;gap:3px}#exhibit-margin-label{font-size:8px}#exhibit-margin{font-size:17px}.balance-unit{font-size:8px}#map-save-water{grid-column:1;grid-row:3;min-height:30px;font-size:10px;margin-top:6px}.experiment-status{display:none}.exhibit-details{grid-column:1/-1;margin-top:8px;padding-top:6px}.exhibit-details summary{font-size:9px}.map-key{bottom:211px;left:7px;right:0;gap:6px;font-size:7px;background:#faf8efcc;padding:3px}.city-exhibit-on .map-tools{bottom:245px;left:8px;padding:2px}.city-exhibit-on .map-tools button{width:28px;height:29px;min-height:29px}.district-crowd{padding:5px 6px;gap:3px}.district-crowd>b{font-size:10px}.city-person{width:12px;height:22px}.crowd-figures{max-width:76px;gap:1px}.city-landmark svg{width:42px;height:37px}.city-landmark span{font-size:8px}.city-exhibit-on .map-panels{inset:202px 8px 225px;width:auto;max-height:none}.city-exhibit-on.exhibit-settings-open .map-tools{display:none}
}
@media(prefers-reduced-motion:reduce){.city-flow,.person-arriving{animation:none!important}.water-tank>div{transition:none}}
.illustrated-city .resource-label{background:transparent;border:0;box-shadow:none;color:#67a6bf;font-size:11px;font-style:italic;padding:2px 5px;text-shadow:0 1px 2px #fff}.illustrated-city .resource-label:before{display:none}

.population-control .ui-icon,.meter-demand .ui-icon{width:18px;height:18px;vertical-align:middle}.map-people-actions .ui-icon,#map-save-water .ui-icon{width:20px;height:20px;vertical-align:middle;margin-right:7px}
#map-add-people,#map-save-water{display:flex;align-items:center;justify-content:center;gap:8px}#map-add-people .ui-icon,#map-save-water .ui-icon{margin:0}.population-control>span,.meter-demand>span{display:flex;align-items:center;gap:6px}
