/* The whole boutique is the play screen. Existing HUD and dock stay above it. */
body[data-game-view=shop]{overflow:hidden;background:#102f26}
body[data-game-view=shop] #view{position:fixed;inset:0;left:50%;transform:translateX(-50%);width:min(100%,600px);max-width:600px;height:100dvh;z-index:24;box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;background:#12372a;overflow:hidden}
body[data-game-view=shop] #view[data-shop-panel=ready]>.farm-shop-tabs{display:none}
body[data-game-view=shop] #shop-ready-panel{height:100%;outline:none}
body[data-game-view=shop] .my-shop-hero.shop-room-present{position:absolute;inset:0 0 calc(var(--dock-h,72px) + var(--dock-safe,0px));display:block;margin:0;padding:0}
body[data-game-view=shop] .shop-building-meta,body[data-game-view=shop] #shopReadySales{display:none!important}
body[data-game-view=shop] .shop-room-viewport{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;box-shadow:none;isolation:isolate;overflow:hidden}
.play-room-art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
[data-play-scene=true]>.shop-room-fallback,[data-play-scene=true]>.shop-room-canvas{display:none}
[data-play-scene=true].play-evening>.play-room-art{filter:brightness(.87) saturate(.94)}
.play-lights{position:absolute;inset:0;pointer-events:none;z-index:1}.play-lights i{position:absolute;top:23%;width:18%;height:17%;background:radial-gradient(ellipse,#fff0a748,transparent 70%);opacity:.4;left:0}.play-lights i+i{left:auto;right:0}.play-evening .play-lights i{opacity:1}
body[data-game-view=shop] .shop-room-tools{display:contents}
body[data-game-view=shop] .shop-room-tools [data-room-bottles]{display:none}
body[data-game-view=shop] .shop-room-tools [data-room-upgrade],body[data-game-view=shop] .room-warehouse-target,body[data-game-view=shop] .play-orders-entry,body[data-game-view=shop] .shop-quick-grid [data-shop-open=history]{position:absolute;left:10px;top:24%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:46px;min-width:44px;height:53px;min-height:44px;margin:0;padding:3px;border:0;border-radius:0;background:transparent;color:#eed79b;box-shadow:none;z-index:5;cursor:pointer;font:500 11px/1.1 'Ayupov Sans',Arial,sans-serif}
body[data-game-view=shop] .room-warehouse-target{top:16%;height:53px!important;width:46px!important;left:10px!important}
body[data-game-view=shop] .room-warehouse-target>span{display:none}
body[data-game-view=shop] .room-warehouse-target svg,body[data-game-view=shop] .shop-room-shortcut svg,body[data-game-view=shop] .play-orders-entry svg,body[data-game-view=shop] .shop-quick-grid button svg{width:32px;height:32px;box-sizing:border-box;padding:6px;border:1px solid #d9bb6c;border-radius:50%;background:#12392bdd;fill:none;stroke:currentColor;stroke-width:1.5}
body[data-game-view=shop] .shop-room-shortcut span{font-size:10px}
body[data-game-view=shop] .play-orders-entry{left:auto;right:10px;top:24%}
body[data-game-view=shop] .shop-quick-grid{display:contents}
body[data-game-view=shop] .shop-quick-grid [data-shop-open=history]{left:auto;right:10px;top:16%}
body[data-game-view=shop] .shop-quick-grid button>span{width:auto;height:auto;background:none;box-shadow:none}
body[data-game-view=shop] .shop-quick-grid button strong{font:500 11px/1 'Ayupov Sans',Arial,sans-serif}
body[data-game-view=shop] .shop-quick-grid button small{display:none}
body[data-game-view=shop] .room-shelf-caption{display:none}
body[data-game-view=shop] #backLab.shop-empty-create{position:absolute;right:12px;bottom:calc(var(--dock-h,72px) + var(--dock-safe,0px) + 13px);z-index:6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:58px;min-height:58px;height:58px;margin:0;padding:7px;border:1px solid #f1db95;border-radius:50%;background:linear-gradient(135deg,#f4dda1,#b28e40);box-shadow:0 4px 10px #031f1877;color:#263c2a;font:600 11px/1 'Ayupov Sans',Arial,sans-serif}
#backLab svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7}
body[data-game-view=shop] .room-shelf-targets{z-index:3}
body[data-game-view=shop] .room-shelf-targets .has-bottle{width:19%;height:80px;border-radius:7px;touch-action:none}
.room-shelf-target>.bottle-preview{position:absolute;inset:0;display:block;width:100%;height:80px;margin:0;filter:drop-shadow(0 2px 1px #18281744)}
body[data-game-view=shop] .room-shelf-info{top:100%;bottom:auto;left:5%;right:5%}
body[data-game-view=shop] .room-shelf-name{display:none}
body[data-game-view=shop] .room-shelf-status{min-height:22px;margin:0;padding:3px 4px;border:1px solid #c3a15c;border-radius:12px;background:#f6e9b9;color:#30472e;text-shadow:none;font:600 12px/1 'Ayupov Sans',Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-game-view=shop] .room-shelf-target[data-sale-ready=true] .room-shelf-status{background:#f6e9b9}
body[data-game-view=shop] .room-shelf-targets .is-empty{width:40px;height:25px;min-width:44px;min-height:30px;background:transparent;border:1px solid #c9af6d88;border-radius:50%;box-shadow:none;font-size:24px;color:#d7bb72}
body[data-game-view=shop] .room-empty-label{top:calc(100% + 3px);font-size:10px;color:#e9d7a4}
body[data-game-view=shop] .room-customer{display:none!important}
.play-buyer{position:absolute;left:50%;bottom:2%;transform:translateX(-50%);height:33%;aspect-ratio:100/230;min-height:120px;min-width:50px;margin:0;padding:0;border:0;background:transparent;box-shadow:none;z-index:4;cursor:pointer;touch-action:none;transition:filter .15s}
.play-buyer svg{display:block;width:100%;height:100%}.play-package{display:none}.play-buyer.has-package .play-package{display:block}
.play-buyer.is-entering{animation:play-walk-in .6s ease-out both}.play-buyer.is-leaving{animation:play-walk-out .65s ease-in both}
.play-buyer.is-drop-target{filter:drop-shadow(0 0 10px #f3d67c)}
.play-buyer-bubble{position:absolute;z-index:6;top:56%;left:55%;width:40%;max-width:190px;box-sizing:border-box;padding:9px 10px;border:1px solid #d7bd78;border-radius:13px 13px 13px 3px;background:#f4f0dd;color:#273d2d;box-shadow:0 3px 7px #071b1733;pointer-events:none}
.play-buyer-bubble:after{content:'';position:absolute;left:8px;bottom:-8px;border:8px solid transparent;border-top-color:#f4f0dd;border-left-color:#f4f0dd;border-bottom:0}
.play-buyer-bubble strong{display:block;font-size:12px;margin-bottom:4px}.play-buyer-bubble>span{display:block;font-size:12px;line-height:1.3;overflow-wrap:anywhere}.play-buyer-bubble progress{display:block;width:100%;height:7px;margin:6px 0 2px;accent-color:#70ab74}.play-buyer-bubble small{font-size:10px}
.play-buyer[hidden],.play-buyer-bubble[hidden]{display:none}
.play-scene-hint{position:absolute;left:50%;top:52%;transform:translateX(-50%);max-width:82%;padding:8px 12px;border-radius:12px;background:#173d2ff2;color:#ffe39c;text-align:center;font-size:14px;opacity:0;pointer-events:none;z-index:8}.play-scene-hint.show{opacity:1}
.play-drag-bottle{position:fixed;width:56px;height:84px;z-index:70;pointer-events:none;filter:drop-shadow(0 5px 5px #0005)}.play-drag-bottle svg{width:100%;height:100%}.room-shelf-target.is-dragging>.bottle-preview{opacity:.25}
[data-play-scene=true][data-vip=true]{box-shadow:inset 0 0 30px #eacb6855}
.play-confetti{position:absolute;inset:0;pointer-events:none;z-index:7;overflow:hidden}.play-confetti i{position:absolute;left:calc(9% + var(--n)*7%);top:15%;width:5px;height:9px;background:#ebcd7d;animation:play-confetti-fall 1.3s ease-out both;animation-delay:calc(var(--n)*.025s)}
.play-warehouse-links{display:flex;gap:8px;margin-bottom:16px}.play-warehouse-links button{flex:1;font-size:13px;min-height:44px}
.play-stock-dialog>details{display:block!important;margin:0!important}.play-stock-dialog>details>summary{display:none!important}
body[data-game-view=shop] #view[data-shop-panel=orders]>.farm-shop-tabs{display:grid;margin:calc(var(--shop-hud-bottom,80px) + 2px) 10px 10px}
body[data-game-view=shop] #shop-orders-panel{height:calc(100dvh - var(--shop-hud-bottom,80px) - var(--dock-h,72px) - var(--dock-safe,0px) - 72px);overflow:auto;padding:0 10px 20px;box-sizing:border-box}
@keyframes play-walk-in{from{transform:translate(-50%,100%) scale(1.1);opacity:0}to{transform:translate(-50%,0);opacity:1}}
@keyframes play-walk-out{to{transform:translate(130%,20%) scale(.9);opacity:0}}
@keyframes play-confetti-fall{to{transform:translateY(340px) rotate(280deg);opacity:0}}
@media(prefers-reduced-motion:reduce){.play-buyer,.play-confetti i{animation:none!important;transition:none!important}}
/* Override the old building-thumbnail limits on the illustrated room itself. */
body[data-game-view=shop] .shop-room-viewport>img.play-room-art{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:fill;margin:0;filter:none}
body[data-game-view=shop] .shop-room-viewport.play-evening>img.play-room-art{filter:brightness(.87) saturate(.94)}
#dialog:has(.room-ready-list),#dialog:has(#roomMakePerfume){position:fixed;inset:auto 0 calc(var(--dock-h,72px) + var(--dock-safe,0px));margin:0 auto;width:min(100%,600px);max-width:600px;max-height:65dvh;box-sizing:border-box;border-radius:20px 20px 0 0;padding:18px 16px;background:#102e22;border-color:#c4aa67;animation:play-sheet-in .2s ease-out}
#dialog:has(.room-ready-list)::backdrop,#dialog:has(#roomMakePerfume)::backdrop{background:#04181155;backdrop-filter:none}
#dialog .room-ready-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:43dvh}
#dialog .room-ready-list article{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:9px 6px;background:#1b3b2c}
#dialog .room-ready-list article>div{width:100%;min-width:0;text-align:center}
#dialog .room-ready-list .bottle-preview{width:50px;height:66px}
#dialog .room-ready-list h3{font-size:14px;line-height:1.2;margin:0 0 6px;overflow-wrap:anywhere}
#dialog .room-ready-list small{display:block;font-size:11px;line-height:1.25;min-height:2.5em}
#dialog .room-ready-list p{font-size:12px;margin:6px 0}
#dialog .room-ready-list button{font-size:12px;padding:8px 3px}
.play-placed>.bottle-preview{animation:play-bottle-place .6s ease-out both}
@keyframes play-sheet-in{from{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes play-bottle-place{from{transform:translateY(60px) scale(.75);opacity:0}65%{transform:translateY(-9px);opacity:1}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){#dialog:has(.room-ready-list),#dialog:has(#roomMakePerfume),.play-placed>.bottle-preview{animation:none}}
.play-wish-icons{display:flex;gap:6px;margin-bottom:5px}
body[data-game-view=shop] .play-buyer-bubble .play-wish-icons img{width:25px;height:25px;max-height:none;object-fit:cover;border:1px solid #cdb267;border-radius:50%;margin:0}
body[data-game-view=shop] .play-room-art{transition:filter 1.2s ease}
.play-lights i{transition:opacity 1.2s ease}
@media(prefers-reduced-motion:reduce){body[data-game-view=shop] .play-room-art,.play-lights i{transition:none}}
.play-drag-bottle{left:0;top:0;will-change:transform}
/* Keep the speech bubble beside the person, clear of their head on small phones. */
.play-buyer-bubble{left:58%;width:39%;padding:7px 8px}
.play-buyer-bubble>strong,.play-buyer-bubble>small{display:none}
[data-vip=true] .play-buyer-bubble>strong,[data-vip=true] .play-buyer-bubble>small{display:block}
@media(max-height:600px){.play-wish-icons img{width:21px!important;height:21px!important}.play-buyer-bubble>span{font-size:11px}.play-buyer-bubble{padding:6px 7px}}
.play-retry{position:absolute;z-index:10;left:60px;right:60px;top:var(--shop-hud-bottom,76px);min-height:44px;margin:0;padding:8px;border:1px solid #edcc81;border-radius:12px;background:#234936;color:#f4dda1;font-size:13px}
.play-retry[hidden]{display:none}
[data-play-scene=true][data-vip=true]::after{content:'';position:absolute;inset:0;z-index:7;pointer-events:none;border:1px solid #e7c26a;box-shadow:inset 0 0 26px #f2ce6066}

/* Clear, touch-sized empty counter places. */
body[data-game-view=shop] .room-shelf-targets .is-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:20%;max-width:88px;height:58px;min-height:58px;padding:4px 2px;border:1.5px solid #edcc78;border-radius:12px;background:linear-gradient(#214b38,#103126);box-shadow:0 3px 6px #08241c66;color:#ffe4a0;text-shadow:none}
body[data-game-view=shop] .room-shelf-targets .is-empty b{font:500 26px/1 Arial,sans-serif}
body[data-game-view=shop] .room-shelf-targets .is-empty .room-empty-label{position:static;display:block;transform:none;width:auto;white-space:normal;color:#fff0bd;font:600 12px/1.15 Arial,sans-serif;text-shadow:none}
body[data-game-view=shop] .room-shelf-targets .is-empty:focus-visible{outline:3px solid #fff5cf;outline-offset:3px}
body[data-game-view=shop] .play-collect-hint{position:absolute;z-index:6;left:50%;bottom:18%;transform:translateX(-50%);width:max-content;max-width:88%;min-height:44px;margin:0;padding:9px 14px;border:1px solid #e5c875;border-radius:14px;background:#10382ef5;color:#ffe5a2;box-shadow:0 3px 12px #051c1777;font:600 14px/1.3 Arial,sans-serif}
body[data-game-view=shop] .play-collect-hint[hidden]{display:none}

/* Sale stock stands out against the subdued decorative shelf bottles. */
body[data-game-view=shop] .room-shelf-target.has-bottle>.bottle-preview{transform:scale(1.12);transform-origin:center bottom;filter:drop-shadow(0 3px 3px #122b22aa) drop-shadow(0 0 4px #f9e7ac55)}

/* Bring the counter forward; reserve the smaller foreground for visitors. */
body[data-game-view=shop] .play-buyer{left:66%;bottom:1%;height:27%;min-height:100px}
body[data-game-view=shop] .play-buyer-bubble{top:76%;left:5%;width:40%;max-width:180px}
body[data-game-view=shop] .room-shelf-target.has-bottle>.bottle-preview{transform:scale(1.2)}
body[data-game-view=shop] .play-collect-hint{left:25%;bottom:2%;max-width:44%;font-size:13px}

/* One clean create control, without inherited icon tiles or pseudo decorations. */
body[data-game-view=shop] #backLab.shop-empty-create::before,body[data-game-view=shop] #backLab.shop-empty-create::after{content:none;display:none}
body[data-game-view=shop] #backLab.shop-empty-create>svg{display:block;position:static;flex:none;width:25px;height:25px;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;filter:none;fill:none;stroke:currentColor;stroke-width:1.7}
body[data-game-view=shop] #backLab.shop-empty-create>span{display:block;position:static;margin:0;padding:0;border:0;background:none;box-shadow:none;color:inherit}

/* Earned trophy is not a shop action: keep it clear of the create button. */
body[data-game-view=shop] .my-shop-hero.shop-room-present>.skill-shop-trophy{display:none!important}
