*{box-sizing:border-box} :root{font-family:ui-rounded,'Malgun Gothic','Apple SD Gothic Neo',sans-serif;color:#674a34;font-synthesis:none}body{margin:0;background:#283b37;display:flex;justify-content:center;overflow:hidden}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #416c55;outline-offset:2px}button:disabled{opacity:.5;cursor:default}button{border:0;color:inherit}#game{width:100%;max-width:480px;height:100dvh;min-height:520px;position:relative;overflow:hidden;background:#9bd1e4}.scene-bg{position:absolute;inset:0;background-size:100% 100%;background-position:center}.scene-bg.outing{filter:saturate(.9)}.scene-bg.sunset{filter:sepia(.3) saturate(1.2);}.scene-bg.sunset:after{content:'';position:absolute;inset:0;background:#e9ac8033}.topbar{position:absolute;top:calc(env(safe-area-inset-top) + 14px);left:15px;right:15px;z-index:20;display:flex;align-items:center;gap:10px}.topbar h1{margin:0;font-size:27px;letter-spacing:-1px;text-shadow:0 1px #fff5}.cream,.nav-icon,.coin,.state-pill{background:#fff8e7;border:1px solid #fff5;box-shadow:0 3px 0 #b5946b30}.nav-icon{height:43px;width:43px;border-radius:17px;font-size:27px;line-height:1;display:grid;place-items:center}.coin{margin-left:auto;border-radius:24px;padding:10px 14px;font-weight:800;font-size:17px;white-space:nowrap}.coin span{color:#e0a026;margin-right:6px}.state-pill{margin-left:auto;padding:8px 14px;border-radius:20px;font-size:13px;font-weight:800}.hotspot{position:absolute;background:transparent;z-index:8;border-radius:20px}.hotspot label{background:#fff9e9;box-shadow:0 3px 0 #80684928;border-radius:16px;padding:8px 15px;font-size:14px;font-weight:800;display:inline-block;pointer-events:none;white-space:nowrap}.hotspot label:after{content:'';position:absolute;border:6px solid transparent;border-top-color:#fff9e9;bottom:-11px;left:calc(50% - 6px)}.map-home{left:4%;top:16%;width:27%;height:18%}.map-home label{position:absolute;top:0;left:25%}.map-farm{right:2%;top:24%;width:36%;height:16%}.map-farm label{position:absolute;top:-8%;left:37%}.map-fishing{left:8%;top:40%;width:40%;height:18%}.map-fishing label{position:absolute;top:0;right:5%}.map-car{left:2%;top:65%;width:23%;height:13%}.map-car label{position:absolute;top:0;left:0}.map-donation{left:20%;top:71%;width:20%;height:11%}.map-donation label{position:absolute;top:0;left:0}.face-marker{position:absolute;width:44px;height:44px;background:#f9b2b6;border:4px solid #fff9ed;border-radius:50%;z-index:12;box-shadow:0 3px 9px #725b5444;font-size:22px;display:grid;place-items:center;pointer-events:none}.face-marker:after{content:'';position:absolute;bottom:-13px;border:6px solid transparent;border-top-color:#fff9ed}.bottom{position:absolute;bottom:calc(env(safe-area-inset-bottom) + 15px);left:14px;right:14px;display:flex;gap:8px;z-index:20}.action{flex:1;min-height:67px;border-radius:23px;border:2px solid #ffffff48;box-shadow:inset 0 -5px 0 #0000000a,0 4px 0 #77664725;color:#fffaf0;font-weight:800;font-size:17px;background:#f0837e;text-shadow:0 1px 0 #78553e20;padding:10px 5px}.action b{font-size:23px;display:block;font-weight:400;margin-bottom:4px}.action.gold{background:#f4b642}.action.green{background:#96bb78}.action:active{transform:translateY(2px)}.small-note{position:absolute;bottom:100px;left:50%;transform:translateX(-50%);padding:8px 15px;border-radius:20px;font-size:12px;font-weight:700;white-space:nowrap;z-index:12}.pet-on-scene{position:absolute;width:31%;left:56%;top:44%;padding:0;background:transparent;z-index:11;filter:drop-shadow(0 4px 2px #59401f25);transform-origin:50% 80%;animation:breathe 4.5s ease-in-out infinite}.pet-on-scene.home{width:32%;left:23%;top:43%}.pet-on-scene.farm{left:3%;top:34%;width:27%}.pet-art{width:100%;height:auto;display:block;overflow:visible}.pet-on-scene.rest{animation:rest 5s ease-in-out infinite}.pet-on-scene.stroll{animation:stroll 9s ease-in-out infinite}.pet-on-scene.peek{animation:peek 6s ease-in-out infinite}.pet-on-scene.roll{animation:roll 8s ease-in-out infinite}.pet-on-scene.secret{filter:drop-shadow(0 0 8px #fff3b4aa)}@keyframes breathe{50%{transform:translateY(-2px) scaleY(1.018)}}@keyframes rest{50%{transform:translateY(2px) rotate(-2deg)}}@keyframes stroll{50%{transform:translateX(14px) translateY(-2px)}}@keyframes peek{50%{transform:rotate(3deg) translateY(-3px)}}@keyframes roll{35%,65%{transform:rotate(-12deg) translateY(-2px)}}.bucket-world{position:absolute;left:49%;top:43%;font-size:33px;background:transparent;z-index:10;filter:drop-shadow(0 2px 0 #725b5460)}.ripple{position:absolute;left:84%;top:56%;width:35px;height:10px;border:1px solid #f0ffff88;border-radius:50%;animation:ripple 3s infinite;pointer-events:none}@keyframes ripple{to{transform:scale(1.8);opacity:0}}.furniture-art{display:inline-block;width:65px;aspect-ratio:1/1.25;background-image:url(assets/furniture-v1.webp);background-size:400% 500%;background-position:calc(var(--col)*100%/3) calc(var(--row)*100%/4);background-repeat:no-repeat}.world-decor{position:absolute;z-index:9;pointer-events:none;width:18%;aspect-ratio:1/1.25;filter:drop-shadow(0 3px 1px #49362320)}.world-decor.sway{animation:peek 6s infinite;transform-origin:50% 5%}.home-hot{position:absolute;top:34%;right:4%;width:31%;height:11%;background:transparent;z-index:10}.home-bowl{position:absolute;left:60%;top:40%;font-size:31px;background:transparent;z-index:10}.hint{position:absolute;top:13%;left:50%;transform:translateX(-50%);padding:9px 14px;font-size:12px;border-radius:18px;z-index:5;white-space:nowrap;background:#fff9e9dd}.plots{position:absolute;top:45%;left:12%;right:12%;height:27%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);gap:7px;z-index:7}.plot{position:relative;border-radius:46%;border:2px solid #a27943;background:repeating-linear-gradient(170deg,#a5804e 0 8px,#977046 9px 11px);box-shadow:0 2px 0 #5c6a3120;font-size:26px;display:flex;align-items:center;justify-content:center;min-height:35px}.plot.empty:after{content:'·';color:#ead4a4;font-size:35px}.plot.locked{opacity:.25;border:1px dashed #6b894d;background:#b1c378}.plot.dead{filter:grayscale(.9);opacity:.6}.plot .droplet{position:absolute;bottom:0;right:0;font-size:12px;color:#f6fcff;text-shadow:0 1px 2px #577857}.plot .ready-dot{position:absolute;top:0;right:0;background:#fff3c2;border-radius:50%;width:14px;height:14px;font-size:11px}.plot .emoji-icon{font-size:27px}.care-bg{background-image:url(assets/home-empty-v3.webp);background-size:150% 125%;background-position:center 5%;filter:blur(1px)}.care-shade{position:absolute;inset:0;background:linear-gradient(#faf2d155,#f0dfbb33)}.care-pet{position:absolute;top:32%;left:7%;width:86%;z-index:8;background:none;padding:0;animation:breathe 5s infinite;filter:drop-shadow(0 6px 3px #79553120)}.speech{position:absolute;left:7%;right:7%;top:15%;padding:19px 20px;background:#fff9e9f5;border:2px solid #d1b18b;border-radius:28px;z-index:10;box-shadow:0 3px 0 #82654215;font-size:18px;line-height:1.6;font-weight:700;min-height:104px;display:flex;flex-direction:column;justify-content:center}.speech:after{content:'';position:absolute;left:30%;bottom:-14px;border:8px solid transparent;border-top-color:#fff9e9}.speech small{font-size:11px;line-height:1.55;display:block;margin-top:5px;font-weight:400;color:#9a816b}.speech.hidden{visibility:hidden}.stats{position:absolute;left:5%;right:5%;bottom:119px;background:#fff8e9f5;border:1px solid #d7bb98;border-radius:25px;padding:14px 17px;z-index:15;box-shadow:0 3px 0 #81613922}.stat-row{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:800}.stat-row .value{margin-left:auto;font-size:16px}.stat-icon{font-size:25px}.affinity-track{height:12px;border-radius:10px;background:#e7d6bd;margin:7px 0 14px;overflow:hidden}.affinity-track span{display:block;height:100%;background:#f0909b;border-radius:10px}.bread-meter{display:flex;gap:3px;margin-top:7px}.bread-meter i{height:16px;flex:1;border-radius:5px;background:#e9d7bd;border:1px solid #dbcaaf}.bread-meter i.filled{background:#f4c260;border-color:#e0a642}.bonus{font-size:10px;text-align:right;color:#b78d36;margin-top:4px}.sparkles{position:absolute;inset:-10% -4%;pointer-events:none}.sparkles span{position:absolute;font-size:23px;color:#fff3aa;text-shadow:0 0 8px #edc650;animation:sparkle .65s alternate infinite}@keyframes sparkle{to{transform:scale(.5) rotate(20deg);opacity:.4}}.cheeks{position:absolute;left:23%;top:55%;width:33%;height:10%;pointer-events:none}.cheeks:before,.cheeks:after{content:'';position:absolute;width:14px;height:7px;border-radius:50%;background:#ef83968a;filter:blur(2px)}.cheeks:after{right:0}.state-low{color:#917453}.state-unhappy{color:#8b7273}.modal-overlay{position:fixed;inset:0;background:#18373466;z-index:100;display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(3px)}.sheet{background:#fff8e7;max-width:440px;width:100%;max-height:88dvh;border:2px solid #dec29d;border-radius:30px;box-shadow:0 8px 0 #644a3820,0 20px 80px #123c4140;display:flex;flex-direction:column;overflow:hidden}.sheet-header{display:flex;align-items:center;padding:18px 19px 10px;gap:9px}.sheet-header h2{margin:0;font-size:25px;letter-spacing:-1px}.close{margin-left:auto;width:36px;height:36px;border-radius:50%;background:#f5ead5;font-size:22px}.sheet-body{padding:8px 18px 18px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.sheet-body p{font-size:13px;line-height:1.7;color:#94785f}.tabs{display:flex;gap:5px;flex-wrap:wrap;margin:5px 0 13px}.tab{flex:1;padding:10px 7px;border-radius:14px;background:#efe2cc;font-size:12px;font-weight:800;white-space:nowrap}.tab.active{background:#ec8b82;color:#fff}.tabs.six .tab{flex:0 0 calc(33.333% - 4px)}.item-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.item-card{min-width:0;border:1px solid #e0cbae;background:#fffaf0;border-radius:16px;padding:7px 3px 5px;position:relative;display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:87px}.item-card.selected{outline:3px solid #efbc50;background:#fff1c8}.item-card .qty{position:absolute;right:4px;top:4px;background:#fffbef;border-radius:9px;padding:1px 5px;font-size:11px;font-weight:800}.item-card .name{font-size:10px;line-height:1.35;text-align:center;max-width:100%;overflow-wrap:anywhere;margin-top:3px}.emoji-icon{font-size:35px;line-height:1.25}.fish-icon{width:54px;max-width:100%;height:42px}.seed-icon{display:grid;place-items:center;background:linear-gradient(#91ad69 0 20%,#f8ebcb 20%);border:1px solid #a38c65;border-radius:3px;width:35px;height:46px;font-size:24px;transform:rotate(-5deg)}.details{margin-top:14px;background:#f5ebd9;border-radius:20px;padding:14px;display:flex;gap:10px;align-items:center}.details h3{font-size:17px;margin:0 0 5px}.details p{margin:0;font-size:12px}.detail-text{flex:1}.detail-actions{display:flex;gap:7px;margin-top:12px}.btn{border-radius:14px;background:#edb851;padding:11px 14px;font-weight:800;font-size:13px;color:#684a2d;box-shadow:inset 0 -3px 0 #8f6e1520}.btn.green{background:#a4c387}.btn.pink{background:#efa09c}.btn.cream{background:#ecdfc8}.btn.wide{width:100%;margin-top:12px}.product-list{display:flex;flex-direction:column;gap:8px}.product{display:flex;gap:10px;align-items:center;background:#fffaf0;border:1px solid #e7d4b5;border-radius:18px;padding:9px 12px;text-align:left;width:100%}.product .product-info{flex:1;min-width:0}.product strong{font-size:14px;display:block;line-height:1.5}.product small{display:block;color:#9b8265;font-size:11px;margin-top:3px}.price{font-size:13px;background:#f4e6cc;border-radius:14px;padding:8px;white-space:nowrap;font-weight:800}.product .furniture-art{width:46px}.quantity{display:flex;align-items:center;justify-content:center;gap:14px;margin:14px 0}.quantity button{width:35px;height:35px;font-size:22px;border-radius:12px;background:#ebdec4}.quantity input{width:72px;border:1px solid #d8be94;border-radius:12px;background:#fffaf1;text-align:center;padding:8px;color:#664c35}.empty-state{text-align:center;padding:27px 12px;color:#98816b;font-size:13px}.recipe-slot{opacity:.55;min-height:84px;text-align:center;background:#ede3d2;border-radius:15px;padding:12px 2px;font-size:13px}.recipe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.recipe-card{background:#fffaf0;border:1px solid #e5cdaa;border-radius:15px;padding:12px}.recipe-card h3{font-size:13px;margin:7px 0}.recipe-card p{font-size:10px;line-height:1.7;margin:0}.ingredients{display:flex;justify-content:center;gap:8px;background:#f1e5cd;border-radius:18px;padding:10px;margin:12px 0;min-height:66px}.ingredients button{width:65px;background:#fff6e2;border:1px dashed #bd9e6c;border-radius:12px}.badge{display:inline-block;background:#eee3ce;padding:4px 9px;font-size:11px;border-radius:12px;color:#8c765b}.outing-scene .pet-on-scene{left:35%;top:49%;width:40%}.picnic-blanket{position:absolute;left:25%;top:52%;width:52%;height:15%;background:repeating-conic-gradient(#f0c8a6 0 25%,#fff1cf 0 50%) 0/20px 20px;transform:skewY(-6deg);border-radius:8px;opacity:.8;z-index:7}.outing-message{position:absolute;top:17%;left:10%;right:10%;background:#fff8e9e8;padding:17px;border-radius:25px;text-align:center;font-size:17px;line-height:1.8;z-index:12}.toast{position:fixed;left:50%;bottom:110px;transform:translateX(-50%);background:#694e3fe8;color:#fff8e7;padding:12px 20px;border-radius:22px;font-size:13px;z-index:300;max-width:90%;text-align:center;box-shadow:0 4px 20px #0002;pointer-events:none}.loading{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;background:#e4edd4}.loading div{font-size:60px}.loading h1{font-size:32px}.loading p{font-size:13px}.demo-badge{position:absolute;top:72px;right:16px;font-size:10px;background:#fff5dcdd;border-radius:12px;padding:5px 9px;z-index:20}.help-section{border-bottom:1px solid #e3d0b3;padding:8px 0}.help-section h3{font-size:15px;margin:6px 0}.help-section p{font-size:12px}.welcome-icon{font-size:55px;text-align:center;margin:12px}.settings-stack{display:flex;flex-direction:column;gap:10px}input[type=number]{max-width:100%}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-height:850px){.care-pet{top:34%}.stats{bottom:130px}.action{min-height:78px}.small-note{bottom:115px}}@media(max-height:650px){.speech{top:14%;padding:12px 16px;font-size:15px;min-height:75px}.care-pet{top:32%;width:77%;left:12%}.stats{bottom:95px;padding:10px 14px}.affinity-track{margin-bottom:9px}.action{min-height:59px;font-size:15px}.bottom{bottom:12px}.small-note{bottom:86px}.topbar h1{font-size:24px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Individual atlas bounds prevent neighboring objects from appearing. */
.furniture-art{background:none;display:inline-grid;place-items:center}.furniture-art svg{width:100%;height:100%;overflow:hidden}.world-decor>.furniture-art{width:100%;height:100%}.bucket-world{width:42px;height:46px;padding:0}.bucket-world svg{width:100%;height:100%}.face-marker svg{width:100%;height:100%}
.secret-prop{position:absolute;top:-8%;left:40%;color:#bca267;font-size:17px;text-shadow:0 1px #fff;animation:float-prop 5s ease-in-out infinite}.event-4 .secret-prop{top:80%;left:18%;color:#edba59;font-size:20px;animation:roll-prop 5s ease-in-out infinite}.event-9{animation:hammock 6s ease-in-out infinite}.event-8{animation:rest 7s ease-in-out infinite}.event-14{animation:sniff 6s ease-in-out infinite}.event-19 .secret-prop{color:#d7a2bb}.event-18 .secret-prop{color:#f6bf7a}@keyframes float-prop{50%{transform:translateY(-8px);opacity:.45}}@keyframes roll-prop{50%{transform:translateX(24px) rotate(100deg)}}@keyframes hammock{50%{transform:translateX(6px) rotate(4deg)}}@keyframes sniff{30%{transform:translateY(-2px)}35%{transform:translateX(-2px)}40%{transform:translateX(2px)}45%{transform:translateX(0)}}
/* The game always keeps the modern iPhone portrait ratio, including in desktop previews. */
body{height:100dvh;align-items:center}#game{width:min(100vw,46.153846dvh);height:auto;min-height:0;max-width:none;aspect-ratio:9/19.5}.sheet{max-width:min(440px,calc(46.153846dvh - 28px));max-height:min(88dvh,calc(216.666667vw - 40px))}
#game{container-type:inline-size}.topbar{gap:clamp(6px,2cqw,10px)}.topbar h1{font-size:clamp(16px,6cqw,27px);white-space:nowrap}.nav-icon{width:clamp(30px,11cqw,43px);height:clamp(30px,11cqw,43px);flex-shrink:0;font-size:clamp(21px,7cqw,27px)}.coin{font-size:clamp(12px,4cqw,17px);padding:8px clamp(6px,3cqw,14px)}.action{font-size:clamp(11px,3.9cqw,17px);padding:8px 3px}.action b{font-size:clamp(17px,5.5cqw,23px)}
/* Smaller lettering keeps the illustration prominent; touch areas retain their size. */
:root{font-size:14px}.topbar h1{font-size:clamp(14px,5.1cqw,22px)}.coin{font-size:clamp(11px,3.6cqw,15px)}.action{font-size:clamp(10px,3.3cqw,14px)}.hotspot label{font-size:12px}.speech{font-size:clamp(12px,3.7cqw,15px)}.speech small{font-size:10px}.stat-row{font-size:13px}.stat-row .value{font-size:14px}.state-pill{font-size:11px}.small-note{font-size:11px}.sheet-header h2{font-size:20px}.sheet-body p{font-size:12px}.tab{font-size:11px}.details h3{font-size:15px}.product strong{font-size:12px}.product small{font-size:10px}.price,.btn{font-size:12px}.toast{font-size:12px}.outing-message{font-size:14px}.help-section h3{font-size:14px}.help-section p{font-size:11px}
.plant-sprite{position:relative;display:block;width:90%;height:90%;pointer-events:none;z-index:2}.plant-sprite>svg{width:100%;height:100%;overflow:visible}.crop-produce{position:absolute;top:0;left:50%;transform:translateX(-50%)}.plot .crop-produce .emoji-icon{font-size:24px}.plot.wet{border-color:#725036;background:radial-gradient(ellipse at 23% 29%,#c9b89988 0 1px,transparent 2px),radial-gradient(ellipse at 73% 61%,#c9b89977 0 1px,transparent 2px),repeating-linear-gradient(170deg,#785a3f 0 8px,#61452e 9px 11px);box-shadow:inset 0 2px 7px #3d291955,0 2px 0 #5c6a3120}.plot.wet:after{content:'';position:absolute;inset:9%;border-radius:50%;background:linear-gradient(165deg,#d9d2ad25,transparent 40%,#291b1825);pointer-events:none}.plot.dry{background:repeating-linear-gradient(170deg,#ae8b58 0 8px,#957548 9px 11px)}.plot-preview{width:110px;height:100px;margin:12px auto;display:grid;place-items:center}
.awning-upgrade{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none}

.outing-scene{position:absolute;inset:0;background:#f5eedc}.outing-home{opacity:0;transition:opacity .9s ease}.outing-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .8s ease-in-out}.outing-loading{position:absolute;inset:0;display:grid;place-items:center;text-align:center;font-size:clamp(13px,4cqw,17px);line-height:1.8;letter-spacing:.03em;color:#79634f;background:#f5eedc;opacity:1;transition:opacity .65s ease}.outing-loading small{display:block;font-size:11px;color:#a38a70;margin-top:12px;letter-spacing:.08em}.outing-scene.show .outing-photo{opacity:1}.outing-scene.show .outing-loading,.outing-scene.leave .outing-loading{opacity:0;pointer-events:none}.outing-scene.leave .outing-photo{opacity:0;transition-duration:.9s}.outing-scene.leave .outing-home{opacity:1}
.plot-label{position:absolute;bottom:-5px;left:50%;transform:translateX(-50%);max-width:94%;padding:1px 6px;border:1px solid #c4a57c;border-radius:5px;background:#fff5df;color:#72543c;font-size:clamp(8px,2.5cqw,11px);line-height:1.3;white-space:nowrap;pointer-events:none;z-index:4;box-shadow:0 1px 1px #4e382826}
@media(prefers-reduced-motion:reduce){.outing-photo,.outing-loading,.outing-home{transition:none}}

/* Let the browser paint the whole fade sequence without waiting for timer callbacks. */
.outing-scene.show .outing-photo{animation:outing-photo-fade 4.7s ease-in-out both}
.outing-scene.show .outing-home{animation:outing-home-reveal 4.7s ease-in-out both}
@keyframes outing-photo-fade{0%{opacity:0}17.021%,80.851%{opacity:1}100%{opacity:0}}
@keyframes outing-home-reveal{0%,80.851%{opacity:0}100%{opacity:1}}
@media(prefers-reduced-motion:reduce){.outing-scene.show .outing-photo{animation:none;opacity:1}.outing-scene.show .outing-home{animation:none}}

.modal-behind{pointer-events:none;backdrop-filter:none}.modal-behind .sheet{opacity:.65}.purchase-sheet{max-width:350px}.purchase-item{text-align:center;padding:8px 4px 3px}.purchase-item>.emoji-icon{font-size:38px}.purchase-item>.fish-icon{width:70px;height:48px}.purchase-item>.seed-icon,.purchase-item>.furniture-art{margin:0 auto}.purchase-item h3{margin:10px 0 4px;font-size:16px}.purchase-item p{margin:4px 0}.purchase-item small{font-size:11px;color:#9b8265}.purchase-quantity-label{text-align:center;margin:13px 0 0}.purchase-sheet .quantity{margin:9px 0 15px}.purchase-sheet .quantity button{width:42px;height:42px}.purchase-cost{padding:12px 14px;border-radius:16px;background:#f3e8d4}.purchase-cost>div{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;line-height:1.8}.purchase-cost .purchase-total{border-top:1px solid #dfc9a6;margin-top:7px;padding-top:7px;font-size:16px}.bucket-count{text-align:center}.bucket-fish{grid-template-columns:repeat(3,minmax(0,1fr));margin:15px 0}.bucket-fish .item-card{min-height:100px}.bucket-fish .qty{font-size:10px}


.sale-cost{margin-top:15px}
.demo-affinity-link{padding:3px 7px;border-radius:8px;background:#e6edd8;color:#56724b;font-size:10px;margin-left:3px}.demo-affinity-panel{text-align:center;padding:4px 0}.demo-affinity-panel p{font-size:11px;color:#8c765b}.demo-affinity-panel label{display:block;font-size:12px;margin:16px 0 9px}.demo-affinity-stepper{display:flex;align-items:center;gap:8px}.demo-affinity-stepper .btn{flex:1;padding:13px 5px;min-height:44px}.demo-affinity-stepper input{width:110px;min-width:0;max-width:40%;min-height:46px;text-align:center;border:1px solid #d8c29f;border-radius:13px;background:#fffdf5;color:#674a34;font-size:21px}.demo-affinity-presets{display:flex;gap:8px;margin:11px 0 18px}.demo-affinity-presets .btn{flex:1;font-size:12px;min-height:40px}

/* Keep scene storage labels in flow above the actions, including iPhone safe areas. */
.bottom.with-note{flex-direction:column;gap:12px}.bottom.with-note .small-note{position:static;transform:none;align-self:center}.bottom-actions{display:flex;gap:8px}

.scene-loading{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(100vw,46.153846dvh);height:min(100dvh,216.666667vw);z-index:250;display:grid;place-items:center;background:#f8f1df;color:#81644e;text-align:center}.scene-loading[hidden]{display:none}.loading-content{display:flex;flex-direction:column;align-items:center;gap:16px}.loading-pet{width:100px;height:100px;animation:loading-sway 2.4s ease-in-out infinite}.loading-pet svg{width:100%;height:100%}.loading-content p{font-size:13px;margin:0;letter-spacing:.03em}.loading-dots{display:flex;gap:7px}.loading-dots i{width:5px;height:5px;border-radius:50%;background:#d99d9e;animation:loading-dot 1.5s ease-in-out infinite}.loading-dots i:nth-child(2){animation-delay:.2s}.loading-dots i:nth-child(3){animation-delay:.4s}@keyframes loading-sway{50%{transform:translateY(-5px) rotate(3deg)}}@keyframes loading-dot{50%{opacity:.3;transform:translateY(-3px)}}@media(prefers-reduced-motion:reduce){.loading-pet,.loading-dots i{animation:none}}

.donation-selection{text-align:center;padding:18px 8px;background:#f3e8d4;border-radius:16px;margin:18px 0 12px}.donation-selection small{display:block;font-size:11px;color:#9b8265}.donation-selection output{display:block;font-size:25px;font-weight:800;margin-top:7px}.donation-steps{display:flex;gap:7px;margin-bottom:12px}.donation-steps .btn{flex:1;padding:12px 2px;white-space:nowrap}

.placed-furniture{padding:0;background:none;border:0;border-radius:12px;transform:translate(-50%,-100%);filter:drop-shadow(0 3px 1px #49362320)}.placed-furniture.sway{animation:none}.placed-furniture.sway>.furniture-art{animation:peek 6s ease-in-out infinite;transform-origin:50% 90%}.editing .placed-furniture{pointer-events:auto;touch-action:none;cursor:grab}.editing .placed-furniture.selected{outline:2px dashed #f1bc57;outline-offset:4px;background:#fff4cc25}.editing .placed-furniture:active{cursor:grabbing}.editing .placed-furniture>.furniture-art{pointer-events:none;animation:none}.editing .pet-on-scene,.editing .bucket-world,.editing .home-bowl,.editing .home-hot,.editing .plot{pointer-events:none}.editing .demo-badge{display:none}.editing .nav-icon{font-size:12px}.placement-surface{position:absolute;inset:18% 0 18%;background:transparent;z-index:8;touch-action:none;cursor:crosshair}.layout-top{position:absolute;left:14px;right:14px;top:74px;z-index:22}.layout-top .tabs{background:#fff9e9ed;border-radius:16px;padding:4px;margin:0}.layout-top p{font-size:10px;text-align:center;background:#fff9e9e6;border-radius:12px;padding:6px 4px;margin:6px 0 0;pointer-events:none}.layout-toolbar{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:20px;background:#fff8e7f0;box-shadow:0 3px 15px #6b543322}.layout-toolbar .action{min-height:53px;border-radius:15px}.layout-toolbar .action b{font-size:18px;margin-bottom:2px}.layout-selected{text-align:center;font-size:11px;font-weight:700}.layout-toolbar .action:disabled{opacity:.4}.item-card small{font-size:9px;color:#9b8265}.editing .small-note{display:none}

.tabs.inventory-tabs .tab{flex:0 0 calc(25% - 4px)}

.facility-world{padding:0;background:none;width:58px;height:58px;z-index:18;filter:drop-shadow(0 2px 2px #5e4d3c33)}.bucket-world.facility-world{left:38%;top:43%;width:58px;height:58px}.home-bowl.facility-world{left:62%;top:40%;width:60px;height:60px}.facility-world svg{display:block;width:100%;height:100%}.facility-label{position:absolute;left:50%;top:98%;transform:translateX(-50%);padding:2px 5px;border:1px solid #79a09b;border-radius:7px;background:#edf9f3;color:#4f7973;white-space:nowrap;font-size:8px;line-height:1.4;pointer-events:none}.editing .facility-world{pointer-events:none;opacity:.65}

/* Small captions sit beside their landmarks; the generous tap targets stay intact. */
.map-car label,.map-donation label{padding:3px 7px;font-size:10px;border-radius:8px;background:#fff9e9df;box-shadow:0 1px 3px #6d573124}.map-car label{top:16%;left:91%}.map-donation label{top:46%;left:76%}.map-car label:after,.map-donation label:after{display:none}
.village-decoration{position:absolute;transform:translate(-50%,-100%);z-index:4;pointer-events:none}.village-decoration svg{width:100%;height:auto;display:block;overflow:hidden}.donation-landmarks{display:grid;grid-template-columns:1fr;gap:4px;font-size:10px;color:#a3927b;background:#f3ead8;padding:10px 13px;border-radius:12px}.donation-landmarks .unlocked{color:#56816b}

.home-bowl.facility-world{height:auto;top:42%}.home-bowl.facility-world svg{height:auto}.editing .nav-icon{flex-shrink:0;white-space:nowrap;padding:0;font-size:11px}.editing .topbar h1{white-space:nowrap}

/* Scene stacking stays below the interface even when every owned item is placed. */
.scene-objects{position:absolute;inset:0;z-index:9;pointer-events:none}.scene-objects>.pet-on-scene,.scene-objects>.facility-world{pointer-events:auto}.layout-order{display:flex;align-items:center;gap:8px;font-size:10px}.layout-order>span{margin-right:auto;color:#8b715b}.layout-order>button{min-height:34px;min-width:80px;padding:6px 12px;border:1px solid #dbc9a8;border-radius:10px;background:#f5ead3;font-size:11px}.layout-order>button:disabled{opacity:.35}.relocate-preview{text-align:center}.relocate-preview .furniture-art{width:110px;height:95px}
.reserved-fishing-spot{position:absolute;left:64%;top:46%;width:23%;height:12.5%;border:1px dashed #4b879ccc;border-radius:12px;background:#cae8ec44;pointer-events:none;z-index:10;display:flex;align-items:flex-end;justify-content:center;padding:7px}.reserved-fishing-spot span{font-size:9px;color:#375d6e;background:#f1faf1e8;padding:3px 7px;border-radius:7px}.donation-rewards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.donation-rewards>div{display:flex;flex-direction:column;align-items:center;gap:8px;border-radius:15px;padding:12px;background:#eef3df}.donation-rewards svg{width:88px;height:76px;overflow:hidden}.donation-rewards strong{font-size:11px;text-align:center}
/* The feet anchor stays fixed; only the character breathes gently. */
.facility-world.placed-facility{transform:translate(-50%,-100%);height:auto}.facility-world.placed-facility svg{height:auto;pointer-events:none}.editing .facility-world.placed-facility{pointer-events:auto;touch-action:none;opacity:1;cursor:grab}.editing .placed-facility.selected{outline:2px dashed #75aca7;outline-offset:5px;border-radius:12px;background:#dcf1e333}.facility-card .facility-art{width:52px;height:48px}.layout-top .tab:disabled{opacity:.35}
.pet-on-scene.living-pet{padding:0;background:none;transform:translate(-50%,-100%);animation:none;transform-origin:center bottom;filter:drop-shadow(0 3px 2px #59401f20)}.living-pet-art{display:block;width:100%;pointer-events:none}.living-pet.gentle .living-pet-art{animation:living-breathe 5.5s ease-in-out infinite;transform-origin:50% 95%}.living-pet.using-furniture.gentle .living-pet-art{animation:living-rock 7s ease-in-out infinite}.care-bg.care-fishing{background-size:145% 125%;background-position:62% 38%}.care-bg.care-farm{background-size:145% 125%;background-position:50% 33%}@keyframes living-breathe{50%{transform:translateY(-1px) scaleY(1.012)}}@keyframes living-rock{50%{transform:rotate(.6deg)}}@media(prefers-reduced-motion:reduce){.living-pet-art{animation:none!important}}

/* A short food balance row stays below hunger without covering Slowpoke. */
.nutrition-overview{border-top:1px solid #decbaa;margin-top:9px;padding-top:8px}.nutrition-heading{font-size:10px;color:#907658;margin-bottom:6px}.nutrition-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.nutrition-group{display:flex;align-items:center;justify-content:space-between;gap:3px;padding:5px 7px;border-radius:9px;font-size:10px;background:#eaf0dd;color:#5e7550;white-space:nowrap}.nutrition-group strong{font-size:10px}.nutrition-group.high{background:#f6dfcb;color:#a46337}.nutrition-group.low{background:#e2e8f0;color:#577391}.nutrition-group.pending{background:#efe7d8;color:#99866d}.nutrition-advice{font-size:10px;line-height:1.45;margin:6px 0 0;color:#7d694f}

.pose-facing{display:block}.pose-facing.mirrored{transform:scaleX(-1)}
.btn.danger{background:#edc0b5;color:#913e37}.settings-stack>.danger{margin-top:8px;border-top:1px solid #d7a799}
.home-bowl.placed-facility::after{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,44px);height:max(100%,44px)}.home-bowl.placed-facility .facility-label{display:none}
.placement-clearance{position:absolute;z-index:13;pointer-events:none;border:1.5px dashed #477f63;border-radius:12px;background:#e3efc52b;display:flex;align-items:flex-end;justify-content:center}.placement-clearance>span{white-space:nowrap;font-size:9px;color:#41634c;background:#f5ffebed;padding:3px 6px;border-radius:6px;transform:translateY(50%)}
.placement-clearance.invalid{border-color:#b64f46;background:#e66f592b}.placement-clearance.invalid>span{color:#a43e37;background:#fff1eaf5}.editing .invalid-placement{outline-color:#c95349;opacity:.72}
