/* light-cursor.css
 *
 * The light that follows a mouse or trackpad pointer (js/cursor/): its
 * canvas over the whole screen, and the system's arrow hidden while it is
 * on (light-cursor.js turns it on only for a precise pointer that has
 * moved; touch screens keep their usual behaviour).
 */

/* Clicks pass straight through. In the top layer as a popover (above the
   cards that open as dialogs), so the browser's own popover look (a box in
   the middle, with a border and a background) is undone. */
.light-cursor {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  pointer-events: none;
  z-index: 2147483647;
}

/* The system's arrow, hidden everywhere while the light is on. */
html.has-light-cursor,
html.has-light-cursor *,
html.has-light-cursor *::before,
html.has-light-cursor *::after,
html.has-light-cursor ::backdrop {
  cursor: none !important;
}
