#panel .pbox{max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);overflow-y:auto;overscroll-behavior:contain;touch-action:auto}
#panel .pbody{overflow-y:auto;overscroll-behavior:contain}
.release-find{padding:8px 10px;background:#efe4cc;color:#85372d;border-left:3px solid #85372d}
.v18-ar i{border:0!important;transform:none!important;width:28px!important;height:28px!important;background-size:contain;background-repeat:no-repeat;background-position:center}
.paw-print i{border:0!important;background-size:contain;background-repeat:no-repeat;background-position:center;width:48px;height:48px;border-radius:0!important;transform:none!important}
.paw-print i:before,.paw-print i:after{display:none!important}

.v18-ar.l i{background-image:url('../assets/ui/release1179/arrow-left.png')}
.v18-ar.r i{background-image:url('../assets/ui/release1179/arrow-right.png')}
.paw-slot .paw-real img{width:60px;height:82px;display:block;transform:scaleY(-1)}
#hint.release-interact:before{content:"";display:inline-block;width:18px;height:18px;background:url('../assets/ui/release1179/paw-mark.png') center/contain no-repeat}

/* Browser scrolling needs permission on every ancestor, including html/body. */
html,body{touch-action:auto}
#game,#stick-zone,#stick-base,#stick-knob,#touch-btns,.tbtn,#hotbar .slot{touch-action:none}
#panel{touch-action:auto}
#panel .inv-left,#panel .inv-left .islot{touch-action:pan-y}
#panel .inv-right{overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain}
#panel .pbox{overflow-x:hidden}
#choice{max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
#panel .inv-right .inv-card{flex:0 0 auto}
#panel .inv-right .ic-desc{display:block;-webkit-line-clamp:unset;overflow:visible}
#panel .inv-right .ic-stats{max-height:none;overflow:visible}
/* R2: menu gestures are handled directly; game controls keep their own handlers. */
#panel.on,#choice.on{touch-action:none!important}
#panel .pbox{max-height:calc(100vh - 28px);max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px)}
#choice{max-height:calc(100vh - 28px);max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px)}

/* Keep headings and close button visible; scroll the content region. */
#panel .pbox.scroll-shell{display:flex;flex-direction:column;overflow-y:hidden}
#panel .scroll-shell > :not(.pbody){flex-shrink:0}
#panel .scroll-shell > .pbody{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto}
#panel .scroll-shell:has(.inv-wrap){height:calc(100vh - 28px);height:calc(100vh - 28px);height:calc(100dvh - 28px)}
#panel .scroll-shell .mn-body:has(.inv-wrap){display:flex;overflow:hidden}
#panel .scroll-shell .inv-wrap{height:100%;max-height:none;flex:1;min-height:0;width:100%}
