/* 透明落点容器覆盖整张桌面，但不能截住角色、记分牌或空白处的滚动。 */
.tabletop-shell .board-area{pointer-events:none;touch-action:pan-y pinch-zoom!important}
.tabletop-shell .cell-grid{pointer-events:none;touch-action:pan-y pinch-zoom!important}
.tabletop-shell .cell{pointer-events:auto;touch-action:pan-y pinch-zoom!important}
/* 手指点按不改变按钮位置和大小；保留蓝色外观以及原有按压阴影。 */
@media(hover:none),(pointer:coarse){
 button.primary,button.secondary,nav .text-button,dialog .close,.difficulty button{transform:none!important}
}
/* 原生 dialog 不受影响，仅为缺少该 API 的旧内核提供遮罩和定位。 */
dialog:not([open]){display:none}
dialog[data-fallback="true"][open]{display:block;position:fixed;top:50%;left:0;right:0;bottom:auto;transform:translateY(-50%);margin:0 auto;z-index:2001;max-height:85vh;overflow-y:auto}
.legacy-modal-backdrop{position:fixed;inset:0;z-index:2000;background:#233a3060}
