/*
 * SpeechGenie — pinch-zoom guard.
 *
 * SPEC-mobile-hardening-pass.md item 1: a two-finger pinch zooms the page, the
 * app then looks "too big" and every tap lands off-target — and Safari persists
 * the zoom across a reload, so a reload does not recover it. The user has to
 * find the zoom reset.
 *
 * This is the one piece of the page-lock that was load-bearing. The full lock
 * (sg-mobile-input.css, MobileInputFixPostProcess) set `touch-action: none` on
 * the canvas among much else; bisect A turned the whole file off once
 * suppressing the template's second viewport meta turned out to be the actual
 * fix for the iOS 26 landscape-input bug, and the pinch guard went with it.
 * Rather than switch the whole lock back on — it also pins html/body, which
 * would have to be re-tested against the adaptive scaler and the short-landscape
 * layout — this brings back only the rule that was doing the work.
 *
 * `touch-action` is the supported way to say this. `user-scalable=no` /
 * `maximum-scale=1` on the viewport meta is not: iOS has ignored it since 10,
 * and it takes accessibility zoom with it where it is honoured.
 *
 * How the two rules combine: the browser intersects `touch-action` down the
 * ancestor chain of whatever the finger lands on. `pan-x pan-y` on the root
 * removes pinch-zoom and double-tap-zoom document-wide while leaving ordinary
 * one-finger scrolling alone, which is what the audio-preflight card needs — it
 * is viewport-capped and scrolls internally on a short landscape screen. `none`
 * on the canvas additionally tells Safari there is nothing to pan there, so a
 * touch goes straight through instead of being held back while the browser
 * decides whether the gesture was a pan; Unity's own handlers already call
 * preventDefault, so nothing is given up by declaring it.
 *
 * Deliberately two rules and nothing else. Everything else the page-lock did is
 * still off, and still recorded in sg-mobile-input.css.
 *
 * Copied into the build root by Assets/Editor/TouchActionPostProcess.cs.
 */

html,
body {
  touch-action: pan-x pan-y;
}

#unity-canvas {
  touch-action: none;
}
