/* Shared by every public HTML document, including standalone games/iframes. */
:root {
  -webkit-tap-highlight-color: transparent;
}

:root,
:root * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none;
}

/* :read-write follows effective contenteditable, including nested false islands.
 * Read-only fields remain selectable too (room codes, account data, etc.).
 */
:root :is(input, textarea, select, :read-write) {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

/* Rare opt-in for a real HTML drag/drop game; pointer-based play needs no opt-in. */
:root [draggable="true"][data-arcade-drag="game"] {
  -webkit-user-drag: element;
}
