/* Shared by every installed screen and game, including iframe documents. */
html {
  touch-action: pan-x pan-y !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

img, a {
  -webkit-user-drag: none !important;
}

input:not([readonly]):not([disabled]),
textarea:not([readonly]):not([disabled]),
[contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"],
[contenteditable=""] *, [contenteditable="true"] *, [contenteditable="plaintext-only"] * {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

/* iOS zooms into fields below 16px. Nova's main fields already use 18-22px. */
input:not(.mainInput):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
textarea, select, [contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"] {
  font-size: max(16px, 1em) !important;
}
