/* Ground contact belongs to each shop so it follows both street scrolling and plaza lots. */
html body.ui2 .hunter-shop .town-building::before,html body.ui2 .tp-shop .tp-build::before{content:"";position:absolute;left:12%;right:12%;bottom:-1%;height:7%;border-radius:50%;background:radial-gradient(ellipse,#30223b65,transparent 72%);pointer-events:none;z-index:0}
html body.ui2 .hunter-shop .shop-building,html body.ui2 .tp-build>img{position:relative;z-index:1}
html body.ui2:is([data-daylight=night],[data-pano-theme=night],.night-time,.calm-mode) .hunter-shop:not(.locked) .town-building::after,
html body.ui2:is([data-daylight=night],.night-time,.calm-mode) .tp-shop:not(.tp-locked) .tp-build::after{content:"";position:absolute;left:17%;right:10%;bottom:-7%;height:20%;z-index:0;pointer-events:none;background:radial-gradient(ellipse at 50% 25%,#ffd88b55,transparent 70%);border-radius:50%;transform:perspective(180px) rotateX(28deg)}
/* Closed-window crop rolls upward, revealing the real open shop beneath. */
.premium-shutter{position:absolute;inset:0;z-index:6;pointer-events:none;background:var(--closed-art) center bottom/contain no-repeat;clip-path:var(--shutter-start);animation:premium-shutter 1s .16s cubic-bezier(.2,.7,.2,1) both}
.premium-unlock-lock{position:absolute!important;z-index:7!important;left:43%;top:50%;width:20%!important;height:auto;pointer-events:none;animation:premium-lock 1.05s ease-out both}
.premium-unlocking .shop-logo,.premium-unlocking .tp-logo{animation:premium-sign 1.2s ease-out}
@keyframes premium-shutter{to{clip-path:var(--shutter-end)}}
@keyframes premium-lock{0%{opacity:1;transform:scale(.8) rotate(-8deg)}30%{opacity:1;transform:translateY(-25%) scale(1.14) rotate(9deg)}100%{opacity:0;transform:translateY(65%) scale(.6) rotate(22deg)}}
@keyframes premium-sign{35%{filter:brightness(1.15) drop-shadow(0 0 8px #ffe1a9)}}
/* Four distinct interiors complete the nine-shop family. Existing five interiors remain. */
html body.ui2[data-place=shop] #main .shop-scene.shop-color-3{--premium-art:url("./assets/premium-scenes/icecream-portrait.webp");--shop-art:var(--premium-art);background-image:var(--premium-art)!important;background-size:100% 100%!important;background-position:center!important;--r1:29.5%;--r2:49.5%;--r3:70%;--c1:28%;--c3:72%;--th:11.5%}
html body.ui2[data-place=shop] #main .shop-scene.shop-color-4{--premium-art:url("./assets/premium-scenes/candy-portrait.webp");--shop-art:var(--premium-art);background-image:var(--premium-art)!important;background-size:100% 100%!important;background-position:center!important;--r1:29.5%;--r2:49.5%;--r3:70%;--c1:28%;--c3:72%;--th:11.5%}
html body.ui2[data-place=shop] #main .shop-scene.shop-color-5{--premium-art:url("./assets/premium-scenes/truck-portrait.webp");--shop-art:var(--premium-art);background-image:var(--premium-art)!important;background-size:100% 100%!important;background-position:center!important;--r1:29.5%;--r2:49.5%;--r3:70%;--c1:28%;--c3:72%;--th:11.5%}
html body.ui2[data-place=shop] #main .shop-scene.shop-color-6{--premium-art:url("./assets/premium-scenes/secret-portrait.webp");--shop-art:var(--premium-art);background-image:var(--premium-art)!important;background-size:100% 100%!important;background-position:center!important;--r1:29.5%;--r2:49.5%;--r3:70%;--c1:28%;--c3:72%;--th:11.5%}
html body.ui2[data-place=shop] #main .shop-scene:is(.shop-color-3,.shop-color-4,.shop-color-5,.shop-color-6) .shelves{position:absolute!important;inset:0!important;display:block!important;margin:0!important;padding:0!important}
html body.ui2[data-place=shop] #main .shop-scene:is(.shop-color-3,.shop-color-4,.shop-color-5,.shop-color-6) .toy-card:nth-child(n){position:absolute!important;display:block!important;width:24%!important;height:var(--th)!important;min-height:0!important;transform:translate(-50%,-100%)!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;container-type:normal!important}
html body.ui2[data-place=shop] #main .shop-scene:is(.shop-color-3,.shop-color-4,.shop-color-5,.shop-color-6) .toy-card:nth-child(3n+1){left:var(--c1)!important}
html body.ui2[data-place=shop] #main .shop-scene:is(.shop-color-3,.shop-color-4,.shop-color-5,.shop-color-6) .toy-card:nth-child(3n+2){left:50%!important}
html body.ui2[data-place=shop] #main .shop-scene:is(.shop-color-3,.shop-color-4,.shop-color-5,.shop-color-6) .toy-card:nth-child(3n){left:var(--c3)!important}
html body.ui2[data-place=shop] #main .shop-scene:is(.shop-color-3,.shop-color-4,.shop-color-5,.shop-color-6) .toy-card:nth-child(-n+3){top:var(--r1)!important}
html body.ui2[data-place=shop] #main .shop-scene:is(.shop-color-3,.shop-color-4,.shop-color-5,.shop-color-6) .toy-card:nth-child(n+4):nth-child(-n+6){top:var(--r2)!important}
html body.ui2[data-place=shop] #main .shop-scene:is(.shop-color-3,.shop-color-4,.shop-color-5,.shop-color-6) .toy-card:nth-child(n+7){top:var(--r3)!important}
html body.ui2[data-place=shop] #main .shop-scene:is(.shop-color-3,.shop-color-4,.shop-color-5,.shop-color-6) .toy-card>:is(.toy,.world-art,.dumpling-box-art){position:absolute!important;inset:auto!important;left:50%!important;bottom:0!important;top:auto!important;transform:translateX(-50%)!important;width:auto!important;height:100%!important;max-width:100%!important;max-height:none!important;aspect-ratio:1!important;margin:0!important}
html body.ui2[data-place=shop] #main .shop-scene:is(.shop-color-3,.shop-color-4,.shop-color-5,.shop-color-6) .toy-card .toy-name{top:calc(100% + 1px)!important;bottom:auto!important;transform:translateX(-50%) scale(.82)!important;transform-origin:50% 0!important}
@media(min-width:700px) and (min-aspect-ratio:11/10){
html body.ui2[data-place=shop] #main .shop-scene.shop-color-3{--premium-art:url("./assets/premium-scenes/icecream-wide.webp");--r1:33.5%;--r2:50%;--r3:66%;--c1:31%;--c3:69%;--th:13%}
html body.ui2[data-place=shop] #main .shop-scene.shop-color-4{--premium-art:url("./assets/premium-scenes/candy-wide.webp");--r1:33.5%;--r2:50%;--r3:66%;--c1:31%;--c3:69%;--th:13%}
html body.ui2[data-place=shop] #main .shop-scene.shop-color-5{--premium-art:url("./assets/premium-scenes/truck-wide.webp");--r1:33.5%;--r2:50%;--r3:66%;--c1:31%;--c3:69%;--th:13%}
html body.ui2[data-place=shop] #main .shop-scene.shop-color-6{--premium-art:url("./assets/premium-scenes/secret-wide.webp");--r1:33.5%;--r2:50%;--r3:66%;--c1:31%;--c3:69%;--th:13%}
}
html body.ui2:is(.night-time,.rn-night,.calm-mode)[data-place=shop] #main .shop-scene:is(.shop-color-3,.shop-color-4,.shop-color-5,.shop-color-6){background-color:#aaa0c5!important;background-blend-mode:multiply}
/* Frame and square cover share one measured size, never the whole column height. */
.rec-kara .rk-top{--frame-side:min(94vw,46dvh,620px);position:relative;isolation:isolate;min-height:var(--frame-side);padding:0!important;display:flex;align-items:center;justify-content:center}
.rec-kara .rk-top .rk-cov{width:calc(var(--frame-side) * .64)!important;height:auto!important;max-width:none!important;max-height:none!important;aspect-ratio:1;object-fit:contain}
.rec-kara .premium-stage{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:var(--frame-side);height:var(--frame-side);max-height:none;object-fit:contain;z-index:-1;pointer-events:none}
body:is(.calm-mode,.night-time,.rn-night) .premium-stage{filter:brightness(.8) saturate(.85) drop-shadow(0 2px 5px #100b20)}
@media(orientation:landscape){.rec-kara .rk-top{--frame-side:min(48vw,calc(94dvh - 48px),860px);min-height:0}}
/* Existing night variants stay authoritative; remaining decorations receive moonlight. */
body:is(.calm-mode,.night-time,.rn-night)[data-place=home] .bedroom-scene :is(.pl-plaque,.room-decor,.decor-object){filter:brightness(.78) saturate(.85) drop-shadow(0 3px 3px #17132c55)}
body[data-place=home] .rec-player,body[data-place=home] .kr-mic{filter:drop-shadow(0 5px 3px #382f3e28)}
body:is(.calm-mode,.night-time,.rn-night)[data-place=home] :is(.rec-player,.kr-mic){filter:drop-shadow(0 5px 3px #0c102f55)}
@media(prefers-reduced-motion:reduce){.premium-shutter,.premium-unlock-lock,.premium-unlocking .shop-logo,.premium-unlocking .tp-logo{animation:none!important}}

body:is(.calm-mode,.night-time,.rn-night)[data-place=shop] #sq-basket :is(.sqb-back,.sqb-front){filter:brightness(.82) saturate(.9)}
/* Geometry-matched night shelf; toys stay on the same native shelf coordinates. */
html body.ui2:is(.calm-mode,.night-time,.rn-night)[data-place=home] .room-display.theme-rainbow>.art-furniture{background-image:url('./assets/bedroom-additions/rainbow-shelf-night.webp')!important;background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important}
html body.ui2:is(.calm-mode,.night-time,.rn-night)[data-place=home] .bedroom-scene :is(.room-flowerpot,.room-new-poster){filter:brightness(.78) saturate(.85)}
html body.ui2:is(.calm-mode,.night-time,.rn-night) #sq-dock::before{filter:brightness(.72) saturate(.82) drop-shadow(0 2px 2px #14163255)}
