/* [RECRIADO] Game chrome is never selectable, including body-mounted dialogs.
 * Keep this layer before component layers: important rules must survive new UI CSS. */
@layer pb-selection {
  *, *::before, *::after {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
  }

  /* Native editing, selection, copy/paste and IME remain available in text fields.
   * :read-write includes editable descendants, but excludes contenteditable=false islands. */
  input:not([type]),
  input:is([type="text" i], [type="search" i], [type="email" i], [type="url" i], [type="tel" i], [type="password" i], [type="number" i]),
  textarea,
  :read-write:not(input, select) {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
  }

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