/* V266 — Android/tablet one-finger scrolling hardening.
   Some coarse-pointer browsers (notably Samsung Internet/Chrome on tablets)
   were inheriting viewport/gesture rules intended for compact game scenes.
   Keep ordinary pages vertically pannable with one finger while preserving
   explicit modal/page locks and keyboard-specific gameplay layouts. */
@media (max-width:1000px), (pointer:coarse) {
  html {
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior-y:auto;
    touch-action:pan-y pinch-zoom!important;
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }
  body {
    overflow-x:hidden;
    overscroll-behavior-y:auto;
    touch-action:pan-y pinch-zoom!important;
    -webkit-overflow-scrolling:touch;
  }

  /* A normal screen scrolls normally. Explicit modal/keyboard locks continue
     to own overflow when they are actually active. */
  body:not(.wos-page-locked):not(.wos-modal-open):not(.kk-result-open):not(.how-to-open):not(.ha-modal-open):not(.preseason-open):not(.wos-week-modal-open) {
    overflow-y:auto!important;
  }

  #root,
  #app,
  main,
  .app-shell,
  .sh-shell,
  .page,
  .game-shell,
  .site-shell {
    touch-action:pan-y pinch-zoom!important;
  }

  /* Harf Avı's board previously consumed all touch movement on some Android
     devices. Outside the active keyboard layout it is just a tap grid, so a
     vertical drag should remain a normal page scroll. */
  body:not(.wos-keyboard-open):not(.wos-mobile-keyboard-open) .board-wrap {
    touch-action:pan-y pinch-zoom!important;
    overscroll-behavior-y:auto!important;
  }

  input,
  textarea,
  select,
  button,
  a,
  [role="button"] {
    touch-action:manipulation!important;
  }

  [class*="scroll"],
  .search-menu,
  .player-suggestions,
  .modal-card,
  .ranked-profile-modal {
    -webkit-overflow-scrolling:touch;
  }
}
