/* MapleStory's own mouse cursors (tools/build_cursor_art.py; UI.wz Basic.img/Cursor 0, 1, 12).
   Every stylesheet uses these variables instead of the browser's cursors:
   --cur-default  the white glove — everywhere, and on things that are switched off
   --cur-click    the glove with the little mouse — over anything you can click
   --cur-press    the glove pressing down — while the mouse button is held on something clickable
   The numbers after each picture are its click point (its "origin" in the game files). If a
   browser can't use the pictures it falls back to its own cursors. */
:root {
  --cur-default: -webkit-image-set(url("/static/img/cursor/normal.png") 1x, url("/static/img/cursor/normal@2x.png") 2x) 0 3, auto;
  --cur-click: -webkit-image-set(url("/static/img/cursor/click.png") 1x, url("/static/img/cursor/click@2x.png") 2x) 3 6, pointer;
  --cur-press: -webkit-image-set(url("/static/img/cursor/press.png") 1x, url("/static/img/cursor/press@2x.png") 2x) 4 1, pointer;
}

html { cursor: var(--cur-default); }
a, button, select, summary, label[for], [role="button"], input[type="checkbox"], input[type="radio"], input[type="range"] { cursor: var(--cur-click); }
button:disabled, select:disabled, input:disabled { cursor: var(--cur-default); }
/* typing keeps the normal text cursor, so it's easy to see where the text goes */
input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], textarea { cursor: text; }
/* holding the mouse button down on something clickable: the glove presses */
:active { --cur-click: var(--cur-press); }
