@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800;900;1000&display=swap');
:root{--stone:#5a594e;--deep:#34382f;--cream:#fff1d4;--gold:#ffc05b}*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden}body{background:#8c9a65;font:800 14px Nunito,sans-serif;color:var(--cream)}button,input,a{font:inherit;-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #ffe9ac;outline-offset:3px}[hidden]{display:none!important}#world{position:fixed;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}#world:active{cursor:grabbing}.world-shade{position:fixed;inset:0;pointer-events:none;background:linear-gradient(180deg,#faf5df66,transparent 20%,transparent 70%,#18382639);box-shadow:inset 0 0 110px #23412030}#labels{position:fixed;inset:0;pointer-events:none;overflow:hidden}.farm-label{position:absolute;left:0;top:0;pointer-events:auto;border:2px solid #b8af8c;background:linear-gradient(#777467,#595c50);border-radius:9px;padding:5px 10px 4px;color:#fff7e0;box-shadow:0 3px 0 #353c33,0 6px 12px #0003;line-height:1.05;font-weight:1000;font-size:13px;white-space:nowrap;text-shadow:0 1px 2px #0007}.farm-label small{display:block;font-size:7px;letter-spacing:1.1px;color:#ded6bb;margin-top:3px}.farm-label.mine{border-color:#ffd679;background:linear-gradient(#b27c33,#845c2c)}.farm-label:after{content:'';position:absolute;bottom:-7px;left:calc(50% - 5px);border:5px solid transparent;border-top-color:#4e5346;border-bottom:0}.hud{position:fixed;top:13px;left:50%;transform:translateX(-50%);display:flex;gap:8px;z-index:4;white-space:nowrap}.chip{border:2px solid #393d32;background:linear-gradient(#747165,#55584c);border-radius:14px;box-shadow:inset 0 2px 1px #e9e0bc6b,0 4px 0 #30372d88,0 7px 15px #21332235;min-height:45px;color:#fff8e3;text-shadow:0 2px 1px #1c231e80;padding:8px 14px;display:flex;align-items:center;gap:10px;font-weight:1000}.chip small{font-size:8px;letter-spacing:.7px}.day{font-size:16px}.day>span{color:#ffca65;font-size:22px}.day small{display:block;font-size:6px;line-height:1.1;color:#d9d5be;letter-spacing:1px;margin-top:3px}.brand{color:#ffd16f;font-size:15px;letter-spacing:.8px}.brand small{color:#e6e1cd;font-size:8px}.population b{font-size:13px}.population small{font-size:9px;color:#e6dfc8}.progress{width:95px;height:11px;border-radius:20px;border:2px solid #ede8cf;background:#3f4439;overflow:hidden;box-shadow:inset 0 1px 2px #0005}.progress i{display:block;height:100%;width:0;background:linear-gradient(#ffe19b,#ec9e3b);transition:width .7s}.notice{position:fixed;top:71px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;width:470px;max-width:calc(100% - 30px);background:linear-gradient(#757366f0,#55594df2);border:2px solid #3c4237;border-radius:12px;padding:9px 12px;box-shadow:inset 0 1px 0 #c6bfa189,0 5px 12px #1b33252b;z-index:3}.notice>span{font-size:22px}.notice p{font-size:10px;line-height:1.4;margin:0;flex:1}.notice button{border:0;background:none;font-size:23px;color:#d8d6bf}.dock{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);width:475px;max-width:calc(100% - 24px);z-index:4}.harvest-banner{position:relative;width:100%;display:flex;align-items:center;gap:14px;border:2px solid #e7b665;background:linear-gradient(120deg,#6b743f,#3e5936);border-radius:16px;box-shadow:inset 0 2px 0 #dfd9a155,0 5px 0 #39402b,0 8px 18px #1a281e40;padding:11px 16px;text-align:left;margin-bottom:12px;color:#fff3cb}.banner-icon{background:radial-gradient(#d4ad54,#775e28);border:2px solid #e8c875;width:54px;height:54px;display:grid;place-items:center;font-size:32px;border-radius:50%;box-shadow:0 3px 0 #253b2d}.harvest-banner small{position:absolute;left:74px;top:-12px;background:linear-gradient(#ffe5a3,#edb34c);color:#75501d;padding:4px 12px;border-radius:7px;font-size:9px;letter-spacing:1.1px;transform:rotate(-3deg);box-shadow:0 2px 0 #9c6e30}.harvest-banner strong{display:block;font-size:18px;font-weight:1000;line-height:1.2;text-shadow:0 2px 1px #22351e80}.harvest-banner em{display:block;font-size:10px;font-style:normal;margin-top:4px;color:#e3e6c3}.harvest-banner b{border:2px solid #f5d38b;border-radius:50%;width:42px;height:42px;display:grid;place-items:center;background:linear-gradient(#ffe092,#efa73b);box-shadow:0 3px 0 #88662f;color:#654b27;margin-left:auto;font-size:17px}.actions{display:flex;gap:9px}.gold,.stone{border:2px solid #514f3b;border-radius:13px;box-shadow:inset 0 2px 1px #fff5bc77,0 5px 0 #3b423299,0 7px 12px #192b2029;min-height:67px;font-size:15px;font-weight:1000;letter-spacing:.2px;display:flex;align-items:center;justify-content:center;gap:9px;padding:11px 14px;line-height:1.05;text-decoration:none;text-align:center}.gold{background:linear-gradient(#ffd786,#f6ac41);border-color:#9b773e;color:#473a26;text-shadow:0 1px 0 #ffe6ac}.stone{background:linear-gradient(#807c6d,#616457);color:#faf2da;text-shadow:0 2px 0 #343c2d80}.gold:hover{filter:brightness(1.08)}.stone:hover,.chip:hover{filter:brightness(1.1)}.actions .gold{flex:1.04}.actions .stone{flex:1;font-size:12px}.actions button:first-letter{font-size:25px}.search{margin-top:13px;display:flex;align-items:center;gap:10px;border:2px solid #3f4639;border-radius:12px;background:linear-gradient(#747467,#5c6053);padding:5px 7px 5px 14px;box-shadow:inset 0 2px 0 #d6d1ae55,0 4px 0 #343d2e80}.search>span{font-size:27px;color:#d8d5bc}.search input{color:#fff1cf;border:0;outline:0;background:#484e4166;box-shadow:inset 0 2px 6px #303b2529;border-radius:7px;min-width:0;width:100%;padding:10px 8px;font-weight:900;font-size:13px}.search input::placeholder{color:#d8d6c0}.search button{border:0;background:linear-gradient(#b1ae95,#898c76);font-size:25px;border-radius:6px;padding:2px 8px;box-shadow:0 2px 0 #414d37}.view-hint{position:fixed;bottom:276px;left:50%;transform:translateX(-50%);font-size:10px;text-shadow:0 1px 3px #213d29;color:#f6f0d5;white-space:nowrap}.map-controls{position:fixed;right:21px;bottom:40%;display:flex;flex-direction:column;gap:9px}.map-controls button{background:linear-gradient(#7c7d6a,#545f49);border:2px solid #3b4934;border-radius:50%;width:46px;height:46px;box-shadow:inset 0 2px 0 #d8d5ab66,0 4px 0 #2e432a66;color:#fff2ce;font-size:24px}.connection{position:fixed;bottom:12px;left:15px;display:flex;align-items:center;gap:6px;font-size:8px;text-shadow:0 1px 3px #253a22;background:#30432c66;border-radius:20px;padding:5px 9px;color:#ece9cc}.connection>span:first-child{width:5px;height:5px;border-radius:50%;background:#e9ba63}.connection.online>span:first-child{background:#bbd989}.empty-world{position:fixed;top:34%;left:50%;transform:translate(-50%,-50%);text-align:center;max-width:90vw;width:620px;text-shadow:0 2px 10px #293f29,0 1px 3px #2b3f2a;pointer-events:none}.founder{font-size:10px;letter-spacing:2.7px;background:#53644799;padding:6px 13px;border-radius:20px}.empty-world h1{font-size:38px;line-height:1.12;font-weight:1000;letter-spacing:-.8px;margin:15px 0 10px}.empty-world p{font-size:12px;margin:0 0 20px}.empty-world .gold{min-height:46px;font-size:12px;display:inline-flex;padding:12px 23px;pointer-events:auto}.farm-panel{position:fixed;right:20px;top:132px;width:300px;max-height:calc(100dvh - 155px);overflow:auto;border-radius:16px;border:3px solid #3e4937;background:linear-gradient(#777463,#515d47);box-shadow:inset 0 2px 1px #e4d5a777,0 12px 40px #18291c66;z-index:7}.close{position:absolute;right:10px;top:8px;width:30px;height:30px;border:1px solid #363d31;border-radius:50%;background:linear-gradient(#8c8773,#5a6450);color:#fff0cf;font-size:24px;line-height:20px;z-index:1;box-shadow:inset 0 1px 0 #d4caa155}.farm-art{height:110px;background:radial-gradient(#a6b575,#7c9059);display:grid;place-items:center;font-size:61px;box-shadow:inset 0 -12px 20px #384d2a33}.panel-body{padding:22px}.panel-body>small{color:#edc779;letter-spacing:1.5px;font-size:8px}.panel-body h2{font-size:24px;font-weight:1000;line-height:1.05;margin:9px 0}.panel-body>p{font-size:11px;color:#dddcc5;line-height:1.6}.stats{display:flex;justify-content:space-between;border-top:1px solid #a6ab8c55;border-bottom:1px solid #a6ab8c55;padding:14px 0;margin:16px 0}.stats small{display:block;font-size:7px;letter-spacing:.7px;color:#c5ccb0;margin-bottom:5px}.stats strong{font-size:11px}.panel-body button{width:100%;min-height:43px;font-size:12px;border-radius:9px;margin-top:10px}.panel-body button:disabled{filter:saturate(.3);cursor:default;opacity:.7}.panel-body .stone{min-height:38px;font-size:10px}dialog{background:linear-gradient(150deg,#787563,#536048);color:#fff0cf;border:3px solid #394732;border-radius:18px;width:450px;max-width:calc(100vw - 25px);max-height:calc(100dvh - 30px);box-shadow:inset 0 2px 1px #dacda877,0 20px 80px #0007;padding:33px}dialog::backdrop{background:#1d302b88;backdrop-filter:blur(4px)}dialog h2{font-size:28px;line-height:1.1;font-weight:1000;margin:10px 0 17px}dialog p{font-size:12px;line-height:1.7;color:#d8dfc4}dialog .modal-icon{font-size:35px}dialog .eyebrow{color:#f3cd7c;font-size:9px;letter-spacing:1.5px}dialog label{display:block;font-size:11px;margin:17px 0 7px}dialog input,dialog select{display:block;border:2px solid #3e4d35;background:#e7e5c9;color:#3b4933;padding:12px;font:800 12px Nunito;width:100%;border-radius:8px}dialog .gold,dialog .stone{width:100%;min-height:48px;font-size:12px;border-radius:9px;margin-top:20px}.form-note{font-size:9px!important;color:#c7ceb5!important}.form-error{color:#ffe09d!important;font-size:12px!important}.steps{padding:0;list-style:none;counter-reset:steps}.steps li{position:relative;padding:10px 0 10px 37px;font-size:11px;line-height:1.6;color:#d5ddbf;counter-increment:steps}.steps li:before{content:counter(steps);position:absolute;left:0;top:12px;border-radius:7px;background:#d6b568;color:#3b4930;width:24px;height:24px;text-align:center;font-weight:1000;line-height:24px}.steps strong{display:block;color:#fff3ce;font-size:12px}.milestone-steps{display:grid;gap:9px}.milestone-step{border:1px solid #b8c29655;background:#3b51382e;padding:12px;border-radius:8px;font-size:12px;display:flex;align-items:center;gap:10px}.milestone-step span{font-size:25px}.milestone-step small{display:block;color:#cbd5b8;font-size:9px;margin-top:3px}.milestone-step b{margin-left:auto;font-size:10px;color:#f1d487}#search-results{margin-top:7px;border:2px solid #3d4c34;background:#606b50;border-radius:10px;padding:5px;max-height:160px;overflow:auto}#search-results button{width:100%;display:flex;align-items:center;justify-content:space-between;background:none;border:0;border-bottom:1px solid #9fa98755;padding:11px 9px;text-align:left;font-size:12px;color:#fff4d4}#search-results small{font-size:9px;color:#c7d0b7}#search-results p{font-size:11px;padding:5px}.hall-list{display:grid;gap:7px}.hall-list button{display:flex;width:100%;align-items:center;gap:10px;padding:12px;background:#3c513777;border:1px solid #abb98c55;border-radius:8px;text-align:left;color:#fff3d5;font-size:12px}.hall-list button>small{font-size:18px;color:#e4bf6e}.hall-list button span{display:block}.hall-list button em{display:block;font-size:9px;font-style:normal;color:#c5cfb0}.hall-list button b{margin-left:auto;font-size:11px}#toast{position:fixed;top:134px;left:50%;transform:translate(-50%,-15px);opacity:0;pointer-events:none;transition:.25s;background:#424f36;color:#ffe8ac;border:2px solid #dcc284;border-radius:11px;box-shadow:0 4px 10px #14241455;padding:13px 20px;font-size:12px;z-index:20;max-width:90vw;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}#loading{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(#818c5c,#4d6345);z-index:30;gap:15px;text-align:center}#loading>span{font-size:55px}#loading strong{font-size:20px;letter-spacing:2px}#loading small{font-size:11px;color:#cbd3b2}.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;padding:0;margin:-1px}.native-error{padding:30px}
@media(max-width:700px){.hud{gap:5px;top:9px;max-width:calc(100% - 16px);width:580px}.chip{min-height:41px;padding:7px 10px;border-radius:11px}.brand{font-size:12px;gap:5px;flex:1;justify-content:center}.brand small{display:none}.day{font-size:12px;gap:5px}.day>span{font-size:18px}.day small{font-size:5px}.population{gap:6px;padding:7px 9px}.population b{font-size:10px}.population small{font-size:7px}.progress{width:52px;height:9px}.notice{top:62px;font-size:9px}.notice p{font-size:9px}.dock{width:450px;bottom:20px}.harvest-banner{padding:8px 12px;gap:10px;margin-bottom:10px}.harvest-banner strong{font-size:16px}.harvest-banner em{font-size:9px}.harvest-banner b{width:36px;height:36px}.banner-icon{width:47px;height:47px;font-size:28px}.harvest-banner small{left:62px;font-size:8px}.actions{gap:7px}.actions .gold{font-size:13px}.actions .stone{font-size:10px}.gold,.stone{min-height:61px;padding:10px 8px}.search{margin-top:11px}.search input{font-size:11px;padding:9px 6px}.view-hint{bottom:257px;font-size:8px}.connection{font-size:6px;bottom:3px;left:50%;transform:translateX(-50%);white-space:nowrap;background:none;padding:0}.empty-world{top:35%}.empty-world h1{font-size:29px}.empty-world p{font-size:10px}.founder{font-size:8px;letter-spacing:1.6px}.empty-world .gold{font-size:10px}.map-controls{right:12px;bottom:40%;gap:7px}.map-controls button{width:36px;height:36px;font-size:20px}.farm-panel{top:123px;right:12px;width:275px;max-height:calc(100dvh - 145px)}.farm-art{height:80px;font-size:47px}.panel-body{padding:18px}.farm-label{font-size:11px;padding:5px 8px}.farm-label small{font-size:6px}dialog{padding:28px}#toast{top:120px;font-size:11px;width:max-content}.empty-world{padding-right:20px}.empty-world h1{font-size:26px}}
@media(max-height:650px){.harvest-banner{display:none}.view-hint{bottom:179px}.empty-world{top:40%}.empty-world h1{font-size:25px}.empty-world p{margin-bottom:10px}.notice{display:none}.farm-panel{top:72px;max-height:calc(100dvh - 90px)}.empty-world .gold{min-height:36px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.community-back{position:fixed;left:16px;top:20px;z-index:5;color:#f4e8c9;background:#4c5740d9;border:1px solid #b5b58988;border-radius:8px;padding:9px 12px;text-decoration:none;font-size:9px;box-shadow:0 3px 0 #31462c66}@media(max-width:950px){.community-back{top:auto;bottom:285px;left:12px;font-size:7px;padding:7px 9px}}

.resident-tip{position:fixed;top:0;left:0;z-index:8;pointer-events:none;white-space:nowrap;padding:8px 12px;background:#fff1cceF;color:#405334;border:2px solid #a49564;border-radius:9px;box-shadow:0 3px 10px #1f351f33;font-size:10px}.resident-activity{font-size:10px!important;color:#f2d386!important}.house-development{border:1px solid #c5c59755;border-radius:10px;background:#30432b33;padding:13px;margin:15px 0}.house-development>small{display:block;color:#cbd1b4;font-size:7px;letter-spacing:1px}.house-development>strong{display:block;margin:5px 0 10px;font-size:14px;color:#ffe3a4}.house-track{height:5px;border-radius:6px;background:#3c4930;overflow:hidden}.house-track i{display:block;height:100%;background:#e8bd66;transition:width .4s}.house-development>span{display:block;font-size:8px;color:#d3d9bd;line-height:1.6;margin:8px 0 0}.panel-body .house-development button{min-height:32px;font-size:9px;margin-top:10px}.house-stages{display:grid;gap:8px}.house-stage{display:flex;align-items:center;gap:10px;border:1px solid #bdc09244;border-radius:9px;padding:11px;background:#3d50312e;opacity:.78}.house-stage.unlocked{opacity:1;border-color:#d8c18388}.house-stage>b{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#53613d;color:#f1d48b}.house-stage.unlocked>b{background:#d7b466;color:#3d4b30}.house-stage strong{display:block;font-size:12px}.house-stage small{display:block;font-size:9px;line-height:1.5;color:#d0d9b8;margin-top:4px}.house-stage em{flex:none;margin-left:auto;font-style:normal;font-size:9px;color:#efcf89}#motion-toggle{font-size:20px}#motion-toggle[aria-pressed=false]{filter:saturate(.1);opacity:.7}@media(max-width:700px){.resident-tip{max-width:90vw;white-space:normal;font-size:9px}.view-hint{font-size:7px;max-width:95%;white-space:normal;text-align:center}.map-controls{gap:5px}.house-development{padding:10px}}

.automation-card{display:flex;align-items:center;gap:18px;border:1px solid #d6c58a77;background:#344b2e55;border-radius:12px;padding:16px;margin:20px 0 12px}.automation-card strong{display:block;font-size:14px;color:#ffe2a0}.automation-card p{font-size:11px;margin:7px 0 0}.automation-card button{flex:none;border:2px solid #c5ab66;border-radius:20px;background:#414e36;color:#e3dec4;padding:10px 13px;font:900 10px Nunito;min-width:85px}.automation-card button[aria-checked=true]{background:#edc56f;color:#35442c;border-color:#f9dfa0}.auto-status{font-size:12px!important;color:#ffe09a!important;min-height:21px}.automation-work{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid #bdc29455;padding-top:14px;margin-top:14px}.automation-work>span{font-size:10px;border-radius:15px;background:#3d5137;padding:7px 10px}.automation-work>small{display:block;width:100%;font-size:9px;color:#c8d2b6;line-height:1.6}button:focus-visible{outline:3px solid #ffdc8b;outline-offset:3px}@media(max-width:700px){.automation-card{gap:10px;padding:12px}.automation-card strong{font-size:12px}.automation-card button{min-width:74px;font-size:9px;padding:9px}.automation-card p{font-size:10px}}

.production-card{border:1px solid #c3c59266;border-radius:10px;background:#30452b55;padding:13px;margin:15px 0}.production-card>small{display:block;color:#d2d8ba;font-size:7px;letter-spacing:1px}.production-card>strong{display:block;color:#ffe4a1;font-size:13px;margin:7px 0 11px}.production-meter{height:7px;background:#2d3d29;border-radius:8px;overflow:hidden}.production-meter>i{display:block;height:100%;width:0;background:linear-gradient(90deg,#a4bf71,#efc568);transition:width 1s linear}.production-card>span{display:block;font-size:9px;color:#e1e4c3;margin-top:8px}.harvest-log{display:grid;gap:8px;max-height:290px;overflow:auto;padding-right:4px}.harvest-entry{display:flex;align-items:center;gap:12px;background:#334b2f55;border:1px solid #a8b98755;border-radius:10px;padding:12px}.harvest-entry>span{font-size:23px;color:#efcb7c}.harvest-entry strong{display:block;font-size:12px;color:#ffe4ae}.harvest-entry small{display:block;font-size:9px;color:#d1dbb9;margin-top:5px}.harvest-entry>b{margin-left:auto;font-size:17px;color:#e5c479}.journal-empty{padding:15px;border:1px dashed #c3c69677;border-radius:10px}#automation-journal{min-height:35px;margin-top:8px;font-size:10px}@media(max-width:700px){.production-card{padding:11px}.production-card>strong{font-size:12px}.harvest-log{max-height:260px}}@media(prefers-reduced-motion:reduce){.production-meter>i{transition:none}}

.village-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.village-card{border:1px solid #bdc29288;border-radius:12px;padding:17px 10px;background:#344e32;display:grid;gap:6px;text-align:left}.village-card>span{font-size:28px}.village-card strong{font-size:13px;color:#ffe2a1}.village-card small{font-size:9px;color:#cad7b6}.community-stats{padding:14px;border-radius:10px;background:#334b2b88;border:1px solid #a9b47a77;font-size:12px;line-height:1.6;margin:14px 0;color:#ffe1a2}.community-stats:empty{display:none}.community-stats progress{width:100%;display:block;margin-top:10px;accent-color:#e4bd68;height:12px}.village-back{background:none;border:0;padding:4px 0;color:#ead7a5;font-size:11px}.village-heading{font-size:14px;margin-top:23px}.village-feed{display:grid;gap:7px;max-height:230px;overflow:auto}.village-feed>button{padding:12px;border:1px solid #a9b58655;border-radius:9px;background:#354c2d;text-align:left}.village-feed strong{display:block;font-size:11px;color:#ffe4b1;line-height:1.5}.village-feed small{display:block;font-size:9px;color:#c4d0ad;margin-top:4px}.village-feed>p{font-size:12px}#community-action{width:100%;min-height:45px;font-size:11px}#community-action:disabled{opacity:.65;cursor:default}#specialization-form label{display:block;margin:18px 0 8px}#new-crop{width:100%;padding:12px;border:1px solid #c6b77e;border-radius:7px;background:#3e5232;color:#fff0cc;font:800 12px Nunito}#save-specialization{width:100%;min-height:46px;margin-top:14px}@media(max-width:700px){.farm-panel{z-index:8}.village-grid{gap:8px}.village-card{padding:13px 10px}.village-feed{max-height:180px}}
.panel-body .land-panel{min-height:38px;font-size:10px;border-color:#bbcd82;background:linear-gradient(#6c7c4b,#4b603a);margin-top:15px}.estate-summary{display:grid;gap:7px;padding:16px;border:1px solid #b5c182;border-radius:12px;background:#34502f88;margin:18px 0}.estate-summary strong{font-size:21px;color:#ffe2a2}.estate-summary span{font-size:10px;color:#d0dcb9}.estate-main{display:flex;align-items:center;gap:10px;padding:12px;background:#394c32;border-radius:10px;margin-bottom:12px}.estate-main>span{font-size:27px}.estate-main strong,.estate-main small{display:block}.estate-main small{font-size:9px;color:#c2cfaa;margin-top:4px}.estate-main button{margin-left:auto;min-height:31px;font-size:8px;padding:7px 9px}.estate-list{display:grid;gap:15px}.estate-card{padding:16px;border-radius:12px;border:1px solid #adba7b77;background:#324b2f66}.estate-card.available{border-color:#d8c47d;background:#455c33}.estate-card.locked{background:#3c4a3333}.estate-card-title{display:flex;align-items:center;gap:11px}.estate-card-title>span{font-size:30px}.estate-card-title>div{flex:1}.estate-card-title strong{display:block;font-size:14px;color:#ffe6ae}.estate-card-title small{display:block;font-size:9px;color:#c9d4b1;margin-top:4px}.estate-card-title>b{font-size:7px;letter-spacing:.5px;color:#dcd4a5}.estate-card.available .estate-card-title>b{color:#f0d78a}.estate-card progress{display:block;width:100%;height:8px;accent-color:#cfbc68;margin:14px 0 7px}.estate-lock-note{display:block;font-size:9px;color:#c4cfad;line-height:1.6;margin:9px 0}.estate-card label{display:block;font-size:9px;color:#e4ddb7;margin:16px 0 7px}.estate-card select{width:100%;min-height:40px;border-radius:7px;border:1px solid #a2b77d;background:#3a5233;color:#fff0c8;font:800 12px Nunito;padding:8px}.estate-card select:disabled{opacity:.6}.estate-card .estate-save{width:100%;min-height:36px;font-size:9px;margin-top:10px}.estate-card-actions{display:flex;gap:8px;margin-top:12px}.estate-card-actions button{flex:1;min-height:36px;font-size:9px}.estate-production small{font-size:9px;color:#e2d7a6}.estate-card button:disabled{opacity:.55;cursor:default}#estate-status{line-height:1.7}@media(max-width:700px){.estate-card{padding:13px}.estate-card-title>span{font-size:25px}.estate-card-title strong{font-size:13px}.estate-card-title small{font-size:8px}.estate-card-title>b{font-size:6px}.estate-main>span{font-size:24px}.estate-main strong{font-size:12px}.estate-main small{font-size:8px}}
.parcel-label{background:linear-gradient(#6d8051,#455e39);border-color:#b5c586}.parcel-label.mine{background:linear-gradient(#7f9551,#526f36);border-color:#d2d98b}.estate-card.selected{border:2px solid #e1c97f}
.quest-tabs{display:flex;gap:7px;margin:16px 0}.quest-tabs button{flex:1;border:1px solid #b0b87f88;background:#3d5133;border-radius:8px;padding:10px 6px;font-size:10px}.quest-tabs button[aria-current]{background:#b29b5b;color:#fff3c7;border-color:#ead08b}.quest-score{display:flex;justify-content:space-between;gap:8px;padding:14px;border:1px solid #bdc48777;background:#3d5631;border-radius:10px;margin:15px 0}.quest-score strong{font-size:12px;color:#ffe3a4}.quest-score span{font-size:11px;color:#e6d59b}.quest-score p{margin:0;font-size:11px}.quest-heading{font-size:16px;margin:25px 0 8px;color:#ffe4aa}.quest-card{border:1px solid #aebc7a88;border-radius:12px;padding:16px;background:#354e2f88;margin:12px 0}.quest-card.completed{border-color:#d4bb74;background:#53633366}.quest-title{display:flex;justify-content:space-between;gap:10px}.quest-title strong{font-size:14px;color:#ffe8af}.quest-title b{font-size:12px;color:#e3c778}.quest-card p{font-size:11px!important;line-height:1.6}.quest-card progress{width:100%;height:9px;accent-color:#d9bc63}.quest-progress{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.quest-progress>span{font-size:9px;color:#d7deb9}.quest-progress button{min-height:34px;padding:8px 10px;font-size:8px;flex:none}.quest-progress button:disabled{opacity:.7;cursor:default}.quest-rank{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:14px;margin:8px 0;border:1px solid #b2bb7e77;border-radius:10px;background:#344c2f}.quest-rank>b{font-size:19px;color:#e7c780}.quest-rank>span{font-size:12px;color:#fff0c5}.quest-rank small{display:block;font-size:9px;color:#c6d4b0;margin-top:4px}.quest-rank>strong{font-size:10px;margin-left:auto;color:#ead697}.quest-empty{padding:18px;border:1px dashed #c2c78a;border-radius:10px}.reward-card{display:flex;align-items:center;gap:12px;border:1px solid #a6b47c77;border-radius:12px;background:#3b4c3266;padding:15px;margin:12px 0}.reward-card.unlocked{border-color:#d7c181;background:#4e623b}.reward-card>span{font-size:32px}.reward-card>div{flex:1}.reward-card strong{font-size:13px;color:#ffe5a9}.reward-card p{font-size:10px!important;margin:5px 0}.reward-card small{font-size:9px;color:#d1d9b5}.reward-card button{min-height:33px;font-size:8px;padding:9px}.reward-card button:disabled{opacity:.65;cursor:default}.quest-visit{width:100%;font-size:10px;min-height:38px;margin-top:15px}@media(max-width:700px){.quest-score{flex-direction:column}.quest-card{padding:13px}.quest-tabs button{font-size:9px}.quest-progress{align-items:flex-start;flex-direction:column}.quest-progress button{width:100%}.quest-rank{gap:9px;padding:11px}.quest-rank>strong{font-size:8px}.reward-card{gap:9px;padding:12px;flex-wrap:wrap}.reward-card>span{font-size:27px}.reward-card strong{font-size:12px}.reward-card button{margin-left:auto}}


.estate-main>div{flex:1;min-width:0}.estate-main button{width:auto;margin-top:0;flex:none}.estate-card-actions button{width:auto;margin-top:0}.quest-progress button{width:auto;margin-top:0}.reward-card button{width:auto;margin-top:0;flex:none}@media(max-width:700px){.quest-progress button{width:100%}.estate-main button{max-width:100px}}
.market-badge{font-size:9px!important;color:#dfd4a1!important}.trade-tabs{display:flex;gap:7px;margin:16px 0}.trade-tabs button{flex:1;padding:10px 6px;border:1px solid #b1ba8388;border-radius:8px;background:#3c5032;font-size:10px}.trade-tabs button[aria-current]{background:#b39d60;border-color:#ead295}.trade-wallet{padding:15px;border-radius:11px;background:#354f2e;border:1px solid #b3c18499;display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0}.trade-wallet strong{font-size:16px;color:#ffe4a1}.trade-wallet span{font-size:9px;color:#cdd9b5}.trade-wallet p{font-size:11px;margin:0}.trade-order{padding:16px;background:#354d2f88;border:1px solid #b3bd8077;border-radius:12px;margin:13px 0}.trade-order.delivered{border-color:#d8c17f;background:#52683a66}.trade-order-title{display:flex;align-items:center;gap:11px}.trade-order-title>span{font-size:27px}.trade-order-title>div{flex:1}.trade-order-title strong{font-size:13px;display:block;color:#ffe4ab}.trade-order-title small{display:block;font-size:10px;margin-top:5px;color:#cbd7b1}.trade-order-title>b{font-size:12px;color:#f4d486}.trade-order progress{width:100%;height:8px;accent-color:#d4b865;margin-top:17px}.trade-order-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.trade-order-bottom small{font-size:9px;color:#d4ddba}.trade-order-bottom button{margin:0;width:auto;flex:none;min-height:34px;padding:8px 10px;font-size:8px}.trade-order-bottom button:disabled{cursor:default;opacity:.65}.stock-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0}.stock-item{display:grid;grid-template-columns:33px 1fr auto;align-items:center;gap:8px;padding:13px 11px;border:1px solid #a3b17b66;border-radius:10px;background:#344a2f77;opacity:.7}.stock-item.stocked{opacity:1;border-color:#d0c083;background:#4b6237}.stock-item>span{font-size:25px}.stock-item>strong{font-size:11px;color:#eee7bd}.stock-item>b{font-size:20px;color:#f3d694}.market-current{padding:20px;border:1px solid #c4c18b;border-radius:12px;background:#3c5631;text-align:center;margin:18px 0}.market-current>span{display:block;font-size:43px;margin-bottom:9px}.market-current>strong{display:block;font-size:17px;color:#ffe6ad}.market-current>small{display:block;font-size:10px;margin-top:9px;color:#d4deb7}.market-tier{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #a9b77c66;border-radius:10px;margin:9px 0;background:#384d3055}.market-tier.unlocked{border-color:#d4bd74;background:#50623766}.market-tier>b{width:25px;height:25px;display:grid;place-items:center;flex:none;border-radius:50%;background:#7a8953;color:#f3d38d}.market-tier strong{font-size:12px;color:#ffe6b0}.market-tier small{display:block;font-size:10px;color:#c8d7ac;line-height:1.6;margin-top:5px}.trade-wide{width:100%;font-size:11px;min-height:40px;margin-top:16px}.trade-success{padding:14px;border:1px solid #c6b57c;border-radius:10px;color:#f4dda2!important;font-size:12px!important}#trade-view .trade-wide{font-size:10px;min-height:40px}#trade-view button:disabled{cursor:default}@media(max-width:700px){.trade-wallet{flex-direction:column;align-items:flex-start;gap:7px}.trade-wallet strong{font-size:15px}.trade-order{padding:13px}.trade-order-title strong{font-size:12px}.trade-order-title small{font-size:9px}.trade-order-title>span{font-size:23px}.trade-order-bottom{flex-direction:column;align-items:stretch}.trade-order-bottom button{width:100%}.stock-item{grid-template-columns:25px 1fr auto;padding:11px 8px;gap:5px}.stock-item>span{font-size:22px}.stock-item>strong{font-size:10px}.stock-item>b{font-size:17px}.stock-grid{gap:7px}.market-current{padding:16px}}

.neighbour-summary{display:grid;gap:7px;padding:17px;background:#354f30;border:1px solid #c2c58e;border-radius:12px;margin:18px 0}.neighbour-summary strong{font-size:16px;color:#ffe4a8}.neighbour-summary small{font-size:10px;color:#d1ddbd}.neighbour-card{padding:16px;border:1px solid #aebc8077;border-radius:12px;background:#354e3088;margin:13px 0}.neighbour-card.selected{border-color:#efcf86;background:#4b6039}.neighbour-card.helped{border-color:#a9c985}.neighbour-title{display:flex;gap:12px;align-items:center}.neighbour-title>span{font-size:30px}.neighbour-title strong{display:block;font-size:16px;color:#ffe9b9;overflow-wrap:anywhere}.neighbour-title small{display:block;margin-top:5px;font-size:10px;color:#c8d8b2}.neighbour-actions{display:flex;gap:9px;margin-top:13px}.neighbour-actions button{flex:1;width:auto;margin:0;min-height:40px;font-size:9px;padding:9px 6px}.neighbour-actions button:disabled{opacity:.65;cursor:default}.neighbour-visit{display:block;width:100%;text-align:left;border:1px solid #a9b67e88;background:#354e2e;border-radius:10px;padding:15px;margin:10px 0}.neighbour-visit strong{display:block;font-size:12px;color:#ffe6af}.neighbour-visit small{display:block;font-size:10px;color:#c5d5ad;line-height:1.7;margin-top:6px}@media(max-width:700px){.neighbour-card{padding:13px}.neighbour-actions{flex-direction:column}.neighbour-actions button{width:100%;font-size:10px}.neighbour-title strong{font-size:14px}.neighbour-summary strong{font-size:14px}#neighbours-view .trade-tabs button{font-size:9px}}

.machine-reward,.civic-summary{display:grid;gap:8px;padding:17px;border:1px solid #c8c18b;border-radius:12px;background:#3c5733;margin:18px 0;font-size:12px;line-height:1.7;color:#ffe5ad}.machine-reward span{font-size:12px;color:#e9d293}.machine-menu-actions,.civic-links{display:grid;gap:9px;margin-top:18px}.machine-menu-actions button,.civic-links button{width:100%;min-height:42px;font-size:11px}#harvest-game h2{font-size:26px;margin-bottom:16px}#harvest-canvas{display:block;width:100%;height:300px;border:2px solid #c7bd84;border-radius:12px;touch-action:none;outline-offset:4px}.machine-hud{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:11px 0;color:#ffe2a1}.machine-hud strong{font-size:13px}.machine-hud span{font-size:10px}#machine-progress{width:100%;height:9px;accent-color:#e0bd65;margin-top:12px}.machine-status{font-size:12px!important;line-height:1.6;min-height:40px;color:#ffdfa1!important}.machine-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}.machine-pad{display:grid;grid-template-columns:repeat(4,42px);gap:4px}.machine-pad button{width:42px;min-height:42px;border:1px solid #bdc18a;border-radius:8px;background:#4b673e;font-size:15px;color:#ffe8b6;touch-action:none}.machine-controls>button{width:auto;min-height:42px;padding:9px;font-size:9px}#harvest-game button:disabled{opacity:.6;cursor:default}.civic-links button{text-align:left}@media(max-width:700px){.machine-controls{flex-direction:column}.machine-controls>button{width:100%}.machine-pad{grid-template-columns:repeat(4,52px)}.machine-pad button{width:52px;min-height:46px}#harvest-game h2{font-size:24px}#harvest-canvas{height:300px}.machine-hud{flex-direction:column;gap:5px}}

#modal:has(#harvest-game){width:min(680px,calc(100vw - 24px));max-width:680px}#harvest-game .machine-status{min-height:28px;margin:12px 0}#harvest-game .machine-controls{margin-top:10px}@media(min-width:701px){#harvest-game .machine-pad{grid-template-columns:repeat(4,48px)}#harvest-game .machine-pad button{width:48px;min-height:44px}}

.world-shade{background:linear-gradient(180deg,#d9eaf116,transparent 24%,transparent 78%,#173c251a);box-shadow:inset 0 0 130px #163d2010}.graphics-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.graphics-options button{padding:16px;text-align:left;border:1px solid #b6c69688;border-radius:10px;background:#3b5637;color:#f5edcf}.graphics-options button[aria-pressed=true]{border:2px solid #e9cb85;background:#617b44}.graphics-options strong{display:block;font-size:14px}.graphics-options small{display:block;font-size:10px;line-height:1.6;margin-top:6px;color:#d1ddbc}.landscape-view .hud,.landscape-view .dock,.landscape-view .notice,.landscape-view .view-hint,.landscape-view .farm-panel,.landscape-view #labels,.landscape-view .connection,.landscape-view .community-back{display:none!important}.landscape-exit{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:12;padding:14px 20px;border:2px solid #e0c88d;border-radius:11px;background:#405a3ceF;color:#fff0c6;font-size:12px;box-shadow:0 4px 14px #233a2b44}@media(max-width:700px){.graphics-options button{padding:12px}.graphics-options strong{font-size:12px}.graphics-options small{font-size:9px}}

.garage-hero{background:linear-gradient(135deg,#e8dfb9,#f5edcf);border:1px solid #b3aa82;border-radius:16px;padding:12px;margin:18px 0}.garage-hero svg{display:block;width:100%;max-width:330px;margin:auto}.garage-benefit{display:grid;gap:8px;padding:16px;border-radius:12px;background:#e1e9d4;color:#304d32}.garage-benefit span{font-size:13px;line-height:1.5}.garage-wallet{font-size:20px;font-weight:bold}.garage-owned{padding:14px;background:#dbe8ca;border-radius:10px;color:#355b32}#garage-actions progress{width:100%;height:18px;accent-color:#668341}

.production-chain{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #b6b68e;border-radius:15px;background:#eee5bf;padding:18px;margin:18px 0;color:#384c2d}.production-chain span{display:grid;text-align:center;gap:6px;font-size:32px}.production-chain b{font-size:13px}.production-chain i{font-style:normal;font-size:24px}.production-stock{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.production-stock span{background:#dedfc2;color:#3a4a31;border-radius:18px;padding:8px 12px;font-size:13px;font-weight:700}.production-recipe,.production-job,.production-contract{padding:18px;margin:16px 0;border:1px solid #b4b48f;border-radius:13px;background:#77765a}.production-recipe.selected{border-color:#f2c967}.production-recipe-head{display:flex;gap:13px;align-items:center}.production-recipe-head>span{font-size:29px}.production-recipe h3,.production-job h3,.production-contract h3{margin:0 0 5px}.production-recipe small,.production-contract small{font-size:12px;line-height:1.6;display:block}.production-job{background:#e5dfbb;color:#3d4d31}.production-job progress{width:100%;height:16px;accent-color:#6e8b45}.production-job .eyebrow{color:#60713f}.production-contract{border-color:#e0c376}.production-recipe button:disabled{opacity:.6;cursor:not-allowed}
.day-overview{position:fixed;left:50%;top:76px;transform:translateX(-50%);z-index:5;width:470px;max-width:calc(100vw - 32px);display:flex;align-items:center;gap:13px;padding:10px 15px;border:1px solid #d6c28c;border-radius:14px;background:linear-gradient(115deg,#344f35f5,#526342f5);color:#fff1cd;text-align:left;box-shadow:0 4px 15px #152a2135,inset 0 1px 0 #fff2bc33;font-family:Nunito,sans-serif;cursor:pointer}.day-overview[hidden]{display:none}.day-overview-icon{font-size:27px;color:#ffcd6b}.day-overview-title{display:grid;gap:3px;flex:1;min-width:0}.day-overview-title strong{font-size:11px;font-weight:1000;letter-spacing:1px}.day-overview-title small{font-size:10px;color:#dde5c6;line-height:1.4}.day-chip-wallet{display:grid;text-align:right;gap:1px;border-left:1px solid #d7dbaa44;padding-left:14px}.day-chip-wallet b{font-size:19px;line-height:1;color:#ffda8b}.day-chip-wallet small{font-size:6px;letter-spacing:1px}.day-arrow{color:#e7c67c;font-size:20px}.day-overview.reward-ready{border-color:#ffda85;box-shadow:0 0 0 2px #ffce6644,0 4px 15px #152a2135}.has-farm .notice{display:none}.day-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:22px 0}.day-summary>div{display:grid;gap:8px;padding:14px 8px;border:1px solid #adbc8580;background:#344d30;border-radius:12px;text-align:center}.day-summary small{font-size:8px;letter-spacing:.5px;color:#cedcb3;line-height:1.5}.day-summary strong{font-size:25px;color:#ffdda1}.day-track{display:flex;align-items:center;justify-content:space-around;margin:24px 0;position:relative}.day-track:before{content:'';position:absolute;height:3px;background:#a8bc7677;width:68%;top:50%}.day-track>span{position:relative;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#465a38;border:2px solid #91a36e;font-size:20px}.day-track>span.done{background:#bbd795;color:#314d2d;border-color:#e3edbe}.day-goal{display:flex;align-items:center;gap:13px;border:1px solid #adbc8570;border-radius:12px;padding:15px;margin:10px 0;background:#334e2e88}.day-goal.done{border-color:#b7d395;background:#4e693b66}.day-goal-icon{width:32px;flex:none;font-size:26px;color:#d0e0a5}.day-goal>div{flex:1;min-width:0}.day-goal h3{margin:0!important;font-size:15px!important;color:#ffe6b9}.day-goal p{margin:7px 0!important;font-size:11px!important;line-height:1.6!important;color:#d2dfbe}.day-goal progress{display:block;width:100%;height:7px;accent-color:#c9d794}.day-goal small{display:block;font-size:8px;margin-top:6px;color:#d8e5bd}.day-goal button{width:auto!important;min-height:37px!important;margin:0!important;font-size:8px!important;padding:10px!important;flex:none}.day-bonus{padding:20px;background:linear-gradient(130deg,#6a693b,#4c623a);border:1px solid #d8bb75;border-radius:15px;margin-top:20px}.day-bonus>div{display:flex;align-items:center;gap:14px}.day-bonus>div>span{font-size:36px}.day-bonus small{display:block;font-size:8px;color:#e1d6ad;letter-spacing:1px}.day-bonus strong{display:block;font-size:23px;margin-top:5px;color:#ffe1a2}.day-bonus p{font-size:11px!important;line-height:1.7!important;color:#e6e3c7}.day-bonus.claimed{background:#425d36;border-color:#a7c78a}.day-shortcuts{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin:24px 0 15px}.day-shortcuts button{margin:0!important;min-height:42px!important;font-size:10px!important}.day-next{font-size:11px;line-height:1.8;padding:14px;border-top:1px solid #b2bc7b55;color:#d5deb8}.landscape-view .day-overview,.landscape-view .game-menu{display:none!important}.sky-heading{font-size:14px!important;color:#ffe4ad;margin:23px 0 13px!important}.sky-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.sky-options>button{min-width:0;padding:16px 9px;border:1px solid #b7b17f80;border-radius:13px;color:#fff1d0;display:grid;gap:9px;text-align:center;font-family:inherit;cursor:pointer}.sky-options>button[aria-pressed=true]{outline:2px solid #f1cc7f;outline-offset:2px}.sky-options span{font-size:28px;line-height:1.3}.sky-options strong{font-size:11px}.sky-options small{font-size:7px;letter-spacing:.5px}.sky-day{background:linear-gradient(150deg,#78a4af,#648148)}.sky-evening{background:linear-gradient(150deg,#bd8971,#70647a)}.sky-night{background:linear-gradient(150deg,#354f74,#1e304b)}#time-open{cursor:pointer}button:focus-visible{outline:3px solid #ffe29b;outline-offset:3px}body[data-sky=night] .world-shade{background:radial-gradient(ellipse at 50% 45%,transparent 40%,#12264155 100%)}@media(max-width:700px){.day-overview{top:70px;padding:9px 11px;gap:9px;min-height:49px}.day-overview-title strong{font-size:10px}.day-overview-title small{font-size:9px}.day-chip-wallet b{font-size:17px}.day-chip-wallet{padding-left:10px}.day-overview-icon{font-size:24px}.day-summary{gap:6px}.day-summary>div{padding:12px 5px}.day-summary small{font-size:7px}.day-summary strong{font-size:22px}.day-goal{flex-wrap:wrap;gap:10px;padding:13px}.day-goal>div{flex-basis:calc(100% - 45px)}.day-goal button{margin-left:42px!important;width:calc(100% - 42px)!important}.day-bonus{padding:16px}.day-bonus strong{font-size:21px}.sky-options{gap:7px}.sky-options>button{padding:14px 5px}.sky-options strong{font-size:10px}.sky-options small{font-size:6px}}@media(max-height:650px){.day-overview{top:70px;left:auto;right:12px;transform:none;width:260px;max-width:calc(100vw - 230px)}.day-overview-title small{display:none}.day-chip-wallet{padding-left:8px}.day-overview-icon{font-size:20px}.day-overview-title strong{font-size:9px}.day-arrow{display:none}}@media(max-width:480px) and (max-height:650px){.day-overview{left:12px;right:12px;top:66px;width:auto;max-width:none}}
@media(max-width:480px){.population small{display:none}.population .progress{width:42px}.hud .day{flex-shrink:0}.hud .brand{min-width:0}}

.model-credits{margin-top:24px;padding-top:16px;border-top:1px solid #b2bc7b55;color:#d5deb8}.model-credits summary{cursor:pointer;font-size:11px}.model-credits p{font-size:11px!important;line-height:1.8!important}.model-credits a{color:#ffe1a2;text-decoration:underline;text-underline-offset:3px}

/* Farm design and real production transport */
.design-plan{position:relative;max-width:320px;height:235px;margin:22px auto;border:8px solid #d9cda6;border-bottom-style:dashed;border-radius:14px;background:linear-gradient(90deg,transparent 43%,#c8b58e 44% 57%,transparent 58%),#a6b67a;box-shadow:0 8px 24px #294b3826;overflow:hidden}
.design-plan span{position:absolute;display:grid;place-items:center;font-size:10px;font-weight:850;color:#304b38;letter-spacing:.05em}.design-plan-house{left:9%;top:11%;width:34%;height:38%;background:var(--facade,#fff4e5);border-top:14px solid #a45e43;box-shadow:4px 4px #40563c30;border-radius:3px}.design-plan-barn{width:30%;height:34%;background:#a77d52;border-top:12px solid #6e7762;box-shadow:4px 4px #40563c30;border-radius:3px}.design-plan-garden{left:7%;top:60%;width:26%;height:24%;background:repeating-linear-gradient(0deg,#7b9852 0 8px,#d8bd79 9px 11px);border:3px solid #d3c797}.design-plan[data-garden=flowers] .design-plan-garden{background:radial-gradient(circle,#efcc71 2px,#729456 3px);background-size:12px 12px}.design-plan[data-garden=orchard] .design-plan-garden{background:radial-gradient(circle,#4e763e 7px,#a2b471 8px);background-size:24px 24px}.design-plan[data-fence=wood]{border-color:#a87f52}.design-plan[data-house=timber] .design-plan-house{background:linear-gradient(45deg,transparent 45%,#70583e 46% 52%,transparent 53%),var(--facade)}.design-plan[data-house=stone] .design-plan-house{border-bottom:8px solid #969783}.design-plan-gate{bottom:0;left:43%;width:54%;height:22px;background:#efe4c1;font-size:9px!important}.design-options{border:0;padding:0;margin:22px 0}.design-options legend{font-weight:850;color:#35553c;margin-bottom:10px}.design-choice{display:flex!important;align-items:center;gap:12px;min-height:54px;margin:7px 0;padding:10px 12px;border:1px solid #c8c8a9;border-radius:12px;background:#fffdf3;cursor:pointer}.design-choice:has(input:checked){border-color:#5e8050;box-shadow:0 0 0 2px #6d8c4a30;background:#edf1dd}.design-choice input{width:18px!important;min-width:18px;height:18px;accent-color:#597947;margin:0!important}.design-choice span{display:block;line-height:1.4}.design-choice strong{font-size:14px}.design-choice small{display:block;color:#71806a;font-size:12px}.design-choice[style]{border-left:12px solid var(--choice-color)}
.logistics-steps{display:flex;gap:6px;margin:16px 0}.logistics-steps span{flex:1;padding:8px 3px;text-align:center;font-size:10px;font-weight:850;background:#e4e6d5;border-radius:8px;color:#74816b}.logistics-steps .active{background:#587846;color:#fff2d1}.logistics-list{background:#eff0df;border:1px solid #c5ceb2;padding:15px;border-radius:14px;margin:18px 0}.logistics-trip{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center;border-top:1px solid #cdd3be;padding:12px 0}.logistics-trip span{font-weight:750;font-size:13px}.logistics-trip small{grid-column:1;color:#6b7c60}.logistics-trip button{grid-column:2;grid-row:1/3;font-size:11px;padding:10px}.production-job progress{width:100%;accent-color:#658849}.production-job #production-timer{font-weight:750;color:#44633d;min-height:1.5em}
.design-choice strong{color:#304b38}.design-options legend{color:#f4e8bf}.logistics-list h3,.logistics-trip span{color:#35553c}.production-job #production-timer{color:inherit}

/* Farmstead, weather and village festivals */
.weather-chip{position:fixed;z-index:12;right:18px;top:130px;border:1px solid #d7bf80;border-radius:12px;padding:10px 14px;background:#435b42eb;color:#fff0c7;font:800 12px inherit;box-shadow:0 3px 12px #182e2830;cursor:pointer}.landscape-view .weather-chip{display:none}.farmstead-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:18px 0}.farmstead-tabs button{padding:10px 3px;font-size:10px}.farmstead-tabs .selected{border-color:#edca76;background:#627b47}.farmstead-weather{padding:12px 14px;border:1px solid #bec9a0;border-radius:12px;background:#e3e8d2;color:#36523c;font-weight:750;font-size:12px;line-height:1.5}.farmstead-card{padding:18px;margin:15px 0;background:#e8e7ce;border:1px solid #babe99;border-radius:15px;color:#3f5137}.farmstead-card h3{color:#354d36!important;margin:0 0 9px;font-size:17px}.farmstead-card p,.farmstead-card small{color:#526348!important;line-height:1.6}.farmstead-card p{font-size:13px}.farmstead-card .trade-wide{margin-top:10px}.farmstead-card progress{width:100%;accent-color:#688d4b;height:12px}.meadow-chain{display:flex;align-items:center;justify-content:space-between;gap:3px;margin:16px 0;font-weight:850;font-size:9px}.meadow-chain span{background:#d1d9b7;padding:8px 4px;border-radius:7px}.care-needs{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.care-needs span{border-radius:16px;padding:7px 9px;font-size:11px;font-weight:800}.care-needs .cared{background:#cadaaf;color:#3e6035}.care-needs .needs-care{background:#e3d0a2;color:#70562d}.young-progress{border-top:1px solid #c2c8a5;margin-top:17px;padding-top:13px}.young-progress strong{display:block;color:#40573a;margin-bottom:10px}.young-progress small{display:block;font-size:11px;margin-top:7px}
@media(max-width:700px){.weather-chip{top:136px;right:12px;max-width:calc(100vw - 234px);padding:9px 10px;font-size:10px}.farmstead-card{padding:15px}.farmstead-tabs{gap:4px}.farmstead-tabs button{font-size:9px}.meadow-chain{font-size:8px}}

#automation-view .automation-card>div{min-width:0;flex:1}#automation-view .automation-card button:disabled{opacity:.55}#automation-view .automation-notice{padding:12px;border:1px solid #c4ba7e66;border-radius:10px;background:#334d2c88;font-size:11px;color:#e5e9c9}#automation-view #auto-stop-all{border-color:#d3b079}#auto-farmstead-status{padding:11px;border-radius:9px;background:#31482bcc;line-height:1.6}

.game-menu {
  --menu-top: 88px;
  position: fixed;
  top: var(--menu-top);
  left: 16px;
  z-index: 14;
  width: max-content;
}
.game-menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d2bb7d;
  border-radius: 10px;
  background: #344b36f7;
  color: #ffedbd;
  box-shadow: 0 4px 12px #182c1c55;
  font-size: 13px;
}
.game-menu-toggle:hover, .game-menu-toggle[aria-expanded="true"] {
  background: #546b46;
}
.game-menu-tools {
  display: flex;
  gap: 7px;
}
.game-menu-panel {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  display: grid;
  gap: 10px;
  width: min(344px, calc(100vw - 32px));
  max-height: calc(100dvh - var(--menu-top) - 66px);
  padding: 10px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #abb982;
  border-radius: 14px;
  background: #2e4835;
  box-shadow: 0 12px 30px #162a1b70;
}
.game-menu-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: #203828;
}
.game-menu-tabs button {
  min-height: 40px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #e7e3ca;
  font-size: 12px;
}
.game-menu-tabs button[aria-selected="true"] {
  border-color: #c9ca96;
  background: #d9dfbb;
  color: #263c2e;
}
.game-menu-tabs button:hover:not([aria-selected="true"]) {
  background: #435b42;
}
.game-menu-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.game-menu-actions button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 8px;
  border: 1px solid #a6b77b65;
  border-radius: 8px;
  background: #415d42;
  color: #fff3d3;
  text-align: left;
  font-size: 12px;
  line-height: 1.25;
}
.game-menu-actions button > span[aria-hidden="true"] {
  flex: none;
  font-size: 16px;
}
.game-menu-actions button:hover {
  background: #56764f;
}
.game-menu-actions .game-menu-primary {
  grid-column: 1 / -1;
  justify-content: center;
  border-color: #f0cc7f;
  background: #e8c374;
  color: #293b2d;
}
.game-menu-actions .game-menu-primary:hover {
  background: #f5d99a;
}
.game-menu-actions #automation-quick.enabled {
  border-color: #eac67b;
  color: #ffe5a4;
}
.game-menu-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 7px;
  color: #e6ead0;
  font-size: 11px;
  text-decoration: none;
}
.game-menu-back:hover {
  text-decoration: underline;
}
.game-menu-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
#modal:has(#valley-map) {
  width: 860px;
  padding: 23px;
  border: 1px solid #d5c89a;
  background: #f6f3e5;
  color: #253b2e;
}
#valley-map h2 {
  margin: 0 33px 12px 0;
  color: #253b2e;
  font-size: clamp(21px, 4vw, 30px);
}
.valley-map-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 13px;
}
.valley-map-views {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.valley-map-views button, .valley-route-toggle {
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid #cad1b8;
  border-radius: 8px;
  background: #e8eada;
  color: #304837;
  font-size: 12px;
}
.valley-map-views button[aria-pressed="true"], .valley-route-toggle[aria-pressed="true"] {
  border-color: #385743;
  background: #385743;
  color: #fff4d8;
}
.valley-route-toggle { padding-inline: 15px; }
.valley-map-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 31%);
  gap: 14px;
}
.valley-map-sheet {
  position: relative;
  overflow: hidden;
  border: 1px solid #b3bc9f;
  border-radius: 12px;
  background: #e8e6cf;
}
.valley-map-sheet canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
}
.valley-north {
  position: absolute;
  top: 8px;
  right: 9px;
  padding: 5px 7px;
  border: 1px solid #b9b9a0;
  border-radius: 6px;
  background: #f5f0dc;
  color: #334d3d;
  font-size: 11px;
  pointer-events: none;
}
.valley-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 9px;
  padding: 6px 7px 6px 10px;
  border: 1px solid #c8b47e;
  border-inline-start: 4px solid #92773b;
  border-radius: 8px;
  background: #ede7cc;
}
.valley-route[hidden] { display: none; }
#valley-map .valley-route p {
  flex: 1 1 145px;
  margin: 0;
  color: #39462f;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.valley-route button {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #385743;
  border-radius: 7px;
  background: #385743;
  color: #fff4d8;
  font-size: 11px;
}
.valley-route button:disabled {
  border-color: #c2c1aa;
  background: #dedfcf;
  color: #5a6652;
  cursor: default;
}
.valley-map-symbols {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 11px;
  margin: 10px 0 0;
  padding: 0;
  color: #394e3a;
  font-size: 11px;
  list-style: none;
}
.valley-map-symbols li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.valley-map-symbols [data-shape] {
  width: 11px;
  height: 11px;
  background: var(--map-mark);
}
#valley-map [data-shape="circle"] { border-radius: 50%; }
#valley-map [data-shape="house"] { clip-path: polygon(50% 0, 96% 36%, 91% 96%, 9% 96%, 4% 36%); }
#valley-map [data-shape="diamond"] { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
#valley-map [data-shape="square"] { border-radius: 2px; }
#valley-map .valley-map-key {
  margin: 6px 0 0;
  color: #4a614d;
  font-size: 11px;
}
.valley-map-destinations {
  max-height: min(440px, 57dvh);
  padding: 5px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #a2af96 #eceddf;
  border: 1px solid #d8dac8;
  border-radius: 10px;
  background: #eceddf;
}
#valley-map-list {
  display: grid;
  gap: 4px;
}
.valley-destination {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f7f6ed;
  color: #314834;
  text-align: left;
}
.valley-destination:hover, .valley-destination[data-selected] {
  border-color: #9caf93;
  background: #e4e9d8;
}
.valley-destination-icon {
  display: grid;
  flex: 0 0 27px;
  place-items: center;
  width: 27px;
  height: 27px;
  background: var(--map-mark);
  color: #fff4dd;
  font-size: 12px;
}
.valley-destination strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.25;
}
.valley-destination small {
  display: block;
  margin-top: 3px;
  color: #52654b;
  font-size: 10px;
}
.valley-destination small:empty { display: none; }
.valley-destination small.ready { color: #584916; font-weight: 900; }
#valley-map button:focus-visible {
  outline-color: #456146;
  outline-offset: 1px;
}
@media (max-width: 650px) {
  #modal:has(#valley-map) { padding: 15px; }
  .valley-map-toolbar { margin-bottom: 10px; }
  .valley-map-views { gap: 4px; }
  .valley-map-views button { padding: 5px 8px; }
  .valley-map-content { grid-template-columns: 1fr; gap: 9px; }
  .valley-map-destinations { max-height: min(274px, 38dvh); }
}

.farm-panel {
  width: min(332px, calc(100vw - 24px));
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #95a47e #334c38;
  border: 1px solid #c0c69599;
  background: linear-gradient(150deg, #3c533e, #2e4535);
}
.farm-panel-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px 43px 15px 16px;
  border-bottom: 1px solid #d3d6ab38;
  background: linear-gradient(115deg, #556b49, #374f3b);
}
.farm-panel-header .farm-art {
  width: 52px;
  height: 52px;
  border: 1px solid #d6d9aa70;
  border-radius: 13px;
  font-size: 29px;
}
.farm-panel-header small {
  color: #f5d590;
  font-size: 9px;
  letter-spacing: .08em;
}
.farm-panel-header h2 {
  margin: 4px 0;
  overflow-wrap: anywhere;
  color: #fff2ce;
  font-size: clamp(17px, 2.8vw, 23px);
  line-height: 1.12;
}
.farm-panel-header p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #d7e2c5;
  font-size: 11px;
}
.farm-panel-header .close {
  position: absolute;
  top: 8px;
  right: 8px;
}
.farm-panel .panel-body {
  padding: 13px 15px;
}
.farm-panel .stats {
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
.farm-panel .stats strong {
  font-size: 12px;
}
.farm-panel .production-card {
  margin: 0;
}
.farm-panel .resident-activity:empty,
.farm-panel #farm-description:empty {
  display: none;
}
.farm-panel-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}
.farm-panel-actions button {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 6px;
  border: 1px solid #b1ba8566;
  background: #52684b;
  color: #fff3d0;
}
.farm-panel-actions button:hover {
  background: #617a56;
}
.farm-panel-actions:has(#farmstead-panel-btn[hidden]) #field-panel-btn {
  grid-column: 1 / -1;
}
.farm-panel-details {
  margin-top: 10px;
  border-top: 1px solid #c1c89e58;
}
.farm-panel-details summary {
  padding: 10px 1px 0;
  cursor: pointer;
  color: #f3e8bc;
  font-size: 12px;
}
.farm-panel-details .house-development {
  margin-top: 11px;
}
.farm-panel-details p {
  color: #dddcc5;
  font-size: 11px;
  line-height: 1.55;
}
.farm-directory-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #f9e6a6;
  font-size: 11px;
}
.harvest-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 9px;
  border: 1px solid #b9c78b66;
  border-radius: 9px;
  background: #496443;
}
.harvest-result small {
  display: block;
  margin-bottom: 4px;
  color: #dadfb9;
  font-size: 8px;
  letter-spacing: .08em;
}
.harvest-result strong {
  display: block;
  color: #fff0c4;
  font-size: 12px;
  line-height: 1.35;
}
.harvest-result .stone {
  flex: none;
  width: auto;
  min-height: 39px;
  margin: 0;
  padding: 7px 9px;
  background: #3b543a;
}
.harvest-result-actions { display: grid; flex: none; gap: 5px; }
.harvest-result-actions .gold { width: auto; min-height: 39px; margin: 0; padding: 7px 9px; font-size: 10px; }
.stock-empty {
  padding: 14px;
  border: 1px dashed #b8c29e8c;
  border-radius: 10px;
}
.stock-actions-heading {
  margin: 16px 0 8px;
  color: #ffebba;
  font-size: 15px;
}
.stock-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 7px;
}
.stock-actions button {
  display: grid;
  gap: 4px;
  min-height: 47px;
  padding: 10px;
  border: 1px solid #c4c9948f;
  border-radius: 8px;
  background: #49634a;
  color: #fff0cc;
  text-align: left;
}
.stock-actions button:hover { background: #597553; }
.stock-actions strong { font-size: 12px; }
.stock-actions small { color: #dde5c9; font-size: 10px; }
.stock-catalog {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #c3c39c61;
}
.stock-catalog summary {
  color: #ede6c4;
  font-size: 12px;
  cursor: pointer;
}
.visiting-village .empty-world,
.visiting-village .dock,
.visiting-village .notice,
.visiting-village .view-hint {
  display: none;
}
.village-tools { display: none; }
.visiting-village:not(.landscape-view) .village-tools {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 7px;
  border: 1px solid #e2cb917d;
  border-radius: 13px;
  background: #303d2de8;
  box-shadow: 0 7px 20px #263d2b48;
}
.visiting-village:has(#valley-tour:not([hidden])) .village-tools { display: none; }
.village-tools button { margin: 0; width: auto; padding: 0 15px; min-height: 42px; font-size: 11px; }
@media (min-width: 701px) {
  .weather-chip { top: 79px; }
}
@media (max-width: 700px) {
  .game-menu { --menu-top: 124px; left: 12px; }
  .game-menu-panel { width: min(344px, calc(100vw - 24px)); }
  .community-back { display: none; }
  .visiting-village:not(.landscape-view):has(#valley-tour[hidden]) .map-controls {
    z-index: 5;
    right: auto;
    bottom: calc(max(20px, env(safe-area-inset-bottom)) + 64px);
    left: 50%;
    flex-direction: row;
    transform: translateX(-50%);
  }
  .farm-panel {
    --farm-panel-height: min(max(310px, 49dvh), 420px, calc(100dvh - 140px));
    top: auto;
    right: 12px;
    bottom: 16px;
    left: 12px;
    width: auto;
    max-height: var(--farm-panel-height);
  }
  body:has(.farm-panel:not([hidden])) .dock,
  body:has(.farm-panel:not([hidden])) .view-hint,
  body:has(.game-menu-toggle[aria-expanded="true"]) .farm-panel {
    visibility: hidden;
  }
}
@media (min-width: 701px) and (max-width: 950px) {
  .weather-chip { top: 134px; }
  body:has(.farm-panel:not([hidden])) .weather-chip { visibility: hidden; }
}
@media (max-height: 650px) {
  .game-menu { --menu-top: 69px; }
}
@media (max-width: 480px) and (max-height: 650px) {
  .has-farm .game-menu { --menu-top: 122px; }
}

#day-work { margin: 0 0 25px; }
#day-work h3, #day-goals > h3 {
 margin: 0 0 10px;
 color: #ffe8be;
 font-size: 15px;
}
#day-work-list {
 display: grid;
 grid-template-columns: repeat(2, minmax(0,1fr));
 gap: 8px;
 list-style: none;
 margin: 0;
 padding: 0;
}
#day-work-list button {
 display: grid;
 grid-template-columns: auto minmax(0,1fr) auto;
 gap: 8px;
 align-items: center;
 width: 100%;
 height: 100%;
 min-height: 57px;
 padding: 9px;
 border: 1px solid #adbc8570;
 border-radius: 10px;
 background: #344d30;
 color: #fff1cd;
 text-align: left;
 cursor: pointer;
}
#day-work-list [data-ready="true"] button { border-color: #c3cb90; background: #435a34; }
#day-work-list button:hover { background: #4e633e; }
#day-work-list button:focus-visible, .day-web-link:focus-visible { outline: 2px solid #ffdb8d; outline-offset: 2px; }
.day-work-icon {
 display: grid;
 place-items: center;
 width: 30px;
 height: 32px;
 border-radius: 6px;
 background: #ffffff12;
 font-size: 17px;
}
#day-work-list strong, #day-work-list small { display: block; line-height: 1.35; }
#day-work-list strong { font-size: 11px; }
#day-work-list small { margin-top: 3px; color: #dbdfc0; font-size: 10px; font-variant-numeric: tabular-nums; }
#day-work-list [data-ready="true"] small { color: #f4dfa4; }
#day-work-list button > :last-child { color: #e7c67c; }
.day-web-link { display: inline-flex; align-items: center; min-height: 40px; margin-bottom: 8px; color: #f6dea3; text-underline-offset: 3px; }
.day-web-link:hover { color: #fff1d4; }
@media(max-width:540px) { #day-work-list { grid-template-columns: 1fr; } }

.trade-order.in-transit {
 border-color: #d9c986;
 background: #3f5737;
}
.trade-order.in-transit progress { accent-color: #e6c781; }
#first-delivery-order {
  margin: 0 0 19px;
  border-color: #d2b778;
  background: linear-gradient(115deg, #526349, #343f2c);
}
#first-delivery-order .trade-order-title strong { color: #ffe6a7; }
#first-delivery-order .trade-order-bottom button { min-height: 41px; font-size: 10px; }
#first-delivery-order.delivered { border-color: #829770; background: #3c5634; }
.trade-orders-heading { margin: 0; color: #f5e8bc; font-size: 14px; }
#automation-view .automation-background {
  margin-top: 13px;
  border-color: #c9b782;
  background: linear-gradient(105deg, #566044, #3d5137);
}
.shipment-follow {
 position: fixed;
 z-index: 16;
 left: 50%;
 bottom: max(22px, env(safe-area-inset-bottom));
 transform: translateX(-50%);
 display: grid;
 grid-template-columns: auto minmax(0, 1fr) auto auto;
 align-items: center;
 gap: 11px;
 width: min(500px, calc(100vw - 28px));
 padding: 12px 14px;
 border: 1px solid #dbc68d;
 border-radius: 14px;
 background: #314f3beF;
 color: #fff0ca;
 box-shadow: 0 7px 28px #13261e62;
}
.shipment-follow[hidden] { display: none; }
.shipment-follow > span { display: grid; place-items: center; width: 36px; height: 37px; border-radius: 7px; background: #e8d5a51c; font-size: 20px; }
.shipment-follow strong, .shipment-follow small { display: block; }
.shipment-follow strong { font-size: 14px; }
.shipment-follow small { margin-top: 3px; color: #f0e6c7; font-size: 11px; line-height: 1.25; }
.shipment-follow progress { display: block; width: 100%; height: 6px; margin-top: 7px; accent-color: #f0cc7b; }
#watch-grain-btn { width: 100%; min-height: 44px; margin-top: 8px; }
#watch-grain-btn[hidden] { display: none; }
#shipment-eta { color: #f4d48f; font-weight: 850; font-variant-numeric: tabular-nums; }
#shipment-stop {
 display: grid;
 place-items: center;
 width: 37px;
 height: 37px;
 padding: 0;
 border: 1px solid #d9c88e70;
 border-radius: 8px;
 background: #ffffff0e;
 color: #fff0ca;
 font-size: 22px;
}
#shipment-stop:hover { background: #ffffff24; }
#shipment-stop:focus-visible { outline: 2px solid #ffdf94; outline-offset: 2px; }
body:has(.shipment-follow:not([hidden])) .dock,
body:has(.shipment-follow:not([hidden])) .view-hint { visibility: hidden; }
@media(max-width:480px) {
 .shipment-follow { gap: 8px; padding: 9px; }
 .shipment-follow strong { font-size: 12px; }
 .shipment-follow small { font-size: 10px; }
}

.valley-tour {
 position: fixed;
 z-index: 16;
 left: 50%;
 bottom: max(22px, env(safe-area-inset-bottom));
 width: min(520px, calc(100vw - 28px));
 transform: translateX(-50%);
 padding: 17px 18px 15px;
 border: 1px solid #dbc68d;
 border-radius: 16px;
 background: #294533f3;
 color: #fff0cb;
 box-shadow: 0 12px 32px #14281e66;
}
.valley-tour[hidden] { display: none; }
.tour-copy { padding-right: 28px; }
.tour-step-label { color: #e3c37e; font-size: 11px; letter-spacing: .06em; }
.tour-copy h2 { margin: 3px 0 4px; font-size: 25px; line-height: 1.12; }
.tour-copy p { margin: 0; color: #f0e8cd; font-size: 13px; line-height: 1.45; }
#tour-close {
 position: absolute;
 top: 9px;
 right: 10px;
 width: 33px;
 height: 33px;
 border: 1px solid #d0c49766;
 border-radius: 8px;
 background: #ffffff0e;
 color: #fff0cb;
 font-size: 20px;
}
.tour-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 13px; }
.tour-actions button { min-height: 38px; margin: 0; padding: 8px 11px; font-size: 11px; }
#tour-join { margin-left: auto; }
#tour-previous:disabled { opacity: .45; cursor: default; }
#tour-close:hover { background: #ffffff27; }
body:has(.valley-tour:not([hidden])) .dock,
body:has(.valley-tour:not([hidden])) .view-hint,
body:has(.valley-tour:not([hidden])) .empty-world,
body:has(.valley-tour:not([hidden])) .notice { visibility: hidden; }
.first-harvest-guide {
 display: grid;
 gap: 4px;
 margin: 12px 0;
 padding: 11px 12px 11px 14px;
 border-left: 3px solid #e9c370;
 border-radius: 5px 8px 8px 5px;
 background: #314d34bf;
 color: #fff0cb;
}
.first-harvest-guide strong { font-size: 13px; }
.first-harvest-guide span { color: #eee6c9; font-size: 11px; line-height: 1.4; }
.first-harvest-guide[hidden] { display: none; }
.parcel-label.owned-work-label {
 min-height: 41px;
 padding: 6px 10px;
 border-color: #becb9d;
 background: linear-gradient(#4e6848,#364e39);
}
.parcel-label.owned-work-label small {
 font-size: 9px;
 letter-spacing: .15px;
 color: #e9e5ce;
}
.parcel-label.owned-work-label:after { border-top-color: #364e39; }
.parcel-label.owned-work-label[data-ready] {
 background: linear-gradient(#785b30,#56422b);
 border-color: #f1cb7b;
}
.parcel-label.owned-work-label[data-ready] small { color: #ffe5a5; }
.parcel-label.owned-work-label[data-ready]:after { border-top-color: #56422b; }
#model-loading {
 position: fixed;
 bottom: 37px;
 left: 14px;
 padding: 6px 11px;
 border-radius: 20px;
 background: #354535ee;
 color: #fff3d6;
 font-size: 11px;
 pointer-events: none;
}
@media(max-width: 700px) {
 #model-loading {
  bottom: auto;
  top: 182px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
 }
}
@media(max-width: 520px) {
 .valley-tour { bottom: max(14px, env(safe-area-inset-bottom)); padding: 13px 12px; }
 .tour-copy h2 { font-size: 21px; }
 .tour-copy p { font-size: 11px; }
 .tour-actions { margin-top: 9px; }
 .tour-actions button { min-height: 40px; padding-inline: 8px; }
}
