/* City workshop: enamel labels, painted metal and illustrated inventory pieces. */
:root{color:#f1dfb8;background:#162a34;--panel:#223f4a;--brass:#d1a763;--ink:#263e42}
body{background:radial-gradient(ellipse at 50% 0,#30505b 0,#142831 85%)}
.app{padding:0 22px;max-width:2000px}
.sprite-icon{width:30px;height:30px;object-fit:contain;flex-shrink:0;pointer-events:none;user-select:none;filter:drop-shadow(0 2px 1px #071d2055)}
.topbar{height:76px;border-bottom:1px solid #66808866;gap:25px}
.brand{color:#f1dfb8;font-size:24px;text-shadow:0 2px #071b24;letter-spacing:-.8px;gap:10px}
.brand-sub{color:#d2aa6b;font-size:16px;letter-spacing:1px;text-transform:uppercase;margin-top:6px}
.brand-mark{width:65px;height:65px;background:transparent;box-shadow:none;transform:none;border-radius:0}
.brand-mark .sprite-icon{width:65px;height:65px;filter:drop-shadow(2px 4px 0 #061e2666)}
.city-name{color:#9ebbb6;font-size:10px}.edition{color:#709391}.live-dot{background:#bad892;box-shadow:0 0 0 3px #aaca7d1a}
.best{color:#d7bd87;background:#122b34;border:1px solid #41606a;border-radius:6px;padding:7px 10px;font-weight:650}
.header-actions{gap:8px}
.icon-button{border:1px solid #58727b;background:linear-gradient(#45616a99,#152d3699),var(--metal-texture);box-shadow:inset 0 1px #8ca4a155,0 3px #0e2029;border-radius:7px;color:#ead9b4;width:40px;height:40px}
.icon-button:hover{background:#426671;border-color:#b6aa7a}.icon-button .sprite-icon{width:28px;height:28px}
.sprite-mute{opacity:.45}.sprite-reset{transform:scaleX(-1)}
.dashboard{min-height:97px;padding:14px 0;gap:12px;grid-template-columns:.95fr 1fr 1.05fr 1.3fr}
.dashboard>div{height:69px;position:relative;padding:13px 14px 10px 68px;background:linear-gradient(100deg,#f5e8c8,#e2d4b0);border:2px solid #baa575;border-radius:8px;box-shadow:inset 0 0 0 2px #fff6da66,0 3px #071d2777;color:#273d3a;overflow:hidden}
.dashboard>div:after{content:'';position:absolute;right:5px;top:5px;width:4px;height:4px;border-radius:50%;background:#aa936a;box-shadow:0 1px #fff2ca}
.hud-emblem{position:absolute;left:11px;top:8px;width:47px;height:49px;display:grid!important;place-items:center;background:#ab976a22;border-radius:7px}
.hud-emblem .sprite-icon{width:45px;height:46px;filter:drop-shadow(0 2px 1px #4e4c3433)}
.score-stat .hud-emblem .sprite-icon,.flow-stat .hud-emblem .sprite-icon{width:45px;height:31px;transform:rotate(-18deg)}
.eyebrow{color:#787856;font-size:8px;letter-spacing:1.2px;margin-bottom:5px}.day-stat>div:not(.hud-emblem){font-size:25px;line-height:1;gap:6px}
.score-stat strong,.flow-stat strong{font-size:28px;font-weight:800;color:#344d45}.stat-unit{color:#888265;font-size:9px;max-width:58px;margin-left:8px}
.day-track{background:#c8bc94;height:20px}.day-track i{background:#639b79}
.flow-label{background:#cad5a1;color:#526333;font-size:8px;border-radius:4px;margin-left:6px;padding:4px 6px}
.goal-stat>div:not(.hud-emblem):not(.goal-track){display:flex;align-items:center;justify-content:space-between;gap:8px}
.goal-stat .eyebrow{margin:0}.goal-stat>span{font-size:9px;color:#8a7f5f}.goal-track{height:7px;background:#bcb393;border:1px solid #a99e7a;margin:8px 0 5px;box-shadow:inset 0 1px 2px #5b5c4833;border-radius:3px}
.goal-track i{background:repeating-linear-gradient(120deg,#6d9e70 0 8px,#7fac7c 8px 13px);border-radius:2px;box-shadow:inset 0 1px #bbd8a5}
.map-shell{border:4px solid #8f9b89;border-radius:11px;box-shadow:0 0 0 1px #0c2029,inset 0 0 0 3px #d8d3a7,0 5px 0 #0a2029;min-height:250px;background:#95ad78}
.map-top{top:14px;left:16px;right:16px}.map-tag{color:#f6e4b8;background:linear-gradient(#304e58ee,#1c3541ee),var(--metal-texture);border:1px solid #68817d;box-shadow:0 3px #24412c44,inset 0 1px #a1b59d33;border-radius:4px;padding:9px 13px;font-size:9px}
.map-coordinates{color:#3c694f;font-weight:800;text-shadow:0 1px #cfdda166}.paused-tag{top:13px;color:#e8d49f;background:#234449dd;border:1px solid #608374;border-radius:4px;font-size:9px;padding:7px 10px;right:17px}
.legend{color:#e3d6ad;background:#263f42e8;border:1px solid #879276;border-radius:5px;bottom:14px;left:15px;box-shadow:0 3px #1c3c3044;font-size:9px;padding:9px 12px}
.legend-house{background:#d5c99d}.legend-office{border-color:#d5c99d}.legend-note{color:#afbea3;border-color:#768772}
.map-controls{background:#25414be8;border:1px solid #829082;padding:3px;border-radius:6px;bottom:13px;right:14px;box-shadow:0 3px #12313e99}
.map-controls button{color:#e9d4a0;border-radius:4px;font-weight:700}.map-controls button:hover{background:#537177}
.notice{background:linear-gradient(#f6e8c8,#dcc9a0);color:#384743;border:2px solid #aa8e57;border-radius:6px;box-shadow:0 4px #263d3655;top:58px;font-weight:650}
.controlbar{min-height:82px;padding:13px 0 7px;gap:15px}
.tools{gap:7px}.tool{color:#d4c7a8;height:58px;padding:0 13px;gap:10px;border:1px solid #526f77;border-radius:7px;background:linear-gradient(#3c5966aa,#1b3440bb),var(--metal-texture);box-shadow:inset 0 1px #96a79d55,0 4px #0c2029;font-size:11px}
.tool .sprite-icon{width:43px;height:43px}.tool:hover{background:#42606b;border-color:#b9a36d}
.tool.active{color:#fff0c3;background:linear-gradient(#6f7450dd,#475638ee),var(--metal-texture);border:2px solid #d9b36b;box-shadow:inset 0 0 0 2px #b6a16733,0 4px #0a2029,0 0 14px #d5b66b15}
.tool.compact{width:53px;height:58px;padding:6px}.tool.compact .sprite-icon{width:32px;height:35px}.tool kbd{border-color:#a9aa86;opacity:.65;margin-left:1px;color:#d5d0aa}
.supplies{gap:22px;border:0;padding:7px 18px;background:#102b3499;border-radius:8px;box-shadow:inset 0 1px 4px #041a2766;border:1px solid #395762}
.supplies>div{gap:8px}.supplies .sprite-icon{width:45px;height:39px}.supplies strong{font-size:28px;font-weight:750;color:#f4dca6;text-shadow:0 2px #061b27}.supplies span{color:#9eafa2;font-size:10px}
.time-controls{gap:7px}.time-controls .icon-button{height:47px;width:45px}.time-controls .sprite-icon{width:28px;height:28px}
.time-controls #speed{height:47px;width:63px;position:relative;display:flex;align-items:center;justify-content:center;gap:3px;color:#e9d3a4;border:1px solid #668087;border-radius:7px;background:linear-gradient(#3a5964aa,#1b3440bb),var(--metal-texture);box-shadow:inset 0 1px #96a79d44,0 3px #0c2029}
#speed .sprite-icon{width:29px;height:27px}#speed span{font-size:10px;align-self:flex-end;margin-bottom:8px}
.bottom-note{color:#8da39f;padding:5px 2px 12px;font-size:9px}
dialog{background:linear-gradient(120deg,#f4e7c8,#e0d2b0);border:5px solid #355361;border-radius:12px;box-shadow:0 0 0 2px #b59d63,0 7px 0 #0e2532,0 30px 100px #07172499;color:#2a423e;max-width:720px}
dialog::backdrop{background:#071e2caa;backdrop-filter:blur(4px)}
.modal-body{padding:30px;position:relative}.modal-body h1,.modal-body h2{font-size:33px;color:#314a43;text-shadow:0 1px #fff3d1;letter-spacing:-1.2px}.modal-eyebrow{color:#967d48;font-size:9px;letter-spacing:1.5px}.modal-body p{color:#768064;font-size:13px;line-height:1.65}.modal-body .intro-copy{max-width:570px}
.intro-art{height:176px;border-bottom:5px solid #87754e;background:linear-gradient(0deg,#597f3a55,#8db16b22),var(--grass-texture);background-size:auto,180px;gap:8px;align-items:flex-end;padding:0 25px 10px;isolation:isolate}
.intro-art:before{height:36px;background:#394a53;transform:rotate(-4deg);bottom:20px;z-index:-1;border-top:5px solid #cabb91;border-bottom:5px solid #cabb91}
.intro-art:after{bottom:38px;transform:rotate(-4deg);z-index:-1}
.intro-art .sprite-icon{background:transparent;border:0;padding:0;box-shadow:none;transform:none;position:relative;filter:drop-shadow(2px 5px 1px #172e2344);width:110px;height:145px;object-fit:contain;object-position:bottom}
.intro-art .sprite-tree{width:95px;height:124px}.intro-art .sprite-pine{width:90px;height:148px}.intro-art .sprite-car-coral{width:85px;height:49px;margin:0 4px 2px}.intro-art .sprite-office-teal{height:166px;width:135px}
.instructions{gap:11px;margin:22px 0}.instruction{background:linear-gradient(#f8edce77,#d6c79f77);border:1px solid #bbaa7d;border-radius:7px;box-shadow:inset 0 0 0 2px #fff2cf55;padding:13px}
.instruction>.sprite-icon{display:block;width:56px;height:48px;margin:0 0 10px}.instruction b{color:#3d5143;font-size:12px}.instruction span{color:#7c8164;font-size:11px}
.primary{background:linear-gradient(#43626d99,#1e3a48dd),var(--metal-texture);border:2px solid #9b905d;border-radius:7px;color:#f6e3b4;box-shadow:inset 0 1px #d3d0a755,0 4px #18313a;min-height:48px}.primary:hover{background:#3e5d68;border-color:#d7b76f}
.secondary{border:1px solid #ae9b6c;background:#d5c59b;border-radius:6px;color:#4d5743;box-shadow:inset 0 1px #f4eac5,0 3px #9b8d68;min-height:45px}
.modal-actions>span,.hotkeys{color:#8a866b}.modal-mascot{float:right;margin:0 0 10px 15px}.modal-mascot .sprite-icon{width:92px;height:100px}.reward-grid{clear:both;gap:12px}.reward-card{background:linear-gradient(#fff1cd,#d7c59a);border:2px solid #b09963;box-shadow:inset 0 0 0 2px #f7e9b788,0 4px #98865c;border-radius:8px;padding:19px 16px}.reward-card .sprite-icon{width:100%;height:100px;margin:0 0 18px}.reward-card b{color:#364c43;font-size:20px}.reward-card span{color:#7b7d5e}.reward-card:hover{background:#f5e2ac;border-color:#d4a451;transform:translateY(-3px)}.result-score{color:#557d61;text-shadow:0 2px #fff3ca}.result-meta{color:#828365}
@media(min-width:1600px){.app{padding:0 30px}.topbar{height:82px}.dashboard{min-height:105px;gap:16px}.dashboard>div{height:74px;padding-top:14px}.controlbar{min-height:88px}}
@media(max-width:1100px){.dashboard{gap:8px}.dashboard>div{padding-left:55px}.hud-emblem{left:7px;width:39px}.hud-emblem .sprite-icon{width:36px}.flow-label,.stat-unit{display:none}.supplies{gap:13px;padding:7px 10px}.tools{gap:5px}.tool{padding:0 10px}.supplies span{display:none}.tool kbd{display:none}.city-name{margin-left:0}.supplies .sprite-icon{width:36px}.time-controls{gap:5px}}
@media(max-width:800px){.app{padding:0 12px}.topbar{height:68px}.brand{font-size:21px}.brand-mark,.brand-mark .sprite-icon{width:52px;height:55px}.brand-sub{font-size:12px}.city-name{display:none}.dashboard{min-height:91px;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:11px 0}.dashboard>div{height:67px;padding:13px 9px 9px 49px}.goal-stat{display:none}.eyebrow{font-size:7px;letter-spacing:.8px}.hud-emblem{width:34px;left:6px;top:12px;height:39px}.hud-emblem .sprite-icon{width:32px;height:36px}.score-stat .hud-emblem .sprite-icon,.flow-stat .hud-emblem .sprite-icon{width:32px;height:24px}.score-stat strong,.flow-stat strong{font-size:26px}.day-stat>div:not(.hud-emblem){font-size:23px}.tools{gap:4px}.tool{height:53px;padding:0 8px;gap:6px}.tool .sprite-icon{width:35px;height:37px}.tool.compact{width:40px;height:53px}.tool.compact .sprite-icon{width:27px;height:29px}.supplies{gap:12px;padding:7px 10px}.supplies .sprite-icon{width:30px;height:32px}.supplies strong{font-size:24px}.controlbar{gap:10px;min-height:76px}.time-controls .icon-button{width:36px;height:43px}.time-controls #speed{width:50px;height:43px}.time-controls .sprite-icon{width:23px;height:26px}#speed .sprite-icon{width:24px}.best{font-size:10px}.bottom-note{font-size:8px}}
@media(max-width:580px){.app{padding:0 8px}.topbar{height:64px;gap:10px}.brand{font-size:19px;gap:7px}.brand-sub{font-size:11px;letter-spacing:.7px}.brand-mark,.brand-mark .sprite-icon{width:45px;height:50px}.header-actions{gap:5px}.best{padding:6px;font-size:9px;margin:0}.header-actions .icon-button{width:32px;height:34px}.header-actions .sprite-icon{width:24px;height:25px}.dashboard{min-height:82px;gap:6px;padding:9px 0}.dashboard>div{height:62px;padding:10px 6px 6px 36px;border-width:1px;border-radius:6px}.hud-emblem{left:4px;top:21px;width:28px;height:29px;background:transparent}.hud-emblem .sprite-icon{width:28px;height:31px}.score-stat .hud-emblem .sprite-icon,.flow-stat .hud-emblem .sprite-icon{width:28px;height:20px}.eyebrow{font-size:6px;letter-spacing:.4px;white-space:nowrap}.dashboard>div .eyebrow{margin-left:-28px;margin-bottom:8px}.day-stat>div:not(.hud-emblem){font-size:19px;gap:4px}.score-stat strong,.flow-stat strong{font-size:23px}.day-track{display:none}.flow-stat strong>span{font-size:12px}.map-shell{border-width:3px;border-radius:7px;min-height:220px}.map-top{top:10px;left:10px}.map-tag{font-size:7px;padding:7px 9px}.paused-tag{top:10px;right:10px;font-size:7px;padding:6px 8px}.map-controls{bottom:10px;right:10px}.legend{left:10px;bottom:10px;font-size:8px;padding:7px 8px}.controlbar{padding:10px 0 5px;gap:8px;min-height:116px;flex-wrap:wrap;justify-content:space-between}.tools{flex:0 1 auto;gap:5px}.tool{height:51px;padding:0 8px;font-size:10px}.tool .sprite-icon{width:35px;height:38px}.tool span,.tool kbd{display:none}.tool.compact{height:51px;width:41px;padding:6px}.tool.compact .sprite-icon{width:29px;height:31px}.supplies{padding:5px 9px;gap:13px;margin-left:auto}.supplies>div{gap:6px}.supplies .sprite-icon{width:33px;height:35px}.supplies strong{font-size:24px}.time-controls{width:100%;justify-content:center;gap:8px;margin-left:0}.time-controls .icon-button{width:40px;height:35px}.time-controls #speed{width:60px;height:35px}#speed span{margin-bottom:7px}.time-controls .sprite-icon{height:22px;width:24px}.bottom-note{padding:5px 1px 9px;font-size:7px}.bottom-note>span:first-child{max-width:240px}.bottom-note #save-status{display:none}.modal-body{padding:23px 19px}.modal-body h1,.modal-body h2{font-size:29px}.intro-art{height:136px;padding:0 9px 9px;gap:0}.intro-art .sprite-icon{width:85px;height:110px}.intro-art .sprite-tree{width:57px;height:91px}.intro-art .sprite-pine{width:55px;height:104px}.intro-art .sprite-car-coral{width:49px;height:28px;margin:0 3px 5px}.intro-art .sprite-office-teal{width:90px;height:125px}.instructions{gap:7px;margin:18px 0}.instruction{padding:11px 8px}.instruction>.sprite-icon{width:43px;height:38px}.instruction b{font-size:10px}.instruction span{font-size:10px}.modal-body p{font-size:12px}.modal-eyebrow{font-size:8px}.reward-grid{gap:8px}.reward-card{padding:14px 8px}.reward-card .sprite-icon{height:73px;margin-bottom:13px}.reward-card b{font-size:15px}.reward-card span{font-size:10px}.modal-mascot .sprite-icon{width:65px;height:77px}.primary,.secondary{font-size:12px}.modal-actions>span{font-size:9px}}
@media(max-width:360px){.best{display:none}.supplies{gap:8px;padding:5px}.supplies .sprite-icon{width:27px}.tool{padding:0 5px}.tool.compact{width:37px}.tools{gap:3px}}
@media(max-height:650px) and (min-width:701px){.topbar{height:58px}.brand-mark,.brand-mark .sprite-icon{height:49px;width:49px}.dashboard{min-height:78px;padding:8px 0}.dashboard>div{height:61px;padding-top:10px}.controlbar{min-height:67px;padding-top:10px}.tool,.tool.compact{height:48px}.bottom-note{padding-bottom:7px}}

/* City overview stays reachable while zoomed into a neighbourhood. */
#minimap{position:absolute;right:14px;bottom:61px;width:150px;height:auto;border:2px solid #bdac7d;border-radius:5px;box-shadow:0 3px 0 #16313acc;cursor:crosshair;touch-action:none;image-rendering:pixelated;background:#243e40}
.new-district{position:absolute;left:16px;top:52px;background:#284b50ed;color:#ffe5ac;border:1px solid #b9a16d;border-radius:5px;padding:9px 12px;font-size:11px;font-weight:750;box-shadow:0 3px #16313a88}
.new-district:hover{background:#3b6768}
.map-tag.rush{background:#683f32ef;border-color:#e9ad6c;color:#ffe1ad}.map-tag.rush .live-dot{background:#ffb75e}
.map-coordinates{background:#e2e9c9df;border-radius:4px;font-size:8px;letter-spacing:1px}
.notice{top:97px}
@media(max-width:700px){#minimap{right:10px;bottom:53px;width:100px}.new-district{left:10px;top:43px;font-size:9px;padding:8px}.map-coordinates{display:block;position:absolute;top:30px;right:0;font-size:7px;padding:6px;max-width:145px}.notice{top:84px;font-size:10px}.map-shell:has(.new-district:not([hidden])) .map-coordinates{display:none}}

.reward-card{display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:14px 12px}
.reward-card .sprite-icon{height:64px;margin-bottom:10px}.reward-card b{font-size:16px;overflow-wrap:break-word}.reward-card span{font-size:11px;line-height:1.5}
.reward-card small{margin-top:auto;padding-top:12px;color:#546a5c;font-size:10px;font-weight:750;line-height:1.4}
.reward-card:disabled{opacity:.55;cursor:default;transform:none}
@media(max-width:580px){.reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reward-card{padding:12px 10px}.reward-card .sprite-icon{height:48px}.reward-card b{font-size:14px}.reward-card span{font-size:10px}}

.legend-park{width:11px;height:11px;background:#70924f;border:1px solid #cfc895;border-radius:3px}.city-name #city-name{text-transform:uppercase}

#restart{position:relative}#restart .sprite-icon{transform:translate(-3px,-2px)}
#restart .new-city-letter{position:absolute;right:3px;bottom:3px;display:grid;place-items:center;width:17px;height:17px;border:1px solid #f1d79d;border-radius:3px;background:#25434b;color:#ffe4a6;font-size:13px;font-weight:900;line-height:1;box-shadow:0 1px 2px #10283088}
