/* Generated by dev/build_data.py from the game's cursor sprites. Don't edit. */
/* Settings > Diablo cursor turns it off (the d2-cursor class on <html>). */

/* A still gauntlet as a normal cursor: used when Motion is off, before the
   mouse first moves, and if scripts don't run. */
html.d2-cursor, html.d2-cursor * {
  cursor: url(../img/cursor/open.png?v=8e11f02ef1) 2 5, auto;
  cursor: image-set(url(../img/cursor/open.png?v=8e11f02ef1) 1x, url(../img/cursor/open@2x.png?v=eb253529e4) 1.855x) 2 5, auto;
}
html.d2-cursor:active, html.d2-cursor:active * {
  cursor: url(../img/cursor/press.png?v=4411e5ed51) 2 5, auto;
  cursor: image-set(url(../img/cursor/press.png?v=4411e5ed51) 1x, url(../img/cursor/press@2x.png?v=1e93f5713b) 1.855x) 2 5, auto;
}

/* The animated gauntlet (js/cursor.js) replaces the real cursor. */
html.d2-cursor.cursor-drawn:not(.no-motion), html.d2-cursor.cursor-drawn:not(.no-motion) * {
  cursor: none !important;
}
.cursor-fx {
  --fw: 69; --fh: 60; --hx: 2; --hy: 5; --ppress: 16; --protate: 16; --ohand: 16; --orotate: 16;
  position: fixed; left: 0; top: 0; z-index: 2147483647; pointer-events: none;
  width: 69px; height: 60px; visibility: hidden; will-change: transform;
  background: url(../img/cursor/hand-anim.webp?v=bfebc23703) 0 0 / 4416px 60px no-repeat;
  background-image: image-set(url(../img/cursor/hand-anim.webp?v=bfebc23703) 1x, url(../img/cursor/hand-anim@2x.webp?v=536566fb08) 2x);
}
html.d2-cursor.cursor-drawn:not(.no-motion) .cursor-fx {
  visibility: visible;
}

/* Text fields keep the text cursor. */
html.d2-cursor :is(input:not([type="range"], [type="checkbox"], [type="radio"], [type="button"]), textarea),
html.d2-cursor:active :is(input:not([type="range"], [type="checkbox"], [type="radio"], [type="button"]), textarea) {
  cursor: text !important;
}
