/* Shared by the main site and the Live2D document. */
@media (any-hover: hover) and (any-pointer: fine) {
  html, body {
    cursor: url('/assets/images/cursor-normal.png'), auto;
  }

  /* Text controls keep their caret and selection behavior with the dedicated text pointer. */
  input:not([type]):enabled,
  input[type="text"]:enabled,
  input[type="search"]:enabled,
  input[type="email"]:enabled,
  input[type="url"]:enabled,
  input[type="tel"]:enabled,
  input[type="password"]:enabled,
  input[type="number"]:enabled,
  textarea:enabled,
  [contenteditable="true"] {
    cursor: url('/assets/images/cursor-text.png') 0 0, text !important;
  }

  .heat-cell {
    cursor: url('/assets/images/cursor-normal.png'), auto !important;
  }

  /* Override component pointer rules while preserving disabled states. */
  :is(
    a[href],
    button:enabled,
    summary,
    select:enabled,
    input[type="checkbox"]:enabled,
    input[type="radio"]:enabled,
    input[type="range"]:enabled,
    input[type="button"]:enabled,
    input[type="submit"]:enabled,
    input[type="reset"]:enabled,
    [role="button"],
    label[for],
    .notification-preference,
    .heat-cell[title]:hover
  ):not(:disabled):not([aria-disabled="true"]) {
    cursor: url('/assets/images/cursor-link.png'), pointer !important;
  }
}
