:root{--ink:#28372f;--muted:#78857a;--paper:#f4efe4;--panel:#fffdf8;--line:#e8e2d6;--green:#397452;--green-dark:#28583d;--sage:#dce7d4;--coral:#e47c5e;--yellow:#e9bd57;--shadow:0 12px 35px #34432e0b}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible{outline:3px solid #e4a841;outline-offset:3px}.app-shell{max-width:1440px;margin:auto;min-height:100vh}.topbar{height:76px;background:#fffdf8;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,5vw,72px)}.brand{display:flex;gap:11px;align-items:center;color:var(--ink);text-decoration:none;letter-spacing:.13em;font-size:12px}.brand small{display:block;font-size:9px;letter-spacing:.22em;color:var(--muted);margin-top:4px}.brand-mark{width:38px;height:38px;border-radius:12px;background:var(--green);color:#fff;display:grid;place-items:center;font:800 23px Manrope;transform:rotate(-4deg)}.top-stats{display:flex;align-items:center;gap:25px}.stat{display:flex;align-items:center;gap:10px}.stat-icon{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:18px}.coin{background:#f4e3b3;color:#9c7521}.star{background:#e1ebd8;color:#578059}.stat small{display:block;font-size:9px;letter-spacing:.1em;color:var(--muted);font-weight:700}.stat strong{display:block;font:700 16px Manrope;margin-top:2px}.icon-btn{border:1px solid var(--line);background:#fff;border-radius:11px;width:36px;height:36px;font-size:17px}.icon-btn:hover{background:var(--sage)}main{padding:38px clamp(20px,5vw,72px) 20px}.welcome-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.eyebrow{margin:0 0 8px;color:#82907f;font-weight:700;font-size:9px;letter-spacing:.16em}.welcome-row h1{margin:0;font:700 clamp(24px,3vw,34px) Manrope;letter-spacing:-.04em}.welcome-row h1 span{color:var(--green)}.subhead{margin:7px 0 0;color:var(--muted);font-size:13px}.level-card{display:flex;align-items:center;gap:12px;padding:10px 15px;background:#e9eee2;border-radius:15px;min-width:236px}.level-badge{height:39px;width:39px;background:#fff;border-radius:12px;display:grid;place-items:center;font:800 18px Manrope;color:var(--green)}.level-copy{flex:1}.level-copy>span{font-size:9px;letter-spacing:.12em;font-weight:800}.xp-line{display:flex;align-items:center;gap:9px;margin-top:7px}.xp-track{height:5px;background:#d2dccb;border-radius:10px;flex:1;overflow:hidden}.xp-track i{display:block;height:100%;width:0;background:var(--green);border-radius:10px;transition:width .4s}.xp-line small{font-size:9px;color:var(--muted);white-space:nowrap}.dashboard{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(285px,.8fr);gap:18px}.panel{background:var(--panel);border:1px solid #e9e4da;border-radius:18px;box-shadow:var(--shadow)}.city-panel{overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:20px 23px 16px}.panel-heading h2,.section-heading h2{margin:0;font:700 19px Manrope;letter-spacing:-.03em}.panel-heading .eyebrow,.section-heading .eyebrow{margin-bottom:5px}.text-btn,.subtle-btn{background:transparent;border:0;color:var(--green);font-weight:700;font-size:11px}.city-scene{height:286px;position:relative;overflow:hidden;background:linear-gradient(#cfe5df 0%,#e6edda 68%,#b7cdb0 100%)}.sun{position:absolute;width:63px;height:63px;background:#f4d57d;border-radius:50%;right:12%;top:13%;box-shadow:0 0 0 13px #f4d57d33}.cloud{position:absolute;width:84px;height:21px;background:#ffffff99;border-radius:30px;top:22%}.cloud:before,.cloud:after{content:'';position:absolute;background:inherit;border-radius:50%;bottom:4px}.cloud:before{width:33px;height:33px;left:13px}.cloud:after{width:25px;height:25px;left:40px}.cloud-a{left:13%}.cloud-b{left:54%;top:12%;transform:scale(.7)}.skyline{position:absolute;bottom:50px;left:0;right:0;height:130px;display:flex;align-items:end;justify-content:space-around;opacity:.42}.skyline span{width:8%;border:1px solid #829d8e;background:repeating-linear-gradient(90deg,transparent 0 12px,#74948330 13px 15px),repeating-linear-gradient(0deg,#fff4 0 12px,transparent 13px 19px);border-radius:4px 4px 0 0}.skyline span:nth-child(1){height:61%}.skyline span:nth-child(2){height:78%}.skyline span:nth-child(3){height:48%}.skyline span:nth-child(4){height:90%}.skyline span:nth-child(5){height:64%}.skyline span:nth-child(6){height:77%}.skyline span:nth-child(7){height:54%}.city-road{position:absolute;bottom:38px;height:26px;background:#d6d2bd;width:110%;left:-5%;transform:rotate(-3deg);border-top:2px solid #fff9;border-bottom:2px solid #fff9}.city-road:after{content:'';position:absolute;top:10px;left:0;right:0;border-top:2px dashed #fff}.district-grid{position:absolute;inset:35px 6% 48px;display:grid;grid-template-columns:repeat(4,1fr);gap:11px;align-items:end}.district-tile{position:relative;min-height:95px;border:1px solid #52695726;border-radius:14px 14px 9px 9px;background:#f9f1dc;box-shadow:0 8px 16px #3f57481a;display:flex;flex-direction:column;justify-content:end;padding:11px;transition:transform .18s,box-shadow .18s;cursor:pointer}.district-tile:hover{transform:translateY(-5px);box-shadow:0 13px 20px #3f574833}.district-tile.locked{filter:saturate(.5);opacity:.7}.district-tile.selected{outline:3px solid #fff;outline-offset:1px}.district-tile:nth-child(2){background:#e7dfcc;min-height:133px}.district-tile:nth-child(3){background:#dce9e5;min-height:112px}.district-tile:nth-child(4){background:#e6e8d2;min-height:122px}.district-emoji{font-size:26px;line-height:1;margin-bottom:7px}.district-name{font:700 11px Manrope}.district-meta{font-size:9px;color:#68786c;margin-top:3px}.district-pill{position:absolute;top:8px;right:8px;font-size:8px;border-radius:20px;background:#fffbd9;padding:4px 6px;color:#877028;font-weight:800}.city-caption{position:absolute;bottom:0;height:37px;left:0;right:0;background:#fffdf8ee;display:flex;align-items:center;padding:0 15px;gap:8px;font-size:8px;font-weight:800;letter-spacing:.12em;color:#728074}.city-caption span:last-child{margin-left:auto;color:var(--green)}.live-dot{height:7px;width:7px;background:#70aa78;border-radius:50%;box-shadow:0 0 0 3px #70aa7822}.district-strip{display:flex;justify-content:space-between;align-items:center;padding:11px 17px;background:#fffdf8}.district-strip span{font-size:9px;color:var(--muted)}.district-strip b{font:700 10px Manrope;color:var(--ink)}.right-column{display:grid;gap:16px}.objective-panel,.pulse-panel{padding:18px 20px}.panel-heading.compact{padding:0;margin-bottom:10px}.objective-icon{height:35px;width:35px;border-radius:11px;background:#f8eecf;display:grid;place-items:center;color:#ad842e;font-size:20px}.objective-text,.pulse-panel>p{color:#657368;font-size:12px;line-height:1.55;margin:11px 0 14px}.objective-reward{border-top:1px solid var(--line);padding-top:11px;display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:.1em;color:var(--muted)}.objective-reward b{color:var(--green);letter-spacing:0;font-size:11px}.weather-icon{font-size:23px;color:#c39b40}.pulse-action{border:0;border-top:1px solid var(--line);background:none;padding:12px 0 0;width:100%;text-align:left;color:var(--green);font-weight:700;font-size:11px}.pulse-action span{float:right}.workbench{margin-top:31px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:13px}.subtle-btn span{margin-left:6px}.business-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.business-card{position:relative;background:#fffdf8;border:1px solid #e9e4da;border-radius:16px;padding:16px;min-height:146px;overflow:hidden;box-shadow:var(--shadow)}.business-card:after{content:'';position:absolute;width:100px;height:100px;background:#e7efe0;border-radius:50%;right:-26px;top:-34px;opacity:.65}.business-head{display:flex;align-items:center;gap:11px;position:relative;z-index:1}.business-icon{height:40px;width:40px;display:grid;place-items:center;background:#f8edd1;border-radius:13px;font-size:21px}.business-card:nth-child(2) .business-icon{background:#e4eddf}.business-card:nth-child(3) .business-icon{background:#f4e1d7}.business-head h3{font:700 13px Manrope;margin:0}.business-head p{margin:3px 0 0;font-size:10px;color:var(--muted)}.business-stats{display:flex;gap:17px;margin-top:15px;font-size:9px;color:var(--muted)}.business-stats b{color:var(--ink);font-size:11px}.business-action{margin-top:12px;border:0;background:none;padding:0;color:var(--green);font-size:10px;font-weight:800}.business-action:hover{text-decoration:underline}.business-card .lock-note{margin-top:13px;color:#889187;font-size:10px}.business-card.empty{display:grid;place-items:center;text-align:center;border-style:dashed;background:#f8f5ed}.empty button{border:1px solid #b8c7b6;border-radius:9px;background:#fffdf8;color:var(--green);padding:8px 12px;font-weight:700;font-size:10px}.empty p{font-size:10px;color:var(--muted);margin:8px 0 10px}.bottom-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:14px;margin-top:23px}.order-panel,.ledger-panel{padding:19px 21px}.order-tag{font-size:8px;letter-spacing:.1em;font-weight:800;color:#96782e;background:#f7efcf;padding:6px 8px;border-radius:20px}.order-body{display:flex;gap:14px;align-items:center;margin:13px 0 14px}.order-art{height:70px;width:76px;border-radius:13px;background:#f7edda;display:grid;place-items:center;font-size:39px;flex:none}.order-details h3{font:700 13px Manrope;margin:0 0 5px}.order-details p{font-size:10px;color:var(--muted);margin:0;line-height:1.4}.order-meta{display:flex;gap:14px;margin-top:9px;font-size:9px;color:var(--muted)}.order-meta b{color:var(--ink)}.order-footer{border-top:1px solid var(--line);padding-top:12px;display:flex;align-items:center;justify-content:space-between}.order-footer>span{font-size:8px;letter-spacing:.1em;color:var(--muted)}.order-footer>span b{font:800 14px Manrope;color:var(--ink);letter-spacing:0;margin-left:5px}.primary-btn{background:var(--green);border:0;color:white;border-radius:10px;padding:10px 14px;font-size:10px;font-weight:700}.primary-btn:hover{background:var(--green-dark)}.primary-btn:disabled{opacity:.45;cursor:not-allowed}.primary-btn span{margin-left:12px}.ledger-icon{color:#9b7b3b;font-size:19px}.feed{display:grid;gap:10px}.feed-item{display:flex;gap:10px;align-items:start;font-size:10px;line-height:1.4;color:#657368}.feed-icon{width:25px;height:25px;background:#edf1e7;border-radius:8px;display:grid;place-items:center;flex:none}.feed-item b{display:block;color:var(--ink);font-size:10px;margin-bottom:2px}.feed-time{color:#98a197;font-size:8px}footer{display:flex;justify-content:space-between;padding:24px 2px 7px;color:#879188;font-size:9px;letter-spacing:.04em}footer>span:first-child{color:#73806e}.reset-link{margin-left:14px;border:0;background:none;color:#98a197;text-decoration:underline;font-size:9px}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;background:#28372f;color:#fff;padding:11px 16px;border-radius:10px;font-size:12px;transition:.2s;pointer-events:none;z-index:4}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:0;background:transparent;padding:18px;width:min(550px,calc(100% - 30px));max-height:90vh}dialog::backdrop{background:#22342ca3;backdrop-filter:blur(4px)}.modal-card{position:relative;background:#fffdf8;border-radius:20px;padding:26px;box-shadow:0 24px 70px #15281e42;max-height:calc(90vh - 30px);overflow:auto}.modal-close{position:absolute;right:17px;top:13px;background:transparent;border:0;font-size:25px;color:#829083}.modal-card h2{font:700 22px Manrope;margin:0 38px 7px 0}.modal-card .eyebrow{margin-bottom:7px}.modal-copy{font-size:12px;line-height:1.6;color:#6f7b70;margin:8px 0 18px}.option-list{display:grid;gap:9px}.option{border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px;text-align:left;display:flex;justify-content:space-between;gap:12px;align-items:center}.option:hover{border-color:#91ad92;background:#f8fbf6}.option b{font:700 12px Manrope}.option small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.option strong{white-space:nowrap;color:var(--green);font-size:11px}.choice-row{display:flex;gap:8px;margin:12px 0}.choice-btn{flex:1;background:#f3f1e9;border:1px solid transparent;border-radius:9px;padding:10px 6px;font-size:10px;font-weight:700}.choice-btn.active{border-color:#6f9877;background:#e9f0e6;color:var(--green)}.modal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}.secondary-btn{border:1px solid var(--line);background:#fff;border-radius:9px;padding:10px 13px;font-size:10px;font-weight:700}.notice{padding:11px 13px;background:#f2f4eb;border-radius:10px;color:#697665;font-size:10px;line-height:1.5;margin:13px 0}.product-row{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid var(--line);font-size:11px}.product-row:last-child{border:0}.product-row span{color:#657368}.product-row b{color:var(--ink)}
@media(max-width:900px){.dashboard{grid-template-columns:1fr}.right-column{grid-template-columns:1fr 1fr}.city-scene{height:300px}.business-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.topbar{height:64px;padding:0 16px}.top-stats{gap:9px}.stat{gap:6px}.stat-icon{width:28px;height:28px;font-size:14px}.stat small{font-size:7px}.stat strong{font-size:12px}.top-stats .icon-btn{width:30px;height:30px}.brand-mark{height:32px;width:32px}.brand{font-size:10px}.brand small{font-size:8px}main{padding:26px 15px 15px}.welcome-row{align-items:flex-start;gap:10px;flex-direction:column}.level-card{min-width:0;width:100%}.right-column{grid-template-columns:1fr}.city-scene{height:260px}.district-grid{inset:39px 3% 49px;gap:6px}.district-tile{padding:7px;min-height:92px}.district-tile:nth-child(2){min-height:122px}.district-tile:nth-child(3){min-height:105px}.district-tile:nth-child(4){min-height:114px}.district-name{font-size:9px}.district-meta{font-size:8px}.district-emoji{font-size:21px}.district-strip{padding:10px;gap:6px}.district-strip span{font-size:8px}.business-grid{grid-template-columns:1fr}.business-card{min-height:132px}.bottom-grid{grid-template-columns:1fr}.order-panel,.ledger-panel{padding:16px}footer{gap:12px;line-height:1.5}footer span:last-child{text-align:right}.section-heading h2{font-size:17px}}
