/* Browser-native cursors only. Missing PNGs fall back to the system cursor. */
:root{
  --game-cursor-default:url('assets/cursors/default.png') 5 2,auto;
  --game-cursor-pointer:url('assets/cursors/pointer.png') 12 2,pointer;
  --game-cursor-grab:url('assets/cursors/grab.png') 17 22,grab;
  --game-cursor-grabbing:url('assets/cursors/grabbing.png') 17 19,grabbing;
}
@supports(cursor:image-set(url('assets/cursors/default.png') 1x,url('assets/cursors/default-2x.png') 2x) 0 0,auto){
  :root{
    --game-cursor-default:image-set(url('assets/cursors/default.png') 1x,url('assets/cursors/default-2x.png') 2x) 5 2,url('assets/cursors/default.png') 5 2,auto;
    --game-cursor-pointer:image-set(url('assets/cursors/pointer.png') 1x,url('assets/cursors/pointer-2x.png') 2x) 12 2,url('assets/cursors/pointer.png') 12 2,pointer;
    --game-cursor-grab:image-set(url('assets/cursors/grab.png') 1x,url('assets/cursors/grab-2x.png') 2x) 17 22,url('assets/cursors/grab.png') 17 22,grab;
    --game-cursor-grabbing:image-set(url('assets/cursors/grabbing.png') 1x,url('assets/cursors/grabbing-2x.png') 2x) 17 19,url('assets/cursors/grabbing.png') 17 19,grabbing;
  }
}
@media(hover:hover) and (pointer:fine){
  :is(#app,#overlay,#shop-overlay,#pass-overlay),
  :is(#app,#overlay,#shop-overlay,#pass-overlay) *{cursor:var(--game-cursor-default)!important}

  :is(#app,#overlay,#shop-overlay,#pass-overlay) :is(button,a[href],[role=button],select,summary,input[type=button],input[type=submit]),
  :is(#app,#overlay,#shop-overlay,#pass-overlay) :is(button,a[href],[role=button],select,summary,input[type=button],input[type=submit]) *{cursor:var(--game-cursor-pointer)!important}

  :is(#app,#overlay,#shop-overlay,#pass-overlay) [draggable=true],
  :is(#app,#overlay,#shop-overlay,#pass-overlay) [draggable=true] *{cursor:var(--game-cursor-grab)!important}

  :is(#app,#overlay,#shop-overlay,#pass-overlay) [draggable=true]:active,
  :is(#app,#overlay,#shop-overlay,#pass-overlay) [draggable=true]:active *,
  body.dragging-card :is(#app,#overlay,#shop-overlay,#pass-overlay),
  body.dragging-card :is(#app,#overlay,#shop-overlay,#pass-overlay) *{cursor:var(--game-cursor-grabbing)!important}

  :is(#app,#overlay,#shop-overlay,#pass-overlay) :is(input:not([type=button]):not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=file]),textarea,[contenteditable=true]){cursor:text!important}

  :is(#app,#overlay,#shop-overlay,#pass-overlay) :is(:disabled,[aria-disabled=true]),
  :is(#app,#overlay,#shop-overlay,#pass-overlay) :is(:disabled,[aria-disabled=true]) *{cursor:not-allowed!important}
}
