/* Touch screens (an iPad) on the app pages: ui/device.js marks <html> dev-touch / dev-tablet / dev-phone. The pages
   don't zoom or bounce (the 3D views and the map take every gesture themselves), taps don't flash or select text,
   long presses don't open the callout, and the Home Screen app's bottom edge (the home indicator) is kept clear. */
html.dev-touch, html.dev-touch body { overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
html.dev-touch body { -webkit-tap-highlight-color: transparent; }
html.dev-touch canvas { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.dev-touch button, html.dev-touch a, html.dev-touch label, html.dev-touch summary, html.dev-touch [role="button"], html.dev-touch select {
  touch-action: manipulation; -webkit-touch-callout: none; }
html.dev-touch button, html.dev-touch [role="button"] { -webkit-user-select: none; user-select: none; }

/* the ring on what a controller has in focus on the plain pages (ui/padfocus.js) */
/* (drawn inside the edge: a card that clips its overflow would cut an outside ring off) */
.pf-ring { outline: 3px solid #ffd23a !important; outline-offset: -3px !important; box-shadow: 0 0 0 4px rgb(255 210 58 / .28) !important; }
.pf-hint { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 450; display: flex; gap: 14px; align-items: center;
  padding: 8px 14px; border-radius: 999px; background: rgb(6 8 12 / .88); border: 1px solid rgb(255 255 255 / .16); color: rgb(238 236 230 / .85);
  font: 12px/1 var(--mono, ui-monospace, monospace); pointer-events: none; transition: opacity .3s; }
.pf-hint[hidden] { display: none; }
.pf-hint b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; margin-right: 5px; font-size: 11px; color: #08090c; }
.pf-hint .pa { background: #6fd36f; } .pf-hint .pb { background: #ff6b6b; } .pf-hint .px { background: #4ea7ff; } .pf-hint .pd { background: #c9c9c9; border-radius: 5px; }

/* a match on a touch screen: the pause button (the way out with no keyboard or controller) */
.pl-pausebtn { position: fixed; z-index: 60; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .28); background: rgb(8 9 12 / .55); color: #fff; padding: 0; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); touch-action: manipulation; }
.pl-pausebtn[hidden] { display: none; }
.pl-pausebtn:active { transform: translateX(-50%) scale(.94); }
/* (Call of Bootypatooty's timer and score are at the top centre: beside them) */
body.nb-play-fps .pl-pausebtn { left: calc(50% + 150px); }
