/* iPad shops (Mac, 2026-10-17): the toys stand on the shelf boards in the shop picture instead of a floating grid, as big
   as each shelf's space allows, with the price on the board's front edge under each toy (like phone-shops.css on phones).
   On tablets the shop picture fills the whole screen (tablet-layout.css: .shop-scene::before, fixed, 100% 100%), so the
   toys are fixed too and every number below is read straight off the picture as a share of the screen:
   --rN where row N's board top is (the toy's feet), --pN the middle of that board's front edge (the price),
   --hN how tall the space above the board is, --cA/--cB/--cC the three columns. */
@media(min-width:700px) and (min-height:600px){
 html body.ui2[data-place=shop] #main .shop-scene{--r1:32;--p1:34;--h1:12;--r2:48.5;--p2:50.5;--h2:12.5;--r3:62;--p3:64.5;--h3:10;--cA:28%;--cB:50%;--cC:72%}
 html body.ui2[data-place=shop] #main .shop-scene.shop-color-1{--r1:35.5;--p1:37.5;--h1:13.5;--r2:55;--p2:57;--h2:15.5;--r3:71.5;--p3:73;--h3:12}
 html body.ui2[data-place=shop] #main .shop-scene.shop-color-2{--r1:30;--p1:33;--h1:14;--r2:48.5;--p2:52;--h2:12;--r3:68.5;--p3:71;--h3:12.5;--cA:27%;--cC:73%}
 html body.ui2[data-place=shop] #main .shop-scene.shop-color-3{--r1:42.5;--p1:44;--h1:15.5;--r2:58;--p2:59;--h2:13;--r3:70.5;--p3:72;--h3:10.5;--cA:31%;--cC:69%}
 html body.ui2[data-place=shop] #main .shop-scene.shop-color-4{--r1:42;--p1:43.5;--h1:15;--r2:58;--p2:59;--h2:13.5;--r3:70;--p3:71.5;--h3:10;--cA:31%;--cC:69%}
 html body.ui2[data-place=shop] #main .shop-scene.shop-color-5{--r1:26.5;--p1:28;--h1:14.5;--r2:41.5;--p2:43;--h2:12.5;--r3:60;--p3:63;--h3:16;--cA:29%;--cC:71%}
 html body.ui2[data-place=shop] #main .shop-scene.shop-color-6{--r1:41;--p1:42.5;--h1:11;--r2:52.5;--p2:54;--h2:9.5;--r3:64.5;--p3:66.5;--h3:9.5;--cA:34%;--cC:66%}
 html body.ui2[data-place=shop] #main .shop-scene.shop-color-7{--r1:29;--p1:29.8;--h1:13;--r2:43.8;--p2:44.6;--h2:13.8;--r3:58.3;--p3:59.3;--h3:13.3;--cA:27%;--cC:73%}

 /* shops 3-6 share one picture of four interiors: show each shop its own quarter (it was being stretched whole) */
 html body.ui2[data-place=shop] #main .shop-scene:is(.shop-color-3,.shop-color-4,.shop-color-5,.shop-color-6){background-size:200% 200%!important}
 html body.ui2[data-place=shop] #main .shop-scene.shop-color-3{background-position:0 0!important}
 html body.ui2[data-place=shop] #main .shop-scene.shop-color-4{background-position:100% 0!important}
 html body.ui2[data-place=shop] #main .shop-scene.shop-color-5{background-position:0 100%!important}
 html body.ui2[data-place=shop] #main .shop-scene.shop-color-6{background-position:100% 100%!important}

 html body.ui2[data-place=shop] #main .shop-scene .shelves{display:block!important}
 html body.ui2[data-place=shop] #main .shop-scene .toy-card,html body.ui2[data-place=shop] #main .shop-scene .toy-card:nth-child(n){--r:var(--r1);--p:var(--p1);--h:var(--h1);
  position:fixed!important;display:block!important;top:calc(var(--r)*1%)!important;left:var(--cA)!important;right:auto!important;bottom:auto!important;
  /* the toy pictures have a little empty room around them, so the box is a touch taller than the space and its feet sit just below its bottom */
  height:calc(var(--h)*1.22%)!important;width:auto!important;aspect-ratio:1!important;max-width:24vw!important;min-height:0!important;
  transform:translate(-50%,-94%)!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 .toy-card:nth-child(3n+2){left:var(--cB)!important}
 html body.ui2[data-place=shop] #main .shop-scene .toy-card:nth-child(3n){left:var(--cC)!important}
 html body.ui2[data-place=shop] #main .shop-scene .toy-card:nth-child(n+4):nth-child(-n+6){--r:var(--r2);--p:var(--p2);--h:var(--h2)}
 html body.ui2[data-place=shop] #main .shop-scene .toy-card:nth-child(n+7){--r:var(--r3);--p:var(--p3);--h:var(--h3)}
 html body.ui2[data-place=shop] #main .shop-scene .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;min-height:0!important;aspect-ratio:1!important;margin:0!important;filter:drop-shadow(0 5px 3px #6b452a40)}
 /* the price sits on the board's front edge, centred under its toy */
 html body.ui2[data-place=shop] #main .shop-scene .toy-card .toy-name{position:absolute!important;left:50%!important;right:auto!important;bottom:auto!important;top:calc(94% + (var(--p) - var(--r))*1dvh)!important;transform:translate(-50%,-50%)!important;width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
 html body.ui2[data-place=shop] #main .shop-scene .toy-card .price-tag{position:static!important;transform:none!important;margin:0!important}
}
/* the treasure shelf box stands in the floor's left corner, narrow enough to stay clear of the bottom-left toy */
@media(min-width:700px) and (min-height:600px){
 html body.ui2[data-place=shop] #main .shop-scene .tr-case{left:12px!important;right:auto!important;bottom:6px!important;width:min(19vw,250px)!important;padding:10px 12px!important}
}
