:root{color-scheme:light;--ink:#513925;--muted:#85694f;--cream:#fffaf0;--border:#ecd5ab;--green:#7ac66b;--deep-green:#508e43;--white:#fffdf7;--sky:#a8def6;--purple:#9671c6;--shadow:0 5px 0 #e2c79b,0 13px 30px #41311834;font-family:ui-rounded,"Avenir Next","Nunito","Trebuchet MS",system-ui,sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;background:var(--sky);overflow:hidden;overscroll-behavior:none}
button,input{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:disabled{cursor:not-allowed;opacity:.56}
button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #3a75c6;outline-offset:4px}
[hidden]{display:none!important}
p{margin:.45em 0 .75em} h1,h2,h3{margin:0;line-height:1.12} img{user-select:none}
#game,#viewport{width:100%;height:100dvh;overflow:hidden;position:relative}
#viewport{position:absolute;inset:0;touch-action:none;user-select:none;cursor:grab;background:#a8dcef}
#viewport.dragging{cursor:grabbing}
#map{position:absolute;top:0;left:0;width:1672px;height:941px;transform-origin:0 0}
.farm-sky{
 position:absolute;inset:0;overflow:hidden;pointer-events:none;
 --sky-top:#83c6ef;--sky-mid:#bde5f6;--sky-bottom:#ecf5e3;
 --cloud-top:#fff8e9;--cloud-underside:#d5e8f2;--sky-light:#fffae47a;
 background:radial-gradient(ellipse at 72% 14%,var(--sky-light),transparent 38%),linear-gradient(var(--sky-top),var(--sky-mid) 54%,var(--sky-bottom));
}
[data-weather=dusk] .farm-sky{--sky-top:#847fbb;--sky-mid:#dea4ae;--sky-bottom:#f2c798;--cloud-top:#ffe1cd;--cloud-underside:#cf9ca9;--sky-light:#ffd6a784}
[data-weather=rain] .farm-sky{--sky-top:#7e9dbb;--sky-mid:#a8c4d6;--sky-bottom:#c6dbd6;--cloud-top:#e2e9ea;--cloud-underside:#93afc3;--sky-light:#dde8e766}
[data-weather=night] .farm-sky{--sky-top:#273b74;--sky-mid:#466797;--sky-bottom:#7492b4;--cloud-top:#a5b7d9;--cloud-underside:#617fa9;--sky-light:#a4bcf53a}
.farm-sky::after{
 content:"";position:absolute;inset:0;opacity:0;transition:opacity .8s;
 background:radial-gradient(circle at 18% 13%,#fff7d6 0 1.5px,transparent 2.5px),radial-gradient(circle at 81% 22%,#f2f5ff 0 1px,transparent 2px),radial-gradient(circle at 11% 50%,#f2f5ff 0 1px,transparent 2px),radial-gradient(circle at 92% 52%,#fff7d6 0 1.5px,transparent 2.5px),radial-gradient(circle at 43% 7%,#f2f5ff 0 1px,transparent 2px),radial-gradient(circle at 84% 72%,#f2f5ff 0 1px,transparent 2px);
}
[data-weather=night] .farm-sky::after{opacity:.75}
.sky-cloud{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:auto;aspect-ratio:240/94;opacity:var(--opacity,.53);transform:translate(var(--sky-offset-x,0px),var(--sky-offset-y,0px))}
.cloud-top{fill:var(--cloud-top)}.cloud-underside{fill:var(--cloud-underside)}
.cloud-one{--x:-5%;--y:12%;--w:clamp(140px,24vw,360px)}
.cloud-two{--x:67%;--y:6%;--w:clamp(130px,21vw,335px);--opacity:.44}
.cloud-three{--x:77%;--y:44%;--w:clamp(185px,28vw,460px);--opacity:.34}
.cloud-four{--x:3%;--y:70%;--w:clamp(210px,34vw,530px);--opacity:.58}
.cloud-five{--x:61%;--y:78%;--w:clamp(170px,32vw,480px);--opacity:.4}
#map::before{content:"";position:absolute;left:8%;right:8%;bottom:-65px;height:145px;pointer-events:none;background:radial-gradient(ellipse,#3b729c35,transparent 70%)}
.map-art,.ground,#plots,#world-items,#effects{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.map-art{display:block}
.ground{overflow:visible}
.field-edge{fill:#8c6036;opacity:.63}.field-rim{fill:#a48150}.field-top{fill:#a7bf68;stroke:#c9d887;stroke-width:5}
.sprite{display:block;object-fit:contain;pointer-events:none;user-select:none}
.plot{position:absolute;width:126px;height:68px;transform:translate(-50%,-50%);padding:0;background:none;border:none;pointer-events:none}
.plot>svg{width:100%;height:100%;overflow:visible}
.plot>svg .tile-top{pointer-events:auto;stroke:#a4a65e;stroke-width:2;fill:#c7d58e;transition:fill .15s}
.plot .tile-side{fill:#8e9d58}.plot .tile-lines{stroke:#9a8b53;stroke-width:2;fill:none;opacity:.25;pointer-events:none}
.plot.locked .tile-top{fill:#a8bb6d;stroke:#8ca351}.plot.locked .tile-side{fill:#8a9d54}
.plot.planted .tile-top{fill:#ae7f4d;stroke:#93673c}.plot.planted .tile-side{fill:#93663d}.plot.planted .tile-lines{stroke:#664129;opacity:.44}
.plot:hover .tile-top,.plot:focus-visible .tile-top{fill:#e4e9a9;stroke:#fff6d8;stroke-width:3}.plot.planted:hover .tile-top{fill:#bf915d}
.plot .crop{position:absolute;width:66px;height:75px;left:50%;bottom:29px;transform:translateX(-50%) scale(.53);transform-origin:bottom;filter:saturate(.84) drop-shadow(1px 4px 2px #6347254b);pointer-events:auto;transition:transform .3s}
.plot.ripe .crop{transform:translateX(-50%) scale(1);filter:drop-shadow(1px 4px 2px #6347254b)}
.plot.ripe:hover .crop{transform:translateX(-50%) scale(1.12) rotate(-3deg)}
.crop-timer,.plot-lock,.plot-empty{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);font-size:14px;font-weight:900;pointer-events:none}
.crop-timer{top:75%;border-radius:20px;background:#fffbebed;padding:2px 7px;color:#765c41;box-shadow:0 2px 0 #614a2e38;line-height:1}
.ripe .crop-timer{background:#ffef99;color:#6b7d26;top:76%;padding:2px 6px}
.plot-lock{color:#647341;background:#d9e5a9aa;border-radius:30px;padding:0 7px}
.plot-empty{color:#67793c;opacity:0;font-size:24px}
.planting .plot-empty,.plot:hover .plot-empty{opacity:.8}.planting .plot .tile-top{cursor:crosshair}
.world-button,.scarecrow,.avatar{position:absolute;border:none;background:none;padding:0;transform:translate(-50%,-100%);pointer-events:auto}
.world-button .sprite{height:100%;width:100%;filter:drop-shadow(1px 5px 2px #42371743)}
.world-button:hover .sprite{scale:1.08}
.word-plot{width:58px;height:43px;transform:translate(-50%,-50%)}
.word-mound{display:block;position:absolute;bottom:0;left:0;right:0;height:26px;border-radius:50%;background:radial-gradient(ellipse at 44% 31%,#bd9461,#966943 75%);border:2px solid #caa075;box-shadow:0 3px #7183416b}
.word-plot:hover .word-mound{outline:2px solid #fff5bb}.word-plot .word-sprout{height:45px;position:absolute;bottom:6px}
.bubble{position:absolute;left:50%;top:2px;transform:translate(-50%,-72%);border:2px solid #fffdf4;background:#fff6d9;border-radius:20px;min-width:30px;min-height:29px;box-shadow:0 3px #d7ba785c;font-size:16px;font-weight:900;display:grid;place-items:center;padding:2px 4px;pointer-events:none}
.bubble.resting{opacity:.62;font-size:14px;background:#eef1e9}
.word-plot .bubble{min-width:18px;min-height:18px;font-size:11px;color:#2e9e80}
.animal{width:72px;height:69px;z-index:320}.animal.hen{width:52px;height:53px}.animal .sprite{animation:breathe 3.2s ease-in-out infinite alternate;transform-origin:center bottom}.animal:nth-of-type(odd) .sprite{animation-delay:-1.7s}
@keyframes breathe{to{transform:scaleY(.94) translateY(1px)}}
.villager{width:52px;height:79px;z-index:395}.villager .bubble{background:#eef5ff}.scarecrow{width:68px;height:75px;z-index:410;pointer-events:none}.scarecrow .sprite{width:100%;height:100%;filter:drop-shadow(4px 6px 3px #4f5e294b)}
.landmark{z-index:435}.sign{display:block;padding:6px 12px;border-radius:7px;border:3px solid #f6dfaa;background:#f1c981;color:#674724;font-size:14px;font-weight:900;white-space:nowrap;box-shadow:0 4px #ab7a49,0 7px 13px #503a3d24}
.garden-sign{font-size:13px;background:#f5e2a9}.lock-sign{background:#fff1c9f2}
.building{width:140px;height:100px;z-index:410}.market-spot{width:163px;height:146px}.map-label{position:absolute;bottom:0;left:50%;transform:translateX(-50%);padding:5px 10px;border:2px solid #fff8e5;border-radius:14px;background:#fff5daef;white-space:nowrap;font-size:14px;font-weight:800;box-shadow:0 3px 0 #a78a5e67}.world-button:hover .map-label{background:#fff}
.decoration{height:59px;width:65px;z-index:460}.place-slot{z-index:510}.place-marker{display:grid;place-items:center;background:#fef4c8;border:3px dashed #e7a339;border-radius:50%;width:58px;height:58px;font-weight:900;font-size:29px}
.avatar{z-index:700;width:54px;height:87px;transition:left .54s ease-in-out,top .54s ease-in-out;pointer-events:none}.avatar .sprite{width:100%;height:100%;filter:drop-shadow(4px 7px 2px #564b3866)}.avatar small{position:absolute;bottom:-17px;left:50%;transform:translateX(-50%);font-size:12px;background:#fffbea;padding:2px 8px;border-radius:12px;white-space:nowrap;font-weight:800;box-shadow:0 2px 0 #c89f6877}.avatar.walk .sprite{animation:waddle .18s alternate 4 ease-in-out}
@keyframes waddle{from{transform:translateY(0) rotate(-4deg)}to{transform:translateY(-6px) rotate(4deg)}}
#effects{z-index:1000}.float{position:absolute;display:grid;gap:2px;justify-items:center;white-space:nowrap;animation:rise 1.6s both;font-weight:900}.float b{padding:4px 9px;border-radius:15px;background:#fff6db;color:#4b7a43;font-size:16px;box-shadow:0 3px 0 #94b87b6b}.float strong{color:#fff2ab;font-size:20px;text-shadow:0 2px #805020,1px 0 #805020,-1px 0 #805020}
@keyframes rise{0%{transform:translate(-50%,-60%) scale(.85);opacity:0}15%{opacity:1}65%{opacity:1}100%{transform:translate(-50%,-170%) scale(1.06);opacity:0}}
#weather,#rain{position:absolute;inset:0;pointer-events:none;z-index:2}#weather{transition:background 1.2s,opacity 1s}
[data-weather=dusk] #weather{background:#d88365;opacity:.24;mix-blend-mode:multiply}[data-weather=night] #weather{background:#2f468b;opacity:.48;mix-blend-mode:multiply}
[data-weather=rain] #weather{background:#6a92a9;opacity:.22;mix-blend-mode:multiply}
#rain{opacity:0;transition:opacity .45s;overflow:hidden}[data-weather=rain] #rain{opacity:.65}#rain i{display:block;position:absolute;width:2px;height:22px;background:linear-gradient(transparent,#f0fdffbc);left:var(--x);top:var(--y);transform:rotate(24deg);animation:rain .85s infinite linear var(--d);animation-play-state:paused}[data-weather=rain] #rain i{animation-play-state:running}
@keyframes rain{from{translate:35px -110px;opacity:.2}to{translate:-52px 120px;opacity:.85}}
#hud{position:absolute;inset:0;pointer-events:none;z-index:4}
#hud button,#hud nav,#time{pointer-events:auto}
.hud-left,.hud-right{position:absolute;top:max(16px,env(safe-area-inset-top));display:grid;gap:8px}
.hud-left{left:max(19px,env(safe-area-inset-left));justify-items:start}.hud-right{right:max(19px,env(safe-area-inset-right));justify-items:end}
.hud-row{display:flex;align-items:center;gap:7px}
.pill,.round{background:#fffaf0;border:2px solid #fffef9;border-radius:28px;box-shadow:0 3px #dfc79e,0 6px 13px #654c3a26;font-weight:850}
.level{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
.level-star{position:absolute;top:50%;left:0}
.level-star b{position:absolute;inset:0;display:grid;place-items:center}
.level-progress{display:grid;gap:5px;min-width:0}
#level-label{font-size:11px;line-height:1;text-transform:uppercase;letter-spacing:.08em;color:#795a40}
#xp-text{font-size:12px;font-variant-numeric:tabular-nums;color:#795a40;white-space:nowrap}
.xp-track,.course-track{border-radius:15px;background:#ebdfc6;height:7px;overflow:hidden;margin-top:4px}.xp-track i,.course-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(#b2e07b,#73b85e);transition:width .3s}
.time{padding:4px 10px;font-size:11px;white-space:nowrap;color:#76593c}.money{padding:3px 12px 3px 4px;display:flex;align-items:center;gap:7px;height:36px;font-size:15px}
.coin{display:inline-grid;place-items:center;background:linear-gradient(135deg,#fff27f,#ffcf49 63%,#f8a21c);border:2px solid #ffe693;box-shadow:inset 0 0 0 2px #ecaf32,0 2px #bd7625;min-width:26px;height:26px;border-radius:50%;font-weight:900;color:#ba7720;font-size:15px;line-height:1}
.coin.tiny{min-width:16px;height:16px;font-size:10px;border-width:1px;box-shadow:inset 0 0 0 1px #e7ad36,0 1px #bd7625}
.round{width:33px;height:33px;padding:0;display:grid;place-items:center;font-size:20px;line-height:1}.round.purple{background:linear-gradient(#c9a9f6,#a083d9);color:#fff;box-shadow:0 3px #7f5bad,0 6px 11px #4b375740}.round.blue{background:#8cc9ed;color:white;box-shadow:0 3px #529dc4}
.small{display:flex;align-items:center;gap:5px;padding:3px 8px;font-size:12px}.study-star{color:#3ea6e3;font-size:20px;line-height:.8;text-shadow:0 2px #22678f,0 -1px #baf4ff}
#toolbar{position:absolute;bottom:max(17px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:9px;justify-content:center}
.dock{position:relative;width:83px;height:68px;border:2px solid #fffdf5;border-radius:18px 18px 16px 16px;display:grid;grid-template-rows:1fr auto;justify-items:center;gap:0;padding:3px 4px 5px;background:linear-gradient(#b0e0f4,#72bee4 63%,#54a0d6 64%);box-shadow:0 4px #377dab,0 8px 18px #47352543;color:#fff;text-shadow:0 1px #69483380}
.dock span{font-size:31px;line-height:1.22;filter:drop-shadow(0 2px 1px #2f2b1740)}.dock b{font-size:12px;line-height:1.1;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.dock.barn{background:linear-gradient(#ffe4a5,#efaf64 63%,#e59543 64%);box-shadow:0 4px #b47132,0 8px 18px #47352543}.dock.orders{background:linear-gradient(#b5edce,#76c9a3 63%,#56ae8e 64%);box-shadow:0 4px #448470,0 8px 18px #47352543}.dock.shop{background:linear-gradient(#ffcee2,#f299be 63%,#e779a6 64%);box-shadow:0 4px #b94f7d,0 8px 18px #47352543}
.dock i{position:absolute;right:-4px;top:-5px;width:21px;height:21px;border:2px solid #fff;background:#f2749b;border-radius:50%;font-style:normal;font-size:12px;display:grid;place-items:center;box-shadow:0 2px #bf4b70}
.dock:hover,.round:hover,.game-btn:hover,.big:hover{filter:brightness(1.06);translate:0 -2px}.dock:active,.round:active,.game-btn:active,.big:active{translate:0 2px}.selected{outline:2px solid #fff4ab}
.map-tip{position:absolute;bottom:19px;right:15px;padding:5px 9px;background:#fffbedca;border-radius:20px;font-size:11px;font-weight:750}
#quest{position:absolute;left:50%;top:15px;translate:-50% 0}
.quest{display:flex;align-items:center;gap:8px;min-width:208px;text-align:left;padding:5px 13px 5px 8px;line-height:1.08}.quest>span:first-child{font-size:22px}.quest>span:nth-child(2){display:grid;gap:3px}.quest small{font-size:8px;font-weight:950;color:#6c9052;letter-spacing:.12em}.quest b{font-size:11px}.quest strong{margin-left:auto;color:#7aa258;font-size:15px}
#toast{position:absolute;left:50%;top:71px;z-index:20;translate:-50% -10px;opacity:0;pointer-events:none;max-width:90vw;width:max-content;padding:9px 16px;border-radius:20px;background:#fffaf0;border:2px solid #fffefa;box-shadow:0 3px 0 #ccb389b3,0 8px 20px #57422725;font-size:13px;font-weight:800;transition:opacity .2s,translate .2s}#toast.show{opacity:1;translate:-50% 0}#toast span{margin-right:8px}
#welcome{position:absolute;inset:0;display:grid;place-items:center;overflow:auto;z-index:8;background:linear-gradient(#79bdd3aa,#b3d4bf92 72%,#fff3c8ac);backdrop-filter:blur(3px)}
#welcome.setup{background:linear-gradient(#87c8e8c9,#fff1cec9);backdrop-filter:blur(1.4px);padding:22px 15px}
.title-stack{display:grid;justify-items:center;text-align:center;padding:38px 16px;animation:appear .45s ease-out}
.logo{position:relative;display:grid;justify-items:center;isolation:isolate;padding:18px 18px 0;filter:drop-shadow(0 12px 13px #22483d45)}
.logo-medallion{width:143px;height:113px;position:relative;display:flex;justify-content:center;align-items:center;margin-bottom:-13px;z-index:-1;background:radial-gradient(ellipse at 35% 20%,#ffed9c,#e8a951 65%,#c08242);border:6px solid #fff5d1;border-radius:52% 52% 37% 38%;box-shadow:0 5px #93704b;rotate:-5deg}
.logo-medallion .sprite{width:76px;height:83px;filter:drop-shadow(1px 2px #aa783e);transform:rotate(9deg)}
.logo-medallion span{color:#fff6b0;font-size:25px}.logo-name{font-size:clamp(55px,10vw,119px);font-weight:1000;letter-spacing:-.09em;line-height:.91;transform:rotate(-4deg);color:#ffe481;-webkit-text-stroke:5px #243e4a;paint-order:stroke fill;text-shadow:0 6px #af652e,0 10px #243e4a}
.logo-name span{color:#e7f8c4;text-shadow:0 6px #5e9650,0 10px #243e4a}
.logo-leaves{color:#4c984f;font-size:39px;line-height:1;font-weight:1000;text-shadow:0 2px #215746;margin:6px 0 13px}.logo-leaves span{color:#fff1a6;text-shadow:0 2px #c17c3d}
.logo-sub{background:linear-gradient(#8ac7f6,#5691da);border:3px solid #fffef3;border-radius:30px;color:#fff9e6;box-shadow:0 4px #426ca7,0 7px 16px #254c7846;padding:5px 16px;font-size:clamp(13px,2.8vw,19px);font-weight:900;text-shadow:0 2px #315780;white-space:nowrap}.logo-sub span{color:#daffff}
.big,.game-btn{border:2px solid #fffdf1;border-radius:18px;font-weight:900;padding:9px 15px;box-shadow:0 3px var(--lower),0 6px 12px #4d3a2e22;line-height:1.1;color:#fff;text-shadow:0 1px #53493955;white-space:normal}
.green{background:linear-gradient(#a0d888,#75bc66);--lower:#52944c}.orange{background:linear-gradient(#ffc079,#f39e48);--lower:#d67831}.blue{background:linear-gradient(#a4d7ff,#72afe0);--lower:#5289bf}.quiet{background:#f4e8cd;--lower:#d2ba91;color:#785b3e;text-shadow:none}
.big{font-size:22px;padding:13px 24px;min-height:51px;border-radius:38px;min-width:218px}.play{margin-top:16px}.play span,.setup-next span{margin-left:5px}.title-stack p{background:#fffcf0d9;border-radius:30px;padding:9px 13px;font-size:12px;font-weight:800;margin-top:23px}.title-stack p i{display:inline-block;width:4px;height:4px;border-radius:50%;background:#a29e59;margin:0 5px 2px}
.setup-stack{width:min(540px,100%);display:grid;gap:13px;align-self:center;animation:appear .22s ease-out}
.setup-top{display:grid;grid-template-columns:33px 1fr auto;align-items:center;gap:9px}.setup-top>b{background:#fffff2d9;border-radius:22px;padding:5px 9px;font-size:11px;white-space:nowrap}
.segments{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:4px;background:#fffbed;border-radius:18px;box-shadow:0 4px #e1cba3}.segments i{height:15px;border-radius:10px;background:#e9dfc7}.segments .filled{background:linear-gradient(#b4df7e,#7dbf62)}
.hello{height:53px;display:flex;align-items:center;gap:9px}.hello .sprite{height:72px;width:56px;align-self:start;z-index:2;filter:drop-shadow(0 3px 1px #5b42223a)}.hello span{display:block;background:#fffdf5;padding:10px 14px;border-radius:18px;font-size:13px;font-weight:900;box-shadow:0 3px #c3bc9c88}
.setup-card{background:linear-gradient(#fffdf7,#fbf1d7);border:3px solid #fffdf4;border-radius:26px;padding:20px 15px;box-shadow:var(--shadow);text-align:center}.setup-card h1{font-size:24px;font-weight:950}.setup-card>p{margin:6px 0 15px;font-size:13px;color:var(--muted);font-weight:600}
.languages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.language{display:flex;align-items:center;gap:9px;text-align:left;padding:8px 10px;border:2px solid #fffdf6;border-radius:14px;background:#fff0d5;box-shadow:0 3px #e5d5b9;min-height:53px;min-width:0}
.language>span,.language-current>span{font-size:27px;line-height:1}.language b,.language small{display:block}.language b{font-size:14px;line-height:1.2}.language small{color:#6e5745;font-size:11px;margin-top:3px}
.color-1,.color-7{background:#e7efff}.color-2{background:#edf0ff}.color-3{background:#fbf3d8}.color-4{background:#fff0df}.color-5{background:#fce8e5}.color-6{background:#fbedef}.language[aria-pressed=true]{border-color:#88bb69;box-shadow:0 3px #88bb69}.language:hover{filter:brightness(1.03)}
.setup-next{justify-self:center;min-width:min(340px,100%);margin-top:3px}.profile{text-align:left;width:min(400px,100%);margin:auto;display:grid;gap:11px}.profile label{display:grid;gap:5px;font-size:12px;font-weight:900}
.profile input{width:100%;background:white;border:2px solid #e6d1ad;border-radius:13px;padding:11px 14px;min-height:43px;font-size:15px}.profile input::placeholder{color:#a7947d}.profile small{font-size:11px;color:var(--muted)}
@keyframes appear{from{opacity:0;transform:translateY(9px) scale(.985)}to{opacity:1;transform:none}}
#seed-tray{position:absolute;z-index:6;bottom:max(100px,calc(env(safe-area-inset-bottom) + 90px));left:50%;translate:-50% 0;width:min(570px,calc(100% - 22px));background:linear-gradient(#fffcf5,#f8ecd0);border:3px solid white;border-radius:22px;box-shadow:var(--shadow);padding:10px 11px 13px}
#seed-tray header{display:flex;align-items:start;justify-content:space-between;padding:1px 3px 6px;gap:10px}#seed-tray header strong{display:block;font-size:15px}#seed-tray header small{display:block;color:var(--muted);font-size:11px;font-weight:650;margin-top:2px}
.close{background:linear-gradient(#ff9abd,#ed709a);color:#fff;border:2px solid #fffdf5;border-radius:50%;width:34px;height:34px;padding:0;font-size:25px;font-weight:900;line-height:1;display:grid;place-items:center;box-shadow:0 4px #cb4b76,0 6px 13px #57374433}
.seeds-scroll{display:flex;overflow-x:auto;gap:7px;padding:2px 3px 7px;scrollbar-color:#c6a97b #f0e3c5}
.seed-card{display:grid;justify-items:center;align-content:start;gap:3px;flex:0 0 91px;padding:5px;border:2px solid #ead7b5;background:#fffdf7;border-radius:12px;min-height:115px;box-shadow:0 2px #d8c29d;white-space:nowrap}.seed-card .sprite{height:44px;width:46px}.seed-card b{font-size:12px}.seed-card small{font-size:9px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;max-width:100%}.seed-card>span{font-size:10px;font-weight:800}.seed-card.chosen{border-color:#7bb05a;background:#f5fce7;box-shadow:0 2px #7bb05a}
#overlay{position:absolute;inset:0;z-index:10;display:grid;place-items:center;padding:30px 12px 22px}
#overlay.veil{background:#422f2b64;backdrop-filter:blur(3px)}
.dialog{position:relative;width:min(100%,492px);max-height:calc(100dvh - 63px);border:3px solid #fffdf4;background:linear-gradient(#fffdf6,#fbefd4);border-radius:26px;box-shadow:var(--shadow);display:flex;flex-direction:column;animation:appear .2s both}
.panel-title{position:absolute;left:50%;top:0;transform:translate(-50%,-52%);color:white;background:linear-gradient(#ffbd74,#f7a04d);border:3px solid #fffdf4;border-radius:17px;box-shadow:0 5px #d87b31,0 9px 14px #78502d36;padding:7px 20px;font-size:20px;font-weight:950;white-space:nowrap;text-shadow:0 2px #ce803d}
.panel-close{position:absolute;right:10px;top:10px;z-index:3}.panel-body{padding:31px 20px 20px;overflow:auto;overscroll-behavior:contain;border-radius:inherit;scrollbar-width:thin;scrollbar-color:#d1b58b transparent}
.lead,.help{font-size:13px;color:var(--muted);font-weight:650;line-height:1.35}.lead{margin:1px 26px 13px 0}.help{font-size:11px;margin:6px 0 12px}.panel-settings{width:min(100%,495px)}.settings-content h3{font-size:15px;font-weight:900;margin:13px 0 8px}.settings-content h3:first-child{margin-top:2px}.violet{color:#825db4}.forest{color:#4b9347}.ocean{color:#2a91b1}.settings-content .orange{color:#c57c39;background:none}
.locale-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.locale-grid button,.tabs button,.language-current,.word-chip{border:2px solid #ecd6ae;border-radius:13px;background:#fffdf8;box-shadow:0 3px #e3d4b9;padding:8px 4px;font-size:12px;font-weight:850}
.locale-grid .picked{background:#f2eaff;border-color:#a686d2;color:#68469e;box-shadow:0 3px #a686d2}.locale-grid.rates{grid-template-columns:repeat(3,1fr)}.language-current{display:flex;align-items:center;text-align:left;gap:11px;padding:9px 11px;width:100%;margin-bottom:11px}.language-current div{flex:1}.language-current b,.language-current small{display:block}.language-current b{font-size:15px}.language-current em{font-style:normal;background:#e7f0db;color:#53813b;border-radius:10px;padding:2px 5px;font-size:9px}.language-current small,.profile-line small{font-size:11px;color:var(--muted)}.language-current strong{font-size:23px;color:#a28162}
.toggle-list{border:2px solid #ecd6ae;border-radius:17px;background:#fffefa;box-shadow:0 3px #e3d4b9;overflow:hidden}
.toggle-row{border:0;border-bottom:1px dashed #e4cca4;width:100%;background:none;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;text-align:left;min-height:44px;font-size:14px;font-weight:800}.toggle-row:last-child{border-bottom:0}.toggle-row>span{display:flex;align-items:center;gap:9px}.toggle-row i{font-size:15px;color:#bba888;font-style:normal;min-width:18px}
.switch{width:43px;height:23px;border-radius:20px;background:#ded1ba;display:block;position:relative;flex:none;box-shadow:0 2px #eadfce}.switch::after{content:"";width:18px;height:18px;border-radius:50%;position:absolute;left:3px;top:2.5px;background:#fffef9;box-shadow:0 1px 2px #725b3d55;transition:transform .17s}.toggle-row[aria-checked=true] .switch{background:#89c575}.toggle-row[aria-checked=true] .switch::after{transform:translateX(19px)}.profile-line{font-weight:850;padding-top:6px;border-top:1px solid #e7d5b7}
.rows{display:grid;gap:8px}.item-row,.shop-row,.course-card{display:grid;grid-template-columns:45px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:57px;padding:6px 9px;background:#fffdf7;border:2px solid #ecdbb8;border-radius:14px;box-shadow:0 2px #e7d7b8}.item-row .sprite,.shop-row .sprite{width:44px;height:42px}.item-row>.emoji,.shop-row>span,.course-card>span{font-size:27px;text-align:center}.item-row b,.shop-row b,.course-card b{display:block;font-size:14px}.item-row small,.shop-row small,.course-card small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.quantity,.done{color:#739a50;font-weight:900}.price{display:inline-flex;align-items:center;gap:3px;font-weight:900;white-space:nowrap}.game-btn{font-size:13px;min-height:32px;padding:7px 11px}.voice-btn{background:#e8f5ff;border:2px solid #fdfdff;border-radius:12px;padding:5px 8px;box-shadow:0 2px #acd0e6;font-size:15px;min-height:29px;font-weight:900;color:#436988}
.footer{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}
.empty,.detail{display:grid;justify-items:center;text-align:center;gap:4px;padding:13px 1px 3px}.empty span,.detail-icon{font-size:47px;line-height:1.16}.empty b,.detail h3{font-size:19px;font-weight:950}.empty p,.detail p{font-size:13px;color:var(--muted);font-weight:650}.detail>.sprite{width:90px;height:86px}.detail .footer{margin-top:6px}.animal-next{background:#fff5d9;border:2px solid #ead7ad;border-radius:13px;padding:8px 13px;font-size:13px}
.order-grid{display:grid;gap:8px}.order-card{border-radius:14px;background:#fffdf7;border:2px solid #e9d7b3;padding:9px 11px}.order-card h3{font-size:14px}.order-card ul{padding:0;margin:7px 0;list-style:none}.order-card li,.order-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}.order-card li{border-top:1px dashed #eadcbd;padding:4px 0;font-size:13px}.link-btn{background:none;border:none;text-decoration:underline;color:#795936;font-size:11px;font-weight:800}.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:13px}.tabs button{padding:6px 4px}.tabs .on{background:#e9f2d9;border-color:#a5bf83;box-shadow:0 3px #a5bf83;color:#527840}.shop-row .game-btn{white-space:nowrap}.garden-intro{display:flex;align-items:center;gap:10px}.garden-intro .sprite{height:85px;width:54px}.garden-intro h3{font-size:17px}.garden-intro p{font-size:13px;color:var(--muted)}.garden-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.word-chip{padding:6px 8px;background:#edf6e4;border-color:#c7dbb6;box-shadow:0 2px #c7dbb6}
#overlay.full-overlay{padding:0;background:linear-gradient(#fff6df,#e4f5dd 58%,#cfeadf)}
.full-dialog{width:100%;height:100%;max-height:none;background:transparent;box-shadow:none;border:0;border-radius:0}.full-dialog .panel-close{top:max(15px,env(safe-area-inset-top));right:max(17px,env(safe-area-inset-right))}.full-dialog .panel-body{width:100%;height:100%;padding:20px 14px 32px}
.course,.lesson-screen{width:min(480px,100%);margin:0 auto}.course-head{border:2px solid #fffdf4;background:#fffaf0;border-radius:21px;padding:13px 16px;box-shadow:0 4px #e9d4ad}.course-top{display:flex;align-items:center;gap:11px}.course-top>span:first-child{font-size:31px}.course-top h1{font-size:24px}.course-top p{font-size:12px;font-weight:800;color:#896e50;margin:2px 0}.course-stars{margin-left:auto;padding:6px 10px}.course-track{height:10px;margin-top:9px}.course-card{margin:11px 0 19px}.course-unit{margin-bottom:17px}.unit-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 16px;background:linear-gradient(#f7b4cf,#ef93b7);color:#6e3349;border:2px solid #fff9ef;border-radius:18px;box-shadow:0 4px #d17e9c}.unit-card h2{font-size:22px}.unit-card small,.eyebrow{font-size:10px;font-weight:950;letter-spacing:.12em}.unit-card p{font-size:13px;font-weight:750;margin:.25em 0 0}.unit-card>span{font-size:39px}.unit-1{background:#bfe7a3;box-shadow:0 4px #91bf78;color:#476238}.unit-2{background:#bde0f8;box-shadow:0 4px #8ab5db;color:#345b78}.unit-3{background:#ffdaa3;box-shadow:0 4px #d5af78;color:#775229}
.path{display:grid;justify-items:center;gap:13px;margin:20px 0 23px}.lesson-node{position:relative;transform:translateX(var(--shift));display:grid;justify-items:center;gap:5px;min-width:125px;padding:0;background:none;border:0;font-size:13px;line-height:1.1}.lesson-node i{width:57px;height:53px;background:#f0e8d4;border-radius:24px;border:3px solid #fffdf4;box-shadow:0 4px #cbbfa4;font-style:normal;display:grid;place-items:center;font-size:20px}.lesson-node.current i{background:#8dcc73;color:white;box-shadow:0 5px #55994d;outline:2px solid #b5dc9d}.lesson-node.completed i{background:#ffdc76;color:#815a2c;box-shadow:0 5px #cfa145}.lesson-node:disabled{opacity:.63}
.lesson-progress{padding:8px 37px 8px 4px}.lesson-progress>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:6px}.lesson-progress small{font-size:11px;color:var(--muted)}
.lesson-instruction{text-align:center;margin:22px auto 15px}.lesson-instruction>span{font-size:40px}.lesson-instruction h1,.result h1{font-size:26px;font-weight:950}.lesson-instruction>p{font-size:14px;color:var(--muted)}.lesson-instruction small{color:var(--muted);font-size:11px}.lesson-prompt,.detail .lesson-prompt{display:flex;align-items:center;justify-content:center;gap:7px;font-size:21px;font-weight:950;color:var(--ink)}summary{cursor:pointer;font-size:11px;font-weight:750;margin-top:5px}
.answers{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:9px 0}
.answers button{min-height:47px;padding:8px;background:#fffdf7;border:2px solid #e5d5b3;border-radius:13px;box-shadow:0 3px #d7c8aa;font-size:14px;font-weight:850}.answers .picked{background:#eaf6ff;border-color:#7bb9e2;box-shadow:0 3px #7bb9e2}.answers .correct{background:#ddf3cb;border-color:#87ba6a;box-shadow:0 3px #87ba6a;opacity:1}.answers .wrong{background:#ffe1e2;border-color:#dd92a0;box-shadow:0 3px #dd92a0;opacity:1}.lesson-footer{display:grid;justify-items:center;gap:10px;margin:14px 0}.lesson-footer .game-btn{min-width:min(270px,100%);min-height:40px;font-size:15px}.feedback{font-size:13px;font-weight:850;border-radius:12px;padding:7px 10px;text-align:center}.feedback.yes{background:#dff1ce;color:#4c813d}.feedback.no{background:#f9dfe0;color:#9b5361}
.result{text-align:center;margin-top:35px}.result-star{font-size:95px;color:#ffd361;line-height:1;text-shadow:0 5px #df9139,0 10px 24px #dfbb4f50}.eyebrow{color:#798e51;margin-top:10px}.rewards{display:flex;justify-content:center;gap:9px;margin:15px 0}.rewards>div{display:grid;justify-items:center;align-content:center;gap:5px;background:#fffdf7;border:2px solid #ecd9b1;border-radius:15px;min-height:61px;padding:6px 12px;font-weight:950;min-width:86px;box-shadow:0 3px #e3d1ac}.rewards small{font-size:10px;color:var(--muted)}
@media (max-width:750px){.map-tip{display:none}#quest{top:66px}.hud-left{left:11px}.hud-right{right:11px}.hud-left,.hud-right{top:max(10px,env(safe-area-inset-top))}#toast{top:113px}.quest{min-width:175px}.quest b{font-size:10px}.level{min-width:130px;grid-template-columns:33px 1fr}.level-star{font-size:42px}.level-line{gap:7px}.dock{width:73px;height:59px}.dock span{font-size:26px}.dock b{font-size:11px}#seed-tray{bottom:max(88px,calc(env(safe-area-inset-bottom) + 77px))}}
@media (max-width:415px){.level{min-width:112px}.round{width:30px;height:30px}.hud-row{gap:4px}.money{font-size:13px;padding-right:7px}.dialog .panel-body{padding-left:12px;padding-right:12px}.setup-card{padding:16px 10px}.setup-stack{gap:10px}.language{gap:5px;padding:7px 6px}.language>span{font-size:21px}.language small{font-size:10px}.locale-grid button{font-size:11px}.lesson-progress{padding-right:43px}.title-stack p{font-size:10px}.logo-name{-webkit-text-stroke-width:3px}}
@media (max-height:620px){.setup-stack{gap:8px}.setup-card{padding-top:12px;padding-bottom:12px}.hello{height:40px}.hello .sprite{height:52px;width:44px}.language{min-height:44px;padding-top:5px;padding-bottom:5px}.big{min-height:43px;padding-top:9px;padding-bottom:9px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.plot .crop{bottom:35px;pointer-events:none}
.crop-hit{position:absolute;bottom:32px;left:calc(50% - 17px);width:34px;height:28px;border-radius:45%;pointer-events:auto}
.plot .emoji.crop{display:grid;place-items:end center;font-size:45px;line-height:1}
.seed-card .emoji{height:44px;display:grid;place-items:center;font-size:31px}
.scarecrow{z-index:511}
.pair-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.pair-column{grid-template-columns:1fr}
.build-prompt{font-size:20px;font-weight:850;text-align:center}
.build-target,.build-options{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;padding:8px;min-height:55px}
.build-target{background:#fffef5;border:2px dashed #b9caa3;border-radius:13px}
.build-target small{color:var(--muted)}
.pond-ripples{position:absolute;inset:0;pointer-events:none}
.pond-ripples i{position:absolute;left:305px;top:648px;width:50px;height:16px;border:2px solid #d0f7ffad;border-radius:50%;animation:ripple 4.5s ease-out infinite}
.pond-ripples i:nth-child(2){left:447px;top:666px;animation-delay:-2.8s}.pond-ripples i:nth-child(3){left:521px;top:711px;animation-delay:-1.5s}
@keyframes ripple{0%{opacity:0;scale:.25}17%{opacity:.8}78%,100%{opacity:0;scale:1.36}}
.farm-truck{position:absolute;top:0;left:0;width:69px;height:45px;pointer-events:none;offset-path:path("M -92 506 C 42 542 73 579 108 653 C 145 740 274 770 389 796 C 565 835 679 851 750 944 L 820 1030");offset-rotate:auto -7deg;animation:truck-ride 32s linear infinite -6s;filter:drop-shadow(2px 4px 2px #30272032)}
@keyframes truck-ride{0%{offset-distance:0}68%,100%{offset-distance:100%}}
@media (prefers-reduced-motion:reduce){.farm-truck,.pond-ripples{display:none}}

/* Farm controls: illustrated emblems and caps remain the same size as the map zooms. */
.hud-left,.hud-right{top:max(17px,env(safe-area-inset-top))}
.hud-left{left:max(20px,env(safe-area-inset-left));gap:13px}
.hud-right{right:max(19px,env(safe-area-inset-right));gap:9px}
.hud-row{gap:8px}
.level,.money,.small,.time{background:linear-gradient(#fffefa,#fff2d9);border:3px solid #fffdf4;box-shadow:0 4px #e5cda5,0 8px 20px #57412e35}
.level{gap:10px;min-width:215px;height:49px;padding:0 13px 0 52px}
.level-star{display:block;width:59px;height:59px;transform:translate(-10px,-50%) rotate(-8deg)}
.level-star svg{display:block;width:100%;height:100%;filter:drop-shadow(0 3px 2px #8c512f55)}
.level-star b{font-size:19px;transform:rotate(8deg) translateY(1px);color:#fff9e8;-webkit-text-stroke:3px #895027;paint-order:stroke fill}
.xp-track{height:9px;background:#ecdfc2;box-shadow:inset 0 1px 2px #9e7c4337;margin:0}
.xp-track i{background:linear-gradient(#b4e48a,#73b85b 76%,#62a451);box-shadow:inset 0 1px #d6f4ac}
.time{min-height:31px;padding:4px 11px;font-size:12px}
.money{height:44px;min-width:99px;padding:3px 14px 3px 4px;font-size:17px;gap:7px}
.hud-coin{width:34px;height:34px;margin-left:-2px;flex:none}
.hud-right .round{width:40px;height:40px;background:linear-gradient(#fffdf8,#faedd4);border:3px solid #fffdf5;color:#7b6246;box-shadow:0 4px #ddc4a0,0 7px 14px #5c473145}
.hud-right .round svg{width:25px;height:25px}
.hud-right .round.purple{background:radial-gradient(ellipse at 37% 22%,#e4c9ff,#ad8bdf 72%);color:#fff;box-shadow:0 4px #7d5cac,0 7px 14px #50336455}
.hud-right .round.purple svg{width:26px;height:26px}
.hud-right .small{min-height:31px;min-width:52px;justify-content:center;padding:1px 7px;font-size:13px;gap:4px}
.hud-right .small svg{width:23px;height:23px}
.hud-right .small:last-child svg{width:29px;height:28px;margin-left:-5px}
.streak-button:hover{background:#fff5de;border-color:#ffe9c6}
.streak-button:not(.has-streak) svg{filter:grayscale(.85);opacity:.72}
.course-streak{display:flex;align-items:center;gap:10px;margin:0 0 17px;padding:9px 12px;background:#fff1dc;border:2px solid #fffcf3;border-radius:15px;color:#7b4c25;box-shadow:0 2px #ebcea1}
.course-streak svg{width:28px;height:28px;flex:none}
.course-streak strong{font-size:13px}.course-streak p{margin:2px 0 0;font-size:12px;line-height:1.35}
#toolbar{--dock-w:89px;--dock-h:79px;bottom:max(23px,calc(env(safe-area-inset-bottom) + 15px));gap:11px}
.dock{--dock-top:#caeeff;--dock-bottom:#74badf;--dock-base:#478bb7;--dock-cap:#649fd6;width:var(--dock-w);height:var(--dock-h);border:3px solid #fffdf5;border-radius:22px;padding:0;display:block;background:linear-gradient(var(--dock-top),var(--dock-bottom));box-shadow:0 5px 0 var(--dock-base),0 8px 18px #3a2b204f;color:#fff;isolation:isolate}
.dock.barn{--dock-top:#fff1b6;--dock-bottom:#f0ab62;--dock-base:#b3743a;--dock-cap:#df974c;background:linear-gradient(var(--dock-top),var(--dock-bottom));box-shadow:0 5px 0 var(--dock-base),0 8px 18px #3a2b204f}
.dock.orders{--dock-top:#d0f7dd;--dock-bottom:#76c7aa;--dock-base:#4e9078;--dock-cap:#66ad90;background:linear-gradient(var(--dock-top),var(--dock-bottom));box-shadow:0 5px 0 var(--dock-base),0 8px 18px #3a2b204f}
.dock.shop{--dock-top:#ffdaea;--dock-bottom:#f291b6;--dock-base:#ba5b81;--dock-cap:#e27da6;background:linear-gradient(var(--dock-top),var(--dock-bottom));box-shadow:0 5px 0 var(--dock-base),0 8px 18px #3a2b204f}
.dock::before{content:"";position:absolute;inset:2px;border-radius:15px;border:1px solid #fff9;pointer-events:none;z-index:-1}
.dock .dock-art{display:grid;place-items:center;position:absolute;inset:-6px 1px 9px;filter:none}
.dock .dock-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 2px #4a36283e);transition:transform .16s}
.dock:hover .dock-art img{transform:translateY(-3px) scale(1.05)}
.dock b{position:absolute;bottom:-11px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% + 8px);min-width:66%;padding:4px 9px;background:var(--dock-cap);border:2px solid #fffdf1;border-radius:20px;box-shadow:0 2px 0 var(--dock-base);font-size:12px;text-shadow:0 1px #48363185}
.dock i{top:-7px;right:-6px;width:23px;height:23px;border-width:2px;z-index:2}
#seed-tray{bottom:max(124px,calc(env(safe-area-inset-bottom) + 108px))}
#avatar{width:48px;height:72px;transition:none}
#actors{position:absolute;inset:0;pointer-events:none}
.actor,#avatar{left:0;top:0;transform:none}
.actor .actor-body,#avatar .actor-body{position:absolute;inset:0;display:block;pointer-events:none;transform-origin:center bottom}
.actor .sprite,#avatar .sprite{width:100%;height:100%;object-fit:contain;object-position:center bottom;transform:scaleX(var(--facing,1));filter:none;animation:none}
.actor.villager .sprite{transform:scaleX(calc(var(--facing,1) * var(--idle-face,1)))}
.actor:hover .sprite{scale:none}
.actor .foot-shadow,#avatar .foot-shadow{position:absolute;bottom:-3px;left:14%;right:14%;height:10px;border-radius:50%;background:#463b332c;filter:blur(1.6px);pointer-events:none}
.actor.animal{width:62px;height:57px}.actor.animal.hen{width:42px;height:47px}.actor.animal.pig{width:56px;height:48px}
.actor.villager{width:48px;height:66px}
.actor .bubble{top:3px;box-shadow:0 2px #c7a76d67}
.actor .chat-bubble{font-size:12px;color:#6a5397;background:#f8eeff;min-width:28px;min-height:23px}
.actor[data-moving=true] .actor-body,#avatar[data-moving=true] .actor-body{animation:footstep .28s ease-in-out infinite}
.actor.animal[data-moving=false] .actor-body{animation:grazing 2.3s ease-in-out infinite alternate}
.actor.animal:nth-child(2n) .actor-body{animation-delay:-.8s}
.actor.milo .actor-body{filter:hue-rotate(24deg) saturate(.9)}
.actor.is-target .actor-body{filter:drop-shadow(0 0 2px #fff9c9) drop-shadow(0 0 5px #ffe49b)}
@keyframes footstep{0%,100%{translate:0 0;rotate:-2deg}50%{translate:0 -3px;rotate:2deg}}
@keyframes grazing{0%,60%{scale:1 1}100%{scale:1.035 .94;rotate:-1deg}}
.walk-sheet{display:none;position:absolute;inset:0;background-repeat:no-repeat;background-size:400% 100%;background-position:var(--step,0%) center;transform:scaleX(var(--facing,1));pointer-events:none}
.walk-nora{background-image:url(art/walk-nora.png)}.walk-oliver{background-image:url(art/walk-oliver.png)}.walk-lina{background-image:url(art/walk-lina.png)}
.actor[data-moving=true] .walk-sheet,#avatar[data-moving=true] .walk-sheet{display:block}
.actor[data-moving=true] .actor-body:has(.walk-sheet)>.sprite,#avatar[data-moving=true] .actor-body>.sprite{visibility:hidden}
.farm-truck{width:65px;height:42px;--car-light:#ffd887;--car-body:#efb44c;--car-dark:#d88833;offset-rotate:auto -3deg;animation:truck-ride 23s linear infinite}
.farm-truck.outbound{offset-path:path("M -75 533 C 20 565 57 598 77 649 C 99 709 104 738 239 777 C 381 815 564 813 704 955 L 755 1010")}
.farm-truck.inbound{offset-rotate:auto 177deg;offset-path:path("M 806 1011 C 725 876 662 827 536 792 C 407 755 223 735 167 690 C 116 647 133 588 60 553 C 19 533 -27 527 -74 503")}
.farm-truck.honey{animation-delay:-4.4s}
.farm-truck.sky{--car-light:#c7edff;--car-body:#73bbdc;--car-dark:#4b8eaf;width:59px;animation-delay:-13.8s}
.farm-truck.berry{--car-light:#ffd1d8;--car-body:#e69baa;--car-dark:#bc667c;width:56px;animation-delay:-16.2s}
.farm-truck.mint{--car-light:#d0f3c0;--car-body:#83c99b;--car-dark:#599577;animation-delay:-1.7s}
@keyframes truck-ride{0%{offset-distance:0%}72%,100%{offset-distance:100%}}
#viewport{cursor:url(art/cursor-arrow.svg) 3 1,default}
#viewport.aiming,#viewport.aiming button,#viewport.aiming .tile-top,#viewport.aiming .crop-hit{cursor:url(art/cursor-hand.svg) 18 2,pointer}
#viewport.dragging,#viewport.dragging button,#viewport.dragging .tile-top,#viewport.dragging .crop-hit{cursor:grabbing}
#map-hint{position:absolute;left:0;top:0;z-index:3;pointer-events:none;white-space:nowrap;background:linear-gradient(#fffdf3,#ffefd2);border:2px solid #fffbec;border-radius:12px;box-shadow:0 2px #bd996e,0 5px 12px #50423043;padding:4px 9px;font-size:12px;font-weight:850}
.plot.is-target .tile-top{stroke:#fff3bf;stroke-width:4;filter:brightness(1.08)}
.tap-mark{position:absolute;width:32px;height:17px;border:2px solid #ffffd7;box-shadow:0 0 6px #fff6b4;border-radius:50%;animation:tap-mark .52s both}
@keyframes tap-mark{from{transform:translate(-50%,-50%) scale(.45);opacity:1}to{transform:translate(-50%,-50%) scale(1.65);opacity:0}}
@media (max-width:750px){
 .hud-left,.hud-right{top:max(11px,env(safe-area-inset-top));gap:8px}.hud-left{left:11px}.hud-right{right:11px}.hud-row{gap:5px}
 .level{min-width:146px;height:41px;gap:6px;padding:0 8px 0 38px}.level-star{width:47px;height:47px;transform:translate(-8px,-50%) rotate(-8deg)}.level-star b{font-size:15px;-webkit-text-stroke-width:2.5px}#level-label,#xp-text{font-size:9px}.level-progress{gap:4px}.xp-track{height:7px}.time{font-size:11px;min-height:25px;padding:3px 7px}
 .money{min-width:70px;height:36px;padding-right:8px;font-size:15px;gap:4px}.hud-coin{width:27px;height:27px}.hud-right .round{width:34px;height:34px;border-width:2px}.hud-right .round svg{width:21px;height:21px}
 .hud-right .small{min-width:42px;min-height:26px;font-size:11px;padding:1px 5px}.hud-right .small svg{width:18px;height:18px}.hud-right .small:last-child svg{width:22px;height:22px}
 #toolbar{--dock-w:72px;--dock-h:64px;gap:9px;bottom:max(23px,calc(env(safe-area-inset-bottom) + 17px))}.dock{border-radius:17px}.dock b{font-size:11px;padding:3px 7px}.dock i{width:20px;height:20px}
 #quest{top:76px}#toast{top:122px}#seed-tray{bottom:max(105px,calc(env(safe-area-inset-bottom) + 94px))}
}
@media (max-width:390px){
 .level{min-width:121px;padding:0 5px 0 34px}.level-star{width:42px;height:42px;transform:translate(-7px,-50%) rotate(-8deg)}.money{min-width:62px}.hud-right .round{width:32px;height:32px}
 #toolbar{--dock-w:66px;--dock-h:61px;gap:8px}
}
@media (hover:none){#map-hint{display:none}}
@media (prefers-reduced-motion:reduce){.actor .actor-body,#avatar .actor-body{animation:none!important}}
.voice-preview{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:9px 0 3px}
.voice-preview small{font-size:11px;color:var(--muted);font-weight:650}

.farm-truck.inbound svg{transform:scaleX(-1)}
.map-art,#traffic{
 mask-image:linear-gradient(to right,transparent,#000 24px,#000 calc(100% - 24px),transparent),linear-gradient(to bottom,transparent,#000 18px,#000 calc(100% - 25px),transparent);
 mask-composite:intersect;
}
#traffic{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.market-spot{width:max(163px,var(--market-hit,0px));height:max(146px,var(--market-hit,0px))}
.market-spot .map-label{transform:translateX(-50%) scale(var(--market-sign-scale,1));transform-origin:center bottom}

/* Village conversation */
.panel-chat{width:min(100%,566px)}
.panel-chat .panel-body{padding:39px 23px 23px}
.chat-intro{display:grid;grid-template-columns:120px minmax(0,1fr);gap:13px;align-items:center}
.chat-stage{height:130px;position:relative;isolation:isolate}
.chat-stage-glow,.chat-shadow{position:absolute;z-index:-1;pointer-events:none}
.chat-stage-glow{inset:17px 3px 7px;background:radial-gradient(ellipse,#ffdf9c83,transparent 71%)}
.chat-shadow{bottom:5px;left:29%;width:46%;height:9px;border-radius:50%;background:#61432524;filter:blur(1px)}
.chat-actor{position:absolute;inset:0 2px 6px;transform-origin:center 94%;animation:chat-arrive .42s cubic-bezier(.22,.75,.28,1.13) both}
.chat-portrait{width:100%;height:100%;object-fit:contain;object-position:center bottom;transform-origin:center 91%;animation:chat-idle 3.5s ease-in-out infinite}
.chat-portrait.milo{filter:hue-rotate(24deg) saturate(.9)}
.chat-sparkle{position:absolute;right:3px;top:17px;color:#e9a43c;font-size:28px;opacity:0;pointer-events:none;text-shadow:0 2px #fff4b8}
.chat-bubble-card{position:relative;align-self:center;background:linear-gradient(#f5fbff,#e8f6fc);border:2px solid #b7deef;border-radius:22px 22px 22px 8px;box-shadow:0 3px #c3dfea7d;padding:12px 13px 11px;min-width:0;color:#245e7b;animation:chat-bubble-in .3s .065s cubic-bezier(.22,.7,.32,1) both}
.chat-bubble-card::before{content:"";position:absolute;left:-9px;bottom:15px;width:13px;height:13px;border:solid #b7deef;border-width:0 0 2px 2px;background:#ebf7fc;transform:rotate(45deg);border-radius:1px}
.chat-bubble-top{display:flex;align-items:center;gap:8px;min-height:17px}
.chat-bubble-top h3{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#447c9a}
.chat-line{display:flex;align-items:center;justify-content:space-between;gap:9px}
.chat-line p{margin:4px 0;font-size:clamp(18px,3.8vw,25px);line-height:1.15;font-weight:950;overflow-wrap:anywhere}
.chat-line .voice-btn{flex:none;display:grid;place-items:center;width:42px;height:42px;padding:0;border-radius:50%;background:linear-gradient(#a1e0f7,#50b7e3);border:2px solid white;box-shadow:0 4px #439fc3,0 6px 13px #4e839c49;color:white;font-size:19px;transition:translate .15s}
.chat-line .voice-btn svg{width:25px;height:25px}
.chat-line .voice-btn:hover{translate:0 -2px}.chat-line .voice-btn:active{translate:0 2px}
.chat-meaning{border:0;background:none;color:#247eac;padding:5px 0 0;text-align:left;font-size:13px;font-weight:850;text-decoration:underline;text-underline-offset:2px}
.chat-translation{margin:6px 0 0;color:#467890;font-size:14px;font-weight:650;line-height:1.27}
.chat-wave{display:flex;gap:2px;align-items:center;height:14px;opacity:0;transition:opacity .15s}
.chat-wave i{width:2.5px;height:9px;background:#359aca;border-radius:3px;transform:scaleY(.55)}
#overlay[data-speaking=true] .chat-wave{opacity:1}
#overlay[data-speaking=true] .chat-wave i{animation:chat-wave .44s ease-in-out infinite alternate}
#overlay[data-speaking=true] .chat-wave i:nth-child(2){animation-delay:-.23s}
#overlay[data-speaking=true] .chat-wave i:nth-child(3){animation-delay:-.08s}
#overlay[data-speaking=true] .chat-portrait{animation:chat-talk .76s ease-in-out infinite}
.chat-instruction{color:var(--muted);font-weight:800;font-size:14px;margin:14px 0 9px}
.chat-answers{grid-template-columns:1fr;gap:9px;margin:0}
.chat-answers button{min-height:48px;padding:10px 14px;text-align:left;font-size:17px;transition:background .18s,border-color .18s,translate .15s,opacity .18s}
.chat-answers button:hover:not(:disabled){translate:0 -1px;border-color:#d6b985;background:#fff7e5}
.chat-answers button.wrong{animation:chat-retry .27s ease-out}
.chat-answers button.correct{animation:chat-choice .36s cubic-bezier(.22,.72,.35,1.2)}
.chat-feedback{margin:0;color:#945239;font-size:13px;font-weight:800}
.chat-feedback:not(:empty){margin-top:10px}
.chat-result{margin-top:16px;background:#eef9e6;border:2px solid #b4dca4;border-radius:16px;padding:12px;animation:chat-bubble-in .28s ease-out both}
.chat-result-copy{display:flex;align-items:flex-start;gap:10px}
.chat-result strong{display:block;color:#3d8b3e;font-size:17px}
.chat-result p{margin:3px 0 7px;color:#53734a;font-size:13px;font-weight:750}
.chat-check{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#68b961;color:#fff;font-size:22px;font-weight:950}
.chat-rewards,.chat-rewards span{display:flex;align-items:center;gap:5px;font-weight:950;color:#876121}.chat-rewards{gap:11px}
.chat-rewards svg{width:20px;height:20px}
.chat-result .game-btn{width:100%;margin-top:9px;min-height:40px;font-size:15px}
.chat-detail[data-reaction=correct] .chat-actor{animation:chat-celebrate .64s cubic-bezier(.18,.64,.28,1.13) both}
.chat-detail[data-reaction=correct] .chat-sparkle{animation:chat-sparkle .72s ease-out both}
@keyframes chat-arrive{from{opacity:0;transform:translate(-8px,11px) scale(.89)}to{opacity:1;transform:none}}
@keyframes chat-bubble-in{from{opacity:0;transform:translateY(6px) scale(.975)}to{opacity:1;transform:none}}
@keyframes chat-idle{0%,100%{transform:rotate(-1deg)}50%{transform:translateY(-2px) rotate(1.3deg) scaleY(1.012)}}
@keyframes chat-talk{0%,100%{transform:rotate(-1.2deg)}32%{transform:translateY(-3px) rotate(2deg) scaleY(1.025)}66%{transform:translateY(-1px) rotate(.8deg)}}
@keyframes chat-wave{to{transform:scaleY(1.45)}}
@keyframes chat-celebrate{0%,100%{transform:none}17%{transform:translateY(3px) scale(1.06,.94)}47%{transform:translateY(-15px) rotate(-5deg) scale(.98,1.06)}73%{transform:translateY(-3px) rotate(3deg)}}
@keyframes chat-sparkle{0%,100%{opacity:0;transform:translate(-3px,4px) scale(.5)}30%{opacity:1;transform:translate(7px,-7px) scale(1.18)}}
@keyframes chat-choice{0%,100%{transform:none}44%{transform:scale(1.015)}}
@keyframes chat-retry{0%,100%{transform:none}30%{transform:translateX(-3px)}65%{transform:translateX(3px)}}

/* Award icons travel above dialogs and finish at the actual HUD counters. */
#reward-fx{position:absolute;inset:0;z-index:24;pointer-events:none;overflow:hidden}
.reward-token{position:absolute;top:0;left:0;width:45px;height:45px;opacity:0;filter:drop-shadow(0 4px 3px #49332e66);will-change:transform,opacity}
.reward-token.blue-star{width:43px;height:43px}.reward-token svg{width:100%;height:100%}
#hud.rewards-in-flight{z-index:auto}
#hud.rewards-in-flight :is(.hud-left,#quest,#toolbar,.map-tip){z-index:4}
#hud.rewards-in-flight .hud-right{z-index:11}

/* Settings: only the card body scrolls. */
.panel-settings{width:min(100%,536px);max-height:min(570px,calc(100dvh - 64px))}
.panel-settings .panel-body{padding-top:37px;scrollbar-gutter:stable;overscroll-behavior:contain}
.save-card{position:relative;overflow:hidden;background:linear-gradient(150deg,#fcfff3,#f4fbe9);border:2px solid #bbd99a;border-radius:18px;box-shadow:0 4px #c6dda6;padding:11px 12px 13px;margin-bottom:17px}
.save-card::before{content:"";position:absolute;pointer-events:none;right:-35px;top:-41px;width:119px;height:119px;border-radius:50%;background:#e0f2d3}
.save-card-head{display:grid;grid-template-columns:66px minmax(0,1fr);align-items:center;gap:9px;position:relative}
.save-card-head strong{color:#487f3f;font-size:16px}
.save-card-head p{font-size:12px;font-weight:700;color:var(--muted);margin:5px 0}
.save-hen{width:64px;height:66px;position:relative}.save-hen .sprite{width:100%;height:100%;transform-origin:50% 90%;animation:save-hen-peck 3.3s ease-in-out infinite;filter:drop-shadow(0 3px 2px #9a74514d)}
.save-hen i{position:absolute;top:2px;right:0;color:#dfa751;font-style:normal;font-size:15px;animation:save-hen-glint 2s ease-in-out infinite alternate}
.save-hen i:last-child{right:auto;left:1px;top:12px;animation-delay:-.7s}
.save-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:9px}
.save-actions .game-btn{flex:1;min-height:34px}
.save-message,.save-details{font-size:12px;line-height:1.3;font-weight:750;margin:10px 0 0;color:#805831}
.save-review{border-top:1px dashed #bbd99a;margin-top:12px;padding-top:2px}
@keyframes save-hen-peck{0%,74%,100%{transform:none}82%{transform:translateY(-4px) rotate(7deg) scaleY(1.04)}90%{transform:translateY(2px) rotate(-8deg) scaleY(.96)}}
@keyframes save-hen-glint{from{opacity:.2;transform:scale(.66)}to{opacity:1;transform:scale(1.08)}}

@media (max-width:520px){
 .panel-chat .panel-body{padding:34px 13px 16px}
 .chat-intro{grid-template-columns:81px minmax(0,1fr);gap:9px}
 .chat-stage{height:104px}.chat-bubble-card{padding:9px 10px}.chat-line .voice-btn{width:34px;height:34px;font-size:15px}
 .chat-answers button{font-size:15px;min-height:45px}.chat-instruction{margin-top:11px}
 .panel-settings .panel-body{padding-top:34px}
}
@media (prefers-reduced-motion:reduce){
 .chat-actor,.chat-portrait,.chat-bubble-card,.chat-result,.chat-sparkle,.chat-wave i,.save-hen .sprite,.save-hen i{animation:none!important}
}

.cloud-controls{display:grid;gap:7px;margin:10px 0;color:var(--ink)}
.cloud-actions,.cloud-choices{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.cloud-choices>div{display:grid;gap:5px}
.cloud-controls small,.cloud-controls p{font-size:12px;font-weight:700;line-height:1.35}
.welcome-import{max-width:min(360px,90vw);margin:7px auto;color:var(--ink)}
.title-stack .cloud-controls small,.title-stack .cloud-controls p,.welcome-import .save-review,.welcome-import .save-message{background:#fffcf3;border-radius:12px;padding:8px}
.title-stack .cloud-actions,.title-stack .cloud-choices{justify-content:center}
