@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#123f35;background:#f5f8f0;font-synthesis:none;--green:#124d3b;--lime:#ddf49a;--ink:#103e35;--line:#d8e2d5}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #dfb43d;outline-offset:4px}button:disabled{cursor:default;opacity:.48}button:hover:not(:disabled){filter:brightness(.94)}[hidden]{display:none!important}a{color:inherit}.topbar{height:86px;padding:0 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#f9fbf5;gap:20px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font:700 20px Outfit,sans-serif;letter-spacing:-.5px}.brand-mark{display:grid;place-items:center;background:var(--green);color:var(--lime);width:42px;height:44px;border-radius:13px;font-size:35px}.brand small{display:block;font:700 10px 'DM Sans',sans-serif;letter-spacing:3px;margin-top:3px}.topbar nav{display:flex;gap:4px;background:#e9efe3;padding:5px;border-radius:30px}.world{border-radius:25px;padding:12px 23px;font-weight:700;font-size:15px}.world.active{background:var(--green);color:#fff}.wallet{position:relative;text-align:right;background:var(--lime);border:1px solid #bdce8f;border-radius:14px;padding:10px 20px}.wallet>span{display:block;font-size:10px;letter-spacing:1.4px}.wallet strong{font:700 23px Outfit}.wallet b{position:absolute;top:-6px;right:-7px;background:#f6c65d;border-radius:20px;padding:4px 7px;font-size:11px}#game{height:min(69vw,690px);min-height:520px;position:relative;overflow:hidden;background:#bce6d7}#viewport{position:absolute;inset:0;touch-action:none}#viewport canvas{display:block;width:100%;height:100%}.world-title{position:absolute;left:4%;top:35px;pointer-events:none}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px}.eyebrow i{display:inline-block;background:#38996d;width:6px;height:6px;border-radius:50%;margin-right:6px}h1{font:600 clamp(26px,3.2vw,47px)/1.05 Outfit,sans-serif;letter-spacing:-1.6px;margin:16px 0 10px} .world-title p{font-size:13px;opacity:.75}.view-controls{position:absolute;right:3%;top:28px;display:flex;gap:6px}.view-controls button{background:#fff9;backdrop-filter:blur(8px);border:1px solid #fff9;width:40px;height:42px;border-radius:12px;font-size:23px}.quest{position:absolute;left:4%;bottom:68px;display:flex;align-items:center;gap:12px;background:#f9fff2ed;border:1px solid #fffa;box-shadow:0 10px 40px #00362613;border-radius:17px;padding:16px;max-width:390px}.quest-icon{font-size:27px;background:var(--lime);border-radius:12px;padding:10px}.quest small{font-size:9px;letter-spacing:1.6px;display:block;font-weight:800;color:#467c60}.quest strong{font:600 16px Outfit;display:block;margin-top:4px}.quest p{font-size:11px;margin:5px 0 0}.quest button{background:#e6eddf;border-radius:50%;width:27px;height:27px;flex-shrink:0}.play-actions{position:absolute;right:3%;bottom:74px;display:flex;gap:8px}.play-actions button{display:flex;align-items:center;gap:8px;padding:13px 17px;border-radius:13px;background:#f8fff1ed;font-weight:700;font-size:13px;box-shadow:0 6px 20px #003c2320}.play-actions .earn{background:var(--green);color:#effdcf}.scene-footer{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:15px 4%;font-size:11px;color:#255e50;background:linear-gradient(transparent,#c6e7d7d9)}.scene-footer button{font-size:11px;text-decoration:underline}.shop{padding:24px 4% 20px}.shop-heading{display:flex;align-items:center;gap:26px;justify-content:space-between;margin-bottom:18px}.shop h2{font:600 25px Outfit;letter-spacing:-.7px;margin:5px 0 0}.shop .eyebrow{font-size:9px;color:#6b806d}.shop-tabs{display:flex;gap:6px;flex:1;margin-left:30px}.shop-tabs button{font-size:13px;font-weight:700;padding:10px 17px;border-radius:20px}.shop-tabs button[aria-selected=true]{background:#e2edcf}.collection{font-size:12px;font-weight:700}.collection span{display:inline-block;border-radius:12px;background:#e3ebda;padding:5px 9px;margin-left:5px}.catalog{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:12px;overflow-x:auto;padding-bottom:6px}.card{border:1px solid var(--line);border-radius:17px;background:#fff;text-align:left;padding:10px;min-width:130px;transition:transform .15s;position:relative}.card:hover{transform:translateY(-3px)}.card img{display:block;width:100%;height:93px;object-fit:contain;background:radial-gradient(ellipse,#edf4e1,transparent 70%);border-radius:10px}.card .card-name{display:block;font:600 14px Outfit;margin:7px 3px 5px}.card .card-price{font-size:11px;font-weight:700;color:#578254;margin:0 3px}.card .plus{position:absolute;right:10px;bottom:10px;border-radius:50%;background:#edf4df;padding:3px 7px}.footer{display:flex;justify-content:space-between;gap:20px;padding:12px 4% 20px;font-size:11px;color:#607b68}.footer a,.footer button{text-decoration:none;font-size:11px}.footer>span{flex:1}#loading{position:absolute;inset:0;display:grid;place-items:center;font:600 24px Outfit;background:#c6e7d7;z-index:2}#selection,#placement{position:absolute;top:185px;left:4%;max-width:300px;background:#fcfff5ed;padding:16px;border:1px solid #fff;border-radius:15px;box-shadow:0 12px 30px #03331a18}#selection strong,#placement strong{display:block;font:600 18px Outfit;margin-bottom:10px}#selection>div{display:flex;gap:6px;flex-wrap:wrap}#selection button,#placement button{background:#e3edda;padding:9px 11px;font-size:12px;border-radius:9px}#selection #removeItem{background:#f3e6d5}#placement{max-width:340px}#placement button{margin-right:6px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:#123f35;color:white;padding:14px 24px;border-radius:20px;font-weight:600;z-index:30;opacity:0;pointer-events:none;transition:.2s;max-width:90vw;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:0;border-radius:25px;width:min(560px,94vw);padding:25px;color:var(--ink);background:#f9fcf4;box-shadow:0 30px 100px #00251f55;max-height:88dvh;overflow:auto}dialog::backdrop{background:#052f3b66;backdrop-filter:blur(5px)}.sheet-top{display:flex;align-items:center;justify-content:space-between}.sheet-top button{padding:9px;background:#e7eeda;border-radius:50%;width:36px;height:36px}dialog h2{font:600 32px Outfit;letter-spacing:-1px;margin:14px 0}dialog p{font-size:15px;line-height:1.6}.job-choice,.wide-button{width:100%;text-align:left;background:#e5efdb;border:1px solid #cedcc2;border-radius:15px;margin:8px 0;padding:17px;font-weight:700}.job-choice small{display:block;font-weight:400;margin-top:6px;line-height:1.5}.job-choice b{float:right}.wide-button{text-align:center;background:var(--green);color:white}.piggy{font-size:90px;text-align:center;background:#eaf1dc;border:2px dashed #a9c586;border-radius:20px;padding:20px;position:relative}.piggy small{font-size:14px;display:block}.bill-tray{display:flex;flex-wrap:wrap;gap:10px;padding:18px 0}.bill{background:#d0e6ab;border:2px solid #779650;border-radius:8px;box-shadow:inset 0 0 0 4px #eaf2d8;padding:18px;font-weight:800;touch-action:none;cursor:grab}.bill.dragging{position:fixed;z-index:100;pointer-events:none;opacity:.8}.owned-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.owned-list button{padding:12px;background:#e3edda;border-radius:10px;text-align:left;font-size:14px}.note{font-size:12px!important;color:#54705c}#drivePad{position:absolute;bottom:135px;right:3%;text-align:center;touch-action:none}#drivePad button{width:44px;height:44px;background:#f6fff0dc;border-radius:12px;margin:2px}.help-list li{margin:12px 0;line-height:1.5}#game.chilling .world-title,#game.chilling .quest{opacity:.25;transition:opacity 1s}
@media(min-width:1600px){#game{height:740px;max-height:70vh}.card img{height:110px}}
@media(max-width:900px){.brand{font-size:16px}.topbar{padding:0 20px}.world{padding:10px 15px}.world-title{top:24px}.quest{max-width:300px;bottom:125px}.play-actions{left:4%;right:auto;bottom:64px}.catalog{grid-template-columns:repeat(6,150px)}.shop-tabs{margin-left:0}.shop-heading{gap:10px}.collection{display:none}#selection,#placement{top:160px}.scene-footer>span:nth-child(2){display:none}}
@media(max-width:600px){.topbar{height:72px;padding:0 12px;gap:8px}.brand{font-size:0;gap:0}.brand small{display:none}.brand-mark{width:36px;height:38px;font-size:30px}.world{font-size:12px;padding:9px 10px}.wallet{padding:8px 12px}.wallet>span{font-size:8px}.wallet strong{font-size:17px}#game{height:630px;min-height:0}.world-title{left:20px;top:20px}h1{font-size:29px;margin:10px 0;letter-spacing:-1px}.world-title p{font-size:11px}.view-controls{top:142px;right:12px;flex-direction:column;gap:4px}.view-controls button{width:34px;height:36px;font-size:21px}.quest{left:14px;right:14px;bottom:114px;max-width:none;padding:10px;gap:8px}.quest-icon{font-size:20px;padding:8px}.quest strong{font-size:14px}.quest small{font-size:8px}.quest p{font-size:10px}.quest button{margin-left:auto}.play-actions{left:14px;right:14px;bottom:57px;gap:6px;justify-content:space-between}.play-actions button{padding:12px 10px;font-size:11px;gap:5px}.scene-footer{font-size:9px;padding:16px}.scene-footer button{font-size:10px}.shop{padding:18px 14px}.shop-heading{flex-wrap:wrap}.shop h2{font-size:23px}.shop-tabs{flex-basis:100%;margin-top:6px;gap:3px}.shop-tabs button{font-size:12px;padding:9px 13px}.catalog{grid-template-columns:repeat(6,135px);gap:9px}.card img{height:80px}.footer{flex-wrap:wrap;gap:12px;padding:5px 15px 20px}.footer>span{flex-basis:100%}#selection,#placement{left:12px;top:152px;max-width:260px;padding:12px}#selection button{padding:10px;font-size:11px}#drivePad{bottom:215px;right:12px}dialog{padding:20px}dialog h2{font-size:27px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

#jobMarkers{position:absolute;inset:0;pointer-events:none}#jobMarkers button{position:absolute;transform:translate(-50%,-110%);width:36px;height:36px;border-radius:50%;background:#fff0a5;border:2px solid #ba9337;color:#577340;font-size:22px;box-shadow:0 3px 8px #394c2b30;pointer-events:auto}#jobMarkers button:focus-visible{outline:4px solid #1d7160}#jobMarkers button::after{content:"";position:absolute;left:14px;bottom:-7px;border-left:3px solid transparent;border-right:3px solid transparent;border-top:6px solid #ba9337}
@media(max-width:900px){.collection{display:block;margin-left:auto}.shop-heading{flex-wrap:wrap}.shop-tabs{order:3;flex-basis:100%}}

#jobMarkers .delivery-assist{width:auto;height:auto;transform:none;left:50%;top:18px;translate:-50% 0;border-radius:16px;font-size:14px;font-weight:700;padding:14px 20px;white-space:nowrap}#jobMarkers .delivery-assist::after{display:none}@media(max-width:600px){#jobMarkers .delivery-assist{top:140px;left:14px;translate:none;font-size:12px;padding:12px}}

.topbar nav{display:flex;align-items:center}.topbar a.world{text-decoration:none;color:inherit;white-space:nowrap}.shop-tabs{flex-wrap:wrap}@media(max-width:600px){.topbar{height:auto;min-height:98px;flex-wrap:wrap;padding:10px 12px}.topbar nav{order:3;flex-basis:100%;justify-content:center}.wallet{margin-left:auto}.world{min-height:42px}.view-controls button{width:44px;height:44px}.shop-tabs button{min-height:44px}}

.topbar a.world.active{color:#effdcf}

.play-actions .earn,.work-cue{background:#8cf238;color:#143b20;border:2px solid #397e20;box-shadow:0 4px 0 #397e20,0 6px 20px #4a9c2635;font-weight:800}.play-actions .earn:hover,.work-cue:hover{background:#a3ff4d}.play-actions .earn:focus-visible,.work-cue:focus-visible{outline:4px solid #fff;outline-offset:3px}

.sound-switch{background:#e3edda;border:1px solid #b8cca4;border-radius:12px;min-width:44px;height:44px;font-size:22px}.topbar{gap:10px}.topbar nav{flex-wrap:wrap}

.shop.aquatics{background:linear-gradient(120deg,#0e3437,#123f44 65%,#092c35);color:#eff8e6;padding-top:30px;padding-bottom:32px;border-top:8px solid #55796b}.aquatics .eyebrow{color:#a6c9b4}.aquatics .shop-tabs button[aria-selected=true]{background:#bfe7b5;color:#173e37}.aquatics .collection span{background:#37635a}.aquatics .catalog{grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:22px}.display-tank{background:#e9e6d4;border:5px solid #264b48;border-radius:8px;color:#153e37;padding:0 0 16px;box-shadow:0 10px 24px #00191960;overflow:hidden}.display-tank canvas{width:100%;height:auto;display:block;border-bottom:7px solid #31534f;background:#093b48}.display-tank .card-name{margin:12px 14px 3px;font-size:19px}.display-tank .tank-label{display:block;margin:0 14px 12px;color:#4f6960;font-size:11px}.display-tank .card-price{margin:0 14px}.tank-inspect{float:right;margin-right:12px;font-size:12px;font-weight:700}.fish-detail{width:min(780px,96vw);background:#eef0e2}.inspection-tank{width:100%;height:auto;border:8px solid #264b48;border-radius:8px}.species-latin{font-style:italic;color:#3c7163}.tank-controls{display:flex;align-items:center;gap:15px}.tank-controls>button:first-child{white-space:nowrap;min-height:44px}.tank-controls .wide-button{margin:0}.topbar .world{padding-left:14px;padding-right:14px}@media(max-width:700px){.aquatics .catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.display-tank{min-width:0}.display-tank .card-name{font-size:14px;margin:8px 8px 3px}.display-tank .tank-label{margin:0 8px 8px;font-size:9px}.display-tank .card-price{margin-left:8px;font-size:10px}.tank-inspect{float:none;display:block;margin:8px 8px 0;font-size:11px}.topbar .world{padding-left:8px;padding-right:8px}}

.kid-shop{position:absolute;left:4%;top:175px;background:linear-gradient(#b7ff67,#7af02b);color:#173f23;border:3px solid #3c8420;border-radius:16px;min-height:54px;padding:12px 18px;box-shadow:0 4px 0 #36701e;font-size:16px;font-weight:800}.fish-detail .wide-button{background:linear-gradient(#b7ff67,#7af02b);color:#173f23;border:3px solid #3c8420;min-height:62px;font-size:19px;box-shadow:0 4px 0 #36701e}.kid-shop:focus-visible{outline:4px solid white;outline-offset:3px}#game:has(#placement:not([hidden])) .kid-shop,#game:has(#selection:not([hidden])) .kid-shop{display:none}@media(max-width:600px){.kid-shop{top:130px;left:14px;max-width:260px;font-size:14px;min-height:50px;padding:10px 12px}#game.chilling .kid-shop{opacity:.85}}

a.job-choice{display:block;text-decoration:none;}

.town-visits{position:absolute;right:22px;top:88px;z-index:5}.town-visits select{max-width:220px;padding:12px;border:1px solid #a5b9a6;border-radius:12px;background:#f6f3e8;color:#204c3e;font:inherit;font-size:14px;font-weight:600}.town-visits[hidden]{display:none}@media(max-width:650px){.town-visits{top:140px;right:12px}.town-visits select{max-width:170px;font-size:12px;padding:9px}}

.property-rulebook{position:absolute;z-index:15;left:20px;top:24px;width:270px;padding:18px;background:#fffbee;border:2px solid #d4ddba;border-radius:18px;box-shadow:0 12px 35px #173e3426;color:#204538;max-height:calc(100% - 50px);overflow:auto}.property-rulebook[hidden],.property-drop-outline[hidden],.property-drag-piece[hidden]{display:none}.rulebook-top{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:1px}.book-close{border:0;background:#e6ebd6;border-radius:50%;width:32px;height:32px}.property-rulebook h2{font-size:20px;margin:10px 0}.book-instruction{font-size:14px;line-height:1.4;min-height:40px}.property-rulebook progress{width:100%;height:12px;accent-color:#5b9d39}.book-piece-row{display:flex;align-items:center;gap:8px}.book-piece{touch-action:none;cursor:grab;background:#f0f3de;border:2px solid #88b457;border-radius:12px;padding:8px;width:170px;margin:12px 0;font:inherit;font-size:13px;font-weight:600;color:#274d38}.book-piece img{display:block;width:100%;height:110px;object-fit:contain;pointer-events:none}.book-piece span{pointer-events:none}.book-arrow{font-size:25px;color:#6a8e3e}.book-example{font-size:11px;line-height:1.4}.book-snap{width:100%;padding:11px;background:#235741;border:0;border-radius:10px;color:white;font-weight:700}.property-rulebook details{margin-top:14px;font-size:13px}.book-steps{padding-left:20px;line-height:1.7}.book-steps .current{font-weight:800;color:#376c29}.property-drop-outline{position:absolute;z-index:5;pointer-events:none;overflow:hidden}.property-drop-outline polygon{fill:none;stroke:#e8ffc3;stroke-width:2;stroke-dasharray:9 6;stroke-linejoin:round;vector-effect:non-scaling-stroke}.property-drop-outline.dragging polygon{stroke:#f8ffe4;stroke-width:3}.property-drop-outline.over polygon{stroke:#8ad550;stroke-dasharray:none;stroke-width:3}.property-drag-piece{position:fixed;z-index:1000;transform:translate(-50%,-65%);width:135px;height:100px;object-fit:contain;filter:drop-shadow(0 8px 8px #193f3960);pointer-events:none}.building-property .world-title,.building-property .play-actions,.building-property #quest,.building-property #drivePad,.building-property .town-visits,.building-property .kid-shop,.building-property #selection,.building-property .scene-footer{display:none!important}
@media(max-width:650px){.property-rulebook{left:8px;right:8px;top:auto;bottom:8px;width:auto;padding:10px 12px;max-height:240px;border-radius:14px}.property-rulebook h2{font-size:16px;margin:4px 0}.book-instruction{font-size:12px;min-height:0;margin:5px 0}.book-piece-row{float:left;width:58%;height:76px}.book-piece{display:flex;align-items:center;width:100%;margin:4px 0;padding:3px;font-size:11px}.book-piece img{width:80px;height:60px}.book-arrow,.book-example{display:none}.book-snap{width:38%;float:right;margin-top:14px;font-size:11px;padding:10px 6px}.property-rulebook details{clear:both;margin-top:4px}.building-property .view-controls{top:12px}}

#game:has(#selection:not([hidden])) #quest{visibility:hidden}

@media(max-width:650px){#drivePad{left:12px;right:auto;bottom:205px}#drivePad button{width:48px;height:48px}#game:has(#drivePad:not([hidden])) .view-controls{top:205px}}
/* The construction book keeps the next assembly ready and explains the trade. */
.book-view{display:flex;gap:6px}.book-view button,.book-read,.book-upgrade{border:1px solid #a7b99c;background:#edf1df;color:#204538;border-radius:8px;padding:8px;font:600 12px system-ui;cursor:pointer}.book-lesson{font-size:13px;line-height:1.5;background:#edf1df;padding:10px;border-radius:9px;margin:8px 0}.book-read{margin-bottom:8px}.book-reference p{font-size:11px;line-height:1.5}.book-upgrade{margin-top:10px;width:100%}.book-upgrade[hidden],.book-read[hidden]{display:none}
@media(max-width:650px){.property-rulebook{max-height:310px}.book-view{float:right}.book-view button{padding:6px;font-size:10px}.book-lesson{font-size:12px;padding:6px;clear:both}.book-read{padding:5px;margin:0 0 4px}.property-rulebook details{font-size:11px}}
@media(min-width:651px){.property-rulebook{width:280px;padding:14px}.book-piece{width:165px;margin:8px 0}.book-piece img{height:80px}.book-instruction{min-height:0;margin:8px 0}.book-lesson{font-size:12px;padding:8px;margin:6px 0}.property-rulebook h2{font-size:18px;margin:8px 0}}
#game,.property-rulebook{overflow-anchor:none}
@media(max-width:650px){#game.building-property{height:calc(100svh - 64px);min-height:650px}.building-property #viewport{bottom:326px}.building-property .view-controls{top:8px}.property-rulebook{max-height:310px}}
@media(max-width:650px){#game.building-property .view-controls{top:8px!important;flex-direction:row}.property-rulebook h2{padding-right:64px}.property-rulebook .book-read{position:absolute;right:12px;top:47px;margin:0;padding:5px 7px}.book-piece-row{height:68px}.book-piece img{height:52px}.book-lesson{margin:4px 0}}

.book-detail{display:flex;align-items:center;gap:7px;font:600 12px system-ui;margin:8px 0;color:#244b3d}.book-detail input{width:18px;height:18px;accent-color:#467346}.book-detail[hidden]{display:none}

.town-project-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:18px 0}.town-project-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:16px;border:1px solid #b4c9b7;background:#f3f8ea;border-radius:14px;color:#163e32;text-align:left;min-height:78px}.town-project-card[aria-current=true]{border:2px solid #3e8756;background:#e3f0d4}.town-project-card span{font-size:12px}#renameTown{display:flex;align-items:end;gap:8px}#renameTown label{display:grid;gap:6px;flex:1}#renameTown input{width:100%;min-width:0;box-sizing:border-box;border:1px solid #b4c9b7;border-radius:8px;padding:10px;font:inherit}#renameTown button{padding:10px;border-radius:8px;background:#245943;color:white;border:0}
