/* 首页交互修复：装饰层不接收事件，所有游戏控件保持可点击。 */
.bg,
.bg *,
.board-card::before,
.board-card::after,
.board-shell::before,
.board-shell::after,
.scene-badge,
.fairy-burst,
.fairy-flash,
.merge-particle,
.star-particle {
  pointer-events: none !important;
}

.hud,
.scene .rail,
.board-card,
.bottom-bar,
.sheet,
.modal {
  pointer-events: auto;
}

button,
[role="button"],
.cell,
.order-card,
.region-card,
.pet-card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.board,
.board .cell {
  touch-action: none;
}

button:active,
[role="button"]:active {
  opacity: .88;
}

/* 部分 WebView 中，隐藏弹层仍可能因 transform 留层而截获触摸。 */
.sheet-mask[hidden],
.modal-mask[hidden],
[hidden],
[aria-hidden="true"].toast {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
