/* The home-screen web app's page (added by tools/pwa.mjs): black behind the
   table and in the safe areas, in light and dark mode alike, and no browser
   gestures (pinch, double-tap zoom, rubber band, text selection, callouts)
   under a game played by touch. */
html, body { background: #000 !important; color: #f6f0df !important; overscroll-behavior: none; }
html { touch-action: none; }
body { -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
/* Opened from the iPhone's home screen with the page under the status bar,
   the window is one status bar shorter than the screen and a black band is
   left along its bottom: 812 of 874 points upright, and 340 of 402 when the
   app is opened with the phone on its side, where the top inset is 0 (iOS
   26.5 simulator). What the page draws there is not shown. A page as tall as
   the screen (the large viewport, either way up) makes the window reach the
   bottom. */
@media (display-mode: standalone) {
  html { min-height: max(calc(100% + env(safe-area-inset-top)), 100lvh); }
}
