/* A small Amanita with a precise tip; SVG stays crisp, PNG is the fallback. */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: url('../cursors/mushroom.svg') 2 2, url('../cursors/mushroom.png') 2 2, auto;
  }

  body :is(a, button, summary, label, select, [role="button"], input[type="button"], input[type="submit"], input[type="reset"], input[type="image"], input[type="checkbox"], input[type="radio"], input[type="file"], input[type="color"]) {
    cursor: url('../cursors/mushroom-active.svg') 2 2, url('../cursors/mushroom-active.png') 2 2, pointer !important;
  }

  /* Keep editing, resizing and unavailable controls familiar. */
  body :is(input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], textarea, [contenteditable]:not([contenteditable="false"])) {
    cursor: text !important;
  }
  body :is(button:disabled, input:disabled, select:disabled, textarea:disabled, [aria-disabled="true"]) {
    cursor: not-allowed !important;
  }
  body input[type="range"] { cursor: grab !important; }
  body input[type="range"]:active { cursor: grabbing !important; }
}
