@font-face{font-family:Nunito;src:url(../fonts/Nunito-Variable.woff2) format("woff2");font-display:swap;font-weight:200 1000}:root{font-family:Nunito,system-ui,sans-serif;color:#244934;background:#faf6e9;font-synthesis:none;--cream:#fffdf4;--ink:#244934;--forest:#27573e;--line:#e3e4d4;--shadow:0 5px 24px #29482d18}*{box-sizing:border-box}body{margin:0;overflow:hidden;width:100%;height:100dvh}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #cd972f;outline-offset:3px}button:disabled{cursor:default}button svg{pointer-events:none}svg{width:22px;height:22px;display:block}[hidden]{display:none!important}#world{position:fixed;inset:0;width:100%;height:100%;touch-action:none;display:block;outline:0}.topbar{position:fixed;inset:0 0 auto;z-index:3;height:calc(56px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 28px 0 32px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(90deg,#faf6e9fa,#faf6e9ef 55%,#faf6e980);border-bottom:1px solid #faf6e998;pointer-events:none}.brand{display:flex;align-items:center;gap:12px;pointer-events:auto}.brand img{width:34px;height:34px}.brand strong{font-size:23px;font-weight:950;line-height:1;display:block;white-space:nowrap}.brand h1,.resource-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.tools{display:flex;gap:7px;pointer-events:auto}.tool{display:grid;place-items:center;border:1px solid #fffdf4c0;border-radius:12px;background:#fffdf4e8;width:44px;height:44px;transition:background .15s}.tool:hover{background:#e8eedb}.tool[aria-pressed=true]{background:#dbe7cd;border-color:#bdcda9}.tool svg{width:21px;height:21px}.tool.camera-switch{width:100px;display:flex;gap:6px;justify-content:center;padding:0 8px;font-size:11px;font-weight:850;white-space:nowrap}.camera-switch svg{width:18px;height:18px;flex:none}.gameplay{position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);z-index:4;width:min(860px,calc(100% - 24px));display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none}.farm-nav{width:100%;height:78px;background:#fffdf4f7;border:1px solid #fffdf4;border-radius:22px;display:grid;grid-template-columns:repeat(4,1fr);box-shadow:0 8px 28px #3c402326;backdrop-filter:blur(12px);overflow:hidden;pointer-events:auto}.farm-tab{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:none;border:0;font-size:14px;color:#747967;font-weight:650;min-width:0;min-height:44px;padding:7px 4px 10px;white-space:nowrap}.farm-tab+.farm-tab:before{content:"";position:absolute;left:0;top:23px;bottom:23px;width:1px;background:#e7e6d8}.farm-tab .nav-icon svg{width:25px;height:25px;stroke-width:1.8}.farm-tab[aria-current]{color:#24563c;font-weight:900}.farm-tab[aria-current]:after{content:"";position:absolute;bottom:0;height:3px;width:52%;background:#34734e;border-radius:3px}.farm-tab:hover{background:#edf1df75}.camera-hint{margin:0;background:#fffdf1cc;color:#587052;padding:5px 11px;border-radius:8px;font-size:11px;font-weight:750;text-align:center}.context-panel{width:min(580px,100%);background:#fffdf4f5;border:1px solid #fffdf4;border-radius:16px;padding:9px 11px;box-shadow:var(--shadow);backdrop-filter:blur(10px);pointer-events:auto}.resource-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;padding:0 4px 7px}.resource{display:flex;align-items:center;gap:6px;min-width:0;text-align:left;background:none;border:0;padding:0;min-height:25px}.resource-icon{display:grid;place-items:center}.resource-icon svg{width:18px;height:18px;stroke-width:1.8}.gold,.grain{color:#9a7017}.egg{color:#a77b25}.resource strong{font-size:14px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums}.resource small{display:inline;font-size:10px;font-weight:750;color:#5b705b;margin-left:6px}.resource-button{min-height:44px;margin:-5px 0}.resource-button:after{content:"+";display:grid;place-items:center;width:19px;height:19px;border-radius:5px;background:#e4edcf;color:#3d6628;font-size:16px;font-weight:900}.resource-button:hover:after{background:#c6d9a0}.order-strip{margin:1px 1px 10px}.order-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:12px;line-height:1.35}.order-heading strong{font-weight:900}.order-heading span{font-size:12px;color:#475f49;font-weight:850;font-variant-numeric:tabular-nums}.order-heading b{font-size:11px;color:#886215}.order-progress{height:3px;background:#e1e8d5;overflow:hidden;border-radius:4px;margin-top:7px}.order-progress i{height:100%;display:block;background:#6e9951;transition:width .2s}.order-strip p{font-size:11px;font-weight:750;line-height:1.35;color:#385039;margin:6px 0 0}.action-dock{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.action{position:relative;border:1px solid #e0e5d2;border-radius:10px;padding:8px 7px 10px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;background:#f8faeef2;transition:background .15s;min-height:88px}.action-icon svg{width:23px;height:23px;margin:0 auto 4px;stroke-width:1.8}.action strong{font-size:12px;font-weight:900;line-height:1.2;white-space:nowrap}.action strong b{font-size:10px;font-weight:800;margin-left:2px;color:#526945;font-variant-numeric:tabular-nums}.action small{font-size:10px;line-height:1.2;color:#65745a;margin-top:5px;text-align:center;max-width:100%}.action .care-meter{position:absolute;left:20%;right:20%;bottom:4px;height:2px;background:#dfe6cf;border-radius:2px;overflow:hidden}.care-meter em{display:block;height:100%;background:#83a848;transition:width .25s}.water-meter em{background:#409594}.feed-action .action-icon{color:#9a7c24}.water-action .action-icon{color:#287d7c}.logistics-action .action-icon,.dispatch-action .action-icon{color:#a97620}.action:enabled:hover{background:#e4efcf}.action:disabled{background:#f7f7ef;color:#66725c;border-color:#e4e7da}.action:disabled .action-icon{opacity:.55}.action.ready{background:#f8e9bc;border-color:#e5cd91}.egg-badge{position:absolute;top:-5px;right:-3px;background:#b07b18;color:#fff;min-width:19px;height:19px;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:10px;border:2px solid #fffdf1}body[data-current-tab=chickens] .order-strip,body[data-current-tab=chickens] .dispatch-action,body[data-current-tab=orders] .feed-action,body[data-current-tab=orders] .water-action{display:none}body[data-current-tab=orders] .action-dock{grid-template-columns:1fr 1fr}body[data-current-tab=orders] .action{min-height:73px}body[data-current-tab=orders] .action-icon{display:none}.toast{position:fixed;left:50%;transform:translate(-50%);top:calc(66px + env(safe-area-inset-top));z-index:12;width:max-content;max-width:calc(100% - 32px);padding:9px 14px;background:#294b37f7;color:#fffdf0;border:1px solid #52724c;border-radius:10px;box-shadow:0 4px 14px #18352526;text-align:center;font-size:12px;line-height:1.35;font-weight:750;pointer-events:none}.loading{position:fixed;inset:0;background:#faf6e9;z-index:20;display:grid;place-items:center;padding:25px}.loading-card{text-align:center;width:min(370px,100%)}.loading-card img{margin:0 auto 15px}.loading h2{font-size:24px;margin:0 0 8px;font-weight:900}.loading p{font-size:14px;line-height:1.5;color:#596c51}#loading-bar{height:4px;background:#dfe6d3;overflow:hidden;border-radius:3px;margin:23px 35px}#loading-bar i{display:block;width:35%;height:100%;background:#789e4c;animation:loading 1.4s ease-in-out infinite alternate}#retry{background:#3e6a38;border:0;color:#fffbed;padding:12px 24px;border-radius:8px;font-weight:850;margin-top:10px;min-height:44px}@keyframes loading{to{transform:translate(185%)}}dialog{padding:22px;border:1px solid #fffdf5;border-radius:18px;background:#fffdf4;color:#233d2e;width:min(460px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 18px 70px #203a2b33}dialog::backdrop{background:#1f382950;backdrop-filter:blur(3px)}.shop-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.shop-kicker{font-size:10px;font-weight:850;color:#637451}.shop-heading h2{font-size:22px;line-height:1.25;font-weight:950;margin:5px 0 0}.close{border:0;background:#e6ecd9;width:44px;height:44px;border-radius:10px;font-size:26px;line-height:1;font-weight:600;flex:none}.shop-money{display:flex;justify-content:space-between;font-size:12px;margin:14px 0 17px;color:#52684e}.shop-money strong{color:#87621b}.feed-shop{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;padding:13px;border-radius:10px;background:#eaf0d9;margin-bottom:10px}.feed-shop h3,.upgrade-row h3{font-size:14px;font-weight:950;line-height:1.3;margin:0}.feed-shop p,.upgrade-row p{font-size:12px;line-height:1.45;margin:4px 0 0;color:#506648;max-width:250px}.feed-shop small{font-size:11px;grid-column:1/-1;color:#566c4b}.feed-shop small:empty{display:none}.feed-shop button,.upgrade-row button{background:#426c36;color:#fffdf0;border:0;border-radius:8px;font-size:11px;font-weight:900;padding:10px 12px;min-height:44px}.feed-shop button:disabled,.upgrade-row button:disabled{background:#e0e8d0;color:#5d704c}.upgrade-row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:15px 0;border-bottom:1px solid #dde5d1;align-items:center}.upgrade-level{display:block;font-size:10px;font-weight:850;color:#7c652c;margin-bottom:4px}.upgrade-row button{max-width:116px;min-width:100px;line-height:1.3}.shop-note{font-size:11px;color:#576c4f;text-align:center;margin:18px 0 0}.upgrade-reason{display:block;font-size:11px;margin-top:5px;color:#5a6e4e}.upgrade-reason:empty{display:none}@media(max-width:600px){.topbar{padding-left:14px;padding-right:12px}.brand{gap:8px}.brand img{width:29px;height:29px}.brand strong{font-size:18px}.tools{gap:3px}.tool{background:#fffdf1ce;border-color:#fffdf1b0;border-radius:10px}.tool.camera-switch{width:44px}.camera-switch>span:last-child{display:none}.tool svg,.camera-switch svg{width:20px;height:20px}.gameplay{bottom:max(12px,env(safe-area-inset-bottom));gap:8px}.farm-nav{height:72px;border-radius:18px}.farm-tab{font-size:11px;gap:5px}.farm-tab .nav-icon svg{width:24px;height:24px}.farm-tab+.farm-tab:before{top:20px;bottom:20px}.context-panel{padding:7px 8px;border-radius:13px}.resource-row{gap:8px;padding-bottom:5px}.resource strong{font-size:13px}.resource small{font-size:9px;margin-left:4px}.resource-icon svg{width:16px;height:16px}.action-dock{gap:5px}.action{padding:7px 4px 9px;min-height:90px}.action strong{font-size:11px}.action strong b{font-size:10px;margin-left:1px}.action small{font-size:10px}.order-heading strong,.order-heading span{font-size:11px}.order-heading b,.camera-hint{font-size:10px}.toast{font-size:11px;max-width:calc(100% - 26px)}dialog{padding:18px 16px}.shop-heading h2{font-size:21px}.feed-shop{grid-template-columns:1fr}.feed-shop button{width:100%}.upgrade-row button{min-width:87px;max-width:93px;padding:9px}.upgrade-row p{font-size:11px}}@media(max-width:360px){.brand strong{font-size:15px}.brand img{width:25px;height:25px}.brand{gap:6px}.farm-tab{font-size:10px}.resource small{display:block;margin-left:0}.resource-icon svg{width:15px;height:15px}}@media(max-height:600px)and (orientation:landscape){.topbar{height:50px;padding:0 12px}.brand strong{font-size:19px}.brand img{width:28px;height:28px}.gameplay{width:min(600px,calc(100% - 24px));bottom:8px;gap:5px}.farm-nav{height:60px;border-radius:16px}.farm-tab{font-size:11px;gap:3px}.farm-tab .nav-icon svg{width:22px;height:22px}.farm-tab+.farm-tab:before{top:17px;bottom:17px}.context-panel{position:absolute;right:calc(100% + 10px);bottom:0;width:220px;padding:7px}.resource-row{gap:5px;min-height:27px;padding:0 0 5px}.resource small{display:none}.resource strong{font-size:12px}.resource-button{min-height:44px}.resource-icon svg{width:15px;height:15px}.action-dock{gap:4px}.action{min-height:78px;padding:5px 2px 8px}.action strong{font-size:10px}.action small{font-size:9px}.action-icon svg{width:19px;height:19px}.camera-hint{display:none}body[data-current-tab=chickens] .gameplay,body[data-current-tab=orders] .gameplay{width:min(520px,60vw);left:auto;right:12px;transform:none}body[data-current-tab=orders] .context-panel{width:250px}.order-heading{flex-wrap:wrap;gap:4px}.order-heading strong,.order-heading span{font-size:10px}.order-heading b{font-size:9px}.order-strip p{font-size:10px}body[data-current-tab=orders] .action{min-height:60px}dialog{max-height:calc(100dvh - 20px)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}.farm-tab:focus-visible{outline-offset:-5px;border-radius:16px}.tool.editor-entry{width:135px;display:flex;justify-content:center;align-items:center;gap:6px;font-size:12px;font-weight:850}.editor-entry>span:first-child{font-size:23px}.settings-toggle>span{font-size:28px;line-height:1}.farm-settings{position:fixed;z-index:12;right:16px;top:66px;width:265px;padding:13px;background:#fffdf4f8;border:1px solid #fffdf4;border-radius:15px;box-shadow:var(--shadow);backdrop-filter:blur(12px)}.settings-heading{display:flex;align-items:center;justify-content:space-between;font-size:15px}.settings-heading .tool{background:#edf1e0;font-size:25px}.settings-tools{display:flex;gap:7px;margin:6px 0 12px}.farm-settings label{display:block;font-size:11px;color:#5f7256;margin-bottom:5px}.farm-settings select{width:100%;min-height:44px;border:1px solid #d5dfc8;border-radius:8px;font:inherit;font-size:13px;background:#fffef6;color:#294e34;padding:8px}.farm-settings p{font-size:10px;margin:7px 0 0;color:#6c745e}.farm-settings p:empty{display:none}.care-toggle{display:none}@media(max-width:700px){.tool.editor-entry{width:44px}.editor-entry .tool-label{display:none}.tools{gap:3px}.tool.camera-switch{width:44px}.camera-switch>span:last-child{display:none}.farm-settings{right:12px;top:64px;width:min(265px,calc(100% - 24px))}.care-toggle{display:block;min-height:44px;border:0;background:#ecf2de;border-radius:8px;color:#50714b;font:inherit;font-size:10px;font-weight:850;padding:6px}body[data-current-tab=orders] .care-toggle{display:none}body[data-current-tab=chickens][data-care-expanded=false] .context-panel{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:6px;padding:6px;border-radius:12px}body[data-current-tab=chickens][data-care-expanded=false] .resources{display:none}body[data-current-tab=chickens][data-care-expanded=false] .action-dock{grid-column:1;grid-row:1;gap:4px}body[data-current-tab=chickens][data-care-expanded=false] .care-toggle{grid-column:2;grid-row:1;font-size:0;padding:3px}body[data-current-tab=chickens][data-care-expanded=false] .care-toggle:after{content:"Уход";font-size:10px}body[data-current-tab=chickens][data-care-expanded=false] .action{min-height:44px;padding:4px 3px;justify-content:center;border-radius:8px}body[data-current-tab=chickens][data-care-expanded=false] .action-icon,body[data-current-tab=chickens][data-care-expanded=false] .action small{display:none}body[data-current-tab=chickens][data-care-expanded=false] .action strong{font-size:10px}body[data-current-tab=chickens][data-care-expanded=false] .action .care-meter{bottom:3px}body[data-current-tab=chickens][data-care-expanded=true] .care-toggle{width:100%;margin-bottom:7px}body[data-current-tab=chickens][data-care-expanded=true] .context-panel{padding:7px 8px}}@media(max-width:360px){.brand strong{font-size:16px}.topbar{padding-left:12px;padding-right:10px}.tools{gap:2px}}.world-editor{position:fixed;z-index:8;right:16px;top:72px;bottom:16px;width:310px;padding:17px;background:#fffdf4f7;border:1px solid #fffdf4;border-radius:18px;box-shadow:0 10px 38px #28462c29;backdrop-filter:blur(14px);display:flex;flex-direction:column;gap:9px;pointer-events:auto}.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.editor-heading small{font-size:9px;font-weight:900;letter-spacing:.05em;color:#6a795b}.editor-heading h2{font-size:22px;line-height:1.2;margin:3px 0 0;font-weight:950}.world-editor button,.editor-confirm button{min-height:44px;min-width:44px;border:1px solid #dce5ce;background:#edf2e0;border-radius:9px;padding:9px 11px;font-size:11px;font-weight:850;color:#33583a}.world-editor button:hover,.editor-confirm button:hover{background:#dfeacc}.world-editor button:disabled{background:#f4f5ed;color:#86907b;border-color:#e5e8dc;cursor:default}#world-editor-done{background:#2f653e;color:#fffdf4;border-color:#2f653e}.editor-local-note{font-size:11px;line-height:1.4;color:#637357;margin:0}.editor-toolbar{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:5px}.editor-toolbar button{padding:8px 5px}.editor-toolbar button:first-child,.editor-toolbar button:nth-child(2){font-size:16px}.editor-toolbar button span{font-size:10px}.editor-save-status{font-size:10px;font-weight:850;margin:0;color:#6c795e}.editor-error{font-size:11px;line-height:1.4;color:#894421;background:#fff0d9;border-radius:9px;padding:9px;margin:0}.editor-scroll{flex:1;overflow:auto;min-height:0;padding-right:3px;overscroll-behavior:contain}.editor-section{border-top:1px solid #e1e7d5;padding:13px 0}.editor-section h3,.editor-section summary{font-size:13px;font-weight:900;margin:0 0 8px}.editor-section summary{cursor:pointer;min-height:44px;padding:11px 0;margin:0}.editor-label{display:block;font-size:10px;color:#64745a;margin-bottom:4px}.world-editor select,.world-editor input{width:100%;min-width:0;min-height:44px;border:1px solid #d5dfc8;border-radius:8px;background:#fffef8;color:#294d34;font:inherit;font-size:12px;padding:8px}.world-editor input:focus-visible,.world-editor select:focus-visible{outline:3px solid #cd972f;outline-offset:2px}.editor-hint{font-size:10px;line-height:1.45;color:#66775c;margin:7px 0 0}.editor-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.editor-field-grid label{font-size:10px;color:#617257;min-width:0;display:flex;flex-direction:column;gap:5px}.world-editor input[type=color]{padding:5px;height:44px}.editor-check{display:flex;gap:7px;align-items:center;font-size:11px;min-height:44px}.editor-check input{width:44px;height:44px;min-height:44px;accent-color:#427047}.editor-mode-row{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:10px}.editor-mode-row button{font-size:10px;padding:8px 3px}.world-editor[data-transform-mode=translate] [data-editor-mode=translate],.world-editor[data-transform-mode=rotate] [data-editor-mode=rotate],.world-editor[data-transform-mode=scale] [data-editor-mode=scale]{background:#d2e3bf;border-color:#87a16d}.editor-button-row{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:9px 0}.editor-wide{width:100%;margin-top:8px}.editor-sheet-toggle{display:none}.editor-confirm{width:min(420px,calc(100% - 28px));padding:23px;border-radius:18px}.editor-confirm h2{font-size:22px;margin:0 0 8px;line-height:1.2}.editor-confirm p{font-size:13px;color:#627258;line-height:1.4}.editor-confirm-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}.editor-confirm-actions button{flex:1;min-width:105px}.editor-confirm-actions button:first-child{background:#386a42;color:#fffdf4}.editor-confirm::backdrop{background:#213d2a55;backdrop-filter:blur(3px)}body[data-world-editing=true] .gameplay{display:none}body[data-world-editing=true] #reset-camera{pointer-events:auto}.editor-protected-note{font-size:11px;background:#eef1e3;padding:10px;border-radius:8px}@media(max-width:700px){.world-editor{left:12px;right:12px;top:auto;bottom:max(12px,env(safe-area-inset-bottom));width:auto;max-height:min(52dvh,500px);padding:13px 14px;gap:7px;border-radius:17px}.editor-heading h2{font-size:19px}.editor-local-note{font-size:10px}.editor-toolbar{grid-template-columns:1fr 1fr 1.15fr}.editor-scroll{max-height:40dvh}.editor-sheet-toggle{display:block;min-height:44px;border:0;background:transparent!important;padding:5px!important;margin:-4px 0 -8px;color:#728367!important}.world-editor[data-collapsed=true] .editor-scroll,.world-editor[data-collapsed=true] .editor-toolbar,.world-editor[data-collapsed=true] .editor-local-note,.world-editor[data-collapsed=true] .editor-error{display:none}.world-editor[data-collapsed=true]{max-height:130px}.editor-confirm-actions{flex-direction:column}.editor-confirm-actions button{width:100%}.editor-field-grid label{font-size:11px}.world-editor input,.world-editor select{font-size:13px}}@media(max-height:600px)and (orientation:landscape){.world-editor{inset:58px 12px 10px auto;width:285px;max-height:none;padding:11px}.editor-local-note{display:none}.editor-heading h2{font-size:18px}.editor-scroll{max-height:none}.editor-heading small,.editor-sheet-toggle{display:none}.world-editor[data-collapsed=true] .editor-scroll,.world-editor[data-collapsed=true] .editor-toolbar{display:block}.world-editor[data-collapsed=true]{max-height:none}.editor-confirm{max-height:calc(100dvh - 20px)}.editor-confirm-actions{flex-direction:row}}
