@import "https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&display=swap";:root{--bg-deep:#17656b;--bg-mid:#a8d9c2;--card-bg:#fff7e5;--card-stroke:#e2bb73;--panel-soft:#fff5dc;--text-main:#163344;--text-soft:#43616a;--accent-cyan:#086e77;--accent-lime:#246443;--accent-warm:#925409;--danger:#b93640}*{box-sizing:border-box}body{color:var(--text-main);-webkit-font-smoothing:antialiased;background:radial-gradient(at top,#e9f6d9,#a4d6bb 55%,#529d96);margin:0;font-family:"Baloo 2",Trebuchet MS,sans-serif}button,input,select{font:inherit}button{touch-action:manipulation}button:focus-visible,select:focus-visible{outline-offset:4px;outline:3px solid #086e77}code{font-family:monospace}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.shop-screen{color:#173e45;width:100%;max-width:1120px}.shop-header{grid-template-columns:auto 1fr auto;align-items:center;gap:20px;padding:4px 4px 20px;display:grid}.shop-header h1{margin:2px 0 0;font-size:clamp(1.65rem,3.6vw,2.8rem);line-height:1.1}.shop-eyebrow{color:#22696a;font-size:.85rem;font-weight:700}.shop-back{color:#17474b;min-height:44px;font:inherit;cursor:pointer;background:#fff6e0;border:2px solid #fff7df;border-radius:14px;align-items:center;gap:8px;padding:10px 15px;font-size:.95rem;font-weight:700;display:inline-flex}.shop-wallet{color:#714813;background:#fff0b6;border:2px solid #d39924;border-radius:18px;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;min-width:110px;padding:10px 14px;display:flex}.shop-wallet>svg{font-size:1.6rem}.shop-wallet strong{font-size:1.45rem;animation:.35s ease-out wallet-pop}.shop-wallet small{font-size:.8rem}.shop-stage{--customer-x:26%;--vendor-x:73%;isolation:isolate;background:#b47c39 url(/art/shop-interior-v1.png) 50% 62%/cover;border:5px solid #fff0c3;border-radius:28px;height:clamp(320px,38vw,440px);scroll-margin-top:12px;position:relative;overflow:hidden;box-shadow:0 6px #a77c43,0 15px 25px #62441e25}.shop-stage:after{content:"";pointer-events:none;z-index:-1;background:linear-gradient(#0000,#71431b55);height:25%;position:absolute;bottom:0;left:0;right:0}.shop-stage-characters{position:absolute;inset:0}.shop-stage .robot-sprite{width:auto;position:absolute;bottom:5%;transform:translate(-50%)}.shop-vendor{--vendor-height:82%;--vendor-sole-inset:7.8%;--vendor-floor:64px;height:var(--vendor-height);left:var(--vendor-x)}.shop-stage .shop-vendor{bottom:calc(var(--vendor-floor) - var(--vendor-sole-inset))}.shop-customer{height:72%;left:var(--customer-x)}.shop-celebrating .shop-customer{animation:1.2s ease-in-out customer-cheer}.shop-speech{z-index:4;background:#fff9e9f5;border:2px solid #c1944b;border-radius:18px 18px 4px;width:min(72%,560px);padding:9px 16px;font-size:clamp(.84rem,1.5vw,1rem);position:absolute;top:14px;left:50%;transform:translate(-50%);box-shadow:0 4px #76562b33}.shop-speech strong{color:#8a591e;text-transform:uppercase;letter-spacing:.07em;font-size:.8rem}.shop-speech p{margin:2px 0;line-height:1.35}.shop-name{white-space:nowrap;background:#fff4cfef;border:1px solid #99742e;border-radius:12px;padding:5px 14px;font-size:1rem;font-weight:800;line-height:1.2;position:absolute;bottom:6px;transform:translate(-50%)}.shop-name small{font-size:.7rem;font-weight:400;line-height:1.4;display:block}.shop-vendor-name{left:var(--vendor-x)}.shop-customer-name{left:var(--customer-x)}.shop-dust i{width:4px;height:4px;left:calc(8% + var(--i) * 17%);opacity:0;animation:shop-dust 5s calc(var(--i) * -.7s) infinite ease-in-out;pointer-events:none;background:#fff8bc;border-radius:50%;position:absolute;top:72%;box-shadow:0 0 7px #ffe897}.shop-player-strip{flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;margin:18px 0 8px;font-size:.85rem;display:flex}.shop-player-strip button{color:#17474b;cursor:pointer;min-height:40px;font:inherit;background:#e8f7dc;border:1px solid #7b9e8e;border-radius:10px;padding:6px 12px}.shop-receipt{background:#fff8e3c9;border:1px dashed #ba9b60;border-radius:14px;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;min-height:58px;padding:10px 14px;font-size:.95rem;display:flex}.shop-receipt.has-receipt{color:#235834;background:#e9f7db;border:1px solid #79a663}.shop-receipt-price{white-space:nowrap;align-items:center;gap:4px;margin-left:8px;font-weight:800;display:inline-flex}.shop-categories{flex-wrap:wrap;justify-content:center;gap:8px;margin:22px 0 16px;display:flex}.shop-categories button{min-height:44px;font:inherit;color:#245356;cursor:pointer;background:#fff6df;border:2px solid #b7c7a3;border-radius:24px;padding:10px 18px;font-size:.95rem;font-weight:700}.shop-categories button[aria-pressed=true]{color:#fff7de;background:#176f70;border-color:#105457;box-shadow:0 3px #10494b}.shop-catalogue{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:16px;display:grid}.shop-item{background:linear-gradient(155deg,#fffbea,#f9eacb);border:2px solid #dab87a;border-radius:20px;flex-direction:column;align-items:center;min-width:0;padding:14px;transition:transform .18s,box-shadow .18s;display:flex;position:relative;box-shadow:0 4px #ba9b63}.shop-item:hover{transform:translateY(-4px);box-shadow:0 8px #ba9b63}.shop-item-owned{border-color:#72a879}.shop-item-category{text-transform:uppercase;letter-spacing:.06em;color:#6e7153;justify-content:space-between;align-items:center;width:100%;font-size:.7rem;font-weight:700;display:flex}.shop-item-icon{color:var(--item-color);background:linear-gradient(145deg,#fffef7,#ebdab6);border:2px solid #fffdf0;border-radius:24px;flex-shrink:0;place-items:center;width:78px;height:78px;margin:14px 0 10px;font-size:3rem;display:inline-grid;box-shadow:0 5px #c3a876,inset 0 0 0 1px #a58d5522}.shop-item>.shop-item-icon{animation:item-bob 3s var(--delay) infinite ease-in-out}.shop-item-icon svg{filter:drop-shadow(0 2px #fff8da)}.shop-item h2{margin:4px 0 6px;font-size:1.15rem;line-height:1.25}.shop-item p{min-height:2.8em;margin:0 0 12px;font-size:.85rem;line-height:1.4}.shop-item-price{color:#885b17;justify-content:center;align-items:center;gap:6px;min-height:32px;margin-top:auto;font-size:1.2rem;font-weight:800;display:flex}.shop-item-price small{font-size:.75rem;font-weight:400}.shop-buy{color:#523916;width:100%;min-height:46px;font:inherit;cursor:pointer;background:linear-gradient(#ffe995,#ffcb3d);border:2px solid #d99b16;border-radius:12px;justify-content:center;align-items:center;gap:6px;margin-top:8px;padding:9px 6px;font-size:.95rem;font-weight:800;display:flex;box-shadow:0 4px #ad761b}.shop-buy:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px #ad761b}.shop-buy:disabled{color:#666554;cursor:default;background:#e9e3cf;border-color:#c8c0a5;box-shadow:0 3px #aaa48c}.shop-screen button:focus-visible{outline-offset:3px;outline:3px solid #087f8c}.shop-footer{padding:18px 0 6px;font-size:.9rem}.shop-footer p{margin-bottom:4px}.shop-purchase-effects{pointer-events:none;z-index:5;position:absolute;inset:0}.shop-delivery{border-radius:16px;width:52px;height:52px;margin:0;font-size:2rem;animation:1.05s ease-in-out both shop-delivery;position:absolute}.shop-flying-coin{left:calc(var(--customer-x) + 2%);color:#fff09b;width:32px;height:32px;animation:shop-coin .65s calc(var(--i) * 90ms) ease-in-out both;background:#d9a12e;border:2px solid #ffe79a;border-radius:50%;place-items:center;font-size:1.5rem;display:grid;position:absolute;top:65%}.shop-purchase-stars{left:var(--customer-x);position:absolute;top:62%}.shop-purchase-stars svg{color:#fff6a8;filter:drop-shadow(0 0 4px #ffbf42);width:17px;height:17px;animation:.65s ease-out .75s both shop-star;position:absolute}.robot-aura{background:radial-gradient(ellipse, transparent 30%, var(--aura) 58%, transparent 73%);opacity:.45;pointer-events:none;border-radius:50%;animation:2.5s ease-in-out infinite alternate robot-aura;position:absolute;inset:14% -14% 0}@keyframes item-bob{0%,to{transform:translateY(0)rotate(-3deg)}50%{transform:translateY(-4px)rotate(3deg)}}@keyframes wallet-pop{0%{transform:scale(1.2)}to{transform:scale(1)}}@keyframes shop-dust{10%,70%{opacity:.7}to{opacity:0;transform:translate(12px,-130px)}}@keyframes customer-cheer{30%,65%{transform:translate(-50%,-8px)rotate(3deg)}0%,50%,to{transform:translate(-50%)rotate(0)}}@keyframes shop-delivery{0%{left:calc(var(--vendor-x) - 2%);opacity:0;top:57%;transform:translate(-50%,-50%)scale(.6)rotate(-12deg)}15%{opacity:1}50%{top:36%;left:50%;transform:translate(-50%,-50%)scale(1.2)rotate(12deg)}85%{opacity:1}to{left:var(--customer-x);opacity:0;top:62%;transform:translate(-50%,-50%)scale(.4)}}@keyframes shop-coin{0%{opacity:0;transform:translate(-50%)scale(.4)}15%{opacity:1}50%{top:42%}85%{opacity:1}to{left:calc(var(--vendor-x) - 1%);opacity:0;top:61%;transform:translate(-50%)scale(.6)rotate(180deg)}}@keyframes shop-star{0%{opacity:0;transform:rotate(var(--angle)) translateX(5px) scale(.3)}15%{opacity:1}to{opacity:0;transform:rotate(var(--angle)) translateX(80px) scale(.9)}}@keyframes robot-aura{0%{opacity:.25;transform:scale(.95)}to{opacity:.5;transform:scale(1.04)}}@media (width<=900px){.shop-catalogue{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width>=681px) and (width<=900px){.shop-vendor{--vendor-height:70%;--vendor-sole-inset:6.66%}}@media (width<=680px){.shop-header{grid-template-columns:1fr auto;gap:12px}.shop-header>div:nth-child(2){grid-area:2/1/auto/-1}.shop-back{justify-self:start}.shop-wallet{min-width:100px;padding:7px 12px}.shop-header h1{font-size:2rem}.shop-stage{--customer-x:25%;--vendor-x:75%;border-width:3px;border-radius:22px;height:330px}.shop-vendor{--vendor-height:70%;--vendor-sole-inset:6.66%;--vendor-floor:58px}.shop-customer{height:65%}.shop-speech{width:calc(100% - 24px);padding:7px 10px;top:10px}.shop-name{padding:4px 8px;font-size:.9rem}.shop-name small{font-size:.6rem}.shop-catalogue{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shop-item{padding:12px 10px}.shop-item h2{font-size:1.05rem}.shop-categories{gap:6px}.shop-categories button{padding:8px 11px;font-size:.85rem}.shop-player-strip{gap:8px}}@media (width<=350px){.shop-catalogue{grid-template-columns:1fr}.shop-item{text-align:left;grid-template-columns:68px 1fr;gap:5px 12px;display:grid}.shop-item-category{grid-column:1/-1}.shop-item>.shop-item-icon{grid-area:2/1/5;width:65px;height:65px;font-size:2.5rem}.shop-item h2,.shop-item p,.shop-item-price{grid-column:2;min-height:0;margin:0}.shop-item-price{justify-content:start}.shop-buy{grid-column:1/-1}}@media (prefers-reduced-motion:reduce){.shop-screen *,.robot-aura{transition:none!important;animation:none!important}.shop-purchase-effects,.shop-dust{display:none}.shop-item:hover{transform:none}}.construction-progress{gap:6px;width:100%;display:grid}.construction-time{font-variant-numeric:tabular-nums;color:#195f64;justify-content:center;align-items:center;gap:7px;font-weight:800;display:flex}.construction-time>span{font-size:.8rem;font-weight:600}.construction-track{background:#b3c4aa;border-radius:8px;height:10px;display:block;overflow:hidden;box-shadow:inset 0 2px 2px #174c4920}.construction-track i{transform-origin:0;border-radius:inherit;background:linear-gradient(90deg,#218d82,#a3e8b2);width:100%;height:100%;transition:transform .5s linear;display:block}.village-building.is-constructing .village-building-art{opacity:.65;filter:saturate(.65)drop-shadow(0 7px 4px #173d4545)}.village-building.is-constructing .village-blueprint>svg{display:none}.construction-scaffold{pointer-events:none;background:repeating-linear-gradient(0deg,#0000 0 32%,#e8c77f 33%,#b08844 37%,#0000 38%);border:5px solid #c5a15b;border-radius:5px;position:absolute;inset:37% 13% 8%;box-shadow:2px 3px #735b3380}.construction-scaffold:before,.construction-scaffold:after{content:"";background:#f0cc85;width:5px;position:absolute;top:0;bottom:0;left:30%;transform:rotate(33deg)}.construction-scaffold:after{left:65%;transform:rotate(-33deg)}.village-building .construction-progress{background:#fff3dcef;border:2px solid #dfb763;border-radius:12px;gap:4px;width:100%;padding:7px 10px;position:absolute;top:100%;left:0;box-shadow:0 3px #31554c55}.village-building.is-constructing .village-building-label{bottom:5px}.construction-progress.is-compact .construction-time{font-size:.8rem}.construction-progress.is-compact .construction-track{height:6px}.construction-worker{flex-shrink:0;width:92px;display:inline-block;position:relative}.construction-worker .robot-sprite{width:100%;height:auto}.construction-hammer{color:#eebc5c;filter:drop-shadow(1px 2px 1px #533d3e);transform-origin:15% 85%;width:30%;height:30%;animation:.95s ease-in-out infinite construction-hammer;position:absolute;top:37%;right:5%}.construction-worker i{background:#fff9ad;border-radius:2px;width:5px;height:5px;animation:.95s ease-out infinite construction-spark;position:absolute;bottom:26%;right:0}.construction-worker i:nth-of-type(2){--spark-x:12px;--spark-y:-15px}.construction-worker i:nth-of-type(3){--spark-x:18px;--spark-y:2px}.construction-marker{z-index:4;aspect-ratio:1;color:#ffe4a2;pointer-events:none;background:linear-gradient(#217e7c,#174c5b);border:3px solid #ffda83;border-radius:50%;place-items:center;width:clamp(36px,4vw,52px);display:grid;position:absolute;top:8%;left:50%;transform:translate(-50%,-50%);box-shadow:0 3px #846529aa,0 0 0 4px #fff4c13d,0 5px 10px #16485355}.construction-marker>svg{filter:drop-shadow(0 2px #133b4599);width:52%;height:52%}.construction-status{background:linear-gradient(#eef5dc,#fff4d2);border:2px solid #c4d9b1;border-radius:18px;margin:15px 0;padding:12px}.construction-status-heading{text-align:left;justify-content:center;align-items:center;gap:10px;display:flex}.construction-status-heading>div>b,.construction-status-heading>div>span{display:block}.construction-status-heading>div>span{margin-top:4px;font-size:.8rem}.construction-status p{margin:14px 0 8px;font-size:.9rem}.construction-status small{font-size:.75rem;display:block}.construction-status .village-primary{width:100%;margin-top:12px}.construction-one-chance{color:#8e571c;margin-top:8px;font-size:.78rem;display:block}.construction-used{color:#46675a;justify-content:center;align-items:center;gap:6px;display:flex}.construction-plan{background:#e5efdb;border-radius:12px;justify-content:space-around;align-items:center;gap:8px;margin:12px 0;padding:12px 8px;font-size:.85rem;font-weight:700;display:flex}.construction-plan span{align-items:center;gap:5px;display:flex}.build-quiz{color:#164852}.build-quiz-score{background:#e4efdb;border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:8px 10px;display:flex}.build-quiz-score>svg{color:#c48a26}.build-quiz-score>span{color:#14796d;margin-left:auto;font-weight:800}.build-quiz-rounds{justify-content:center;gap:10px;margin:18px 0;display:flex}.build-quiz-rounds>span{background:#fff9e8;border:2px solid #cfc9a0;border-radius:50%;place-items:center;width:34px;height:34px;font-weight:800;display:grid}.build-quiz-rounds .is-current{border-color:#178c8e;box-shadow:0 0 0 3px #7adbc344}.build-quiz-rounds .is-correct{color:#27775c;background:#d2efc2;border-color:#6ca978}.build-quiz-rounds .is-missed{color:#a06644;background:#f7dfcd}.build-quiz-clock{justify-content:space-between;margin-bottom:7px;font-size:.85rem;display:flex}.build-quiz-timer{background:#d3ddbf;border-radius:10px;height:11px;overflow:hidden}.build-quiz-timer>i{transform-origin:0;background:#249b91;width:100%;height:100%;display:block}.build-quiz-equation{color:#236a54;background:radial-gradient(at top,#fffdf0,#ffedb0);border:2px solid #b4d9a2;border-radius:20px;place-items:center;min-height:115px;margin:14px 0;padding:12px;font-size:clamp(1.8rem,6vw,2.8rem);font-weight:900;animation:.18s ease-out construction-question-in;display:grid}.build-quiz-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.build-quiz-options button{color:#194657;cursor:pointer;min-height:62px;font:inherit;background:linear-gradient(#ffdf81,#ffc63e);border:2px solid #dfaa34;border-radius:15px;position:relative;box-shadow:0 4px #a67a30}.build-quiz-options strong{font-size:1.55rem}.build-quiz-options small{opacity:.6;font-size:.65rem;position:absolute;bottom:5px;right:8px}.build-quiz-options button:active{transform:translateY(2px);box-shadow:0 2px #a67a30}.build-quiz-options button:focus-visible{outline-offset:2px;outline:3px solid #178c8e}.build-quiz-options button:disabled{cursor:default;filter:saturate(.55)}.build-quiz-feedback{place-items:center;min-height:40px;margin-top:6px;font-weight:800;display:grid}.build-quiz-feedback.is-correct{color:#23865d}.build-quiz--feedback .build-quiz-feedback.is-correct{animation:.25s ease-out construction-question-in}.build-quiz>small{color:#53726a;font-size:.75rem;line-height:1.5;display:block}.build-quiz-result{padding:10px 0}.build-quiz-result>svg{color:#d4a030;width:60px;height:60px;margin:10px}.build-quiz-result h3{font-size:1.5rem}.build-quiz-result .village-primary{width:100%;margin-top:14px}@keyframes construction-hammer{0%,40%,to{transform:rotate(-28deg)}55%,65%{transform:rotate(28deg)}}@keyframes construction-spark{0%,50%,to{opacity:0;transform:translate(0)scale(.5)}58%{opacity:1}85%{opacity:0;transform:translate(var(--spark-x,6px),var(--spark-y,-11px)) scale(.2)}}@keyframes construction-question-in{0%{opacity:.3;transform:scale(.96)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.construction-worker *,.build-quiz-equation,.build-quiz-feedback,.construction-track i{transition:none!important;animation:none!important}}.construction-math{color:#246e5a;background:#fff9df;border:1px solid #dfc47e;border-radius:12px;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0;padding:12px 8px;display:grid}.construction-math>small{color:#526d62;grid-column:1/-1}.construction-result-math{color:#246e5a;background:#e4efdb;border-radius:12px;padding:12px;font-weight:800}.construction-requirements{text-align:left;gap:7px;margin:15px 0;display:grid}.construction-requirements>strong{font-size:.85rem}.construction-requirements>button{color:#785b2e;min-height:44px;font:inherit;cursor:pointer;text-align:left;background:#fff3d9;border:1px solid #d4b77b;border-radius:10px;align-items:center;gap:8px;padding:9px;font-size:.8rem;display:flex}.construction-requirements>button.is-met{color:#287265;background:#e6f0de;border-color:#b5ceaf}.construction-requirements>button>svg{flex-shrink:0}.construction-requirements>button>small{text-align:right;margin-left:auto;font-size:.65rem}.construction-requirements>button:focus-visible{outline-offset:2px;outline:3px solid #178c8e}.construction-card-time{color:#416c60;justify-content:center;align-items:center;gap:6px;margin-top:8px;font-size:.8rem;display:flex}.build-quiz-score>span{text-align:right}@media (height<=700px){.village-dialog-boost>header{padding:5px 12px}.village-dialog-boost h2{font-size:1.1rem}.village-dialog-boost .village-dialog-body{padding:10px}.build-quiz-score{padding:5px 8px;font-size:.8rem;line-height:1.2}.build-quiz-rounds{margin:7px 0}.build-quiz-rounds>span{width:28px;height:28px}.build-quiz-clock{margin-bottom:5px;font-size:.75rem}.build-quiz-timer{height:8px}.build-quiz-equation{min-height:56px;margin:7px 0;padding:8px;font-size:1.8rem}.build-quiz-options{gap:8px}.build-quiz-options button{min-height:46px}.build-quiz-options strong{font-size:1.35rem}.build-quiz-feedback{min-height:28px;margin-top:2px;font-size:.85rem}.build-quiz>small{font-size:.68rem;line-height:1.3}}@media (height<=600px) and (orientation:landscape){.village-dialog.village-dialog-boost{width:min(100%,700px)}.build-quiz{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px 12px;display:grid}.build-quiz-rounds{margin:0}.build-quiz-score{font-size:.8rem}.build-quiz-clock,.build-quiz-timer,.build-quiz-feedback,.build-quiz>small,.build-quiz-result{grid-column:1/-1;margin:0}.build-quiz-equation{min-height:100px;margin:0}.build-quiz-options{grid-template-columns:repeat(2,minmax(0,1fr))}.build-quiz-result{padding:0}.build-quiz-result h3{margin:6px 0;font-size:1.2rem}.build-quiz-result .construction-result-math{padding:8px}.build-quiz-result .village-primary{margin-top:8px}.build-quiz-result>svg{width:32px;height:32px;margin:0}.build-quiz-result p{margin:5px}}@media (pointer:coarse){.build-quiz-options small{display:none}}.ambient-scenery{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}@media (prefers-reduced-motion:reduce){.ambient-scenery{visibility:hidden}}.production-badge{left:var(--production-x);top:var(--production-y);z-index:92;color:#fff8df;text-align:left;gap:5px;width:188px;display:grid;position:absolute;transform:translate(-50%,-100%)}.production-workers{width:100%;min-height:46px;font:inherit;color:inherit;cursor:pointer;background:#174f53f5;border:1px solid #e8cb85;border-radius:11px;justify-content:space-between;align-items:center;gap:6px;padding:5px 6px;display:flex;box-shadow:0 3px #123e4980}.production-slots{align-items:center;gap:4px;display:flex}.production-slot{color:#afd9ca;isolation:isolate;background:#0c3a49;border:1px solid #8fbbb0;border-radius:7px;flex-shrink:0;place-items:center;width:30px;height:32px;display:inline-grid;position:relative;overflow:hidden}.production-slot.is-empty{background:#2e6461;border-style:dashed}.production-slot.is-locked{opacity:.7;background:#20474d}.production-slot.is-locked>small{font-size:.5rem;position:absolute;bottom:0;right:3px}.production-slot>svg{font-size:.75rem}.production-slot>.robot-sprite{filter:drop-shadow(0 2px #07343b);width:150%;height:auto;position:absolute;top:-25%;left:-25%}.production-slot>i{background:#91ecb6;height:3px;position:absolute;bottom:0;left:0}.production-slot.is-tired{filter:saturate(.55)}.production-slot>.slot-battery{color:#ffd578;filter:drop-shadow(0 1px #173c45);position:absolute;bottom:3px;right:0}.production-worker-count{text-align:center;display:grid}.production-worker-count b{font-size:.7rem}.production-worker-count small{color:#d0eadd;font-size:.5rem}.production-pickup{color:#25545a;width:100%;min-height:98px;font:inherit;text-align:left;cursor:pointer;background:linear-gradient(#fff5c7,#ffe5a6);border:2px solid #ead395;border-radius:12px;flex-direction:column;align-items:stretch;padding:6px 9px;display:flex;box-shadow:0 4px #213b3e70}.production-resource-name{font-size:.65rem;font-weight:800;line-height:1.1}.production-amount{align-items:center;gap:7px;min-height:32px;display:flex}.production-amount>svg{color:#a56a3c;filter:drop-shadow(0 1px #fff);width:24px;height:24px}.production-crystals .production-amount>svg{color:#1b96a7}.production-amount>b{font-size:1.3rem}.production-amount>span{margin-left:auto;font-size:.74rem;font-weight:800;line-height:1.2}.production-amount small{font-size:.6rem;font-weight:600;display:block}.production-track{background:#b7c7b7;border-radius:4px;height:5px;display:block;overflow:hidden}.production-track>i{transform-origin:0;background:linear-gradient(90deg,#268b7d,#5ebd91);width:100%;height:100%;transition:transform .9s linear;display:block}.production-crystals .production-track>i{background:linear-gradient(90deg,#308aab,#a585d2)}.production-stock-label{margin:3px 0;font-size:.57rem;line-height:1.15;display:block}.production-science{color:#42655a;border-top:1px solid #b8ad7466;margin-top:3px;padding-top:4px;font-size:.6rem;font-weight:500;line-height:1.2;display:block}.production-pickup:disabled{cursor:default;background:#e1eadb}.production-pickup.is-ready .production-amount>svg{animation:1.8s ease-in-out infinite production-ready}.production-pickup:not(:disabled):hover{background:#fff2b6}.production-pickup:not(:disabled):active{transform:scale(.98)}.production-workers:focus-visible,.production-pickup:focus-visible{outline-offset:3px;outline:3px solid #8fffe6}.production-badge.is-full .production-track>i{background:#d2a03b}.village-excavation{aspect-ratio:3/2;z-index:54;pointer-events:none;isolation:isolate;width:16%;position:absolute;top:52%;left:34%;transform:translate(-50%,-50%)}.excavation-ground,.excavation-rim{object-fit:contain;width:100%;height:100%;display:block;position:absolute;inset:0}.excavation-ground{z-index:0;filter:drop-shadow(0 3px 3px #3e522b44)}.excavation-rim{z-index:3;clip-path:polygon(0 53%,12% 58%,23% 69%,37% 75%,51% 77%,63% 75%,74% 68%,82% 59%,100% 51%,100% 100%,0 100%)}.excavator-machine{z-index:2;transform-origin:50% 90%;width:66%;position:absolute;top:9%;left:24%}.excavator-machine>img{width:100%;height:auto;display:block}.excavator-machine.is-active{animation:2.8s ease-in-out infinite excavator-work}.excavator-machine .worksite-dust{top:85%;left:90%}@keyframes excavator-work{0%,to{transform:translateY(0)rotate(-1deg)}40%,60%{transform:translateY(1px)rotate(1deg)}}.worksite-robot{left:calc(29% + var(--worker-index)*21%);transform-origin:50% 85%;filter:drop-shadow(0 2px 2px #303e3c66);width:28%;position:absolute;top:18%}.worksite-robot .robot-sprite{width:100%;height:auto}.worksite-robot.is-active{animation:1.3s ease-in-out infinite worksite-dig;animation-delay:calc(var(--worker-index)*-.35s)}.worksite-tool{color:#ffcb69;filter:drop-shadow(1px 2px #584530);transform-origin:12% 85%;width:35%;height:25%;position:absolute;top:45%;right:-7%;transform:rotate(-20deg)}.is-active>.worksite-tool{animation:1.3s ease-in-out infinite worksite-pick;animation-delay:calc(var(--worker-index)*-.35s)}.worksite-low-battery{color:#ffc86b;background:#204a55d9;border-radius:50%;width:20px;height:20px;padding:3px;position:absolute;top:9%;left:37%}.worksite-robot.is-idle .robot-sprite{filter:saturate(.7)}.worksite-dust{width:1px;height:1px;position:absolute;top:79%;left:80%}.worksite-dust i{filter:blur(.7px);width:7px;height:7px;animation:1.3s ease-out infinite worksite-dust;animation-delay:calc(var(--worker-index)*-.35s + var(--dust-index)*25ms);background:#e2c295b0;border-radius:50%;position:absolute}.excavation-sign{z-index:4;white-space:nowrap;color:#3c654f;background:#fff0c7;border:2px solid #c69b50;border-radius:7px;align-items:center;gap:4px;padding:3px 9px;font-size:.65rem;font-weight:800;display:flex;position:absolute;bottom:-9%;left:50%;transform:translate(-50%)rotate(-3deg);box-shadow:0 2px #7647}.academy-workroom{z-index:72;pointer-events:none;background:#1c6164;border:2px solid #dcb768;border-bottom:0;border-radius:45% 45% 6px 6px;width:5.2%;height:7%;position:absolute;top:61.7%;left:24.2%;overflow:hidden;transform:translate(-50%);box-shadow:inset 0 0 18px #76e9e444,0 3px #826a50}.academy-workroom-glass{background:linear-gradient(130deg,#b7f5f922,#0000 55%);position:absolute;inset:0}.academy-workroom .worksite-robot{width:55%;top:-5%;left:calc(4% + var(--worker-index)*23%)}.academy-workroom .worksite-tool{color:#92f1ff}.academy-workroom .worksite-dust i{background:#a1ebfa}.academy-console{z-index:3;color:#a3fffa;background:linear-gradient(#ccafdf,#8066a8);border-top:3px solid #f2da94;justify-content:center;align-items:center;gap:5px;height:24%;display:flex;position:absolute;bottom:0;left:0;right:0}.academy-console i{background:#c4ffd7;border-radius:4px;width:7px;height:3px}.village-excavation.is-paused *,.academy-workroom.is-paused *{animation-play-state:paused!important}.resource-collection-fx{z-index:96;pointer-events:none;--resource-color:#ffdc67;--resource-shadow:#936c18;position:absolute}.resource-collection-fx.resource-crystals{--resource-color:#9affed;--resource-shadow:#168ca8}.collection-material{width:22px;height:22px;color:var(--resource-color);filter:drop-shadow(0 2px 1px var(--resource-shadow)) drop-shadow(0 0 6px #fff8);opacity:0;animation:resource-fly .95s cubic-bezier(.35,.05,.58,1) var(--flight-delay) both;place-items:center;font-size:22px;display:grid;position:absolute;top:-11px;left:-11px}.collection-number{white-space:nowrap;color:#fff5bd;text-shadow:0 2px #254b45,1px 0 #254b45,-1px 0 #254b45,0 0 8px #1a404d;font-size:1.25rem;animation:1.45s ease-out both resource-number;position:absolute;top:-20px;left:0}.collection-spark{background:var(--resource-color);border-radius:2px;width:5px;height:5px;animation:.65s ease-out both resource-spark;position:absolute;box-shadow:0 0 5px #fff6}.collection-ring{border:3px solid var(--resource-color);border-radius:50%;width:40px;height:40px;animation:.6s ease-out both resource-ring;position:absolute;top:-20px;left:-20px}.village-resource-bar .resource-received{animation:.6s ease-out .6s resource-hud}.village-materials>button{min-height:44px;color:inherit;font:inherit;font-weight:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:0;display:inline-flex}.village-materials>button:first-child svg{color:#9c7153}.village-materials>button:last-child svg{color:#118a9c}.village-materials>button:focus-visible{outline-offset:3px;border-radius:4px;outline:3px solid #299b94}@keyframes production-ready{50%{transform:translateY(-3px)rotate(-7deg)}}@keyframes worksite-dig{0%,40%,to{transform:rotate(-3deg)translateY(0)}57%,65%{transform:rotate(6deg)translateY(2px)}}@keyframes worksite-pick{0%,30%,to{transform:rotate(-50deg)}55%,68%{transform:rotate(35deg)}}@keyframes worksite-dust{0%,50%,to{opacity:0;transform:translate(0)scale(.3)}60%{opacity:.65}90%{opacity:0;transform:translate(calc((var(--dust-index) - 2)*8px),calc(-12px - var(--dust-index)*3px)) scale(2.4)}}@keyframes resource-fly{0%{opacity:0;transform:translate(0)scale(.4)}12%{opacity:1}30%{opacity:1;transform:translate(var(--scatter-x),var(--scatter-y)) scale(1.15)}90%{opacity:1}to{opacity:0;transform:translate(var(--target-x),var(--target-y)) scale(.4)}}@keyframes resource-number{0%{opacity:0;transform:translate(-50%)scale(.8)}15%{opacity:1;transform:translate(-50%,-15px)scale(1.1)}70%{opacity:1}to{opacity:0;transform:translate(-50%,-65px)scale(1)}}@keyframes resource-spark{0%{opacity:1;transform:scale(.4)}to{opacity:0;transform:translate(var(--spark-x),var(--spark-y)) scale(.1)}}@keyframes resource-ring{0%{opacity:.8;transform:scale(.5)}to{opacity:0;transform:scale(2.4)}}@keyframes resource-hud{40%{color:#278777;text-shadow:0 0 8px #ffdf85;transform:scale(1.18)}}@media (width<=680px){.production-badge{width:178px}.production-badge[data-production=workshop]{top:max(var(--production-y),400px)}.production-badge[data-production=academy]{top:max(var(--production-y),calc(max(30%,400px) + 248px))}.village-camera-hint{display:none}.production-slot{width:28px;height:30px}.production-workers{min-height:44px}.production-worker-count small{font-size:.47rem}.village-materials>button{min-height:44px}.excavation-sign{font-size:.6rem}}@media (prefers-reduced-motion:reduce){.collection-material,.collection-spark,.collection-ring,.worksite-dust{display:none}.collection-number{opacity:1;transform:translate(-50%,-25px)}.production-track>i{transition:none}}.village-toast.is-collection-announcement{clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden}.village-building-detail.has-production>.village-building-art{width:115px}.production-lesson{text-align:left;background:#e9f0de;border:1px solid #adc7ab;border-radius:17px;margin:14px 0;padding:14px}.production-lesson>header{justify-content:space-between;align-items:center;display:flex}.production-lesson h3{align-items:center;gap:7px;margin:0 0 8px;display:flex}.production-lesson>.production-slots{justify-content:center;margin:8px 0}.production-lesson>.production-slots>.production-slot{width:45px;height:46px}.production-lesson>p{text-align:center;margin:7px 0;font-size:.8rem}.production-equation{text-align:center;background:#fffae7;border-radius:12px;padding:10px}.production-equation small,.production-equation strong,.production-equation span{display:block}.production-equation small{font-size:.75rem}.production-equation strong{color:#1f6560;font-size:1.8rem;line-height:1.2}.production-equation em{color:#b67b29;font-style:normal}.production-equation span{font-size:.75rem}.production-forecast{background:#d6eee3;border-left:4px solid #3da394;border-radius:10px;gap:5px;margin:10px 0;padding:12px;display:grid}.production-forecast>b{font-size:.85rem}.production-forecast>strong{font-size:1.15rem;line-height:1.3}.production-forecast>strong>span{color:#be8b3b}.production-forecast>span{color:#2d7867;font-weight:800}.production-forecast>em{font-size:.8rem;font-style:normal}.production-forecast>small{font-size:.75rem}.production-stopped{background:#fbe7bb;border-radius:7px;padding:7px;line-height:1.3}.production-team-list>div{justify-content:space-between;align-items:center;gap:8px;margin:6px 0;font-size:.8rem;display:flex}.production-team-list svg{color:#b9862a}.production-team-list button{min-height:38px;padding:5px 9px}.production-add-workers{flex-wrap:wrap;gap:8px;margin:10px 0;display:flex}.production-add-workers button{flex:1;min-height:44px}.production-capacity-lesson{border-top:1px solid #b4c5a7;gap:4px;padding-top:10px;font-size:.85rem;display:grid}.production-capacity-lesson>small{font-size:.75rem;line-height:1.25}.building-science{text-align:left;background:#fff3cd;border:1px solid #dfc176;border-radius:12px;gap:10px;margin:15px 0;padding:12px;display:flex}.element-tile{color:#574006;background:linear-gradient(#fff0a3,#eabe4d);border:2px solid #ae7e22;border-radius:8px;flex-direction:column;flex-shrink:0;width:43px;height:52px;padding:3px 6px;display:flex}.element-tile>small{font-size:.6rem}.element-tile>b{font-size:1.45rem;line-height:1.05}.building-science strong{font-size:.85rem}.building-science p{margin:3px 0;font-size:.77rem;line-height:1.35}.building-science a{color:#286962;font-size:.66rem;text-decoration:underline}.construction-material-math{gap:6px;display:grid}.construction-material-math>p{background:#eef0d9;border-radius:9px;grid-template-columns:1fr auto;gap:2px 8px;margin:0;padding:8px;font-size:.8rem;display:grid}.construction-material-math small{text-align:right;grid-column:2;font-size:.65rem}.construction-material-math span{color:#247868;font-weight:800}@media (prefers-reduced-motion:reduce){.excavator-machine,.excavator-machine *{animation:none!important}}.resource-symbol{color:#574006;vertical-align:middle;background:linear-gradient(#fff0a3,#eabe4d);border:1px solid #a47518;border-radius:6px;flex:none;place-items:center;width:25px;height:25px;font-size:.78rem;font-weight:900;line-height:1;display:inline-grid!important}.resource-symbol-iron{color:#304e5a;background:linear-gradient(#edf5f6,#9bb6c1);border-color:#65818f}.resource-symbol-silicon{color:#5b427e;background:linear-gradient(#f0e9ff,#baa6dd);border-color:#8871b1}.village-materials{flex-wrap:wrap;gap:8px 14px}.village-materials>[data-material]{white-space:nowrap;gap:5px}.village-materials [data-material=crystals]>svg{color:#16899e}.village-resource-bar{max-width:100%;padding:5px 12px}.village-resource-bar .village-materials{flex-wrap:nowrap;gap:10px;font-size:1rem}.village-resource-bar .village-materials>button{min-width:40px}.production-pickup-heading{text-align:center;padding-bottom:5px;font-size:.66rem;font-weight:800}.production-output{padding:4px 0;display:block}.production-output+.production-output{border-top:1px solid #b1aa8140}.production-output-line{align-items:center;gap:6px;margin-bottom:5px;display:flex}.production-output-line>span:not(.resource-symbol){flex:1;font-size:.64rem;line-height:1.15}.production-output-line small{margin-top:2px;font-size:.58rem;font-weight:500;display:block}.production-output-line>b{font-variant-numeric:tabular-nums;font-size:.75rem}.production-output-line>svg{color:#16899e;width:25px}.production-output[data-output=pieces] .production-track>i{background:linear-gradient(90deg,#a97719,#ecc855)}.production-output[data-output=iron] .production-track>i{background:linear-gradient(90deg,#526f82,#9abac7)}.production-output[data-output=silicon] .production-track>i{background:linear-gradient(90deg,#8570aa,#ba99e0)}.production-equations{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;display:grid}.production-equation strong{margin:5px 0;font-size:1.5rem}.production-equation .resource-symbol{width:22px;height:22px;font-size:.7rem}.production-forecast>div{border-top:1px solid #51978233;gap:2px;padding-top:5px;display:grid}.production-forecast>div>span{font-size:.76rem}.production-forecast>div>strong{font-size:1.05rem}.production-capacity-lesson{margin:8px 0}.building-material-science>h3{margin:16px 0 5px;font-size:1rem}.building-science .material-use{color:#285b55;margin:6px 0;font-weight:700}.science-iron{background:#e7eeee;border-color:#b3c6cb}.science-iron .element-tile{color:#334f5b;background:linear-gradient(#e7f1f4,#a4bdc8);border-color:#6c8b98}.science-silicon{background:#ede8f4;border-color:#c6b6d9}.science-silicon .element-tile{color:#60467e;background:linear-gradient(#f0e6ff,#c0abda);border-color:#977ab4}.fictional-material-note{background:#e4efdf;border-radius:8px;padding:9px;line-height:1.4;font-size:.75rem!important}.resource-collection-fx.resource-iron{--resource-color:#d9f4fc;--resource-shadow:#466679}.resource-collection-fx.resource-silicon{--resource-color:#ebceff;--resource-shadow:#7955a2}@media (width<=680px){.village-resource-bar{padding:3px 10px}.village-resource-bar .village-materials{gap:9px;font-size:.9rem}.village-resource-bar .resource-symbol{width:22px;height:22px;font-size:.7rem}.production-equation{padding:8px 4px}.production-equation strong{font-size:1.25rem}}.village-walker{aspect-ratio:5/4;pointer-events:none;width:3.6%;transform:translate(-50%,-90%) scale(var(--walker-scale,1));transform-origin:50% 90%;--walker-visible:0;--visit-bubble:0;position:absolute}.village-walker[data-active=false]{display:none}.village-walker.is-hero{width:4.8%}.traffic-sprite{opacity:var(--walker-visible);filter:drop-shadow(0 1px 1px #253b392b);background-repeat:no-repeat;background-size:600% 500%;display:block;position:absolute;inset:0}.traffic-shadow{filter:blur(1.4px);width:42%;height:8%;opacity:var(--walker-visible);background:#173b3b40;border-radius:50%;position:absolute;bottom:7%;left:29%}.traffic-visit{color:#26746c;width:24px;height:24px;opacity:var(--visit-bubble);transform:translateY(calc((1 - var(--visit-bubble))*5px));background:#fff4d9;border:1.5px solid #f4d88b;border-radius:9px;place-items:center;font-size:12px;display:grid;position:absolute;top:0;left:52%;box-shadow:0 2px 4px #103f4c33}.traffic-visit:after{content:"";background:#fff4d9;border-bottom:1px solid #f4d88b;border-right:1px solid #f4d88b;width:5px;height:5px;position:absolute;bottom:-4px;left:6px;transform:rotate(45deg)}.traffic-visit>svg{display:none}[data-activity=storage] [data-symbol=storage],[data-activity=shop] [data-symbol=shop],[data-activity=study] [data-symbol=study],[data-activity=research] [data-symbol=research],[data-activity=repair] [data-symbol=repair],[data-activity=charge] [data-symbol=charge],[data-activity=home] [data-symbol=home]{display:block}@media (prefers-reduced-motion:reduce){.traffic-visit{display:none}}.village-building[data-building=warehouse]{width:13%}.warehouse-path{pointer-events:none;z-index:2;width:100%;height:100%;position:absolute;inset:0}.village-building-art.warehouse-art{background-image:url(/art/village/warehouse-v1.png);background-position:50%;background-repeat:no-repeat;background-size:contain}.village-building[data-building=warehouse] .village-building-label{max-width:120%;font-size:.7rem;bottom:4%}.warehouse-art.building-level-2{filter:drop-shadow(0 4px 4px #173d4545)drop-shadow(0 0 4px #8be8d955)}.warehouse-art.building-level-3{filter:drop-shadow(0 4px 4px #173d4545)drop-shadow(0 0 6px #ffd66e99)}.warehouse-hud-link{color:#285254;min-height:36px;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:7px;margin:0 auto;padding:3px 9px;font-size:.65rem;display:block}.warehouse-hud-link span{color:#188b8b}.warehouse-hud-link:hover{background:#e1eed5}.warehouse-hud-link:focus-visible,.math-help-button:focus-visible{outline-offset:3px;outline:3px solid #158c8f}.warehouse-details{text-align:left;gap:12px;margin:15px 0 20px;display:grid}.warehouse-details p{margin:0;font-size:.86rem;line-height:1.5}.warehouse-details small{font-size:.72rem;line-height:1.45}.warehouse-capacity{color:#17616a;background:linear-gradient(135deg,#d9eddb,#fff0c2);border:1px solid #b8d5b5;border-radius:18px;justify-items:center;gap:1px;padding:12px;display:grid}.warehouse-capacity>strong{font-size:3rem;line-height:1.1}.warehouse-capacity>span{font-size:.8rem;font-weight:700}.warehouse-inventory{grid-template-columns:1fr 1fr;gap:10px;display:grid}.warehouse-inventory>div{background:#fffaf0;border:1px solid #d7cba8;border-radius:13px;gap:6px;padding:12px;display:grid}.warehouse-inventory>div>span{font-size:.8rem;font-weight:800}.warehouse-inventory svg{color:#a8723c}.warehouse-inventory>div+div svg{color:#1d98a3}.warehouse-inventory b{font-size:1.15rem}.warehouse-inventory progress{accent-color:#208c82;width:100%;height:9px}.warehouse-inventory small{color:#4c6861}.warehouse-bonuses{background:#edf1de;border-radius:12px;grid-template-columns:1fr auto;gap:5px 12px;padding:12px;font-size:.8rem;display:grid}.warehouse-bonuses>span{grid-column:1/-1;justify-content:space-between;gap:15px;display:flex}.warehouse-bonuses>strong{text-align:center;border-top:1px solid #c2d1b8;grid-column:1/-1;padding-top:5px;font-size:1.1rem}.warehouse-levels{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.warehouse-levels>div{text-align:center;background:#fbf8e9;border:1px solid #c4ceb4;border-radius:11px;gap:3px;padding:9px 5px;display:grid}.warehouse-levels .is-current{background:#d4efda;border:2px solid #218c83}.warehouse-levels span{font-size:.75rem}.warehouse-levels b{font-size:1.3rem}.warehouse-levels small{font-size:.65rem}.warehouse-upgrade{text-align:center;background:linear-gradient(135deg,#fff0ba,#fff9dd);border:1.5px solid #dfbd68;border-radius:15px;gap:6px;padding:14px;display:grid}.warehouse-upgrade>strong{color:#166c63;font-size:1.7rem}.warehouse-upgrade>span{font-size:.8rem}.warehouse-max{background:#e5f1dc;border:1px solid #c4d5bb;border-radius:12px;padding:10px}.math-help-button{color:#19666e;width:100%;min-height:44px;font:inherit;cursor:pointer;background:#d8eee3;border:1px solid #57a8a2;border-radius:11px;justify-content:center;align-items:center;gap:7px;margin:9px 0;padding:8px 12px;font-size:.85rem;font-weight:800;display:flex;box-shadow:0 2px #a1c7b9}.math-help-button:hover{background:#c5e8db}.professor-lesson{text-align:left;grid-template-columns:200px minmax(0,1fr);align-items:center;gap:20px;display:grid}.professor-character{align-self:center;justify-items:center;display:grid}.professor-character>span{aspect-ratio:1;filter:drop-shadow(0 6px 5px #49674822);background-image:url(/art/village/professor-v1.png);background-repeat:no-repeat;background-size:200% 200%;width:200px;animation:4s ease-in-out infinite professor-breathe;display:block}.professor-character>b{color:#247371;background:#d6eadf;border-radius:8px;padding:5px 12px;font-size:.8rem}.professor-board{background:linear-gradient(135deg,#f8fce9,#e2f1df);border:2px solid #b2d0ba;border-radius:20px;align-self:stretch;min-width:0;padding:20px;box-shadow:0 4px #a9c6ad55}.professor-board h3{color:#165d65;margin:10px 0;font-size:1.45rem;line-height:1.2}.professor-board h3:focus{outline:none}.professor-board p{font-size:1rem;line-height:1.65}.professor-equation{text-align:center;color:#fff3bb;overflow-wrap:anywhere;text-shadow:0 2px #0f3e43;background:#174f58;border-radius:12px;padding:18px 10px;font-size:clamp(1.2rem,2.8vw,1.8rem);line-height:1.5;display:block;box-shadow:inset 0 0 0 1px #6aa795}.professor-step-dots{justify-content:center;gap:7px;margin-top:18px;display:flex}.professor-step-dots i{background:#bdcdbb;border-radius:5px;width:10px;height:6px}.professor-step-dots .is-done{background:#2b9b90}.professor-actions{grid-column:1/-1;justify-content:space-between;gap:12px;display:flex}.professor-actions>button{flex:1;min-height:44px}.village-dialog-professor .village-dialog-body{padding:22px}@keyframes professor-breathe{50%{transform:translateY(-3px)rotate(.5deg)}}@media (width<=680px){.warehouse-hud-link{min-height:44px}.village-dialog-professor .village-dialog-body{padding:13px}.professor-lesson{grid-template-columns:1fr;gap:10px}.professor-character{justify-content:center;gap:7px;display:flex}.professor-character>span{width:100px}.professor-character>b{align-self:center;font-size:.75rem}.professor-board{padding:14px}.professor-board h3{font-size:1.2rem}.professor-board p{font-size:.9rem;line-height:1.5}.professor-actions{gap:7px}.professor-actions button{padding:8px;font-size:.8rem}.warehouse-inventory{grid-template-columns:1fr}.warehouse-levels b{font-size:1.1rem}}@media (prefers-reduced-motion:reduce){.professor-character>span{animation:none}}@media (width<=680px) and (height<=650px){.professor-character>span{width:70px}.professor-lesson{gap:7px}.professor-board{padding:10px}.professor-board h3{margin:7px 0;font-size:1.05rem}.professor-board p{margin:8px 0;font-size:.82rem;line-height:1.4}.professor-equation{padding:11px 7px;font-size:1.05rem}.professor-step-dots{margin-top:10px}}@media (width>=681px) and (height<=500px){.village-dialog-professor>header{padding:8px 12px}.village-dialog-professor>header h2{font-size:1.1rem}.village-dialog-professor .village-dialog-body{padding:12px}.professor-lesson{grid-template-columns:120px minmax(0,1fr);gap:10px}.professor-character>span{width:120px}.professor-board{padding:10px}.professor-board h3{margin:6px 0;font-size:1.1rem}.professor-board p{margin:8px 0;font-size:.84rem;line-height:1.4}.professor-equation{padding:9px;font-size:1.2rem}.professor-step-dots{margin-top:8px}.professor-actions button{padding:7px;font-size:.85rem}}.production-slot[type=button]{font:inherit;cursor:pointer;padding:0;transition:transform .15s,border-color .15s;box-shadow:0 2px #17595544}.production-slot[type=button]:not(:disabled):hover{border-color:#e3b752;transform:translateY(-2px)}.production-slot[type=button]:focus-visible{outline-offset:3px;outline:3px solid #15938a}.production-slot[type=button]:disabled{cursor:not-allowed}.worker-picker{text-align:left}.worker-picker>h3{color:#22696b;outline:none;font-size:1rem}.worker-picker>p,.worker-picker-empty>p{margin:10px 0 16px;font-size:.86rem;line-height:1.5}.worker-picker-list{gap:12px;display:grid}.worker-choice{color:#1c4651;width:100%;min-height:110px;font:inherit;text-align:left;cursor:pointer;background:linear-gradient(125deg,#fffdf0,#e6f0dd);border:2px solid #b9cead;border-radius:17px;align-items:center;gap:12px;padding:12px;transition:border-color .15s,transform .15s;display:flex;box-shadow:0 3px #a3b99455}.worker-choice:not(:disabled):hover{border-color:#2d9e91;transform:translateY(-2px)}.worker-choice:focus-visible{outline-offset:3px;outline:3px solid #208c87}.worker-choice.is-current{cursor:default;opacity:1;background:#dceede;border-color:#62a58d}.worker-choice-portrait{background:radial-gradient(#d9edcf,#0000 75%);border-radius:14px;flex-shrink:0;place-items:center;width:80px;height:90px;display:grid}.worker-choice-portrait>.robot-sprite{filter:drop-shadow(0 3px 2px #31595525);width:100%;height:auto}.worker-choice-info{flex:1;gap:5px;min-width:0;display:grid}.worker-choice-info>strong{align-items:center;gap:8px;font-size:1.1rem;display:flex}.worker-choice-info>strong>svg{color:#208c6c;font-size:.8rem}.worker-choice-info>small{font-size:.73rem}.worker-choice-battery{align-items:center;gap:6px;font-size:.75rem;display:flex}.worker-choice-battery>svg{color:#bd8831}.worker-battery-track{background:#c4d0bc;border-radius:8px;flex:1;max-width:135px;height:7px;overflow:hidden}.worker-battery-track>i{background:linear-gradient(90deg,#228a83,#74ba8e);height:100%;display:block}.worker-choice-output{flex-wrap:wrap;gap:6px 12px;font-size:.72rem;display:flex}.worker-choice-output>span{align-items:center;gap:4px;display:flex}.worker-choice-output .resource-symbol{width:20px;height:20px;font-size:.65rem}.worker-choice-info>.worker-energy-note{color:#83571c;font-weight:700}.worker-picker-actions{flex-wrap:wrap;gap:10px;margin-top:18px;display:flex}.worker-picker-actions>button{flex:1;min-height:44px;padding:8px 10px;font-size:.78rem}.worker-picker-empty{background:#edf1df;border:1px dashed #b9c7a7;border-radius:12px;margin-top:12px;padding:10px 12px}.worker-picker-empty>p{margin:0 0 12px}.worker-picker-sr{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (width<=380px){.worker-choice{gap:8px;padding:10px}.worker-choice-portrait{width:60px;height:76px}.worker-choice-output{gap:5px}.worker-picker-actions{flex-direction:column}}@media (prefers-reduced-motion:reduce){.worker-choice,.production-slot[type=button]{transition:none;transform:none!important}}.App.village-mode,.App.expedition-mode{gap:0;width:100%;max-width:none;height:100dvh;min-height:0;padding:0;overflow:hidden}.village-mode .screen-transition,.village-mode .screen-frame,.expedition-mode .screen-transition,.expedition-mode .screen-frame{height:100%}.village-game{isolation:isolate;color:#153f48;background:#447b65;width:100%;height:100%;min-height:0;font-size:1rem;position:relative}.village-content{height:100%}.village-hud{z-index:30;top:max(10px, env(safe-area-inset-top));pointer-events:none;justify-content:space-between;align-items:flex-start;gap:12px;display:flex;position:absolute;left:14px;right:14px}.village-hud>*{pointer-events:auto}.village-brand{color:#fff6d7;text-align:left;background:linear-gradient(#176e70,#123f4c);border:2px solid #ffe8a7;border-radius:18px;align-items:center;gap:10px;padding:8px 16px 8px 8px;display:flex;box-shadow:0 4px #102f3980}.village-brand-symbol{color:#ffd16c;font-size:2.4rem;line-height:1}.village-brand h1{margin:0;font-size:clamp(1.1rem,2vw,1.5rem);line-height:1.1}.village-brand small{align-items:center;gap:5px;margin-top:5px;font-size:.8rem;display:flex}.village-resource-bar{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#fff7dedf;border:2px solid #ffe4a2;border-radius:16px;padding:7px 17px;box-shadow:0 4px #254e5555}.village-materials{font-variant-numeric:tabular-nums;justify-content:center;align-items:center;gap:20px;font-size:1.15rem;font-weight:800;display:inline-flex}.village-materials>span{align-items:center;gap:6px;display:inline-flex}.village-materials>span:first-child svg{color:#9c7153}.village-materials>span:last-child svg{color:#118a9c}.village-resource-bar>small{margin-top:1px;font-size:.68rem;display:block}.village-hud .audio-controls{align-self:flex-start}.village-hud .settings-launch{border-width:2px;min-height:44px;box-shadow:0 3px #315d5677}.village-map{z-index:0;scrollbar-width:none;overscroll-behavior:contain;touch-action:none;background:#397b70;position:absolute;inset:0;overflow:auto}.village-map::-webkit-scrollbar{display:none}.village-world{width:calc(max(100vw, 1100px, 150dvh) * var(--map-zoom));aspect-ratio:3/2;background:url(/art/village/ground-v1.png) 50%/100% 100% no-repeat;position:relative}.village-building{z-index:calc(var(--building-order));aspect-ratio:1;cursor:pointer;color:#163e45;-webkit-tap-highlight-color:transparent;background:0 0;border:0;width:20%;padding:0;position:absolute;transform:translate(-50%,-87%)}.village-building:first-of-type{width:18%}.village-building.is-plot:not(.is-constructing){z-index:1}.village-building-art{aspect-ratio:1;filter:drop-shadow(0 7px 4px #173d4545);background-image:url(/art/village/buildings-v1.png);background-repeat:no-repeat;background-size:300% 200%;width:100%;transition:transform .18s;display:block}.village-building:hover .village-building-art,.village-building:focus-visible .village-building-art{transform:translateY(-5px)scale(1.04)}.village-building:focus-visible{outline-offset:-12px;border-radius:50%;outline:3px dashed #ffe398}.village-building-label{z-index:3;white-space:nowrap;background:#fff4d8f5;border:2px solid #dfb763;border-radius:10px;align-items:center;gap:6px;padding:4px 10px;font-size:.8rem;font-weight:800;display:flex;position:absolute;bottom:-12px;left:50%;transform:translate(-50%);box-shadow:0 3px #31554c55}.village-building-label b{color:#fff;background:#217f79;border-radius:50%;place-items:center;width:20px;height:20px;display:grid}.village-blueprint{height:100%;display:block;position:relative}.village-blueprint .village-building-art{opacity:.24;filter:sepia()saturate(3)hue-rotate(115deg)}.village-blueprint>svg{z-index:2;color:#fff5c9;filter:drop-shadow(0 3px 6px #103d5c66);background:#227b88;border:3px solid #d4fff8;border-radius:50%;width:28%;height:28%;padding:10px;position:absolute;top:44%;left:36%}.village-upgrade-rays{pointer-events:none;border-radius:50%;animation:2.5s ease-in-out infinite village-lights;position:absolute;inset:25% 20% 5%;box-shadow:0 0 18px 6px #ffe7a750}.village-objective{z-index:28;text-align:left;color:#fff7e4;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#153f4cdb;border:1px solid #f4d494;border-radius:14px;max-width:245px;padding:10px 14px;position:absolute;bottom:106px;left:18px;box-shadow:0 4px #143c4460}.village-eyebrow{text-transform:uppercase;letter-spacing:.09em;color:#267d7e;font-size:.65rem;font-weight:800;display:block}.village-objective .village-eyebrow{color:#ffd976}.village-objective b{margin:3px 0;font-size:.95rem;display:block}.village-objective button{color:#9df6e4;font:inherit;cursor:pointer;background:0 0;border:0;min-height:30px;padding:3px 0;font-weight:800}.village-camera{z-index:25;gap:5px;display:flex;position:absolute;top:95px;right:18px}.village-camera button,.village-icon-button{color:#215960;cursor:pointer;background:#fff4d7;border:2px solid #e5c985;border-radius:12px;place-items:center;width:44px;height:44px;display:grid}.village-dock{z-index:30;bottom:max(12px, env(safe-area-inset-bottom));background:#164a53ed;border:2px solid #ffdfa0;border-radius:23px;gap:8px;padding:8px 12px;display:flex;position:absolute;left:50%;transform:translate(-50%);box-shadow:0 6px #0a2e3b85,0 10px 25px #12303e55}.village-dock button{color:#fff3d4;width:92px;min-height:60px;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:13px;flex-direction:column;justify-content:center;align-items:center;gap:5px;font-size:.85rem;font-weight:800;display:flex;position:relative}.village-dock button:hover{background:#31857f}.village-dock svg{color:#ffcf69;font-size:1.5rem}.village-dock i,.village-dock b{background:#92f6cf;border-radius:50%;width:9px;height:9px;position:absolute;top:1px;right:16px}.village-dock b{color:#123d48;width:17px;height:17px;font-size:.7rem}.village-camera-hint{pointer-events:none;color:#fff8e7;background:#193d4477;border-radius:8px;margin:0;padding:3px 10px;font-size:.7rem;position:absolute;top:94px;left:50%;transform:translate(-50%)}.village-fireflies i{pointer-events:none;background:#fff2a3;border-radius:50%;width:5px;height:5px;animation:4s ease-in-out infinite village-float;position:absolute;box-shadow:0 0 8px #fff}.village-toast{z-index:110;color:#fff9e5;background:#134e4bed;border:2px solid #b4f8d2;border-radius:15px;align-items:center;gap:10px;padding:12px 20px;font-weight:800;display:flex;position:absolute;top:90px;left:50%;transform:translate(-50%);box-shadow:0 6px 20px #153e4466}.village-modal-shade{z-index:100;padding:max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0c293cb0;place-items:center;display:grid;position:fixed;inset:0}.village-dialog{color:#183f4a;text-align:center;background:#fff5dc;border:3px solid #f2cc7e;border-radius:25px;flex-direction:column;width:min(100%,480px);max-height:92dvh;animation:.22s ease-out village-dialog-in;display:flex;overflow:hidden;box-shadow:0 7px #8f784a,0 24px 80px #06182788}.village-dialog-wide{width:min(100%,1000px)}.village-dialog>header{color:#fff5d8;background:linear-gradient(#1b7778,#174c5c);border-bottom:3px solid #e1ba68;justify-content:space-between;align-items:center;gap:10px;padding:12px 18px;display:flex}.village-dialog h2{margin:0;font-size:1.45rem;line-height:1.2}.village-dialog h3{margin:5px 0}.village-dialog-body{overscroll-behavior:contain;padding:20px;overflow-y:auto}.village-intro{margin:0 0 18px;font-size:1rem}.village-primary,.village-small-button{color:#153d4a;min-height:44px;font:inherit;cursor:pointer;background:linear-gradient(#ffe177,#ffc53a);border:2px solid #d79d23;border-radius:13px;justify-content:center;align-items:center;gap:8px;padding:9px 18px;font-weight:800;display:inline-flex;box-shadow:0 4px #b38125}.village-primary:disabled,.village-small-button:disabled,.village-charge-button:disabled{opacity:.55;box-shadow:none;cursor:default}.village-small-button{background:#e1f1dc;border-color:#71b1a3;font-size:.85rem;box-shadow:0 3px #5e9185}.village-mission-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.village-mission-card{background:#fffbef;border:2px solid #d5bf88;border-radius:18px;overflow:hidden}.village-mission-art{background-position:50%;background-size:cover;justify-content:center;align-items:flex-end;height:150px;display:flex;position:relative}.village-mission-art .robot-sprite{filter:drop-shadow(0 3px 3px #142e4b88);width:auto;height:145px}.village-mission-art>span{color:#fff5cd;background:#174b53e8;border-radius:9px;align-items:center;gap:5px;padding:3px 8px;font-size:.8rem;display:flex;position:absolute;bottom:8px;left:8px}.village-mission-copy{align-content:start;gap:10px;padding:13px;display:grid}.village-mission-copy h3{font-size:1.1rem}.village-mission-copy p{min-height:48px;margin:0;font-size:.85rem}.village-mission-copy small{font-size:.75rem}.village-mission-copy .village-primary{width:100%;padding:8px;font-size:.85rem}.village-robot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.village-robot-card{text-align:left;background:#fffcef;border:2px solid #d7c899;border-radius:19px;align-items:center;gap:12px;padding:12px;display:flex}.village-portrait{background:radial-gradient(ellipse, var(--robot-color), transparent 68%);border-radius:15px;flex:0 0 85px;justify-content:center;align-items:flex-end;height:145px;display:flex;position:relative}.village-portrait .robot-sprite{width:80px;height:128px}.robot-undiscovered .village-portrait .robot-sprite{filter:brightness(.15)opacity(.45)}.portrait-lock{color:#fff1c0;position:absolute;top:45%;left:42%}.village-robot-copy{flex:1;min-width:0}.village-robot-copy p{margin:3px 0 7px;font-size:.8rem}.village-robot-copy small{font-size:.75rem}.village-robot-energy{align-items:center;gap:5px;margin:5px 0;font-size:.7rem;display:flex}.village-robot-energy progress{accent-color:#278c92;width:80px;min-width:0;height:8px}.village-assignment{flex-direction:column;gap:4px;font-size:.7rem;display:flex}.village-assignment select{color:#194d4a;width:100%;min-height:36px;font:inherit;background:#eff6df;border:1px solid #72a797;border-radius:8px;padding:4px;font-size:.8rem}.village-charge-button{color:#167c84;min-height:36px;font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:4px 0;font-size:.75rem;display:flex}.village-job-label{color:#267769;align-items:center;gap:5px;font-size:.8rem;display:inline-flex}.village-album{flex-wrap:wrap;justify-content:center;gap:7px;margin-top:12px;display:flex}.village-album span{color:#80928e;border:1px dashed #b6b8a1;border-radius:10px;align-items:center;gap:5px;padding:8px;font-size:.8rem;display:flex}.village-album .is-earned{color:#8f641a;background:#fff0ba;border-style:solid;border-color:#d9b76d}.village-project-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.village-project-card{color:#1c5157;cursor:pointer;font:inherit;background:#fffaea;border:2px solid #d7c38f;border-radius:19px;padding:12px}.village-project-card .village-building-art{max-width:180px;margin:auto}.village-project-card h3{font-size:1.1rem}.village-project-card p{font-size:.8rem}.village-project-card strong{color:#967016}.village-building-detail>.village-building-art{width:180px;margin:-10px auto 0}.village-building-detail>p{margin:8px 0 14px}.village-building-detail>.village-primary{width:100%}.village-building-perk{background:#e3efdc;border-radius:12px;margin-bottom:12px;padding:9px;font-weight:700}.village-upgrade-cost{justify-content:space-between;align-items:center;gap:12px;margin:15px 0;display:flex}.village-upgrade-cost>span{font-size:.8rem}.village-lock-reason{color:#8f6141;margin:10px;display:block}.village-worker-chip{background:#e2f2dd;border-radius:10px;align-items:center;gap:4px;margin:0 4px 10px;padding:5px 10px;font-size:.8rem;display:inline-flex}.village-market-actions{gap:14px;margin-top:16px;display:grid}.village-research{border-top:1px solid #d8c79a;margin-top:20px;padding-top:14px}.village-research article{border:1px solid #d6c591;border-radius:14px;margin-top:10px;padding:14px}.village-research p{font-size:.85rem}.village-research .village-small-button{width:100%;margin-top:12px;display:flex}.village-reward-robot{background:radial-gradient(#ffdb6980,#0000 70%);place-items:center;height:230px;display:grid}.village-reward-robot .robot-sprite{width:auto;height:230px}.village-reward h3{font-size:2rem}.village-reward .village-primary{width:100%;margin-top:20px;display:flex}.village-reward .village-materials{font-size:1.5rem}@keyframes village-float{0%,to{opacity:.3;transform:translateY(0)}50%{opacity:1;transform:translateY(-15px)}}@keyframes village-lights{50%{opacity:.4}}@keyframes village-collect-ready{50%{transform:translateY(-3px)}}@keyframes village-dialog-in{0%{opacity:0;transform:translateY(12px)scale(.98)}to{opacity:1;transform:none}}@keyframes village-build{0%{opacity:.2;transform:translateY(-25px)scale(.5)}75%{opacity:1;transform:translateY(4px)scale(1.06)}to{transform:none}}.village-building.is-building .village-building-art{animation:1.4s cubic-bezier(.2,.8,.3,1) both village-build}@media (width<=680px){.village-hud{top:max(8px, env(safe-area-inset-top));flex-wrap:wrap;gap:6px;left:8px;right:8px}.village-brand{border-radius:12px;gap:5px;padding:7px 10px}.village-brand-symbol{font-size:1.7rem}.village-brand h1{font-size:1rem}.village-brand small{font-size:.68rem}.village-resource-bar{order:3;padding:4px 12px}.village-resource-bar .village-materials{gap:15px;font-size:1rem}.village-resource-bar>small{font-size:.6rem}.village-hud .settings-launch{padding:6px 9px;font-size:.7rem}.village-camera{top:70px;right:9px}.village-camera button{width:38px;height:38px}.village-camera-hint{white-space:nowrap;font-size:.65rem;top:122px}.village-world{width:calc(max(1100px, 150dvh) * var(--map-zoom))}.village-building-label{padding:3px 7px;font-size:.68rem}.village-resident{width:5.5%}.village-dock{bottom:max(10px, env(safe-area-inset-bottom));border-radius:18px;gap:3px;width:calc(100% - 20px);max-width:430px;padding:5px}.village-dock button{flex:1;width:auto;min-height:56px;font-size:.75rem}.village-dock svg{font-size:1.3rem}.village-objective{max-width:160px;padding:8px 10px;bottom:91px;left:9px}.village-objective b{font-size:.78rem}.village-objective .village-eyebrow{font-size:.55rem}.village-objective button{font-size:.78rem}.village-dialog{border-radius:20px;max-height:94dvh}.village-dialog>header{padding:10px 12px}.village-dialog h2{font-size:1.2rem}.village-dialog-body{padding:14px}.village-mission-grid{grid-template-columns:1fr}.village-mission-card{grid-template-columns:100px 1fr;display:grid}.village-mission-art{height:100%;min-height:180px}.village-mission-art .robot-sprite{align-self:center;width:95px;height:auto}.village-mission-copy{text-align:left;gap:6px;padding:10px}.village-mission-copy h3{font-size:1rem}.village-mission-copy p{min-height:0;font-size:.75rem}.village-mission-copy .village-materials{justify-content:flex-start;font-size:.95rem}.village-robot-grid{grid-template-columns:1fr}.village-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.village-project-card{padding:9px}.village-project-card h3{font-size:1rem}.village-project-card p{font-size:.75rem}.village-toast{width:max-content;max-width:90%;padding:10px;font-size:.85rem;top:130px}}@media (height<=520px) and (orientation:landscape){.village-objective{bottom:90px}.village-camera-hint{display:none}.village-hud{top:6px}.village-brand{padding:5px 10px}.village-dialog{max-height:95dvh}}@media (prefers-reduced-motion:reduce){.village-game *,.village-dialog{transition:none!important;animation:none!important}}.settings-screen{color:#193f46;width:100%;max-width:980px}.settings-header{justify-content:space-between;align-items:center;gap:12px;margin:0 4px 18px;display:flex}.settings-back,.settings-launch{color:#17474b;min-height:44px;font:inherit;cursor:pointer;background:#fff6e0;border:1px solid #d9bc7d;border-radius:14px;justify-content:center;align-items:center;gap:9px;padding:8px 15px;font-size:1rem;font-weight:700;display:inline-flex}.settings-launch svg{color:#147b80}.settings-online{color:#1e6664;align-items:center;gap:8px;font-size:.85rem;font-weight:700;display:inline-flex}.settings-online i{background:#218453;border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 4px #c9ecd4}.wrist-console{isolation:isolate;background:linear-gradient(145deg,#fff9e9,#eadbb5);border:6px solid #247c7c;border-radius:42px;padding:clamp(16px,3.5vw,34px);position:relative;box-shadow:inset 0 0 0 3px #fffdf2,0 7px #145354,0 17px 34px #1a55552b}.wrist-console:before,.wrist-console:after{content:"";background:linear-gradient(45deg,#c29441 43%,#775d31 44% 54%,#eac679 55%);border:2px solid #d2ad62;border-radius:50%;width:11px;height:11px;position:absolute;top:22px}.wrist-console:before{left:19px}.wrist-console:after{right:19px}.console-heading{margin-bottom:24px}.console-code{color:#687956;letter-spacing:.2em;font-size:.7rem}.console-heading h1{color:#125d64;margin:0;font-size:clamp(1.8rem,4vw,2.6rem);line-height:1.1}.console-heading p{margin:6px 0 0;font-size:1rem}.console-layout{grid-template-columns:1.1fr 1fr;align-items:start;gap:clamp(18px,3vw,30px);display:grid}.settings-screen h2{color:#135e64;align-items:center;gap:9px;margin:0 0 12px;font-size:1.15rem;display:flex}.settings-character>h2{justify-content:center}.settings-device-visual{aspect-ratio:3/2;width:100%;position:relative}.settings-device-art{object-fit:contain;width:100%;height:100%;display:block}.settings-hologram{filter:drop-shadow(0 0 9px #5fffe855);place-items:center;display:grid;position:absolute;inset:24% 28% 24% 23%}.settings-hologram:before{content:"";background:#50e8d62b;border:2px solid #74ebd4;border-radius:50%;width:75%;height:12%;position:absolute;bottom:0;box-shadow:0 0 13px #55e7cb80}.settings-hologram .robot-sprite{width:auto;max-width:100%;height:100%}.robot-options{border:0;grid-template-columns:1fr 1fr;gap:8px;min-width:0;margin:12px 0 0;padding:0;display:grid}.robot-option{cursor:pointer;background:#fffbee;border:2px solid #c4c8ab;border-radius:15px;justify-content:center;align-items:center;gap:7px;min-height:52px;padding:12px 8px;font-size:.95rem;font-weight:700;display:flex;position:relative}.robot-option input{accent-color:#126d70;flex-shrink:0;width:18px;height:18px;margin:0}.robot-option:focus-within{outline-offset:3px;outline:3px solid #087f8c}.robot-option.is-selected{color:#125f62;background:#d9f2dd;border-color:#2d8981;box-shadow:0 3px #9bbcaf}.robot-option>svg{flex-shrink:0;font-size:.8rem}.robot-choice-hint{color:#44665c;margin:14px 0 4px;font-size:.85rem}.settings-saved{color:#286746;justify-content:center;align-items:center;gap:6px;min-height:24px;margin:0;font-size:.85rem;display:flex}.settings-adjustments{gap:16px;display:grid}.console-module{text-align:left;background:#fffcef;border:2px solid #c6d5b9;border-radius:23px;padding:18px;box-shadow:inset 0 -3px #e4e8cf}.sound-settings{gap:14px;display:grid}.sound-toggle{color:#6e4d12;cursor:pointer;background:#ffe39a;border:1px solid #d6ad52;border-radius:12px;justify-content:center;align-items:center;gap:9px;width:100%;min-height:44px;font-weight:700;display:flex}.sound-toggle[aria-pressed=true]{color:#4e6054;background:#e6e9dd;border-color:#aebda5}.sound-slider{gap:2px;font-size:.95rem;display:grid}.sound-slider>span{justify-content:space-between;align-items:center;gap:10px;display:flex}.sound-slider output{color:#48685b;font-variant-numeric:tabular-nums;font-size:.85rem}.sound-slider input{accent-color:#138887;cursor:pointer;width:100%;min-height:32px;margin:0}.sound-muted-note{color:#53685a;margin:0;font-size:.8rem}.settings-languages{grid-template-columns:1fr 1fr;gap:8px;display:grid}.settings-languages button{color:#275b59;cursor:pointer;background:#f8f6e5;border:1px solid #c3c9a9;border-radius:12px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:8px;font-size:.9rem;display:flex}.settings-languages button[aria-pressed=true]{background:#d9f2dd;border-color:#197c7c;font-weight:700}.console-footer{color:#4b695d;border-top:1px solid #c9c8a9;justify-content:center;align-items:center;gap:12px;margin-top:24px;padding-top:18px;font-size:.8rem;display:flex}.console-lights{gap:4px;display:inline-flex}.console-lights i{background:#27998c;border-radius:50%;width:6px;height:6px;box-shadow:0 0 5px #56cbb5}.console-lights i:last-child{box-shadow:none;background:#d4a441}.settings-sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (width<=680px){.console-layout{grid-template-columns:1fr}.wrist-console{border-width:4px;border-radius:30px;padding:22px 14px 18px}.settings-device-visual{max-width:400px;margin:auto}.console-heading{margin-bottom:20px}.console-module{padding:16px}.robot-option{font-size:.9rem}.console-footer{gap:7px;font-size:.75rem}}.App{text-align:center;padding:max(16px, env(safe-area-inset-top)) 12px max(24px, env(safe-area-inset-bottom));min-height:100dvh;color:var(--text-main);flex-direction:column;align-items:center;gap:10px;max-width:1040px;margin:auto;font-size:clamp(1rem,2.2vw,1.35rem);display:flex;position:relative}.App.battle-mode{gap:8px;max-width:1040px}.screen-transition{width:100%;position:relative}.screen-frame{flex-direction:column;align-items:center;gap:10px;width:100%;display:flex}.screen-frame-battle{gap:8px}.screen-frame-battle>*{width:100%;max-width:960px;margin:0}.screen-overlay{pointer-events:none}.screen-snapshot{z-index:3;pointer-events:none;margin:0;position:fixed}.screen-snapshot *{pointer-events:none!important;transition:none!important;animation-play-state:paused!important}@media (prefers-reduced-motion:reduce){.screen-snapshot{display:none}}.arena{isolation:isolate;background:url(/art/workshop.png) 50% 64%/cover;border:4px solid #fff0cb;border-radius:28px;width:100%;max-width:960px;height:clamp(220px,34vw,360px);position:relative;overflow:hidden;box-shadow:0 6px #b99b60,0 14px 28px #16334426}.arena-preview{max-width:760px;height:clamp(160px,24vw,260px)}.robot-sprite{aspect-ratio:3/4;width:200px;position:relative}.robot-layer{background-repeat:no-repeat;position:absolute;inset:0}.arena .robot-sprite{width:clamp(140px,25%,245px);position:absolute;bottom:4%}.arena-hero{left:9%}.arena-enemy{right:9%}.arena-preview .robot-sprite{width:clamp(120px,23%,185px)}@media (width<=480px){.App{padding-left:10px;padding-right:10px}.arena{border-radius:20px;height:210px}.arena-preview{height:165px}.arena-hero{left:1%}.arena-enemy{right:1%}.arena .robot-sprite{width:140px}.arena-preview .robot-sprite{width:115px}}.arena .robot-sprite,.arena-preview .robot-sprite{aspect-ratio:3/4;width:auto;height:92%}.arena{container-type:size}.arena-scene{position:absolute;inset:0}.arena .robot-visual{transform:translateY(var(--sprite-y,0%)) scale(var(--sprite-scale,1));transform-origin:50% 75%}.arena-preview .arena-hero{left:50%;transform:translate(-50%)}.robot-hit{filter:drop-shadow(0 0 7px #fff0a3)}.robot-visual{position:absolute;inset:0}.robot-attachment{pointer-events:none;width:0;height:0;position:absolute}.muzzle-charge{width:13px;height:13px;box-shadow:0 0 9px 4px var(--aura,#56f6db);animation:muzzle-charge var(--windup) ease-in both;background:#fffbdc;border-radius:50%;position:absolute}.arena-enemy .muzzle-charge{box-shadow:0 0 9px 4px #ffae62}.shot{pointer-events:none;--energy:#40e9cf;position:absolute;inset:0}.shot-enemy{--energy:#ff9b55}.energy-orb{left:var(--from-x);top:var(--from-y);opacity:0;width:20px;height:14px;box-shadow:0 0 8px 4px var(--energy);animation:projectile var(--travel) var(--windup) linear forwards;background:#fffbdc;border-radius:50%;position:absolute}.energy-orb:before{content:"";background:linear-gradient(90deg, transparent, var(--energy));transform-origin:100%;width:48px;height:8px;animation:projectile-trail var(--travel) var(--windup) linear both;border-radius:50%;position:absolute;top:3px;right:8px}@keyframes projectile-trail{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes muzzle-charge{0%{opacity:0;transform:translate(-50%,-50%)scale(.1)}70%{opacity:.6}95%{opacity:1;transform:translate(-50%,-50%)scale(1)}to{opacity:0;transform:translate(-50%,-50%)scale(1.2)}}.collision{pointer-events:none;z-index:4;position:absolute}.impact-ring{border:5px solid #ffe49a;border-radius:50%;width:70px;height:70px;margin:-35px;animation:.42s ease-out both impact-ring;position:absolute}.impact-star{clip-path:polygon(50% 0,61% 32%,90% 10%,68% 40%,100% 50%,68% 60%,90% 90%,60% 68%,50% 100%,40% 68%,10% 90%,32% 60%,0 50%,32% 40%,10% 10%,40% 32%);background:#fff8cb;width:52px;height:52px;margin:-26px;animation:.32s ease-out both impact-star;position:absolute}.impact-sparks i{background:#ffd055;border-radius:2px;width:7px;height:5px;animation:.48s ease-out both impact-spark;position:absolute;box-shadow:0 0 4px #fff9ce}.damage-number{white-space:nowrap;color:#fff7dc;text-shadow:-2px -2px #8f3025,2px -2px #8f3025,-2px 2px #8f3025,2px 2px #8f3025,0 4px 4px #16334480;align-items:baseline;gap:3px;font-size:clamp(1.8rem,5vw,2.8rem);font-weight:800;line-height:1;animation:1s ease-out both damage-rise;display:flex;position:absolute;top:-20px;left:0}.damage-number small{font-size:.42em}.arena-hit{animation:.22s ease-out arena-shake}@keyframes projectile{0%{left:var(--from-x);top:var(--from-y);opacity:1;transform:translate(-50%, -50%) rotate(var(--shot-angle)) scale(.7)}95%{opacity:1}to{left:var(--to-x);top:var(--to-y);opacity:0;transform:translate(-50%, -50%) rotate(var(--shot-angle)) scale(1.1)}}@keyframes impact-ring{0%{opacity:1;transform:scale(.2)}to{opacity:0;transform:scale(1.8)}}@keyframes impact-star{0%{opacity:1;transform:scale(.5)rotate(-12deg)}to{opacity:0;transform:scale(1.35)rotate(20deg)}}@keyframes impact-spark{0%{opacity:1;transform:rotate(var(--angle)) translateX(8px)}to{opacity:0;transform:rotate(var(--angle)) translateX(var(--distance))}}@keyframes damage-rise{0%{opacity:0;transform:translate(-50%,8px)scale(.65)}16%{opacity:1;transform:translate(-50%,-12px)scale(1.2)}30%{transform:translate(-50%,-18px)scale(1)}75%{opacity:1}to{opacity:0;transform:translate(-50%,-62px)scale(1)}}@keyframes arena-shake{20%{transform:translate(-3px)}50%{transform:translate(3px)}80%{transform:translate(-2px)}}.hp-display{background:#f5f9e9;border:1px solid #aac9b5;border-radius:12px;min-width:82px;padding:6px 10px}.hp-value{color:#225f42;justify-content:center;align-items:center;gap:6px;font-size:1rem;font-weight:800;display:flex}.hp-value svg{color:#ce534b}.hp-track{background:#d8e1cf;border-radius:8px;height:7px;margin-top:4px;position:relative;overflow:hidden}.hp-track span{border-radius:inherit;position:absolute;inset:0 auto 0 0}.hp-trail{background:#ee9b54;transition:width .24s ease-out}.hp-fill{background:#328b58;transition:width .16s ease-out}.hp-damaged .hp-value{color:#a72e37}.hp-energy .hp-fill{background:#148c98}.arena-status{z-index:5;pointer-events:none;filter:drop-shadow(0 2px 2px #133e4150);width:clamp(96px,15cqw,138px);position:absolute;transform:translate(-50%,-100%)}.hp-compact{background:#284a43;border:2px solid #fff4cd;border-radius:8px;min-width:0;padding:0;position:relative;overflow:hidden;box-shadow:0 1px #466b56}.hp-compact .hp-value{z-index:2;color:#fffdf0;text-shadow:0 1px 2px #14372e,0 -1px 1px #14372e;gap:4px;font-size:12px;line-height:1;position:absolute;inset:0}.hp-compact .hp-value svg{color:#fff3d0;filter:drop-shadow(0 1px 1px #163e36);font-size:10px}.hp-compact .hp-track{background:#284a43;border-radius:5px;height:19px;margin:0}.hp-compact .hp-fill{background:linear-gradient(#66ce80,#268359)}.hp-compact.hp-energy{margin-top:4px}.hp-compact.hp-energy .hp-track{background:#153f52}.hp-compact.hp-energy .hp-fill{background:linear-gradient(#51dbe3,#137d9c)}.arena-status-enemy .hp-fill{background:linear-gradient(#ff9b80,#cc5557)}.arena-status-enemy .hp-track{background:#613b41}.arena-enemy-name{color:#fff8e2;text-wrap:balance;background:#234b50df;border-radius:5px;width:max-content;max-width:100%;margin:0 auto 3px;padding:2px 6px;font-size:10px;line-height:1.2;display:block}.enemy-charge{background:#234950;border:1px solid #ffe5a3;border-radius:6px;height:18px;margin-top:4px;position:relative;overflow:hidden}.enemy-charge-fill{background:linear-gradient(#eebf5a,#a66a20);transition:width .1s linear;position:absolute;inset:0 auto 0 0}.enemy-charge-label{color:#fffbed;text-shadow:0 1px 2px #243a32;justify-content:center;align-items:center;gap:4px;font-size:9px;font-weight:800;line-height:1;display:flex;position:absolute;inset:0}.enemy-is-attacking .enemy-charge{box-shadow:0 0 8px #ffd26b}.enemy-is-attacking .enemy-charge-fill{background:linear-gradient(#ffc359,#d27129)}@media (width<=480px){.arena-status{width:96px}.arena:not(.arena-preview) .arena-hero{height:78%}.arena-enemy-name{font-size:9px}.hp-compact .hp-value{font-size:11px}}@media (prefers-reduced-motion:reduce){.enemy-charge-fill,.hp-compact .hp-fill,.hp-compact .hp-trail{transition:none}}.home-card{text-align:center;background:#fff6e0;border:3px solid #e2bb73;border-radius:28px;width:100%;max-width:760px;padding:clamp(12px,3vw,26px);box-shadow:0 6px #c5a66c}.home-card h1{color:#086e77;margin:0 0 14px;font-size:clamp(1.5rem,4vw,2.2rem)}.home-card h1 span{color:#ad700d}.home-card h2{margin:16px 0 6px;font-size:clamp(1.2rem,3vw,1.6rem)}.home-card p{max-width:540px;margin:8px auto;font-size:1.05rem}.home-stats{justify-content:center;align-items:center;gap:24px;margin:18px 0 10px;display:flex}.home-coins{align-items:center;gap:8px;font-weight:800;display:flex}.home-tagline{color:#925409;font-weight:800}.mode-menu{background:#fff6e0;border:3px solid #e2bb73;border-radius:28px;flex-direction:column;align-items:center;width:100%;max-width:760px;padding:clamp(12px,3vw,24px);display:flex;box-shadow:0 6px #c5a66c}.mode-menu-header{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 16px;width:100%;margin-bottom:18px;display:flex}.mode-menu-header h1{color:#086e77;flex:1;min-width:180px;margin:0;font-size:clamp(1.5rem,4vw,2rem)}.mode-menu-header button{align-items:center;gap:8px;margin:0;display:inline-flex}@media (prefers-reduced-motion:reduce){.muzzle-charge,.energy-orb,.impact-ring,.impact-star,.impact-sparks{display:none}.damage-number{opacity:1;transform:translate(-50%,-25px)}}.audio-controls{color:#163344;z-index:10;align-self:flex-end;font-size:.95rem;width:auto!important}.handwriting{width:100%;max-width:620px}.handwriting p{margin:4px 0 10px;font-size:1rem}.handwriting canvas{touch-action:none;cursor:crosshair;background:repeating-linear-gradient(0deg,#0000,#0000 23px,#e9dcc440 24px),#fffcf4;border:2px dashed #ae9d7d;border-radius:18px;width:100%;height:clamp(150px,25vh,210px);display:block}.handwriting label{flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin:12px 0;display:flex}.handwriting input{text-align:center;color:#163344;background:#fff;border:2px solid #2b9c98;border-radius:10px;width:150px;min-height:48px;font-size:1.4rem}
