:root{font-family:ui-rounded,"Trebuchet MS",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#594438;background:#fbf4e9;font-synthesis:none;--ink:#604a39;--paper:#fffdf5;--brown:#80604c;--mint:#d3edd5;--pink:#f9d8cd;--gold:#f8ca6f;--line:#f0e1cb;--soft-shadow:0 7px 0 #e5d4b9,0 17px 30px #6d563528}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;overflow-x:hidden;background:radial-gradient(ellipse at 15% 10%,#fff5d8,transparent 40%),radial-gradient(ellipse at 95% 60%,#e7f5e0,transparent 38%),#fbf4e9}
button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible,[tabindex]:focus-visible{outline:4px solid #edaa58;outline-offset:3px}
button:disabled{opacity:.5;cursor:not-allowed}
.shell{min-height:100vh;max-width:1650px;margin:auto;padding-bottom:120px}
.topbar{min-height:92px;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px clamp(16px,3vw,44px);background:#fffaf0;border-bottom:2px solid #f1e4ca;box-shadow:0 6px 16px #9a886414}
.brand{display:flex;align-items:center;gap:11px}
.brand-mascot{font-size:35px;border:3px solid #f3dfab;border-bottom-width:6px;width:62px;height:62px;background:#f9e9ba;border-radius:21px;display:grid;place-items:center;transform:rotate(-5deg);box-shadow:2px 4px 0 #e7c88d}
.brand-title b{font-size:27px;line-height:1.05;letter-spacing:-.06em;display:block;color:#8c6144}
.brand-title b span{color:#4d9a75}
.brand-title small{font-size:9px;letter-spacing:.18em;color:#b39b85;font-weight:900}
.topbar-right{display:flex;gap:10px;align-items:center}
.hud-counter{display:flex;align-items:center;gap:7px;background:#fff2cb;border:2px solid #f1d58d;border-radius:50px;padding:10px 15px;box-shadow:0 4px #eacb83;white-space:nowrap}
.hud-counter span{font-size:21px}
.hud-counter b{font-size:17px;color:#8e693b}
.hud-counter small{font-size:9px;font-weight:900;color:#b49267}
.hud-menu{font-size:24px;color:#9a795d;width:47px;height:47px;background:#fff;border:2px solid #eedbc5;border-bottom-width:5px;border-radius:15px}
.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:23px;align-items:start;padding:22px clamp(16px,3vw,44px)}
.playpane,.sidepane{min-width:0;display:flex;flex-direction:column;gap:19px}
.welcome-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 3px 0}
.tiny-heading{font-size:11px;font-weight:950;letter-spacing:.11em;color:#da9870}
.welcome-bar h1{font-size:clamp(25px,3vw,36px);margin:7px 0 5px;color:#76523d;letter-spacing:-.055em;line-height:1.14}
.welcome-bar h1 span{color:#eabf64}
.welcome-bar p{color:#af9d88;font-size:13px;margin:0}
.demo-pill{font-size:10px;font-weight:900;letter-spacing:.06em;white-space:nowrap;background:#eaf6e7;color:#5d9976;border:2px solid #c7e6c9;border-bottom-width:4px;border-radius:30px;padding:10px 13px}
.world-frame{background:#fffdf7;border:3px solid #e7d7b9;border-radius:28px;box-shadow:0 9px 0 #e8d8b8,0 20px 35px #70552f12;overflow:hidden}
.world-header{height:78px;display:flex;justify-content:space-between;align-items:center;padding:12px 23px;gap:12px;border-bottom:3px solid #f4e9d6;background:linear-gradient(180deg,#fffef9,#fff9ed)}
.location-title{display:flex;align-items:center;gap:11px}
.location-icon{font-size:26px;display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#d8ebc5;border:2px solid #b7d9b4;box-shadow:0 3px #b6d6b5}
.location-title b{display:block;font-size:19px;letter-spacing:-.04em;color:#795642}
.location-title small{display:block;color:#b09b85;font-size:11px;margin-top:3px}
.world-mode{background:#fff2ce;border:1px solid #efdcac;border-radius:20px;padding:9px 12px;color:#bd8a4e;font-size:10px;font-weight:900;white-space:nowrap}
.map-card{background:#d4edb8}
.map-card[hidden],.list-card[hidden]{display:none}
.map-viewport{position:relative;min-height:430px;overflow:hidden;background:#dbefbc}
.world{width:100%;height:clamp(420px,52vw,570px);max-height:630px;display:block;touch-action:none;user-select:none;-webkit-user-select:none}
.garden{filter:drop-shadow(0 4px 4px #64875644)}
.world-stamp{position:absolute;top:13px;left:17px;color:#689c68;background:#fffaf0df;font-weight:950;letter-spacing:.085em;font-size:10px;padding:10px 15px;border:2px solid #fff;border-radius:19px;box-shadow:0 5px 16px #60905728;pointer-events:none}
.zoom-dock{position:absolute;right:14px;bottom:14px;display:flex;flex-direction:column;gap:7px}
.zoom-dock button{width:40px;height:40px;border:2px solid #efdfbe;border-bottom-width:5px;border-radius:14px;background:#fffbef;color:#8e704d;font-size:22px;line-height:1;font-weight:950;box-shadow:0 3px 8px #639f6130}
.map-controls{min-height:70px;padding:13px 17px;display:flex;align-items:center;gap:9px;flex-wrap:wrap;border-top:3px solid #e0e7ca;background:#fffdf4}
.game-button{border:2px solid transparent;border-bottom-width:5px;font-weight:900;font-size:12px;border-radius:14px;padding:12px 15px;min-height:46px;white-space:nowrap}
.game-button.create{background:linear-gradient(180deg,#83d4a9,#58ae84);color:white;border-color:#58b18b #58b18b #338f68;text-shadow:0 1px #458a69}
.game-button.create.active{background:#eeb07c;border-color:#d79c64}
.game-button.secondary{background:#fff4df;color:#95744e;border-color:#f0dfc2 #f0dfc2 #dec49c}
.save-indicator{font-size:10px;color:#89a17f;font-weight:850;margin-left:auto}
.view-switch{display:flex;gap:9px;padding:12px 17px 17px;background:#fffdf7;border-top:2px solid #f4ebdd}
.view-button{font-size:13px;font-weight:900;color:#bba18a;background:#f7f0df;border:2px solid #efdfc5;border-radius:13px;padding:10px 18px;min-height:43px}
.view-button.active{color:#5c8762;background:#e7f5e6;border-color:#bbdfc2;box-shadow:0 3px #bddab8}
.list-card{padding:18px;background:#f9f7ed;border-top:2px solid #f0e5d0}
.list-entry{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:2px solid #eee2cd;border-bottom-width:5px;border-radius:15px;padding:15px;margin-bottom:9px}
.list-entry:last-child{margin-bottom:0}
.list-entry strong{font-size:14px}
.list-entry p{font-size:11px;color:#af9c86;margin:3px 0 0}
.list-entry .button{border:2px solid #b9ddc4;border-bottom-width:4px;background:#e7f6e9;padding:9px 10px;color:#478263;font-size:11px;font-weight:900;border-radius:12px}
.card{background:#fffdf8;border:2px solid #f0e2cc;border-bottom-width:6px;border-radius:23px}
.office-panel{padding:20px 22px}
.office-placeholder{display:flex;gap:16px;align-items:center;min-height:94px}
.placeholder-emoji{font-size:41px;display:grid;place-items:center;border:3px solid #f4debe;border-radius:17px;background:#fff1d5;width:69px;height:69px;flex-shrink:0}
.office-placeholder h3{font-size:20px;margin:0 0 6px;color:#795541}
.office-placeholder p{font-size:12px;color:#b5a08a;margin:0}
.office-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.office-heading h3{font-size:22px;letter-spacing:-.03em;color:#76523e;margin:0 0 3px}
.office-heading p{font-size:12px;color:#b19b87;margin:0}
.office-heading .tag{font-size:10px;font-weight:950;background:#fdf0d1;color:#bc9264;border-radius:30px;padding:8px 11px;border:1px solid #f0e1b8}
.office-body{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:18px}
.sloth-employee{display:flex;align-items:center;gap:13px}
.sloth-face{display:grid;place-items:center;font-size:39px;background:#f9e5c5;width:65px;height:65px;border:3px solid #eac797;border-bottom-width:6px;border-radius:19px;box-shadow:0 5px #f0dfc0}
.employee-label{font-weight:950;color:#c2a17b;font-size:10px;letter-spacing:.09em}
.sloth-employee b{display:block;color:#755843;font-size:14px;margin:4px 0}
.sloth-employee small{display:block;font-size:11px;color:#ad9b88;line-height:1.6}
.office-actions{display:flex;gap:8px;flex-wrap:wrap}
.office-actions button{font-size:11px;font-weight:900;border:2px solid #dde7ce;border-bottom-width:4px;color:#6e8a60;background:#f5fae9;border-radius:12px;padding:11px 12px}
.office-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.office-link{background:#fff2df;border:2px dashed #efcd9e;color:#9f7955;padding:8px 11px;border-radius:12px;font-size:11px;font-weight:800}
.office-link button{color:#ad7b4f;background:transparent;border:0;margin-left:7px;font-size:18px;font-weight:900}
.mission{background:linear-gradient(160deg,#fff8df,#fffaf0);padding:22px}
.mission-top{display:flex;align-items:center;gap:9px}
.mission-icon{font-size:27px}
.mission-label{font-size:10px;letter-spacing:.12em;font-weight:950;color:#cd9861}
.mission h2{margin:14px 0 5px;font-size:22px;color:#79533a;line-height:1.1}
.mission p{font-size:12px;line-height:1.5;color:#ac9781;margin:0 0 18px}
.mission-progress{background:#f4e6cd;border:2px solid #efd6ae;height:15px;border-radius:20px;padding:2px}
.mission-progress span{display:block;width:23%;height:100%;border-radius:10px;background:#8fcb89}
.mission small{display:block;color:#b7a188;font-size:10px;margin-top:12px}
.companies{padding:19px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:13px}
.section-head h2{font-size:17px;color:#785742;margin:0}
.section-head span{background:#e9f5dc;border-radius:9px;padding:5px 10px;color:#7aa16e;font-size:12px;font-weight:950}
.company-list{display:flex;flex-direction:column;gap:10px}
.company-row{display:flex;align-items:center;gap:10px;padding:9px 8px;text-align:left;width:100%;border:2px solid transparent;border-radius:15px;background:#fbf6ec;color:var(--ink)}
.company-row:hover,.company-row.selected{border-color:#b3dcae;background:#edf9e8}
.company-symbol{display:grid;place-items:center;font-size:27px;width:45px;height:47px;border-radius:12px;flex-shrink:0;border:2px solid #ffffff99}
.company-name{display:block;font-weight:950;font-size:12px}
.company-meta{display:block;font-size:10px;color:#a79a8a;margin-top:3px}
.company-chevron{margin-left:auto;font-weight:900;color:#a2bd9b;font-size:22px}
.road-total{margin-top:14px;padding:13px 2px 0;border-top:2px dashed #f2e2ca;display:flex;justify-content:space-between;font-size:11px;color:#a79179}
.road-total b{font-size:14px;color:#7e986f}
.tip{display:flex;gap:10px;align-items:start;padding:15px;background:#eff8ed;border-color:#dcead5}
.tip-symbol{font-size:26px}
.tip b{font-size:12px;color:#648a66}
.tip p{font-size:11px;line-height:1.5;color:#8fa28b;margin:4px 0 0}
.building{cursor:grab;touch-action:none;outline:none}
.building.dragging{cursor:grabbing}
.building.selected .selection-ring{opacity:1}
.building .selection-ring{opacity:0;transition:opacity .18s}
.building:hover .selection-ring,.building:focus .selection-ring{opacity:.8}
.building-name{font-size:18px;font-weight:950;fill:#73553d;stroke:#fffde8;stroke-width:5px;paint-order:stroke}
.building-tag{font-size:11px;font-weight:950;fill:#79976f;stroke:#fffde8;stroke-width:3px;paint-order:stroke}
.building-bubble{font-size:12px;font-weight:900;fill:#936b4d}
.building-emoji{font-size:28px;text-anchor:middle;pointer-events:none}
.sloth-cheek{fill:#e6a8a0;opacity:.8}
.sloth-eye{transform-box:fill-box;transform-origin:center;animation:eye-blink 6s infinite}
@keyframes eye-blink{0%,44%,46%,90%,93%,100%{transform:scaleY(1)}45%,91%{transform:scaleY(.2)}}
.bottom-dock{position:fixed;z-index:11;left:50%;bottom:16px;transform:translateX(-50%);display:flex;justify-content:center;gap:7px;background:#fffdf6;border:3px solid #e8d8ba;border-bottom-width:7px;border-radius:23px;padding:9px;box-shadow:0 10px 25px #604c3840;max-width:calc(100% - 24px)}
.dock-item{border:2px solid transparent;background:transparent;border-radius:16px;color:#ac9a88;min-width:78px;min-height:62px;padding:7px 9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.dock-item.selected{background:#e5f6da;border-color:#c2e2b2;color:#6b9b61}
.dock-icon{font-size:25px}
.dock-item b{font-size:10px;white-space:nowrap}
.footer{text-align:center;font-size:9px;color:#b8a58d;letter-spacing:.07em;padding:22px}
.toast{z-index:30;position:fixed;bottom:111px;left:50%;transform:translate(-50%,160%);background:#715b4a;border:3px solid #fff5e8;border-radius:17px;box-shadow:0 9px 24px #543d2c4d;color:#fff;font-size:12px;font-weight:850;max-width:min(500px,calc(100vw - 22px));min-width:220px;padding:13px 20px;text-align:center;transition:transform .25s}
.toast.visible{transform:translate(-50%,0)}
@media(max-width:1120px){.game-layout{grid-template-columns:minmax(0,1fr) 265px;gap:15px;padding-left:18px;padding-right:18px}.world-mode{display:none}.mission,.companies{padding:14px}}
@media(max-width:850px){.game-layout{display:flex;flex-direction:column}.playpane{width:100%}.sidepane{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:12px}.tip{grid-column:1/-1}.map-viewport{min-height:410px}.world{height:450px}}
@media(max-width:580px){
 .shell{padding-bottom:130px}
 .topbar{padding:10px 14px;min-height:74px}
 .brand-mascot{font-size:27px;width:49px;height:49px;border-radius:17px}
 .brand-title b{font-size:21px}
 .brand-title small{font-size:8px}
 .hud-counter{padding:7px 9px;gap:3px}
 .hud-counter b{font-size:13px}
 .hud-counter small{font-size:7px}
 .hud-counter span{font-size:16px}
 .hud-menu{width:39px;height:39px;font-size:21px}
 .game-layout{padding:12px;gap:13px}
 .welcome-bar{padding:2px 4px 1px;align-items:start}
 .welcome-bar h1{font-size:23px;margin:4px 0 2px}
 .welcome-bar p{font-size:11px}
 .tiny-heading{font-size:9px}
 .demo-pill{font-size:8px;padding:7px 8px;letter-spacing:0;max-width:115px;text-align:center}
 .world-frame{border-radius:21px;border-width:2px;box-shadow:0 6px #e8d8b8}
 .world-header{height:65px;padding:9px 12px}
 .location-icon{width:39px;height:39px;font-size:22px;border-radius:12px}
 .location-title b{font-size:16px}
 .location-title small{font-size:9px}
 .world-mode{display:none}
 .map-viewport{min-height:360px}
 .world{height:clamp(355px,112vw,500px)}
 .world-stamp{font-size:8px;top:8px;left:8px;padding:7px 9px;max-width:225px}
 .zoom-dock{bottom:8px;right:8px;gap:4px}
 .zoom-dock button{height:35px;width:35px;font-size:19px}
 .map-controls{padding:10px;gap:8px}
 .game-button{flex:1;padding:8px 9px;font-size:10px;min-height:42px;border-radius:10px}
 .save-indicator{width:100%;text-align:center;font-size:9px}
 .view-switch{padding:7px 10px 11px}
 .view-button{flex:1;font-size:11px;padding:8px}
 .office-panel{padding:13px}
 .office-placeholder{gap:12px;min-height:74px}
 .placeholder-emoji{width:56px;height:56px;font-size:31px}
 .office-placeholder h3{font-size:17px}
 .office-placeholder p{font-size:11px}
 .office-heading h3{font-size:18px}
 .office-body{margin-top:13px}
 .sloth-face{width:55px;height:55px;font-size:33px}
 .sidepane{grid-template-columns:1fr}
 .tip{grid-column:1}
 .mission{display:none}
 .companies{padding:13px}
 .company-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .company-row{padding:7px 3px;flex-direction:column;align-items:center;text-align:center;gap:4px}
 .company-symbol{width:38px;height:38px;font-size:21px}
 .company-name{font-size:9px}
 .company-meta,.company-chevron{display:none}
 .road-total{margin-top:9px}
 .tip{display:none}
 .bottom-dock{bottom:calc(6px + env(safe-area-inset-bottom,0px));width:calc(100% - 14px);padding:5px;border-radius:19px;gap:1px}
 .dock-item{flex:1;min-width:0;padding:6px 2px;min-height:55px;border-radius:12px}
 .dock-icon{font-size:22px}
 .dock-item b{font-size:9px}
 .footer{font-size:8px;padding:11px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
