/* The art and every interactive object share one coordinate system. */
.farm-home #scene-stage .farm-play-area{background:#ddc99e var(--shop-art) center/cover no-repeat}
/* Wide displays leave one fifth on either side; the complete scene fits inside. */
@media(min-width:701px){
 .farm-home{background:var(--season-paper,#f3e7ce)}
 .farm-home #scene-stage .farm-play-area{background:var(--season-paper,#f3e7ce)}
 .farm-home .farm-topbar,.farm-home .farm-sidebar,.farm-home .farm-screen:not([data-view="3d"]) .farm-sidebar{left:calc(var(--farm-scene-side,0px) + 16px);right:calc(var(--farm-scene-side,0px) + 16px)}
 .farm-home .scene-tools-panel{right:calc(var(--farm-scene-side,0px) + 16px)}
}
@media(min-width:1600px){
 .farm-home .three-shop{width:60%;margin-inline:auto}
}
/* One continuous conservatory scene, including the space behind the menus. */
.farm-home #scene-stage .farm-play-area:before{content:none;filter:none}
.farm-home .farm-dock{backdrop-filter:none}
.farm-home #shop2d-viewport{position:absolute;inset:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;scrollbar-color:#9d8250 #f0ddb6;touch-action:pan-x pan-y;outline-offset:-4px;cursor:grab}
.farm-home #shop2d-viewport:active{cursor:grabbing}
#shop2d-frame{position:relative;margin-left:auto;margin-right:auto;flex-shrink:0}
#shop2d-world{position:absolute;width:1536px;height:1024px;top:0;left:0;transform-origin:0 0;z-index:2;isolation:isolate;user-select:none;overflow:visible;box-shadow:none}
#shop2d-backdrop{position:absolute;inset:0;display:block;max-width:none;width:100%;height:100%;pointer-events:none}
#shop2d-floor-plaque{position:absolute;left:706px;top:51px;width:124px;height:43px;display:flex;align-items:center;justify-content:center;color:#ffedbd;font-size:39px;font-weight:900;line-height:1;text-shadow:0 3px 0 #61441f}
.farm-home #shop2d-products{position:absolute;inset:0;pointer-events:none}
/* Reserve caption space inside the button, keeping both the art and label clickable. */
.farm-home .shop2d-product{position:absolute;transform:translate(-50%,calc(-100% + 58px));border:0;background:transparent;border-radius:18px;padding:0 0 58px;box-shadow:none;pointer-events:auto;cursor:pointer;color:#61482e;min-height:0;min-width:90px;overflow:visible;z-index:2}
.shop2d-product-art{display:block;width:100%;height:90px;transition:filter .2s;filter:drop-shadow(0 5px 3px #794b2020)}
.shop2d-product-art>svg{display:block;width:100%;height:100%;overflow:visible}
.shop2d-product-art.has-photo>img{width:100%;height:100%;object-fit:cover;display:block;border:7px solid #cba467;border-radius:24px;box-shadow:0 3px 0 #87623d;background:#f5e6c5}
.produce-icon-wrap{display:block;width:100%;height:100%;min-height:0}
.produce-icon-wrap>.produce-icon,.produce-icon-wrap>svg{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;border:0;border-radius:0;background:transparent;box-shadow:none}
.shop2d-product.is-hanging .shop2d-product-art{height:64px}
.farm-home .shop2d-product-tag{position:absolute;top:calc(100% - 52px);left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;width:max-content;max-width:calc(100% - 8px);padding:4px 8px;gap:2px;border:2px solid #b88c4e;border-radius:7px 9px 9px 7px;background:linear-gradient(#fff7de,#f4dfad);box-shadow:0 3px 0 #76563438;font-size:15px;line-height:1.2;white-space:nowrap;color:#61472c;text-shadow:0 1px #fff6dc}
.shop2d-product-tag strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:15px;letter-spacing:-.4px}
.shop2d-product-tag small{font-size:13px;font-weight:500;color:#85643b}
.farm-home .shop2d-product.is-hanging .shop2d-product-tag{min-width:120px;max-width:180px}
/* Place rear side captions above their own basket to clear the front basket. */
.farm-home .shop2d-product.has-label-above{padding:58px 0 0;transform:translate(-50%,-100%)}
.farm-home .shop2d-product.has-label-above .shop2d-product-tag{top:0}
.shop2d-product:hover .shop2d-product-art,.shop2d-product[aria-pressed=true] .shop2d-product-art{filter:drop-shadow(0 0 8px #fff6b7)}
.shop2d-product:focus-visible{outline:4px solid #fff5a9;outline-offset:4px}.shop2d-product[aria-pressed=true] .shop2d-product-tag{background:#fff3bc;border-color:#617d42}
.farm-home #scene-stage #customer-board-link,.farm-home #scene-stage #checkout-counter-link{position:absolute;inset:auto;display:block;transform:translate(-50%,-50%);width:270px;height:185px;border:0;border-radius:25px;background:transparent;box-shadow:none;padding:0;z-index:3;opacity:1;pointer-events:auto;color:#74613c;font-size:24px}
.farm-home #scene-stage #checkout-counter-link{left:182px;top:784px}
.farm-home #scene-stage #customer-board-link{left:1362px;top:827px;width:270px}
.farm-home #scene-stage #checkout-counter-link .cashier-sign,.shop2d-sign{position:absolute;left:50%;top:-51px;transform:translateX(-50%);width:max-content;max-width:none;display:flex;align-items:center;gap:9px;padding:9px 19px;border:3px solid #f5dca3;border-radius:15px;background:linear-gradient(#fff8df,#eddbab);box-shadow:0 5px 0 #91714365,0 8px 10px #76512b30;color:#695c38;font-size:24px;line-height:1.2;font-weight:800;letter-spacing:1px;text-shadow:0 1px #fff5d7;animation:shop-sign-float 4s ease-in-out infinite}
.shop2d-sign svg{width:32px;height:32px}.shop2d-sign:after,.cashier-sign:after{content:"";position:absolute;top:100%;left:50%;width:0;height:0;border:8px solid transparent;border-top-color:#ead4a2}
.farm-home #scene-stage #customer-board-link:after,.farm-home #scene-stage #checkout-counter-link:after{content:none}
.farm-home #scene-stage #customer-board-link:focus-visible,.farm-home #scene-stage #checkout-counter-link:focus-visible{outline:5px solid #ffe2a1;outline-offset:4px;background:#fff5cb20}
#shop2d-crates{position:absolute;left:130px;top:850px;width:190px;height:200px;min-width:0;min-height:0;padding:0;background:transparent;border:0;border-radius:20px;box-shadow:none;z-index:4;cursor:pointer;overflow:visible}
.shop2d-crate-stack{position:absolute;inset:0;pointer-events:none}
.shop2d-crate-stack:before{content:"";position:absolute;left:6px;right:0;bottom:1px;height:27px;border-radius:50%;background:radial-gradient(ellipse,#63391366,transparent 70%);transform:rotate(-5deg)}
.shop2d-crate{position:absolute;box-sizing:border-box;width:85px;height:54px;left:8px;bottom:11px;z-index:calc(var(--crate) + 1);border:2px solid #a8763e;border-radius:3px 4px 6px 5px;background:linear-gradient(90deg,transparent 85%,#a97037aa 86%),linear-gradient(160deg,#eac18b,#c78d4c);box-shadow:inset 1px 2px 1px #fff0c8aa,inset 0 -3px 2px #99632e44,3px 5px 5px #68421e44;transform:rotate(-3deg);transform-origin:center bottom}
.shop2d-crate:before{content:"";position:absolute;left:-2px;right:-2px;top:-11px;height:14px;border:2px solid #ac7c45;border-radius:4px 5px 1px 1px;background:linear-gradient(90deg,#f3d3a2 38%,#fff0c5 39% 59%,#dca868 60%);clip-path:polygon(11% 0,91% 0,100% 100%,0 100%)}
.shop2d-crate:after{content:"";position:absolute;left:38%;top:0;height:100%;width:20%;background:linear-gradient(90deg,#f4d99f,#fce9ba 50%,#eac88b);border-inline:1px solid #bc915655;opacity:.94}
.shop2d-crate:nth-child(2){left:96px;bottom:9px;transform:rotate(3deg)}
.shop2d-crate:nth-child(3){left:12px;bottom:68px;transform:rotate(1deg)}
.shop2d-crate:nth-child(4){left:98px;bottom:65px;transform:rotate(-3deg)}
.shop2d-crate:nth-child(5){left:15px;bottom:125px;transform:rotate(-4deg)}
.shop2d-crate:nth-child(6){left:99px;bottom:122px;transform:rotate(2deg)}
.shop2d-crate-stamp{position:absolute;left:5px;bottom:7px;width:24px;height:22px;display:grid;place-items:center;border:1.5px solid #62733f;color:#5f703d;border-radius:50%;font-size:10px;font-weight:800;line-height:1;opacity:.85;transform:rotate(-9deg)}
.shop2d-crate-label{position:absolute;left:50%;top:calc(100% + 7px);display:flex;align-items:center;gap:5px;white-space:nowrap;transform:translateX(-50%);padding:6px 13px;border:2px solid #ba8d54;border-radius:12px;background:linear-gradient(#fff4d5,#f5dfb1);color:#70502c;font-size:19px;font-weight:700;line-height:1.2;box-shadow:0 3px 0 #99663144;pointer-events:none}
.shop2d-crate-label{z-index:10}
.shop2d-crate-label b{display:inline-block;color:#43613a;font-size:22px}
@media(max-width:700px){
 #shop2d-crates{top:815px}
 /* Keep the count above the parcel pile, clear of the mobile navigation. */
 .shop2d-crate-label{left:auto;right:-7px;top:calc(var(--stack-top,9px) - 12px);min-width:48px;height:48px;box-sizing:border-box;justify-content:center;gap:0;padding:0 9px;border-radius:24px;font-size:0;transform:none}
 .shop2d-crate-label b{font-size:24px}
}
#shop2d-crates:hover .shop2d-crate-label{background:#fff6db;border-color:#648045}
#shop2d-crates:focus-visible{outline:4px dashed #fff0bb;outline-offset:7px}
.shop2d-crate.is-arriving{animation:shop2d-parcel-arrive .5s cubic-bezier(.22,.7,.35,1.2) both;animation-delay:var(--arrival-delay,0ms)}
@keyframes shop2d-parcel-arrive{0%{translate:0 -45px;opacity:0;scale:.92}65%{translate:0 3px;opacity:1;scale:1.02 .96}100%{translate:0 0;opacity:1;scale:1}}
.farm-home .shop2d-character{position:absolute;width:150px;height:160px;min-width:0;min-height:0;transform:translate(-50%,-100%) scale(var(--actor-size,1));transform-origin:50% 100%;border:0;background:transparent;box-shadow:none;padding:0;border-radius:50%;cursor:pointer;z-index:4;overflow:visible;will-change:left}
.shop2d-character:before{content:"";position:absolute;left:20%;right:20%;bottom:7px;height:15px;border-radius:50%;background:#6c462e2b;filter:blur(3px)}
.shop2d-character img{display:block;width:100%;height:100%;object-fit:contain;transform:translateY(var(--lift,0));filter:drop-shadow(2px 3px 0 #fff2ce33);pointer-events:none}
.shop2d-character-name{position:absolute;bottom:-25px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:3px 11px;border:1px solid #c3a477;border-radius:15px;background:#fff3d7e8;color:#78603c;font-size:17px;font-weight:700;line-height:1.25}
.shop2d-character.is-walking img{animation:shop-walk 1s ease-in-out infinite}
.shop2d-character[data-character=bee].is-walking img{animation:shop-hover .8s ease-in-out infinite}
.shop2d-character:focus-visible{outline:4px dashed #ffebb5;outline-offset:2px}
/* The two farm hosts stay at the checkout, clear of the moving companions. */
.farm-home .shop2d-farm-host{position:absolute;display:block;width:300px;height:300px;min-width:0;min-height:0;padding:0;border:0;background:transparent;box-shadow:none;transform:translate(-50%,-100%);transform-origin:center bottom;cursor:pointer;border-radius:28px}
.shop2d-farm-host img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.farm-home #farm-grandmother{left:300px;top:742px;width:200px;height:192px;z-index:1;clip-path:inset(0)}
#farm-grandmother img{position:absolute;left:-50px;top:0;width:300px;height:300px;max-width:none}
.farm-home #farm-grandfather{left:-100px;top:800px;z-index:4}
.shop2d-farm-host:focus-visible{outline:4px dashed #fff0bb;outline-offset:-35px}
.shop2d-checkout-front{position:absolute;inset:0;z-index:2;pointer-events:none;clip-path:polygon(-35px 743px,255px 743px,255px 712px,308px 712px,308px 730px,323px 730px,323px 743px,386px 743px,386px 980px,-35px 980px)}
.shop2d-checkout-front img{position:absolute;max-width:none;pointer-events:none}
.farm-home #scene-stage[data-background=window] .shop2d-checkout-front img{filter:brightness(.89) saturate(.93)}
#shop2d-speech{position:absolute;z-index:5;width:230px;max-width:calc(100% - 20px);padding:10px 13px;border:2px solid #ddc59a;border-radius:18px 18px 18px 5px;background:#fff8e9f5;box-shadow:0 4px 0 #826b3b25;color:#705c3c;font-size:12px;line-height:1.5;pointer-events:none}
#shop2d-speech strong{display:block;color:#77904e;font-size:10px;margin-bottom:3px}
#shop2d-empty{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);display:flex;flex-direction:column;gap:10px;align-items:center;background:#fff7dfe8;padding:20px 30px;border:2px solid #c9ae7b;border-radius:18px;font-size:23px;color:#735b3b}
#shop2d-empty a{font-size:19px;color:#667d46}
.shop2d-pan-hint{display:none;position:absolute;z-index:2;left:50%;bottom:calc(var(--farm-dock-space,86px) + 5px);transform:translateX(-50%);width:max-content;max-width:calc(100% - 16px);margin:0;padding:5px 12px;border:1px solid #d9c599;border-radius:20px;background:#fff6dce8;font-size:10px;color:#705b3a;pointer-events:none}
.shop2d-pannable .shop2d-pan-hint{display:block}
.farm-home #product-popover .popover-picture{display:flex;flex-direction:column;justify-content:center;overflow:hidden}.popover-picture svg{width:100%;height:70%}.farm-home #product-popover .popover-picture small{font-size:8px}
.farm-home #product-popover .produce-icon-wrap{flex:1;min-height:0;padding:4px}
.farm-home #product-popover .produce-icon{object-fit:contain;object-position:center}
.farm-home #shop2d-world [hidden],#shop2d-speech[hidden]{display:none!important}

.farm-home #scene-stage[data-background=window] #shop2d-backdrop{filter:brightness(.89) saturate(.93)}
.farm-home #scene-stage[data-background=window] #shop2d-frame:after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,#feb7660d,#755d3826);pointer-events:none;z-index:1}
@media(max-width:370px){.farm-home .farm-weather-copy strong{white-space:nowrap;font-size:9px}}
@keyframes shop-walk{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-5px) rotate(2deg)}}
@keyframes shop-hover{0%,100%{transform:translateY(var(--lift,0)) rotate(-2deg)}50%{transform:translateY(calc(var(--lift,0px) - 7px)) rotate(2deg)}}
@keyframes shop-sign-float{0%,100%{margin-top:0}50%{margin-top:-5px}}
@media(max-width:700px){#shop2d-speech{width:205px;font-size:11px}.farm-home #shop2d-viewport{scrollbar-width:none}.farm-home #product-popover{max-width:calc(100vw - 20px)}}
@media(prefers-reduced-motion:reduce){.shop2d-character img,.farm-home #scene-stage #checkout-counter-link .cashier-sign,.shop2d-sign,.shop2d-crate.is-arriving{animation:none!important}.shop2d-product-art{transition:none}}
.dad-joke-dialog{width:min(470px,calc(100% - 24px));background:#fff8e9;border-color:#f6dfb1}.dad-joke-dialog .farm-dialog-heading{background:linear-gradient(#edcea0,#dfbc84);border-bottom:2px solid #bd955e;color:#654a2e}.dad-joke-host{display:flex;align-items:center;gap:14px}.dad-joke-host img{width:125px;height:125px;object-fit:contain}.dad-joke-host h3{margin:6px 0;font-size:23px;color:#6c7e4d}.dad-joke-host p{font-size:12px;color:#8b7651}.dad-joke-host .eyebrow{font-size:10px;letter-spacing:0}.dad-joke-line{padding:18px;background:#f5ebd1;border:1px solid #e0ca9f;border-radius:18px;color:#79603c;font-size:16px;line-height:1.8;min-height:92px}.dad-joke-event{margin-top:22px;border:1px solid #c7d1ac;border-radius:15px;background:#edf1df;padding:16px}.dad-joke-event>span{font-size:11px;color:#8a754e}.dad-joke-event h3{margin:8px 0;color:#67784b}.dad-joke-event p{font-size:13px;line-height:1.7;white-space:pre-line}.dad-joke-event[hidden],.dad-joke-event [hidden]{display:none!important}.shop2d-character[data-character=dad-joke] .shop2d-character-name{background:#f5e4c0;border-color:#b68e53;color:#805d37}
