/* Keep the rod list bounded by the game area in windowed and fullscreen modes. */
#rodDialog .pdf-rod-surface{grid-template-rows:minmax(0,1fr);min-height:0;overflow:hidden;box-sizing:border-box}
#rodDialog #ownedRodList{height:100%;max-height:100%;min-height:0;min-width:0;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;gap:2px;padding:8px;scroll-padding-block:8px}
#rodDialog #ownedRodList button,#rodDialog #ownedRodList button.selected{flex:0 0 auto;min-height:28px;height:auto;padding:4px 8px;line-height:1.15;font-size:clamp(12px,1.5cqw,24px)}

/* mobile-native-rod-scroll: swipe the list without moving the game page. */
#rodDialog #ownedRodList{touch-action:pan-y;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}
#rodDialog #ownedRodList button{touch-action:pan-y}
@media(pointer:coarse),(max-width:700px){
 #rodDialog .pdf-rod-surface{grid-template-columns:clamp(112px,30%,172px) minmax(0,1fr)}
 #rodDialog #ownedRodList{overflow-y:scroll;padding:6px;scrollbar-width:thin}
 #rodDialog #ownedRodList button,#rodDialog #ownedRodList button.selected{min-height:36px;padding:5px 6px;font-size:14px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
}
