/* Mobile-native pass (every page). Rules here are about the phone platform layer only. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
body { overscroll-behavior-y: none; }
a, button, summary, label, select, input, textarea, [role="button"], [role="tab"], [tabindex] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
input, select, textarea { font-size: max(16px, 1em); }
button, [role="button"], .ub-roll, .pill, .ub-pill { -webkit-touch-callout: none; }
button, [role="button"] { -webkit-user-select: none; user-select: none; }
/* notch, home bar and landscape cut-outs (viewport-fit=cover) */
html .nav, html .ub-nav { top: max(var(--edge), calc(env(safe-area-inset-top) + 8px)); left: max(var(--edge), env(safe-area-inset-left)); right: max(var(--edge), env(safe-area-inset-right)); }
html .ui-footer, html .ub-footer { bottom: max(var(--edge), calc(env(safe-area-inset-bottom) + 8px)); left: max(var(--edge), env(safe-area-inset-left)); right: max(var(--edge), env(safe-area-inset-right)); }
/* phones: tiles are the links, so the hover caption (sized for 1440px) is not needed */
@media (max-width: 820px) { .hover-info { display: none; } }
/* full-screen fixed layers that hold links keep clear of the notch and home bar */
html .stage, html .wl { padding-top: env(safe-area-inset-top); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom); padding-left: env(safe-area-inset-left); }
/* nothing may push the page sideways on a phone (tilted tiles and bleeding images are clipped, not scrolled) */
@media (max-width: 700px) { html, body { overflow-x: clip; max-width: 100%; } }
