/* The native cursor stays precise; the frost never intercepts clicks. */
@media (any-hover: hover) and (any-pointer: fine) {
  html, body, body * {
    cursor: url('/assets/frost-arrow-cursor.svg') 4 3, auto !important;
  }
  input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  textarea, [contenteditable="true"], [contenteditable="true"] * {
    cursor: text !important;
  }
}
.frost-trail {
  position: fixed; inset: 0; z-index: 10000;
  display: block; width: 100%; height: 100%;
  pointer-events: none !important; user-select: none;
  contain: strict;
}
body.frost-trail-enabled .frost-trail { display: block !important; }
body:not(.frost-trail-enabled) .frost-trail { display: none !important; }

/* A visible CSS fallback remains when Canvas is unavailable. The ordinary
   system preference still applies, but an explicit snow choice can override it. */
body.snow-enabled .snow { display: block !important; }
body.snow-disabled .snow { display: none !important; }
.snow canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.snow[data-renderer="canvas"] > i { display: none; }
.snow[data-renderer="css"] > i, body.snow-enabled .snow > i {
  top: var(--y, 50%); opacity: .42;
  animation: frost-snow-fall var(--d) linear var(--delay) infinite !important;
}
@keyframes frost-snow-fall {
  from { top: -12px; transform: translateX(0); opacity: .12; }
  15% { opacity: .5; }
  85% { opacity: .4; }
  to { top: calc(100% + 12px); transform: translateX(-110px); opacity: .12; }
}
@media print { .snow, .frost-trail { display: none !important; } }
