/* V57 — warm civic illustration, compact simulation controls. */
.urban-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:14px 0}.urban-tabs button{min-width:0;border:1px solid #668774;background:#254d43;color:#d7e4ca;border-radius:8px;padding:9px 2px;font:700 11px City,Arial;cursor:pointer}.urban-tabs button span{display:block;font-size:20px;margin-bottom:4px}.urban-tabs button.active{background:#e6c67e;color:#193e36;border-color:#f3d995}.urban-lead{font-size:12px;color:#d4e2c8;line-height:1.5;margin:8px 0 14px}.urban-capacity{background:#163d36;border:1px solid #55735c;border-radius:6px;padding:9px;font-size:11px;color:#e8cd8f;margin:10px 0}.urban-entry{display:flex;width:100%;gap:12px;align-items:center;background:linear-gradient(120deg,#365d4c,#1f4a43);border:1px solid #88a57c;border-radius:9px;text-align:left;padding:12px;margin:12px 0;cursor:pointer}.urban-entry>span{color:#e5c77c;font-size:29px}.urban-entry b{display:block;font-size:13px}.urban-entry small{display:block;color:#b8d3b6;font-size:10px;line-height:1.5;margin-top:4px}.urban-pulse{position:absolute;bottom:55px;left:20px;display:flex;align-items:center;gap:11px;border:1px solid #7ca79c;background:#153f3ceF;box-shadow:0 5px 20px #143f3c33;backdrop-filter:blur(8px);color:#f7efd7;border-radius:10px;padding:10px 14px;cursor:pointer;text-align:left;max-width:calc(100% - 85px);z-index:4}.urban-pulse>span{font-size:29px;color:#a7d8df}.urban-pulse b{font-size:12px;display:block}.urban-pulse small{font-size:10px;display:block;margin-top:3px;color:#bad1be}.urban-pulse.raining{border-color:#e5c179;background:#284c55ed}.urban-layers{position:absolute;top:149px;left:20px;display:flex;gap:5px;z-index:4}.urban-layers button{font:600 10px City,Arial;background:#19443ddd;color:#edebcf;border:1px solid #83a189;border-radius:6px;padding:8px 10px;cursor:pointer}.urban-layers button.active{background:#e7c885;color:#183f36}.weather-card{display:flex;align-items:center;gap:12px;padding:16px 12px;border:1px solid #80afaf;background:linear-gradient(135deg,#3d6668,#204f50);border-radius:12px}.weather-glyph{font-size:35px;color:#b8e3e5}.weather-card div>span{font-size:8px;letter-spacing:1px;color:#c9dfda}.weather-card div>b{display:block;font-size:21px;color:#f4e2b4;line-height:1.45}.weather-card small{display:block;font-size:10px;color:#bed5ce;line-height:1.4}.weather-card>strong{font-size:29px;margin-left:auto;text-align:center}.weather-card>strong small{font-size:8px;max-width:50px}.storm-districts{display:grid;gap:4px;margin:10px 0 15px}.storm-districts button{display:flex;align-items:center;gap:8px;text-align:left;padding:8px 10px;color:#dce9d5;background:#244c40;border:1px solid #446e58;border-radius:5px;font-size:11px;cursor:pointer}.storm-districts button.active{border-color:#e4c27b;color:#ffe3a1;background:#40583d}.storm-districts button span{margin-left:auto}.storm-districts i{width:6px;height:6px;border-radius:50%;background:#deb47c}.storm-districts i.good{background:#8bd7b3}.storm-districts i.bad{background:#e8a68b}.drainage-card{background:#183e38;border:1px solid #58846b;border-radius:9px;padding:14px}.drainage-card>div:first-child{display:flex;justify-content:space-between;gap:15px;align-items:center}.drainage-card span{font-size:9px;color:#c4d9c3;line-height:1.4}.drainage-card b{font-size:26px;color:#99dae0}.drainage-card b small{font-size:11px;color:#a9c7be}.capacity-track{height:11px;background:#4a6157;border-radius:4px;position:relative;margin:13px 0}.capacity-track i{background:linear-gradient(90deg,#448f9e,#9cdee2);height:100%;display:block;border-radius:4px}.capacity-track em{position:absolute;width:3px;top:-4px;height:19px;background:#f6d17e}.drainage-card p,.storm-result p{font-size:11px;line-height:1.55;color:#d7dfc9}.drain-breakdown{display:flex;justify-content:space-between}.urban-actions>small{display:block;color:#b6cdb9;font-size:10px;line-height:1.5;margin:0 3px 8px}.urban-actions .panel-button{margin-top:9px}.urban-applied{font-size:11px;padding:11px;border:1px solid #61846b;border-radius:6px;color:#b8e0b5;margin-top:10px}.urban-actions button:disabled{opacity:.65;cursor:default}.storm-result{border:1px solid #729382;background:#234b43;border-radius:9px;padding:14px;margin-top:15px}.storm-result>span{font-size:8px;letter-spacing:.8px;color:#b6d2bd}.storm-result>div:not(.storm-detail-rows){display:flex;gap:22px;margin:10px 0}.storm-result b{font-size:24px;color:#b9dfaa}.storm-result small{display:block;font-size:9px;color:#d4dfbd;font-weight:400;margin-top:5px}.regional-card{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #66836a;background:linear-gradient(115deg,#355745,#23483e);border-radius:10px;margin:10px 0;padding:14px 12px;cursor:pointer}.regional-icon{width:43px;height:43px;display:grid;place-items:center;background:#173e37;border:1px solid var(--project-color);color:var(--project-color);border-radius:10px;flex-shrink:0;font:700 28px Georgia}.regional-card div{min-width:0;flex:1}.regional-card b{font-size:12px;display:block;line-height:1.4}.regional-card small{display:block;font-size:10px;color:#bed2b8;margin-top:5px}.regional-card em{display:block;font-size:9px;font-style:normal;color:var(--project-color);margin-top:5px}.regional-card>i{color:#d5c68a;font-size:18px;font-style:normal}.regional-card.opened{border-color:#a6c48a}.regional-card progress{display:block;width:100%;height:4px;margin-top:9px;accent-color:var(--project-color)}.frequency-options{display:grid;gap:6px}.frequency-options button{padding:12px;border:1px solid #587a64;border-radius:7px;background:#214a40;text-align:left;display:grid;grid-template-columns:1fr 1fr;gap:5px;cursor:pointer}.frequency-options button.active{border-color:#ebcb7f;background:#435c3e}.frequency-options b,.frequency-options span{font-size:12px}.frequency-options span{color:#e2d197;text-align:right}.frequency-options small{grid-column:1/-1;color:#c1d5b9;font-size:10px}.resident-card{border:1px solid #789071;border-radius:10px;background:linear-gradient(135deg,#345b49,#23473d);padding:15px;margin:12px 0}.resident-card header{display:flex;align-items:center;gap:10px}.resident-avatar{width:41px;height:41px;background:#d7c58f;border:2px solid #e8dab5;color:#264a3f;border-radius:50%;display:grid;place-items:center;font-size:24px}.resident-card header b{font-size:14px}.resident-card header small{display:block;font-size:10px;color:#c6d9bf;margin-top:3px}.resident-value{display:flex;justify-content:space-between;align-items:center;margin:14px 0 6px;gap:10px}.resident-value b{font-size:18px;color:#e5d49b}.resident-value small{font-size:9px;color:#c4d6b9}.resident-card.good .resident-value b{color:#ade0b9}.resident-card.bad .resident-value b{color:#efb393}.resident-card blockquote{border:0;padding:0;margin:10px 0;color:#e0e5cd;font-size:12px;line-height:1.6}.resident-card .text-button{font-size:11px;margin:0;padding:5px 0}.urban-goal-intro{display:flex;gap:13px;align-items:center;margin:17px 0}.urban-goal-intro>span{font-size:34px;color:#dfc47d}.urban-goal-intro b{font-size:13px}.urban-goal-intro p{font-size:11px;color:#c4d8bb;margin:5px 0}.urban-mission{display:flex;gap:12px;border:1px solid #6a8265;border-radius:8px;padding:14px;margin:10px 0;background:#294d3f}.urban-mission>span{font-size:22px;color:#dec180;font-family:Georgia}.urban-mission b{font-size:12px}.urban-mission p{font-size:11px;line-height:1.6;margin:8px 0;color:#d3dfc6}.urban-mission small{font-size:10px;color:#e3cc8b}.urban-mission .text-button{display:block;font-size:10px;padding:9px 0 0}.urban-mission.done{background:#365d45;border-color:#a8b480}.project-modal{max-width:720px!important}.project-layout{display:grid;grid-template-columns:150px 1fr;gap:22px}.project-map{text-align:center;border:1px solid #577866;border-radius:10px;background:#173d37;padding:12px}.urban-mini-map{width:100%;max-height:180px}.project-map b{font-size:10px;line-height:1.4;display:block;color:#e9d39e}.project-info p{font-size:12px;line-height:1.6;margin-top:0}.project-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.project-facts div{padding:9px;border-radius:5px;background:#234a3f}.project-facts span{font-size:8px;display:block;color:#c1d0b9;letter-spacing:.6px}.project-facts b{font-size:18px;display:block;color:#e6cf98;margin-top:4px}.project-benefit{padding:10px 0;color:#b9deb1;font-size:12px;line-height:1.5}.project-info .risk-note{margin:0;padding:8px 10px;font-size:11px}.project-phases{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:15px 0}.project-phases span{font-size:9px;padding:8px 3px;text-align:center;color:#b9c9ad;background:#234a3e;border-bottom:3px solid #688471}.project-phases span.passed{border-color:#e7c57d;color:#f1d692}.regional-districts{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.regional-districts button{font:600 10px City,Arial;padding:7px 10px;border:1px solid #6b8269;border-radius:20px;color:#d8e3c5;background:#274a3d;cursor:pointer}.project-live{padding:10px;background:#254a3e;border:1px solid #719277;border-radius:7px;color:#e2cf8e;font-size:12px}.project-live progress{width:100%;height:7px;display:block;margin:8px 0;accent-color:#e7c47c}.project-live small{font-size:10px;color:#d0debf}.urban-help article{border-left:3px solid #d1b779;padding:8px 14px;margin:15px 0}.urban-help b{font-size:14px;color:#e8d097}.urban-help p{font-size:12px!important;line-height:1.6!important}.urban-report{border:1px solid #6e8e73;background:#294d40;border-radius:10px;padding:16px;margin:14px 0}.urban-report h3{font-size:16px;margin:0 0 12px}.urban-report-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.urban-report-grid span{font-size:8px;color:#c7d7ba;display:block}.urban-report-grid b{font-size:22px;color:#efd494;display:block;margin-top:5px}.urban-report-grid small{font-size:10px;color:#baceb0;margin-left:4px}.urban-report p{font-size:10px!important;color:#c3d7b9;line-height:1.6}.urban-rain-vignette{pointer-events:none}
@media(max-width:850px){.game-nav{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:0!important}.game-nav button{min-width:0!important;padding:6px 1px!important}.game-nav button b{font-size:9px!important}.game-nav button span{font-size:20px!important}.urban-pulse{bottom:31px;left:10px;padding:8px 10px;gap:8px;max-width:calc(100% - 70px)}.urban-pulse>span{font-size:23px}.urban-pulse b{font-size:10px}.urban-pulse small{font-size:9px}.urban-layers{top:130px;left:10px}.urban-layers button{font-size:9px;padding:7px 9px}.project-layout{grid-template-columns:90px 1fr;gap:12px}.project-map{padding:8px}.project-map b{font-size:8px}.project-facts b{font-size:15px}.project-facts span{font-size:7px}.project-info p{font-size:11px}.project-phases span{font-size:8px}.project-modal{padding:22px 16px!important}.project-modal h2{font-size:24px!important;padding-right:25px}.project-modal .compact-note{font-size:9px}.urban-tabs button{font-size:11px}.tutorial:not([hidden])~.urban-pulse{display:none}.project-modal .primary{width:100%}.urban-report-grid b{font-size:20px}}
@media(min-width:851px) and (max-height:800px){.urban-layers{top:139px}.urban-pulse{bottom:40px;padding:8px 12px}.project-modal{padding:22px!important}.project-modal h2{font-size:26px!important;margin-bottom:15px!important}.project-modal .compact-note{margin:9px 0 0}.project-layout{grid-template-columns:125px 1fr}.urban-mini-map{max-height:160px}}
@media(prefers-reduced-motion:reduce){.urban-pulse{backdrop-filter:none}}

.urban-layers{top:200px;left:65px}@media(max-width:850px){.urban-layers{top:181px;left:51px}.urban-pulse{bottom:93px}}@media(min-width:851px) and (max-height:800px){.urban-layers{top:194px;left:65px}}
.storm-now{padding:11px;margin:8px 0;border:1px solid #dcbb79;background:#575c41;border-radius:8px;color:#f1d594;font-size:11px;line-height:1.5}.storm-now button{font-size:11px;color:#f6e3a7;text-decoration:underline}.storm-detail-rows{display:grid;gap:4px}.storm-detail-rows button{padding:7px 8px;text-align:left;font-size:10px;border:1px solid #65846d;border-radius:4px;background:#24483d;display:flex;justify-content:space-between;gap:8px}.storm-detail-rows button span{color:#b6dcb6}

.storm-districts{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.storm-districts button{min-width:0;font-size:10px;padding:8px 7px}.storm-detail-rows{min-width:0}.storm-detail-rows button{min-width:0}.urban-tabs{position:sticky;top:-1px;z-index:3;background:#173b3e;padding:5px 0}.urban-pulse{bottom:110px}@media(max-width:850px){.urban-pulse{bottom:93px}.game-nav{display:grid!important}}
/* Keep the expanded result readable on short notebook screens. */
.modal.result-modal{max-width:850px;padding:22px;max-height:calc(100dvh - 28px)}
.result-modal h2{margin:12px 0 16px;font-size:29px}
.result-modal .eyebrow{margin:0 30px 10px 0;font-size:9px}
.result-modal .result-hero{padding:10px 16px;gap:18px}
.result-modal .result-hero>.face{width:65px;height:75px}
.result-modal .result-hero b{font-size:38px;margin:4px 0}
.result-modal .result-stats{margin:12px 0;gap:12px}
.result-modal .result-stats>div{padding-bottom:8px}
.result-modal .result-stats b{font-size:24px}
.result-modal .result-summary{margin:10px 0;font-size:11px;line-height:1.5}
.result-modal .urban-report{padding:12px;margin:12px 0}
.result-modal .urban-report-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.result-modal .urban-report h3{font-size:14px;margin:0 0 10px}
.result-modal .urban-report p{margin:10px 0 0}
.result-modal .result-sync{font-size:11px;padding:10px;margin:10px 0}
.result-modal .primary,.result-modal .secondary{padding:12px 18px;margin-top:7px}
.result-modal #newTerm{display:block;padding:8px 0;margin:0}
@media(max-width:560px){.modal.result-modal{padding:18px}.result-modal h2{font-size:26px}.result-modal .result-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.result-modal .result-stats span{font-size:8px}.result-modal .result-stats b{font-size:23px}.result-modal .urban-report-grid{grid-template-columns:1fr 1fr;gap:10px}.result-modal .result-hero>.face{width:55px;height:65px}.result-modal .primary,.result-modal .secondary{width:100%;font-size:12px}}
