[data-cursor-light] {
  --light-accent: #e8c369;
  --light-edge: var(--light-accent);
  isolation: isolate;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--light-accent) 38%, transparent),
              inset 0 0 26px color-mix(in srgb, var(--light-edge) 20%, transparent);
}
html[data-game="zomboid"] [data-cursor-light] { --light-accent: #7cf2a4; }
[data-cursor-light]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 245px 195px at var(--light-x, 50%) var(--light-y, 50%),
              color-mix(in srgb, var(--light-accent) 30%, transparent), transparent 100%);
  opacity: 0;
  transition: opacity .24s ease;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-cursor-light]:hover::after { opacity: 1; }
}
