:root{--cream:#fff6e2;--cream2:#fbeccc;--panel:#fff6e2f2;--text:#3b2a1c;--wood:#8a5a32;--wood2:#6b4426;--leaf:#4f8a3a;--leaf2:#6fae4a;--gold:#f2b632;--shadow:0 3px 0 #6b442633,0 6px 18px #2a1a0a22;--r:16px}html,body{margin:0;height:100%;overflow:hidden;background:#87bde0;font-family:Arial Rounded MT Bold,PingFang TC,Microsoft JhengHei,Noto Sans TC,Noto Sans CJK TC,sans-serif;color:var(--text)}#app canvas{display:block;touch-action:none}#hud{position:fixed;inset:0;pointer-events:none;font-size:14px}#hud button{font:inherit;color:inherit}.card{position:absolute;background:var(--panel);border:2px solid #e8cf9f;border-radius:var(--r);box-shadow:var(--shadow);backdrop-filter:blur(2px)}.tag{position:absolute;background:var(--panel);border:2px solid #e8cf9f;border-radius:999px;padding:6px 14px;font-weight:700;box-shadow:var(--shadow)}.pill{position:absolute;display:flex;align-items:center;gap:6px;background:linear-gradient(#fff9ea,#f7e6c2);border:2px solid #e2c48c;border-radius:999px;padding:4px 14px 4px 6px;font-weight:800;box-shadow:var(--shadow)}#hPlayer{left:12px;top:12px;display:flex;align-items:center;gap:10px;padding:8px 14px 8px 8px;min-width:230px}#hPlayer .avatar{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;font-size:32px;background:radial-gradient(circle at 40% 35%,#fff,#ffe1a8);border:3px solid #d9a94e;box-shadow:inset 0 -3px #0001}#hPlayer .pinfo{display:flex;flex-direction:column;gap:3px;min-width:150px}#hPlayer b{font-size:15px}#hPlayer small{font-size:12px;color:#6b5236}.bar{height:9px;border-radius:9px;background:#00000018;overflow:hidden;box-shadow:inset 0 1px 2px #0002}.bar i{display:block;height:100%;border-radius:9px;transition:width .4s}.bar.energy i{background:linear-gradient(#ff8b7a,#e4523f)}.bar.mood i{background:linear-gradient(#7fd1ff,#3e9fe0)}#hQuest{left:12px;top:92px;width:236px;padding:6px 10px 8px;pointer-events:auto}#hQuestHead{all:unset;cursor:pointer;display:block;font-weight:800;font-size:14px;padding:2px 0;color:#7a4a1c}#hQuestHead span{font-size:12px;color:#8a6a46}#workGuide{font-size:12px;line-height:1.35;background:#fff1c9;border-radius:10px;padding:5px 8px;margin:4px 0;color:#5a4128}#hQuestList{list-style:none;margin:2px 0 0;padding:0;font-size:12.5px;line-height:1.75}#hQuestList li{display:flex;align-items:center;gap:6px}#hQuestList li.done{color:#4f8a3a}#hQuestList .chk{display:inline-grid;place-items:center;width:15px;height:15px;border-radius:4px;border:2px solid #c9a46a;background:#fff;font-size:10px;color:#fff}#hQuestList li.done .chk{background:#5aa043;border-color:#4b8a36}#hQuest.collapsed #hQuestList,#hQuest.collapsed #workGuide{display:none}#hClock{right:12px;top:12px;display:flex;align-items:center;gap:8px;padding:6px 14px 6px 10px}#hClock #hWx{font-size:26px}#hClock div{display:flex;flex-direction:column;line-height:1.1}#hClock small{font-size:12px;color:#6b5236}#hClock b{font-size:22px;letter-spacing:.5px}#hCoins{right:12px;top:72px}#hCoins .coin{font-size:20px}#hCoins b{font-size:17px;min-width:44px;text-align:right}#hMapWrap{position:absolute;right:12px;top:112px;width:132px;height:132px;border-radius:50%;background:#f5e3bd;border:4px solid #e2c48c;box-shadow:var(--shadow)}#hMap{width:100%;height:100%;border-radius:50%;display:block}#hMapWrap .n{position:absolute;top:-6px;left:50%;transform:translate(-50%);background:#c9503e;color:#fff;font-size:11px;font-weight:800;border-radius:8px;padding:0 5px}#animalInfoSlot{position:absolute;right:12px;top:256px;width:220px}#animalInfo{position:static!important;display:block;padding:8px 10px;font-size:12.5px;line-height:1.45;color:#3b2a1c}#hToast{position:absolute;left:50%;top:14px;transform:translate(-50%);display:flex;flex-direction:column;gap:6px;align-items:center;max-width:46vw}.toast{background:#3d5f34ee;color:#fff;font-weight:700;padding:7px 16px;border-radius:999px;box-shadow:0 3px #0003;font-size:14px;text-align:center;animation:pop .25s ease-out}@keyframes pop{0%{transform:scale(.85);opacity:0}to{transform:none;opacity:1}}#hPrompt{left:50%;bottom:108px;transform:translate(-50%);font-size:16px;padding:7px 18px 7px 8px;white-space:nowrap;display:flex;align-items:center;gap:8px}#hPrompt .key{display:inline-grid;place-items:center;width:26px;height:26px;background:linear-gradient(#ffe08a,#f2b632);border-radius:8px;box-shadow:0 2px #a8741d;color:#5a3a12}#hHint{position:absolute;left:50%;bottom:3px;transform:translate(-50%);font-size:12px;color:#fff;text-shadow:0 1px 2px #0008;white-space:nowrap;transition:opacity 1.5s}#hHint.faded{opacity:0}#workTools{position:absolute;left:50%;bottom:26px;transform:translate(-50%);display:flex;align-items:flex-end;gap:6px;padding:7px 10px;pointer-events:auto;background:linear-gradient(#a8743f,#8a5a32);border:3px solid #6b4426;border-radius:20px;box-shadow:0 4px #4a2c14,0 10px 24px #0004}#workTools button,.slot{position:relative;display:grid;place-items:center;width:58px;height:58px;padding:0;border:2px solid #e7cf9e;border-radius:13px;background:linear-gradient(#fffaf0,#f6e3bd);box-shadow:inset 0 -3px #d9b97c;cursor:pointer;touch-action:manipulation}#workTools button .ic,.slot .ic{font-size:26px;line-height:1;margin-top:-8px}#workTools button em,.slot em{position:absolute;bottom:2px;left:0;right:0;font-style:normal;font-size:10.5px;font-weight:800;color:#6b4426;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#workTools kbd{position:absolute;top:-7px;left:-5px;font:800 10px/1 inherit;font-family:inherit;background:#6b4426;color:#ffe9b8;border-radius:6px;padding:3px 5px}.slot .n,#workTools button .n{position:absolute;top:2px;right:4px;font-size:11px;font-weight:800;color:#4a2c14;text-shadow:0 0 3px #fff}#workTools button[aria-pressed=true]{background:linear-gradient(#fff3c4,#ffd76a);border-color:#fff4cf;box-shadow:0 0 0 3px #ffcf3a,inset 0 -3px #d9a33c;transform:translateY(-4px)}#workTools button:hover{filter:brightness(1.05)}#workTools .sep{width:2px;align-self:stretch;margin:4px 2px;background:#6b442688;border-radius:2px}#itemSlots{display:flex;gap:6px}.slot.item{cursor:default;background:linear-gradient(#fdf5e2,#eedcb6)}.slot.empty{opacity:.6}#hMenu,#hDog{position:absolute;bottom:24px;display:flex;gap:8px;pointer-events:auto}#hMenu{left:14px}#hDog{right:14px}.round,#hud .round{position:relative;width:58px;height:58px;border-radius:50%;border:3px solid #e7cf9e;background:radial-gradient(circle at 45% 35%,#fffaf0,#f1dcae);box-shadow:0 3px #b88d4c,0 6px 14px #0003;display:grid;place-items:center;cursor:pointer;padding:0;color:#4a2c14}.round .ic{font-size:24px;margin-top:-10px}.round em{position:absolute;bottom:-15px;left:50%;transform:translate(-50%);font-style:normal;font-size:11.5px;font-weight:800;color:#fff;text-shadow:0 1px 2px #000a,0 0 3px #0006;white-space:nowrap}.round[aria-pressed=true]{background:radial-gradient(circle at 45% 35%,#fff7d1,#ffd76a);border-color:#fff4cf;box-shadow:0 0 0 3px #ffcf3a,0 3px #b88d4c}#hBag{left:14px;bottom:104px;width:320px;max-height:46vh;overflow:auto;padding:10px 12px;pointer-events:auto}#hBag h3{margin:2px 0 8px;font-size:15px;color:#7a4a1c}#hBag h3 small{font-size:12px;color:#8a6a46}#hBag p{font-size:12.5px;margin:4px 0}#hBag .grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}#hBag .slot{width:auto;height:58px}#loading{position:fixed;inset:0;display:grid;place-items:center;background:radial-gradient(circle at 50% 30%,#fff3cf,#bfe3a0 55%,#7fbf63);z-index:5;transition:opacity .5s}#loading .box{background:var(--cream);padding:24px 34px;border-radius:24px;border:4px solid #d9b56a;min-width:300px;text-align:center;box-shadow:0 6px #a8743f,0 20px 50px #0003}#loading .logo{font-size:40px}#loading h1{margin:4px 0 10px;font-size:28px;color:var(--wood2)}#loading .bar{height:14px;background:#ead9b5;border-radius:8px;overflow:hidden;margin-top:12px}#loading .bar i{display:block;height:100%;width:0;background:linear-gradient(#9be06a,#5aa043);transition:width .3s}#rotateHint{display:none}@media (orientation:portrait) and (pointer:coarse){#rotateHint{display:block;position:fixed;top:45%;left:10%;right:10%;padding:20px;text-align:center;background:var(--cream);border-radius:16px;font-weight:700;z-index:9}}#controlSettings,#stockPanel{background:var(--cream)!important;border:3px solid #e2c48c;box-shadow:0 5px #b88d4c,0 16px 40px #0004!important;color:var(--text)!important;font-family:inherit!important;border-radius:20px!important}#controlSettings h2,#stockPanel h2{margin:0 0 6px;color:var(--wood2)}#controlSettings button,#stockPanel button,#sleepChoice button{background:linear-gradient(#6fae4a,#4f8a3a)!important;border:0!important;border-radius:12px!important;color:#fff!important;font-weight:800;box-shadow:0 3px #2f5a22;padding:10px 14px!important;margin:4px!important;cursor:pointer}#sleepChoice>div{background:var(--cream)!important;border:3px solid #e2c48c;box-shadow:0 5px #b88d4c,0 16px 40px #0004!important;font-family:inherit!important;border-radius:22px!important}input[type=range]{accent-color:#5aa043}@media (pointer:coarse),(max-height:500px){#hud{font-size:12px}#hPlayer{left:8px;top:6px;min-width:0;padding:4px 10px 4px 4px;gap:6px}#hPlayer .avatar{width:36px;height:36px;font-size:21px;border-width:2px}#hPlayer .pinfo{min-width:110px;gap:2px}#hPlayer b{font-size:12px}#hPlayer small{display:none}#hPlayer .bar{height:6px}#hPlayer .bar.mood{display:none}#hQuest{top:56px;left:8px;width:auto;max-width:210px;padding:2px 8px}#hQuestHead{font-size:12px}#hQuest:not(.collapsed){max-height:52vh;overflow:auto}#hClock{right:8px;top:6px;padding:3px 10px 3px 6px}#hClock #hWx{font-size:18px}#hClock b{font-size:16px}#hClock small{font-size:10px}#hCoins{right:8px;top:48px;padding:2px 10px 2px 4px}#hCoins b{font-size:13px}#hCoins .coin{font-size:15px}#hMapWrap{right:8px;top:80px;width:84px;height:84px;border-width:3px}#animalInfoSlot{top:170px;right:8px;width:170px}#animalInfo{font-size:10.5px;padding:5px 7px}#hHint{display:none}#workTools{bottom:8px;padding:4px 6px;gap:3px;border-radius:14px;border-width:2px}#workTools button,.slot{width:42px;height:42px;border-radius:10px}#workTools button .ic,.slot .ic{font-size:18px;margin-top:-6px}#workTools button em,.slot em{font-size:8.5px;bottom:1px}#workTools kbd{display:none}#itemSlots .slot:nth-child(n+3){display:none}#workTools .sep{margin:2px 0}#hMenu{inset:86px 100px auto auto;gap:6px}#hMenu .round{width:36px;height:36px;border-width:2px}#hMenu .round .ic{font-size:16px;margin-top:-4px}#hMenu .round em,#hDog{display:none}#hPrompt{bottom:62px;font-size:12px;padding:4px 12px 4px 5px}#hPrompt .key{width:20px;height:20px}#hToast{top:8px;max-width:50vw}.toast{font-size:11.5px;padding:4px 10px}#hBag{left:8px;bottom:62px;width:min(300px,60vw);max-height:60vh}#animalInfoSlot{display:none}}#farmShop{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:12px;background:#13251ca8;color:#294233;touch-action:auto}.shop-card{width:min(850px,100%);max-height:calc(100dvh - 24px);display:flex;flex-direction:column;border:2px solid #d1b37a;border-radius:18px;background:#fcf4df;box-shadow:0 14px 60px #0006;overflow:hidden}.shop-card header{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:14px 18px 6px}.shop-card h1{font-size:23px;margin:0}.shop-card header p{margin:5px 0;font-size:13px}.shop-card button,.shop-card select{font:inherit;min-height:44px;border:1px solid #aab89b;border-radius:9px;padding:7px 12px;background:#fff9eb;color:#2e4d36;cursor:pointer}.shop-card button:disabled{opacity:.5;cursor:default}.shop-card button:focus-visible,.shop-card select:focus-visible{outline:3px solid #d5962e;outline-offset:2px}.shop-card nav{display:flex;gap:7px;padding:6px 18px}.shop-card nav button[aria-pressed=true]{background:#486b4c;color:#fff}.shop-message{margin:4px 18px 10px;font-size:13px;min-height:20px;color:#506446}.shop-body{overflow:auto;padding:0 18px 16px;overscroll-behavior:contain}.shop-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.shop-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.shop-row,.shop-upgrade{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fffaf0;border:1px solid #e1d4b6;border-radius:12px;padding:12px}.shop-row strong{font-size:14px}.shop-row small{display:block;font-size:11px;line-height:1.6;color:#68765c}.shop-row button{font-size:12px;white-space:nowrap;background:#52744e;color:#fff}.shop-upgrade{margin-bottom:10px}.shop-upgrade h2{font-size:17px;margin:0}.shop-upgrade p{margin:6px 0;font-size:13px}@media (max-width:600px){.shop-list{grid-template-columns:1fr}.shop-card nav{padding:4px 10px}.shop-card nav button{font-size:12px;padding:6px}.shop-card header{padding:8px 10px}.shop-card h1{font-size:18px}.shop-body{padding:0 10px 10px}}@media (max-height:500px){.shop-card header{padding-top:8px}.shop-card nav{padding-top:2px}.shop-message{margin-bottom:5px}.shop-row{padding:6px 10px}.shop-row button{min-height:44px}}#farmShop{place-items:center end;background:#13251c30;padding:12px;box-sizing:border-box}.shop-card{width:min(780px,70vw);max-height:85dvh}.shop-row{margin-bottom:6px}.shipping-summary{background:#e3edcc;border-radius:12px;padding:12px;margin-bottom:12px}.shipping-summary h2{font-size:17px;margin:0}.shop-card nav{flex-wrap:wrap}@media (pointer:coarse){.shop-card{width:72vw;max-height:94dvh}.shop-list{grid-template-columns:1fr}.shop-card header{padding:6px 10px}.shop-card h1{font-size:17px}.shop-card nav{padding:4px 10px}.shop-card nav button{font-size:12px}.shop-body{padding:0 10px 10px}.shop-row{padding:6px}.shop-row button{padding:6px;font-size:11px}.shop-message{margin:3px 10px}.shop-card header p{font-size:11px}#workTools{gap:2px}#workTools button{min-width:40px;padding:4px;font-size:10px}}#hPrompt[hidden],#hBag[hidden]{display:none!important}#hud #hMenu #characterSettings{position:relative;right:auto;top:auto;z-index:auto;padding:0;width:58px;height:58px;border-radius:50%;border:3px solid #e7cf9e;background:radial-gradient(circle at 45% 35%,#fffaf0,#f1dcae);color:#4a2c14;font-size:inherit}@media (pointer:coarse),(max-height:500px){#hud #hMenu #characterSettings{width:36px;height:36px;border-width:2px}}#touchControls .tc{pointer-events:auto;touch-action:none;border:3px solid #e7cf9e;border-radius:50%;width:60px;height:60px;background:radial-gradient(circle at 45% 35%,#fffaf0,#f1dcae);color:#4a2c14;font:800 12px/1.1 inherit;font-family:inherit;box-shadow:0 3px #b88d4c,0 6px 14px #0003;display:grid;place-items:center;padding:0}#touchControls .tc span{font-size:20px;display:block}#touchControls .stick{border:3px solid #fff8!important;background:radial-gradient(circle,#ffffff30,#3d5f3455)!important;box-shadow:0 4px 18px #0003}@keyframes bump{0%{transform:translateY(-4px) scale(1)}35%{transform:translateY(-9px) scale(1.14)}70%{transform:translateY(-3px) scale(.97)}to{transform:translateY(-4px) scale(1)}}@keyframes bumpFlat{0%{transform:scale(1)}35%{transform:scale(1.18)}70%{transform:scale(.95)}to{transform:scale(1)}}#workTools button.bump{animation:bump .42s ease-out}.round.bump,.slot.bump{animation:bumpFlat .4s ease-out}#hCoins.bump{animation:bumpFlat .45s ease-out}#hCoins .coin{display:inline-block}#hCoins.bump .coin{animation:spin .6s ease-out}@keyframes spin{0%{transform:rotateY(0)}to{transform:rotateY(360deg)}}.coinFloat{position:absolute;right:10px;top:-6px;font-weight:900;font-size:16px;color:#3d8a2a;text-shadow:0 1px 0 #fff,0 0 6px #fff;pointer-events:none;animation:floatUp 1.3s ease-out forwards}.coinFloat.neg{color:#c9433a}@keyframes floatUp{0%{opacity:0;transform:translateY(8px)}15%{opacity:1}to{opacity:0;transform:translateY(-34px)}}.flyItem{position:fixed;z-index:20;font-size:34px;transform:translate(-50%,-50%) scale(.6);filter:drop-shadow(0 3px 2px #0005);transition:left .8s cubic-bezier(.5,-.3,.6,1),top .8s cubic-bezier(.2,-.9,.6,1),transform .8s ease-in;pointer-events:none;animation:popIn .25s ease-out}.flyItem.go{transform:translate(-50%,-50%) scale(.7)}@keyframes popIn{0%{transform:translate(-50%,-50%) scale(.1)}to{transform:translate(-50%,-50%) scale(.6)}}#hQuestList li.just{animation:taskDone .9s ease-out}#hQuestList li.just .chk{animation:chk .6s cubic-bezier(.3,1.8,.5,1)}@keyframes taskDone{0%{background:#fff3b0}to{background:transparent}}@keyframes chk{0%{transform:scale(0) rotate(-30deg)}to{transform:none}}#hPrompt:not([hidden]){animation:promptIn .22s ease-out}@keyframes promptIn{0%{opacity:0;transform:translate(-50%,10px) scale(.92)}to{opacity:1;transform:translate(-50%)}}.toast{animation:toastIn .35s cubic-bezier(.3,1.5,.5,1)}@keyframes toastIn{0%{opacity:0;transform:translateY(-12px) scale(.9)}to{opacity:1;transform:none}}#hMapWrap .n{animation:none}@media (prefers-reduced-motion:reduce){#workTools button.bump,.round.bump,.slot.bump,#hCoins.bump,.flyItem,.toast,#hPrompt:not([hidden]){animation:none!important;transition:none!important}}@media (max-width:1100px) and (pointer:fine){#workTools{gap:4px;padding:5px 7px}#workTools button,.slot{width:48px;height:48px}#workTools button .ic,.slot .ic{font-size:21px}#workTools button em,.slot em{font-size:9.5px}#itemSlots .slot:nth-child(n+3){display:none}#hMenu,#hDog{gap:5px;bottom:30px}.round,#hud .round,#hud #hMenu #characterSettings{width:44px;height:44px}.round .ic{font-size:19px;margin-top:-6px}.round em{font-size:10px;bottom:-14px}#hQuest{width:210px}#hPlayer{min-width:200px}}@media (max-width:900px) and (pointer:fine){#hDog{display:none}#hMenu{flex-direction:column;top:auto;left:12px;bottom:110px}}
