@font-face{font-family:Alegreya;font-style:normal;font-display:swap;font-weight:700;src:url(./alegreya-cyrillic-ext-700-normal-Dx8o6fqX.woff2)format("woff2"),url(./alegreya-cyrillic-ext-700-normal-A6q6xEOT.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Alegreya;font-style:normal;font-display:swap;font-weight:700;src:url(./alegreya-cyrillic-700-normal-Bftrb-m-.woff2)format("woff2"),url(./alegreya-cyrillic-700-normal-_o_NBoYw.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Alegreya;font-style:normal;font-display:swap;font-weight:700;src:url(./alegreya-greek-ext-700-normal-DzPShcR4.woff2)format("woff2"),url(./alegreya-greek-ext-700-normal-DQPzd-kK.woff)format("woff");unicode-range:U+1F??}@font-face{font-family:Alegreya;font-style:normal;font-display:swap;font-weight:700;src:url(./alegreya-greek-700-normal-ByoPpMZf.woff2)format("woff2"),url(./alegreya-greek-700-normal-mWQ2Ne64.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Alegreya;font-style:normal;font-display:swap;font-weight:700;src:url(./alegreya-vietnamese-700-normal-CvM8am9u.woff2)format("woff2"),url(./alegreya-vietnamese-700-normal-CdvEC7Dz.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Alegreya;font-style:normal;font-display:swap;font-weight:700;src:url(./alegreya-latin-ext-700-normal-CEFih5UF.woff2)format("woff2"),url(./alegreya-latin-ext-700-normal-B6bzkdlx.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Alegreya;font-style:normal;font-display:swap;font-weight:700;src:url(./alegreya-latin-700-normal-Vpz_43wJ.woff2)format("woff2"),url(./alegreya-latin-700-normal-BS7r-qZs.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Alegreya;font-style:normal;font-display:swap;font-weight:800;src:url(./alegreya-cyrillic-ext-800-normal-NAvnb1cP.woff2)format("woff2"),url(./alegreya-cyrillic-ext-800-normal-B_J1akGT.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Alegreya;font-style:normal;font-display:swap;font-weight:800;src:url(./alegreya-cyrillic-800-normal-TM6to0H1.woff2)format("woff2"),url(./alegreya-cyrillic-800-normal-BgJWiuWK.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Alegreya;font-style:normal;font-display:swap;font-weight:800;src:url(./alegreya-greek-ext-800-normal-DvP9ppwE.woff2)format("woff2"),url(./alegreya-greek-ext-800-normal-0h2SvCJs.woff)format("woff");unicode-range:U+1F??}@font-face{font-family:Alegreya;font-style:normal;font-display:swap;font-weight:800;src:url(./alegreya-greek-800-normal-CdnvfvV-.woff2)format("woff2"),url(./alegreya-greek-800-normal-BVt059E1.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Alegreya;font-style:normal;font-display:swap;font-weight:800;src:url(./alegreya-vietnamese-800-normal-omuMHNvS.woff2)format("woff2"),url(./alegreya-vietnamese-800-normal-BdE69900.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Alegreya;font-style:normal;font-display:swap;font-weight:800;src:url(./alegreya-latin-ext-800-normal-BjVZYKz5.woff2)format("woff2"),url(./alegreya-latin-ext-800-normal-oEt9nZ3Z.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Alegreya;font-style:normal;font-display:swap;font-weight:800;src:url(./alegreya-latin-800-normal-BcufLBxY.woff2)format("woff2"),url(./alegreya-latin-800-normal-C-QiqklE.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:400;src:url(./alegreya-sans-cyrillic-ext-400-normal-CBouUAPx.woff2)format("woff2"),url(./alegreya-sans-cyrillic-ext-400-normal-ClLgPhqT.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:400;src:url(./alegreya-sans-cyrillic-400-normal-CFUoBDld.woff2)format("woff2"),url(./alegreya-sans-cyrillic-400-normal-C2XSGevv.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:400;src:url(./alegreya-sans-greek-ext-400-normal-CaUEPd_u.woff2)format("woff2"),url(./alegreya-sans-greek-ext-400-normal-D6j-TQLM.woff)format("woff");unicode-range:U+1F??}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:400;src:url(./alegreya-sans-greek-400-normal-B87Md6o9.woff2)format("woff2"),url(./alegreya-sans-greek-400-normal-8U5NAP_q.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:400;src:url(./alegreya-sans-vietnamese-400-normal-D7fwYHgb.woff2)format("woff2"),url(./alegreya-sans-vietnamese-400-normal-BFvpiE3j.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:400;src:url(./alegreya-sans-latin-ext-400-normal-D7N6b6bd.woff2)format("woff2"),url(./alegreya-sans-latin-ext-400-normal-DpBVrRWA.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:400;src:url(./alegreya-sans-latin-400-normal-DtLlO8BS.woff2)format("woff2"),url(./alegreya-sans-latin-400-normal-DmA8jeke.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:700;src:url(./alegreya-sans-cyrillic-ext-700-normal-Cpzx2u2L.woff2)format("woff2"),url(./alegreya-sans-cyrillic-ext-700-normal-YOec_wOb.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:700;src:url(./alegreya-sans-cyrillic-700-normal-BMO00Gdb.woff2)format("woff2"),url(./alegreya-sans-cyrillic-700-normal-qSextXl4.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:700;src:url(./alegreya-sans-greek-ext-700-normal-ChNZoGr1.woff2)format("woff2"),url(./alegreya-sans-greek-ext-700-normal-BVJ8GoGc.woff)format("woff");unicode-range:U+1F??}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:700;src:url(./alegreya-sans-greek-700-normal-CTof9pYC.woff2)format("woff2"),url(./alegreya-sans-greek-700-normal-BZuMtSJ5.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:700;src:url(./alegreya-sans-vietnamese-700-normal-CHYTK2w7.woff2)format("woff2"),url(./alegreya-sans-vietnamese-700-normal-D0056cUE.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:700;src:url(./alegreya-sans-latin-ext-700-normal-HuHd3-Mg.woff2)format("woff2"),url(./alegreya-sans-latin-ext-700-normal-CkNjzB9Y.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:700;src:url(./alegreya-sans-latin-700-normal-DEbcy2sF.woff2)format("woff2"),url(./alegreya-sans-latin-700-normal-BnzUNlma.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:800;src:url(./alegreya-sans-cyrillic-ext-800-normal-t99nLxKn.woff2)format("woff2"),url(./alegreya-sans-cyrillic-ext-800-normal-AL7dFV8Q.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:800;src:url(./alegreya-sans-cyrillic-800-normal-D2Jsre_s.woff2)format("woff2"),url(./alegreya-sans-cyrillic-800-normal-BCYhB7NR.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:800;src:url(./alegreya-sans-greek-ext-800-normal-uCdZyMib.woff2)format("woff2"),url(./alegreya-sans-greek-ext-800-normal-Y9Z6K4Rv.woff)format("woff");unicode-range:U+1F??}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:800;src:url(./alegreya-sans-greek-800-normal-BF_Q3SoR.woff2)format("woff2"),url(./alegreya-sans-greek-800-normal-BLeqXWgY.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:800;src:url(./alegreya-sans-vietnamese-800-normal-BW-pKOU0.woff2)format("woff2"),url(./alegreya-sans-vietnamese-800-normal-DR1LKS7f.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:800;src:url(./alegreya-sans-latin-ext-800-normal-BBRJ-mcX.woff2)format("woff2"),url(./alegreya-sans-latin-ext-800-normal-D8aPPA-q.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Alegreya Sans;font-style:normal;font-display:swap;font-weight:800;src:url(./alegreya-sans-latin-800-normal-CpHsWMQ0.woff2)format("woff2"),url(./alegreya-sans-latin-800-normal-17etSahV.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--red:#b3261e;--red-dark:#8c1d17;--ink:#3d2a17;--muted:#7a6148;--linen:#f3ead6;--line:#6b44254d;--wood:#b07a4a;--wood-dark:#6b4425;--wood-deep:#4a2e18;--green:#5d8a35;--green-light:#7aa64c;--gold:#e3b04b;--ochre:#d39b3a;--cream-text:#fffaf0;--drop:drop-shadow(0 3px 3px #2b1d1259);--font:"Alegreya Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--font-title:"Alegreya", Georgia, "Times New Roman", serif;--frame:url(../ui/frame.webp);--linen-cloth:url(../ui/linen.webp) 0 0 / 256px 256px;--shevitsa:url(../ui/shevitsa.webp);--card:linear-gradient(#fffcf49e, #fffcf49e), var(--linen-cloth);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:var(--font);color:var(--ink);font-size:17px}*{box-sizing:border-box}html,body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;background:#6b7a2e;height:100%;margin:0;overflow:hidden}body{cursor:var(--pointer,default)}input{cursor:text}#game{touch-action:none;position:fixed;inset:0}#ui{pointer-events:none;position:fixed;inset:0}#ui>*>*{pointer-events:auto}img{-webkit-user-drag:none}.icon{vertical-align:-.4em;object-fit:contain;width:1.45em;height:1.45em}.glyph{vertical-align:-.25em;flex-shrink:0;width:1.2em;height:1.2em}.item-icon{object-fit:contain;flex-shrink:0;width:72px;height:72px}button,.plaque{background:0 0;border:10px solid #0000;border-width:9px 10px 11px;border-image:url(../ui/button-cream.webp) 36 40 44 fill/9px 10px 11px;border-radius:0}button.primary,.plaque.green{color:var(--cream-text);text-shadow:0 1px 1px #2b1d1299;border-image-source:url(../ui/button-green.webp);border-image-slice:40 44 52 fill}button.danger,.plaque.red{color:var(--cream-text);text-shadow:0 1px 1px #2b1d1299;border-image-source:url(../ui/button-red.webp);border-image-slice:36 40 44 fill}.plaque.ochre{border-image-source:url(../ui/button-ochre.webp);border-image-slice:32 40 40 fill}button{font:inherit;color:var(--ink);cursor:var(--hand,pointer);text-align:center;min-height:44px;filter:var(--drop);justify-content:center;align-items:center;gap:6px;padding:2px 6px;font-weight:700;line-height:1.15;display:inline-flex}button:active:not(:disabled){filter:drop-shadow(0 1px 1px #2b1d1259)brightness(.97);transform:translateY(2px)}button:disabled{cursor:var(--pointer,default);opacity:.55;filter:saturate(.5)}button:focus-visible{outline:3px solid var(--gold);outline-offset:2px}button.move,button.skip,.add-slot{filter:none;background:#fffcf459;border:2px dashed #4a2e188c;border-image:;border-radius:10px;padding:6px 12px}button.skip{color:var(--muted);border-style:solid;border-color:#4a2e184d}.button-amount{font-variant-numeric:tabular-nums;align-items:center;gap:1px;display:inline-flex}.hud{padding:max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));flex-wrap:wrap;align-items:center;gap:8px;display:flex;position:absolute;top:0;left:0;right:0}.hud>*{height:50px;min-height:50px;filter:var(--drop);border:10px solid #0000;border-width:9px 10px 11px;border-image:url(../ui/button-cream.webp) 36 40 44 fill/9px 10px 11px}.hud .hud-chip{font-variant-numeric:tabular-nums;align-items:center;gap:6px;padding:0 8px 0 0;font-size:18px;font-weight:800;line-height:1;display:flex}.hud-icon,.hud-leva:before{object-fit:contain;flex-shrink:0;width:36px;height:36px;margin:-8px 0 -8px -6px}.hud-leva:before{content:"";background:url(../art/icons/coin.webp) 50%/contain no-repeat}.hud-level{align-items:center;gap:8px;padding:0 4px 0 0;display:flex}.level-badge{width:40px;height:40px;color:var(--cream-text);font-family:var(--font-title);text-shadow:0 1px 1px #2b1d1299;background:url(../ui/medallion.webp) 50%/contain no-repeat;place-items:center;margin:-8px 0 -8px -6px;font-size:18px;font-weight:800;display:grid}.xp{gap:2px;min-width:96px;display:grid}.xp-label{font-family:var(--font-title);font-size:14px;font-weight:800;line-height:1}.xp-bar,.bar,.energy-bar{background:#dccaa4;border-radius:4px;height:8px;overflow:hidden;box-shadow:inset 0 1px 2px #2b1d1259}.xp-fill{background:linear-gradient(180deg, #f3cd72, var(--ochre));height:100%}.xp-numbers{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}.meter.full .meter-fill{background:#f4c6bd}.hud-barn.full strong{color:var(--red)}.hud .hud-speed{border-image-source:url(../ui/button-ochre.webp);border-image-slice:32 40 40 fill;align-items:center;padding:0 4px;font-size:13px;font-weight:800;display:flex}.hud .hud-spacer{filter:none;border:none;border-image:;flex:1;min-width:0;pointer-events:none!important}.hud .hud-menu{background:url(../ui/round.webp) 50%/contain no-repeat;border:none;border-image:;width:52px;height:52px;min-height:52px;padding:0}.hud-menu .hud-icon{width:30px;height:30px;margin:0}.hud .hud-menu{position:relative}.unsaved-dot{border:2px solid var(--cream-text);background:radial-gradient(circle at 35% 35%, #e0574c, var(--red) 55%, var(--red-dark));border-radius:50%;flex-shrink:0;width:14px;height:14px;box-shadow:0 1px 2px #2b1d1280}.hud-menu .unsaved-dot{position:absolute;top:2px;right:2px}.corner{right:max(14px, env(safe-area-inset-right));bottom:max(16px, env(safe-area-inset-bottom));justify-items:center;gap:14px;display:grid;position:absolute}.place-root:not(:empty)~.corner{display:none}.corner .corner-button{background:url(../ui/round.webp) 50%/contain no-repeat;border:none;border-image:;width:74px;height:74px;min-height:74px;padding:0;position:relative}.corner .hud-build{width:90px;height:90px;min-height:90px}.corner-icon{object-fit:contain;width:46px;height:46px}.hud-build .corner-icon{width:54px;height:54px;margin-top:-10px}.corner-label{white-space:nowrap;border:8px solid #0000;border-top-width:6px;border-image:url(../ui/button-ochre.webp) 32 40 40 fill/6px 8px 8px;padding:0 4px;font-size:15px;font-weight:800;line-height:1.1;position:absolute;bottom:-6px;left:50%;transform:translate(-50%)}.corner-badge{width:32px;height:32px;color:var(--cream-text);font-family:var(--font-title);text-shadow:0 1px 1px #2b1d1299;background:url(../ui/medallion.webp) 50%/contain no-repeat;place-items:center;font-size:16px;display:grid;position:absolute;top:-4px;right:-4px}.corner .hud-orders.ready{animation:2.4s ease-in-out infinite nudge}@keyframes nudge{0%,80%,to{transform:rotate(0)}85%{transform:rotate(-8deg)}90%{transform:rotate(7deg)}95%{transform:rotate(-4deg)}}.zoom{top:50%;right:max(14px, env(safe-area-inset-right));width:64px;filter:var(--drop);opacity:0;border:10px solid #0000;border-width:9px 10px 11px;border-image:url(../ui/button-cream.webp) 36 40 44 fill/9px 10px 11px;flex-direction:column;align-items:center;gap:4px;padding:4px 0;transition:opacity .25s,transform .25s;display:flex;position:absolute;transform:translate(12px,-50%)}.zoom.shown{opacity:1;transform:translateY(-50%)}#ui .zoom:not(.shown){pointer-events:none}.zoom-value{font-variant-numeric:tabular-nums;font-size:15px;font-weight:800;line-height:1.2}.zoom .zoom-step{width:40px;height:40px;min-height:40px;font-family:var(--font-title);background:url(../ui/round.webp) 50%/contain no-repeat;border:none;border-image:;padding:0;font-size:24px;font-weight:800;line-height:1}.zoom-range{writing-mode:vertical-lr;cursor:pointer;appearance:none;direction:rtl;background:0 0;width:34px;height:min(180px,28vh);margin:4px 0}.zoom-range::-webkit-slider-runnable-track{background:var(--wood-dark);border-radius:5px;width:10px;box-shadow:inset 0 2px 3px #2b1d1299}.zoom-range::-moz-range-track{background:var(--wood-dark);border-radius:5px;width:10px;box-shadow:inset 0 2px 3px #2b1d1299}.zoom-range::-webkit-slider-thumb{appearance:none;background:url(../ui/medallion.webp) 50%/contain no-repeat;border:none;width:32px;height:32px;margin-left:-11px}.zoom-range::-moz-range-thumb{background:url(../ui/medallion.webp) 50%/contain no-repeat;border:none;border-radius:0;width:32px;height:32px}.backdrop{padding:max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));background:#2b1d1261;place-items:center;animation:.12s ease-out fade-in;display:grid;position:absolute;inset:0}.panel,.place-bar,.offline-card{border-style:solid;border-color:#0000;border-image:var(--frame) 54 / 20px stretch;background:var(--linen-cloth), var(--linen);filter:drop-shadow(0 8px 14px #2b1d1266);background-clip:padding-box;box-shadow:inset 0 2px 10px #4a2e1847}.panel{border-width:20px;width:min(500px,100%);max-height:calc(100% - 24px);padding:24px 16px 16px;animation:.14s ease-out pop-in;position:relative;overflow:auto}.backdrop.redraw,.panel.redraw,.place-bar.redraw{animation:none}.panel:before{content:"";background:var(--shevitsa) 0 50% / auto 100% repeat-x;height:16px;position:absolute;top:2px;left:0;right:0}.panel.sheet{align-self:end;width:min(640px,100%)}.panel.wide{width:min(820px,100%)}.panel-header{border-bottom:2px dashed #b3261e73;align-items:center;gap:10px;margin-bottom:14px;padding-bottom:10px;display:flex}.panel-icon{object-fit:contain;filter:drop-shadow(0 4px 4px #4a2e1840);flex-shrink:0;width:112px;height:96px;margin:-14px 0 -8px -4px}.panel h2{font-family:var(--font-title);flex:1;margin:0;font-size:26px;font-weight:800;line-height:1.1}.panel p{margin:0 0 14px;line-height:1.4}.panel button.close{color:#0000;background:url(../ui/close.webp) 50%/contain no-repeat;border:none;border-image:;flex-shrink:0;width:42px;min-width:42px;height:42px;min-height:42px;padding:0;font-size:0}.actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.muted,.empty{color:var(--muted)}.panel h3{font-family:var(--font-title);color:var(--wood-dark);align-items:center;gap:10px;margin:16px 0 8px;font-size:17px;font-weight:800;display:flex}.panel h3:after{content:"";background:var(--shevitsa) 0 50% / auto 100% repeat-x;opacity:.75;flex:1;height:9px}.panel-header+h3{margin-top:0}.item,.slot,.recipe,.order{border:1.5px dashed var(--line);background:var(--card);border-radius:12px;box-shadow:0 0 0 3px #fffcf48c,0 2px 4px #4a2e1829}.seed-bar .item-name{flex:200px}.seed-tools{scrollbar-width:none;flex:100%;order:2;gap:6px;padding:2px;display:flex;overflow-x:auto}.seed-tools::-webkit-scrollbar{display:none}.seed-bar button.seed{flex-shrink:0;align-content:start;justify-items:center;gap:0;min-width:88px;padding:2px 6px 4px;line-height:1.15;display:grid}.seed-bar button.seed.selected{color:var(--cream-text);text-shadow:0 1px 1px #2b1d1299;border-image-source:url(../ui/button-green.webp);border-image-slice:40 44 52 fill}.seed-bar button.seed.selected .seed-meta{color:inherit}.seed-icon{object-fit:contain;width:56px;height:56px}.seed-name{max-width:100%;font-family:var(--font-title);white-space:nowrap;font-size:15px;font-weight:800}.seed-meta{color:var(--muted);text-align:center;white-space:nowrap;font-size:12px;font-weight:400}.seed-bar .actions{order:1;margin-left:auto}.meter{border:2px solid var(--wood-dark);background:#dccaa4;border-radius:9px;height:28px;margin-bottom:14px;position:relative;overflow:hidden;box-shadow:inset 0 2px 3px #2b1d124d}.meter-fill{background:linear-gradient(#c3df9c,#a2c876);height:100%}.meter-label{font-variant-numeric:tabular-nums;place-items:center;font-size:14px;font-weight:700;display:grid;position:absolute;inset:0}.items{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin:0 0 14px;padding:0;list-style:none;display:grid}.item{text-align:center;flex-direction:column;align-items:center;gap:6px;padding:10px 8px;display:flex}.item .item-icon{filter:drop-shadow(0 4px 4px #4a2e1840);width:104px;height:104px}.item .item-name{flex:0;min-width:0}.item .item-actions{flex-direction:column;width:100%;margin-top:auto}.item .item-actions>button{flex:1}.item-name{flex:1;min-width:110px;display:grid}.item-name strong{font-size:17px}.item-name small{color:var(--muted);font-size:14px}.item-actions{gap:6px;display:flex}.with-glyph{align-items:center;gap:3px;display:inline-flex}.panel button.upgrade{border-image-source:url(../ui/button-ochre.webp);border-image-slice:32 40 40 fill;flex-wrap:wrap;width:100%;font-weight:800}.slots{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin:0 0 12px;padding:0;list-style:none;display:grid}.slot{text-align:center;align-content:center;justify-items:center;gap:4px;min-height:130px;padding:8px 6px;display:grid}.slot.free{box-shadow:none;color:var(--muted);background:0 0;border:2px dashed #6b442566}.slot.ready{border:2px solid var(--green);background:linear-gradient(#e8f5d6cc, #e8f5d6cc), var(--linen-cloth);font-weight:700}.slot.waiting{opacity:.7}.slot-icon{object-fit:contain;width:84px;height:84px}.slot small{font-variant-numeric:tabular-nums}.slot-dig{min-height:0;padding:2px 10px;font-size:13px}.slot.chosen{outline:3px solid var(--red);outline-offset:2px}.dig-confirm{text-align:center;margin-bottom:12px}.dig-confirm .actions{justify-content:center}.bar{width:100%;height:7px}.bar-fill{background:linear-gradient(180deg, var(--green-light), var(--green));height:100%;transition:width .9s linear}button.wide{width:100%;margin-bottom:8px}.add-slot{width:100%;margin-bottom:4px}.recipes{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.recipe{text-align:center;flex-direction:column;align-items:center;gap:4px;padding:8px 8px 10px;display:flex}.recipe.locked{opacity:.6}.recipe-icon{object-fit:contain;filter:drop-shadow(0 4px 4px #4a2e1840);width:120px;height:120px}.recipe-name{font-family:var(--font-title);font-size:19px;font-weight:800;line-height:1.1}.recipe .inputs{justify-content:center}.recipe-meta{color:var(--muted);font-size:14px}.recipe>button,.recipe>.muted{width:100%;margin-top:auto}.inputs{font-variant-numeric:tabular-nums;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:16px;font-weight:700;display:flex}.input{align-items:center;gap:2px;display:inline-flex}.input .icon{width:40px;height:40px}.input.missing{color:var(--red)}.backdrop.for-drawer{padding:0 max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));background:#2b1d1226;place-items:end center}.panel.drawer{flex-direction:column;width:min(1100px,100%);max-height:calc(100% - 70px);padding:20px 12px 8px;animation:.18s ease-out slide-up;display:flex}.panel.drawer .panel-header{margin-bottom:8px;padding-bottom:6px}@keyframes slide-up{0%{opacity:0;transform:translateY(40px)}}.shop-tabs{scrollbar-width:none;flex-shrink:0;gap:8px;padding:2px 2px 10px;display:flex;overflow-x:auto}.shop-tabs::-webkit-scrollbar{display:none}.panel .shop-tab{white-space:nowrap;flex-shrink:0;gap:4px;padding:0 8px 0 2px;font-size:16px}.panel .shop-tab.selected{color:var(--cream-text);text-shadow:0 1px 1px #2b1d1299;border-image-source:url(../ui/button-green.webp);border-image-slice:40 44 52 fill}.shop-tab-icon{object-fit:contain;width:34px;height:34px;margin:-6px 0}.shop-cards{overscroll-behavior-x:contain;scroll-snap-type:x proximity;touch-action:pan-x;gap:12px;margin:0;padding:6px 4px 12px;list-style:none;display:flex;overflow-x:auto}.shop-card{text-align:center;scroll-snap-align:start;border:1.5px dashed var(--line);background:var(--card);border-radius:12px;flex-direction:column;flex:0 0 184px;align-items:center;gap:4px;padding:8px 8px 10px;display:flex;box-shadow:0 0 0 3px #fffcf48c,0 2px 4px #4a2e1829}.shop-picture{place-items:center;width:100%;height:140px;display:grid;position:relative}.shop-icon{object-fit:contain;filter:drop-shadow(0 4px 4px #4a2e1840);width:160px;height:140px}.shop-count{color:var(--muted);background:#fffcf4d9;border-radius:9px;padding:1px 7px;font-size:13px;font-weight:700;position:absolute;top:0;right:0}.shop-name{font-family:var(--font-title);font-size:18px;font-weight:800;line-height:1.1}.shop-details small,.shop-card>small{color:var(--muted);font-size:14px;line-height:1.25}.shop-card>small.blocker{color:var(--red)}.shop-card>button{width:100%;margin-top:auto;font-size:17px}.shop-card .coin{background:url(../art/icons/coin.webp) 50%/contain no-repeat;width:24px;height:24px}.shop-card.locked .shop-icon{opacity:.6;filter:saturate(.4)}.shop-card.locked .shop-name{opacity:.7}.makes{flex-wrap:wrap;align-items:center;gap:2px 4px;display:flex}.makes .icon{width:26px;height:26px}.blocker{color:var(--red);font-weight:700}.materials{margin-bottom:12px}.panel .actions:last-child{margin-top:12px}.place-root{left:50%;bottom:max(16px, env(safe-area-inset-bottom));width:min(540px, calc(100% - 2 * max(12px, env(safe-area-inset-left), env(safe-area-inset-right))));position:absolute;transform:translate(-50%)}.place-bar{border-width:16px;border-image-width:16px;flex-wrap:wrap;align-items:center;gap:10px;padding:6px 8px;animation:.14s ease-out pop-in;display:flex}.place-bar .item-name{flex:1;min-width:150px}.place-bar .item-name strong{font-family:var(--font-title);font-weight:800}.road-bar .item-name{flex-basis:100%}.road-tools{scrollbar-width:none;flex:1;gap:6px;padding:2px;display:flex;overflow-x:auto}.road-tools::-webkit-scrollbar{display:none}.place-bar .road-tool{flex-shrink:0;min-width:56px;padding:0 6px}.place-bar .road-tool.selected{color:var(--cream-text);text-shadow:0 1px 1px #2b1d1299;border-image-source:url(../ui/button-green.webp);border-image-slice:40 44 52 fill}.road-tool-icon{object-fit:contain;width:52px;height:26px}.shop-icon.road-icon{height:100px}.orders{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.order{text-align:center;flex-direction:column;align-items:center;gap:8px;padding:12px 10px 10px;display:flex}.order.ready{border:2px solid var(--green);background:linear-gradient(#ecf7dec7, #ecf7dec7), var(--linen-cloth)}.order.empty{min-height:160px;box-shadow:none;color:var(--muted);background:0 0;border:2px dashed #6b442566;justify-content:center}.order .inputs{flex:1;justify-content:center;font-size:18px}.order .input{flex-direction:column;gap:0}.order .inputs .icon{width:76px;height:76px}.order-reward{font-size:16px}.order-reward .icon{width:30px;height:30px}.bonus{white-space:nowrap}.order-actions{flex-wrap:wrap-reverse;gap:6px;width:100%;display:flex}.order-actions>button{flex:auto}.menu-list{gap:10px;display:grid}.menu-list .glyph{width:30px;height:30px;margin:-6px 0}.energy-text{font-variant-numeric:tabular-nums;gap:2px;min-width:46px;display:grid}.energy-bar{height:6px}.energy-fill{background:linear-gradient(#f6be63,#e59130);height:100%}.energy-meter .meter-fill{background:linear-gradient(#f9dc9c,#f2bf63)}.toasts{left:50%;bottom:max(18px, env(safe-area-inset-bottom));justify-items:center;gap:8px;width:min(420px,100% - 32px);display:grid;position:absolute;transform:translate(-50%)}.place-root:not(:empty)~.toasts{bottom:130px}@media (max-width:720px){.toasts,.place-root:not(:empty)~.toasts{top:calc(max(8px, env(safe-area-inset-top)) + 112px);bottom:auto}}.toast{filter:drop-shadow(0 4px 6px #2b1d1266);text-align:center;border:10px solid #0000;border-width:9px 10px 11px;border-image:url(../ui/button-cream.webp) 36 40 44 fill/9px 10px 11px;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;min-height:44px;padding:2px 8px;font-weight:700;transition:opacity .3s,transform .3s;animation:.16s ease-out pop-in;display:flex}.toast .glyph,.toast .icon{width:26px;height:26px}.toast.error{color:var(--cream-text);text-shadow:0 1px 1px #2b1d1299;border-image-source:url(../ui/button-red.webp);border-image-slice:36 40 44 fill}.toast.big{font-family:var(--font-title);border-image-source:url(../ui/button-ochre.webp);border-image-slice:32 40 40 fill;font-size:19px;font-weight:800}.toast.leaving{opacity:0;transform:translateY(8px)}@keyframes pop-in{0%{opacity:0;transform:scale(.96)}}@keyframes fade-in{0%{opacity:0}}@media (max-width:520px){.hud{gap:6px}.xp-label,.xp-numbers{display:none}.xp{min-width:56px}.hud .hud-chip{gap:4px;padding-right:4px;font-size:16px}.energy-text{min-width:34px}.shop-card{flex-basis:152px}.shop-picture{height:112px}.shop-icon{width:132px;height:112px}.panel .shop-tab{font-size:15px}.corner .corner-button{width:64px;height:64px;min-height:64px}.corner .hud-build{width:78px;height:78px;min-height:78px}.panel{border-width:16px;border-image-width:16px;padding-left:12px;padding-right:12px}.item-icon{width:60px;height:60px}.panel-icon{width:84px;height:72px}.recipes,.items,.orders{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.item .item-icon,.order .inputs .icon{width:76px;height:76px}.recipe-icon{width:96px;height:96px}.input .icon{width:34px;height:34px}.seed-bar button.seed{min-width:76px}.seed-icon{width:48px;height:48px}}@media (max-width:599px){.hud{grid-template-columns:repeat(6,minmax(0,1fr));align-items:center;display:grid}.hud>*{height:46px;min-height:46px}.hud .hud-chip,.hud-level{justify-content:center;min-width:0}.hud-level,.hud-energy,.hud-population,.hud-barn,.hud .hud-speed{grid-column:span 2}.hud-leva{grid-column:span 3}.hud .hud-menu{grid-area:1/6;justify-self:end;width:48px;height:48px;min-height:48px}.hud .hud-spacer{display:none}.xp{flex:1;min-width:0}.hud-icon,.hud-leva:before{width:32px;height:32px}.level-badge{width:36px;height:36px}}@media (max-height:500px){.hud{padding-top:max(6px, env(safe-area-inset-top));flex-wrap:nowrap;gap:6px;padding-bottom:6px}.hud>*{flex-shrink:0;height:44px;min-height:44px}.hud-level{flex-shrink:1;min-width:96px}.xp{flex:1;min-width:0}.xp-label{white-space:nowrap;overflow:hidden}.hud .hud-chip{font-size:16px}.hud-icon,.hud-leva:before{width:32px;height:32px}.level-badge{width:36px;height:36px;font-size:16px}.xp-numbers{display:none}.hud .hud-spacer{flex-shrink:1}.hud .hud-menu{width:46px;height:46px;min-height:46px}.corner{bottom:max(10px, env(safe-area-inset-bottom));gap:10px}.corner .corner-button{width:58px;height:58px;min-height:58px}.corner .hud-build{width:70px;height:70px;min-height:70px}.corner-icon{width:36px;height:36px}.hud-build .corner-icon{width:42px;height:42px;margin-top:-8px}.corner-label{font-size:13px}.corner-badge{width:28px;height:28px;font-size:14px}.zoom{right:calc(max(14px, env(safe-area-inset-right)) + 84px)}.zoom-range{height:min(140px,24vh)}.backdrop{padding:6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left))}.panel{border-width:14px;border-image-width:14px;max-height:100%;padding:16px 12px 10px}.panel:before{height:12px;top:1px}.panel-header{margin-bottom:8px;padding-bottom:6px}.panel-icon{width:64px;height:52px;margin:-10px 0 -6px -2px}.panel h2{font-size:21px}.panel button.close{width:36px;min-width:36px;height:36px;min-height:36px}.panel p{margin-bottom:8px;line-height:1.3}.panel h3{margin:10px 0 6px}.slot{min-height:96px}.slot-icon{width:56px;height:56px}.recipes,.items,.orders{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}.recipe-icon{width:72px;height:72px}.item .item-icon{width:64px;height:64px}.order{gap:4px;padding:8px}.order .inputs .icon{width:56px;height:56px}.order.empty{min-height:110px}.panel.drawer{max-height:100%;padding:12px 10px 4px}.panel.drawer .panel-header{z-index:1;border:none;margin:0;padding:0;position:absolute;top:8px;right:6px}.panel.drawer h2{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.shop-tabs{margin-right:40px;padding-bottom:6px}.panel .shop-tab{min-height:40px;font-size:15px}.shop-tab-icon{width:28px;height:28px}.shop-cards{gap:10px;padding:4px 4px 8px}.shop-card{flex-basis:156px;gap:2px;padding:6px 6px 8px}.shop-picture{height:64px}.shop-icon{width:100px;height:64px}.shop-icon.road-icon{height:56px}.shop-name{font-size:16px}.shop-details small,.shop-card>small{font-size:13px;line-height:1.2}.shop-card>button{min-height:40px;font-size:16px}.makes .icon{width:22px;height:22px}.place-root{bottom:max(8px, env(safe-area-inset-bottom))}.seed-bar button.seed{min-width:76px}.seed-icon{width:40px;height:40px}}@media (max-height:500px) and (min-width:600px){.splash{padding:max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left))}.splash-title{white-space:nowrap;font-size:clamp(30px,5vw,40px)}.splash:has(.splash-card:not(:empty)){grid-template-rows:1fr auto;grid-template-columns:minmax(min-content,1fr) minmax(0,400px);align-items:center;column-gap:24px}.splash:has(.splash-card:not(:empty)) .splash-title{margin:0}.splash-card{grid-area:1/2/span 2}.splash-loader{grid-column:1;width:min(360px,100%)}.splash-panel p{font-size:16px}.splash-panel .menu-list{gap:8px}.splash-panel .menu-list button{min-height:46px;font-size:17px}.splash-panel button.splash-lang{margin-top:6px}.account-form{gap:8px}}@media (prefers-reduced-motion:reduce){*,:before{transition:none!important;animation:none!important}}.offline{text-align:center;pointer-events:auto;place-content:center;gap:12px;padding:16px;display:grid;position:absolute;inset:0}.splash{z-index:10;padding:max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));background:#e9d9b8 url(../ui/splash.webp) 50% 60%/cover no-repeat;grid-template-rows:auto 1fr auto;justify-items:center;gap:12px;transition:opacity .45s ease-out;display:grid;position:fixed;inset:0;overflow:auto}.splash.done{opacity:0;pointer-events:none}.splash-title{font-family:var(--font-title);color:var(--cream-text);text-shadow:0 2px 1px #2b1d128c;filter:drop-shadow(0 6px 10px #2b1d1266);border:16px solid #0000;border-width:14px 16px 18px;border-image:url(../ui/button-red.webp) 36 40 44 fill/14px 16px 18px;margin:4vh 0 0;padding:0 22px 2px;font-size:clamp(36px,7vw,64px);font-weight:800;line-height:1.15;animation:.3s ease-out pop-in}.splash-card{align-self:center;width:min(420px,100%)}.splash .panel.splash-panel{width:100%;max-height:none;overflow:visible}.splash-panel .menu-list button{min-height:52px;font-size:19px}.splash-panel p.splash-hint{color:var(--muted);text-align:center;margin:-6px 0 6px;font-size:14px}.splash-panel p.form-error:empty{min-height:0}.splash-panel button.splash-lang{min-height:36px;margin:10px auto 0;font-size:15px;display:flex}.splash-loader{justify-items:center;gap:8px;width:min(420px,100%);animation:.3s ease-out fade-in;display:grid}.splash-loader[hidden]{display:none}.splash-track{width:100%;height:26px;filter:var(--drop);border:7px solid #0000;border-width:6px 7px 8px;border-image:url(../ui/button-cream.webp) 36 40 44 fill/6px 7px 8px}.splash-fill{background:linear-gradient(180deg, var(--green-light), var(--green));border-radius:6px;width:0;height:100%;transition:width .25s ease-out;box-shadow:inset 0 -2px 2px #2b1d1240}.splash-status{border:10px solid #0000;border-width:9px 10px 11px;border-image:url(../ui/button-cream.webp) 36 40 44 fill/9px 10px 11px;margin:0;padding:0 8px;font-weight:700}.offline{background:#2b1d1273;animation:.2s ease-out fade-in}.offline[hidden]{display:none}.offline-card{border-width:20px;justify-items:center;gap:10px;width:min(340px,100%);padding:14px;display:grid}.offline-card strong{font-family:var(--font-title);font-size:20px}.offline-card p{color:var(--muted);margin:0}.account-form{gap:12px;display:grid}.field{gap:4px;display:grid}.field-label{font-weight:700}.field-hint{color:var(--muted);font-size:14px}.field input{font:inherit;border:2px solid var(--wood-dark);color:var(--ink);-webkit-user-select:text;user-select:text;background:#fffdf6;border-radius:9px;padding:8px 10px;font-size:max(16px,1em);box-shadow:inset 0 2px 3px #2b1d1226}.field input:focus-visible{outline:3px solid var(--gold);outline-offset:1px}.panel p.form-error{min-height:1.4em;color:var(--red);margin:0;font-weight:600}.panel p.form-warning{border:2px solid var(--ochre);background:#fbecc8;border-radius:10px;margin:0;padding:8px 10px}
