/* Familiar gestures retain every visible button and respect system zoom. */
html #modal[open] .viewer:not(.viewer-details) .squish-stage{touch-action:pan-y pinch-zoom}
html #modal[open] .viewer .viewer-heading{touch-action:none}
html #modal[open] .viewer.sq-viewer-browsing .squish-stage{cursor:grabbing}
html .book-grid.paged,html body[data-place=town] .hunter-shops{overscroll-behavior-x:contain;scroll-snap-type:x mandatory;touch-action:pan-y pinch-zoom}
html .book-grid.paged .book-page,html body[data-place=town] .hunter-shop{scroll-snap-stop:always}
html .sq-rail-dragging{scroll-snap-type:none!important;scroll-behavior:auto!important;cursor:grabbing;user-select:none}
html .sq-rail-dragging *{cursor:grabbing!important;user-select:none;-webkit-user-select:none}
html body .room-lift-ghost{filter:drop-shadow(0 14px 9px #4a2f1f45);scale:1.08;pointer-events:none!important}
html body .room-display .display-toys .room-source-lifting{opacity:.38;filter:saturate(.8);transition:opacity .12s ease,filter .12s ease}
html body .bedroom-scene .room-drop-ready{outline:3px solid #84cdb0;outline-offset:4px;border-radius:24px}
html body .bedroom-scene .rp-toy.room-drop-ready .rp-shadow{opacity:1;filter:drop-shadow(0 0 5px #84cdb0)}
.sq-town-peek{position:fixed;overflow:hidden;pointer-events:none!important;z-index:19;contain:layout paint;isolation:isolate}
.sq-town-peek *{pointer-events:none!important;animation:none!important;transition:none!important;view-transition-name:none!important;outline:none!important}
html body .shop-back-edge{z-index:31!important}
@media(prefers-reduced-motion:reduce){html body .room-lift-ghost{scale:1}html body .room-display .display-toys .room-source-lifting{transition:none}html body .bedroom-scene .rp-toy.rp-dragging{transition:none}}

/* iPhone/iPad own collection page panning too (scripted pans got cancelled mid-swipe); JavaScript only enhances mouse dragging. */
html #modal .book-grid.paged,html .book-grid.paged .book-page,html .book-grid.paged .book-toy,html .book-grid.paged .book-toy *{touch-action:pan-x pinch-zoom!important}

/* iPhone owns storefront panning; JavaScript only enhances mouse dragging. */
html body[data-place=town] .hunter-shops,html body[data-place=town] .hunter-shop,html body[data-place=town] .hunter-shop *{touch-action:pan-x pinch-zoom!important}
html body[data-place=town] .hunter-shop{-webkit-user-select:none;user-select:none}
html body[data-place=town] .hunter-shop img{-webkit-user-drag:none}

/* Promote only active moving surfaces; release layers when the gesture ends. */
html #modal[open] .viewer.sq-viewer-browsing .squish-stage{will-change:translate;transition:none!important}
html .sq-rail-dragging .book-page{animation:none!important}
