@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(font-1.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(font-2.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(font-3.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(font-4.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(font-5.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(font-6.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(font-7.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(font-8.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(font-9.ttf) format('truetype');
}



:root{--ink:#244c58;--gold:#ffcd48;--blue:#35b9f5;--green:#63c96a}*{box-sizing:border-box}body{margin:0;overflow:hidden;font-family:'DM Sans',Arial,sans-serif;color:var(--ink);background:#91cdd1}button{font:inherit;cursor:pointer;touch-action:manipulation;transition:transform .12s,filter .12s}button:hover{filter:brightness(1.06)}button:active{transform:translateY(2px)}button:focus-visible{outline:3px solid #1984b8;outline-offset:4px}#app{height:100dvh;min-height:480px;position:relative}#world{position:absolute;inset:0}#world canvas{display:block;width:100%;height:100%;touch-action:none}header{position:absolute;top:23px;left:28px;right:28px;display:flex;align-items:center;gap:28px;pointer-events:none}.logo{display:flex;gap:10px;align-items:center;color:white;font:900 28px/.9 'Barlow Condensed',Impact,sans-serif;letter-spacing:.7px;text-shadow:0 2px 0 #367787}.logo-icon{background:var(--gold);width:46px;height:46px;border:3px solid #fff2b6;border-radius:15px;box-shadow:0 4px 0 #c89336,0 6px 16px #44694d20;display:grid;place-items:center;color:#285967;font-size:37px;text-shadow:none}.logo b{color:#ffdf6c}.logo small{display:block;font:700 7px 'DM Sans';letter-spacing:1.5px;margin-top:8px;color:#f2fff7}.district{font-size:9px;font-weight:800;letter-spacing:1.5px;background:#fff3;padding:10px 14px;border:1px solid #fff5;border-radius:30px;color:#285865}.district span{color:#ffe68e;margin:0 8px}.tools{margin-left:auto;display:flex;gap:8px;pointer-events:auto}.tools button{background:#f9fff0;border:3px solid white;box-shadow:0 3px 0 #9abcb0;border-radius:13px;width:36px;height:36px;color:#337286;font-size:17px;font-weight:800}.wallet{position:absolute;right:29px;top:87px;min-width:180px;background:#fffcef;border:3px solid white;border-radius:20px;padding:11px 17px 11px 10px;display:flex;align-items:center;gap:12px;box-shadow:0 5px 0 #2d81742b,0 8px 20px #41747315}.coin{background:#ffcf40;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:4px solid #ffe594;box-shadow:0 3px 0 #e7a91c;color:#9a6c1c;font-weight:900;font-size:23px}.wallet small{display:block;font-size:8px;font-weight:800;letter-spacing:1px;color:#8ca083}.wallet strong{font:800 30px/1.1 'Barlow Condensed';color:#35675b}.cash-plus{position:absolute;right:15px;bottom:-26px;color:#237f46;font-size:16px;font-weight:900;background:#faffdf;border-radius:10px;padding:3px 8px;opacity:0;transition:opacity .3s}.bag-pill{position:absolute;right:29px;top:179px;display:flex;align-items:center;gap:8px;background:#fffdf1;border:2px solid white;border-radius:30px;padding:8px 13px;font-size:12px;box-shadow:0 3px 0 #407d6630}.bag-pill>span{color:#cf8239;font-size:18px}.bag-pill small{font-size:8px;color:#8a9d8c;font-weight:800}.cameras{position:absolute;top:29px;left:50%;transform:translateX(-50%);display:flex;padding:4px;background:#28697755;border:1px solid #ffffff55;border-radius:12px;gap:3px}.cameras button{border:0;background:transparent;color:#f2ffff;padding:8px 11px;border-radius:8px;font-size:9px;font-weight:700}.cameras button[aria-pressed=true]{background:#fff7da;color:#377c83;box-shadow:0 2px 0 #0c617a20}.district-badge{position:absolute;left:29px;top:92px;display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1px;color:#477267;font-weight:800}.district-badge span{width:7px;height:7px;border-radius:50%;background:#fada6c;border:1px solid #fff9c2}#goal{position:absolute;bottom:43px;right:28px;width:288px;background:#fffef1f5;border:3px solid white;border-radius:20px;padding:17px;box-shadow:0 6px 0 #1c67542b,0 15px 35px #3e685820}.goal-head{display:flex;justify-content:space-between;color:#8fa382;font-size:8px;letter-spacing:1px;font-weight:800}.goal-head b{color:#4b9878}h1{font:800 28px/1.05 'Barlow Condensed',Impact,sans-serif;margin:11px 0 8px;color:#316b62}#goal p{font-size:11px;line-height:1.6;margin:0;color:#7b907c}.goal-track{height:6px;background:#e4edd7;border-radius:9px;margin:13px 0;overflow:hidden}.goal-track i{display:block;height:100%;width:0;background:#78c667;border-radius:9px;transition:width .4s}.gold-button{background:var(--gold);border:2px solid #ffdf71;border-radius:11px;color:#6e5629;font-weight:800;padding:11px 13px;box-shadow:0 3px 0 #ddaa2f;display:flex;justify-content:space-between;width:100%;font-size:11px}#goal>small{display:block;text-align:center;font-size:8px;color:#93a28c;margin-top:13px}#action{position:absolute;bottom:67px;left:50%;transform:translateX(-50%);background:#fffcf0f5;border:3px solid white;border-radius:17px;box-shadow:0 5px 0 #42786440;padding:13px 16px;display:flex;gap:12px;align-items:center;max-width:400px}#action[hidden]{display:none}#action-icon{display:grid;place-items:center;width:35px;height:35px;color:white;background:#49b8ed;border-radius:11px;font-size:24px;font-weight:900}#action strong{font-size:12px;display:block}#action p{font-size:9px;color:#87917c;margin:5px 0}.action-track{height:4px;background:#e4eacb;border-radius:8px;width:150px;overflow:hidden}.action-track i{display:block;height:100%;background:#69c968;width:0}#action-button{background:#ffd14d;border:0;border-radius:9px;font-weight:800;padding:11px;color:#6e582c;font-size:11px;white-space:nowrap}#toast{position:absolute;top:97px;left:50%;transform:translateX(-50%);max-width:420px;background:#25594deb;color:#fffce1;font-size:12px;font-weight:600;line-height:1.6;border:2px solid #e0f0c757;border-radius:14px;padding:12px 20px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:7}.legend{position:absolute;bottom:21px;left:50%;transform:translateX(-50%);display:flex;gap:17px;background:#fff8e1e6;padding:8px 13px;border-radius:20px;font-size:7px;letter-spacing:.7px;font-weight:900;color:#668278}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:7px;height:7px;border-radius:50%;display:inline-block}.blue{background:#39b9f4}.green{background:#5fcc68}.yellow{background:#f5bd3d}#joystick{position:absolute;left:36px;bottom:54px;width:108px;height:108px;background:#eaf9eb88;border:3px solid #fff9;border-radius:50%;box-shadow:0 3px 12px #377d6720;touch-action:none;user-select:none}.joystick-arrows{position:absolute;inset:0;display:grid;place-items:center;font-size:98px;color:#fff9;line-height:1}#stick{position:absolute;width:43px;height:43px;left:30px;top:30px;background:#ffffe6;border-radius:50%;border:3px solid white;box-shadow:0 4px 0 #4c8b7840}.keyboard-hint{position:absolute;left:29px;bottom:20px;font-size:7px;color:#376c69;font-weight:700;letter-spacing:.3px}.keyboard-hint span{margin:0 5px}#heat{position:absolute;right:28px;top:230px;background:#fff5e9;border:2px solid white;border-radius:12px;width:180px;padding:10px;font-size:10px;color:#ab604b}#heat[hidden]{display:none}#heat i{display:block;height:4px;background:#f2dccc;margin-top:6px;border-radius:10px}#heat-fill{display:block;height:100%;background:#e27463;border-radius:10px}#modal{position:absolute;inset:0;background:#24574e80;backdrop-filter:blur(6px);z-index:20;display:grid;place-items:center;padding:20px}#modal[hidden]{display:none}.dialog{width:min(440px,100%);max-height:90dvh;overflow:auto;padding:32px;background:#fffef1;border:4px solid white;border-radius:25px;position:relative;box-shadow:0 8px 0 #24584933}#close{position:absolute;right:13px;top:10px;border:0;background:none;font-size:25px;color:#729882}.dialog h2{font:800 36px/1.05 'Barlow Condensed';color:#34746c;margin:9px 0 15px}.dialog .eyebrow{font-size:8px;color:#a19055;letter-spacing:1.5px;font-weight:800}.dialog p{font-size:12px;line-height:1.7;color:#7c927d}.dialog button.option{display:block;width:100%;background:#edf4dc;border:2px solid #dae7cb;padding:13px;border-radius:12px;margin-top:9px;text-align:left;color:#42786d}.option b{display:block;font-size:12px;margin-bottom:5px}.option small{font-size:10px;line-height:1.5;display:block}.dialog .risk{background:#f8e3d5!important;border-color:#e9c5b1!important}.dialog .gold-button{margin-top:16px}#loading{position:absolute;inset:0;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#b4e3ca}.loading-logo{font:900 64px 'Barlow Condensed';color:#fff8d0;text-shadow:0 4px 0 #417b6c}.loading-logo span{color:#ffd556}#loading p{font-size:12px;color:#599176}
@media(max-width:1100px){.district{display:none}.cameras{top:28px}.logo{font-size:24px}#goal{width:240px;padding:14px}#goal h1{font-size:25px}#action{left:45%;max-width:320px}#action-button{font-size:9px;padding:9px}}
@media(max-width:680px){header{top:16px;left:14px;right:14px}.logo{font-size:23px;gap:8px}.logo-icon{width:38px;height:38px;font-size:31px;border-radius:12px}.logo small{font-size:5px;letter-spacing:1px}.tools{gap:6px}.tools button{width:29px;height:29px;border-width:2px;border-radius:10px;font-size:14px}.cameras{top:74px;left:14px;transform:none;border-radius:9px}.cameras button{font-size:8px;padding:6px 8px}.district-badge{display:none}.wallet{top:74px;right:12px;min-width:117px;padding:7px;border-width:2px;border-radius:14px;gap:7px}.coin{width:31px;height:31px;font-size:17px;border-width:3px}.wallet small{font-size:6px}.wallet strong{font-size:23px}.bag-pill{top:132px;right:12px;padding:5px 9px;font-size:10px}.bag-pill small{font-size:6px}.bag-pill>span{font-size:14px}#goal{bottom:15px;left:12px;right:12px;width:auto;padding:12px 14px;border-radius:17px;display:grid;grid-template-columns:1fr 122px;gap:5px 12px}.goal-head{grid-column:1/-1;font-size:7px}#goal h1{font-size:22px;margin:2px 0}#goal p{font-size:9px;grid-column:1;grid-row:3;line-height:1.5}#goal .goal-track{margin:5px 0;grid-column:1/-1}.gold-button{grid-column:2;grid-row:2/4;padding:10px;font-size:9px;align-self:center;line-height:1.5}#goal>small{display:none}#joystick{left:18px;bottom:179px;width:92px;height:92px}#stick{width:39px;height:39px;left:24px;top:24px}.joystick-arrows{font-size:84px}.legend{bottom:157px;font-size:6px;padding:6px 10px;gap:11px}.keyboard-hint{display:none}#action{bottom:294px;left:50%;max-width:95vw;width:max-content;padding:9px 11px;gap:8px;border-radius:12px}#action-icon{width:29px;height:29px;font-size:18px}#action strong{font-size:10px}#action p{font-size:8px}.action-track{width:120px}#action-button{padding:10px;font-size:9px}#toast{top:191px;width:calc(100% - 24px);font-size:10px;padding:10px 14px}#heat{top:177px;right:12px;width:119px;font-size:8px;padding:8px}.cash-plus{font-size:12px;bottom:-21px}.dialog{padding:28px 22px}.dialog h2{font-size:31px}}


#pending-money{position:absolute;right:29px;top:226px;border:2px solid white;border-radius:12px;background:#208652;color:#fffbd7;padding:10px 13px;font-size:11px;font-weight:800;box-shadow:0 3px 0 #11643d;z-index:5}#pending-money[hidden]{display:none}#heat{top:280px}.next-pulse{animation:nextPulse .5s ease-out 2}@keyframes nextPulse{50%{box-shadow:0 0 0 7px #ffd44866;transform:scale(1.03)}}@media(max-width:680px){#pending-money{top:177px;right:12px;font-size:9px;padding:8px}#heat{top:223px}#toast{top:270px}}

#business-status{position:absolute;top:135px;left:28px;width:236px;border:2px solid #fff5d0;border-radius:14px;background:#263e43ed;color:#fff4d5;padding:13px;box-shadow:0 5px 0 #142b3733}#business-status>small{font-size:9px;font-weight:900;letter-spacing:1.3px;color:#ffd15b}.business-numbers{display:flex;justify-content:space-between;gap:10px;margin-top:10px;font-size:8px;color:#b8c9c5}.business-numbers b{display:block;color:#fff7da;font-size:16px;margin-top:3px}#team-status{font-size:10px;line-height:1.5;margin:9px 0}#manage{border:0;border-radius:8px;padding:8px;background:#f5c34b;color:#493c1e;font-size:10px;font-weight:800;width:100%}#manage:disabled{opacity:.7;cursor:default}@media(max-width:680px){#business-status{top:117px;left:14px;width:192px;padding:9px;border-radius:11px}#business-status>small{font-size:7px}.business-numbers{margin-top:5px;font-size:6px;gap:5px}.business-numbers b{font-size:12px}#team-status{font-size:8px;margin:5px 0}#manage{padding:6px;font-size:8px}#toast{top:264px}}

#portfolio{width:100%;border:1px solid #ffffff50;border-radius:8px;background:#ffffff12;color:#fff3d0;padding:8px;margin-top:6px;font-size:10px;font-weight:800}.dialog .owned{background:#dcefd8;border-color:#9bc4a1}@media(max-width:680px){#portfolio{font-size:8px;padding:6px}}

#profit-summary{display:block;margin-top:8px;font-size:9px;color:#d6edbd;font-weight:800}.result-card{padding:15px;margin:14px 0;border-radius:13px;background:#edf3df;border:1px solid #d4dfc4}.result-card h3{margin:0 0 10px;font-size:15px}.result-net{font-size:25px;font-weight:900;color:#287447}.result-net.negative{color:#b54e31}.result-net small{display:block;font-size:8px;letter-spacing:.5px;margin:4px 0 12px}.result-card dl{display:grid;grid-template-columns:1fr auto;gap:7px;margin:0;font-size:10px}.result-card dd{margin:0;text-align:right;font-weight:800}.account-note{background:#ffedbf;padding:10px;border-radius:9px}.dialog .purchase{background:#ffdb67;border-color:#e6bb43}.dialog .option:disabled{opacity:.55;cursor:default}.dialog .option:disabled:hover{filter:none}@media(max-width:680px){#profit-summary{font-size:8px}#toast{top:286px}}
#reset-game{width:60px;font-size:10px;line-height:1.1;padding:3px}@media(max-width:680px){#reset-game{width:43px;font-size:8px}}

.comparison{border-collapse:collapse;width:100%;font-size:11px;margin:16px 0;background:#eaf2dc}.comparison th,.comparison td{padding:10px 8px;border-bottom:1px solid #d1ddc2;text-align:right}.comparison th:first-child{text-align:left}.comparison thead th{font-size:9px;color:#607558}
/* Compact play-first HUD: world pads carry the directions. */
.district,.district-badge,.legend,.keyboard-hint,#business-status>small,.business-numbers,#team-status,#profit-summary{display:none!important}
#business-status{top:104px;left:24px;width:155px;padding:0;border:0;background:none;box-shadow:none}
#manage,#portfolio{padding:11px;font-size:11px;border:2px solid #fff9;border-radius:12px;box-shadow:0 3px 0 #21536355}
#portfolio{background:#277786;color:white;margin-top:8px}
#goal{width:300px;background:#fff9e8ef;border:3px solid white;padding:17px;border-radius:20px}
#goal h1{font-size:27px}#goal p{font-size:11px;line-height:1.5}#goal>small{display:none}.goal-head{font-size:8px}.goal-track{height:6px}
.gold-button{background:#25c6d1;color:#143f52;box-shadow:0 4px 0 #199ba9;border-color:#b3fbff}
#care-alert{position:absolute;top:180px;left:24px;max-width:260px;padding:12px;background:#fff2ce;color:#8b431b;border:2px solid white;border-radius:12px;font-size:11px;font-weight:800;z-index:6}#care-alert[hidden]{display:none}
#joystick{width:120px;height:120px;bottom:45px;background:#ffffff25;border:4px solid #fffc;box-shadow:0 0 0 7px #fff3}#stick{left:34px;top:34px;width:44px;height:44px;background:#ffffffe6}.joystick-arrows{opacity:.3}
#action{bottom:190px;max-width:360px}#toast{top:250px}#pending-money{font-size:10px;top:207px}
@media(max-width:680px){header{top:12px}.logo{font-size:21px}.logo-icon{display:none}.logo small{font-size:5px}.cameras{top:60px}.wallet{top:104px;right:12px;min-width:112px}.bag-pill{top:164px}#pending-money{top:201px;font-size:8px}#business-status{top:103px;left:12px;width:125px}#manage,#portfolio{font-size:9px;padding:9px}#goal{bottom:12px;width:auto;padding:11px 13px;grid-template-columns:1fr 100px}#goal h1{font-size:22px}#goal p{font-size:9px}#go{font-size:9px;padding:8px}.goal-head{font-size:7px}#joystick{left:24px;bottom:188px;width:95px;height:95px}#stick{left:24px;top:24px;width:39px;height:39px}#action{bottom:301px;width:calc(100% - 24px);max-width:none}#action p{max-width:205px}#care-alert{top:245px;left:12px;right:12px;max-width:none;font-size:10px;padding:9px}#toast{top:287px;font-size:10px}}

#goal #last-sale:not([hidden]){display:block;font-size:9px;line-height:1.4;color:#276643;font-weight:800;margin:6px 0}

/* More world, less HUD over the character. */
#action{pointer-events:none;background:#fffdf2eb;border-width:2px;box-shadow:0 4px 18px #163e4325}#action-button{pointer-events:auto}#action .action-track{height:3px}#world{background:#a4d7e5}@media(max-width:680px){#action{left:auto;right:12px;bottom:171px;transform:none;width:240px;padding:8px;max-width:calc(100% - 135px)}#action-icon{display:none}#action p{font-size:9px;line-height:1.4}#action strong{font-size:11px}#action-button{white-space:normal;padding:7px}#toast{top:238px}#goal #last-sale{grid-column:1/-1}#goal{box-shadow:0 5px 22px #15393b30}}

@media(max-width:680px){#toast{top:287px}}

#goal-alt{width:100%;margin-top:10px;padding:8px;border:1px solid #90bfb6;border-radius:9px;background:#e4f4e9;color:#275d59;font-size:11px;font-weight:800}#goal-alt[hidden]{display:none}#shop-pulse{white-space:pre-line;font-size:10px;line-height:1.6;margin:7px 0 0;padding:7px 9px;background:#f8f4e5ed;color:#315956;border-radius:10px;box-shadow:0 2px 5px #173d3b20}#care-alert{top:253px}@media(max-width:680px){#shop-pulse{font-size:8px;padding:6px;margin-top:5px}#goal-alt{grid-column:1/-1;margin:0;font-size:9px;padding:5px}#action{bottom:205px}#joystick{bottom:212px}#care-alert{top:247px}#goal #last-sale{font-size:8px;margin:2px 0}}

#spaza-growth{background:#f5c54d!important;color:#214f47!important;font-weight:800}.growth-summary{display:grid;gap:7px;background:#eaf3df;padding:16px;border-radius:14px;margin:14px 0}.growth-summary span{font-size:13px}
#spaza-growth{display:block;width:100%;border:1px solid #fff5d0;border-radius:9px;padding:10px 8px;margin-top:6px;font-size:10px;line-height:1.4}#spaza-growth[hidden]{display:none}#care-alert{top:330px}@media(max-width:680px){#spaza-growth{font-size:9px;padding:8px}#care-alert{top:325px}}

#city-map{display:block;width:100%;border:1px solid #abd8d2;border-radius:9px;background:#d9f2e7;color:#235954;padding:9px 6px;margin-top:6px;font-weight:800;font-size:10px}.option:disabled{opacity:.6;cursor:default}#care-alert{top:369px}@media(max-width:680px){#city-map{font-size:9px;padding:7px}#care-alert{top:361px}}

/* Install controls stay separate from gameplay and respect device safe areas. */
#install-app{font-size:12px;width:auto;padding:0 10px;background:#174f49;color:#fff5d6}#install-app[hidden],#install-banner[hidden],#install-native[hidden]{display:none}
#install-banner{position:fixed;z-index:80;top:max(88px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;gap:12px;width:min(390px,calc(100% - 28px));padding:16px;border:2px solid #fff5d6;border-radius:20px;background:#174f49;color:#fff5d6;box-shadow:0 12px 35px #143d3b55}#install-banner img{border-radius:12px}#install-banner strong{font-size:15px}#install-banner p{font-size:12px;line-height:1.5;margin:5px 0 10px}#install-banner button{font:inherit;font-weight:800;font-size:12px;border:0;border-radius:9px;padding:10px;background:#ffd05b;color:#174f49}#install-banner #install-later{background:transparent;color:#fff5d6;margin-left:8px}
#install-dialog{width:min(430px,calc(100% - 30px));max-height:calc(100dvh - 40px);overflow:auto;margin:auto;padding:28px;border:2px solid #fff;border-radius:24px;background:#fff9e9;color:#214f47;box-shadow:0 25px 80px #143d3b55}#install-dialog::backdrop{background:#123e45b8;backdrop-filter:blur(5px)}#install-dialog img{border-radius:20px}#install-dialog h2{font-size:27px;line-height:1.15;margin:18px 0 14px}#install-dialog p{line-height:1.6;font-size:14px}#install-dialog small{display:block;line-height:1.5;font-size:12px}#offline-status{padding:12px;border-radius:12px;background:#e4edda}.install-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.install-actions button{padding:13px 16px;border:0;border-radius:12px;font:inherit;font-weight:800;cursor:pointer;background:#e4edda;color:#214f47}#install-native{background:#ffd05b}.install-actions button:focus-visible,#install-banner button:focus-visible{outline:3px solid #268f99;outline-offset:3px}
