/* RageWare reactive cursor — a lightweight visual accent on fine-pointer devices.
   The native cursor and text caret remain usable if JavaScript is disabled. */
:root {
  --rw-cursor-rgb: 67, 145, 255;
}
html:has(body.admin-shell), html:has(body[class*="admin-"]) {
  --rw-cursor-rgb: 54, 219, 142;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .rw-reactive-cursor {
    position: fixed;
    z-index: 2147483646;
    top: 0; left: 0;
    width: 23px; height: 23px;
    margin: -11.5px 0 0 -11.5px;
    border: 1.5px solid rgba(var(--rw-cursor-rgb), .82);
    border-radius: 50%;
    background: rgba(var(--rw-cursor-rgb), .045);
    box-shadow: 0 0 11px rgba(var(--rw-cursor-rgb), .18), inset 0 0 7px rgba(var(--rw-cursor-rgb), .06);
    pointer-events: none !important;
    user-select: none;
    opacity: 0;
    transform: translate3d(-200px,-200px,0) scale(.7);
    transition: opacity 130ms ease, width 180ms ease, height 180ms ease,
      margin 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    will-change: transform;
    contain: layout style paint;
  }
  .rw-reactive-cursor::after {
    content: '';
    position: absolute;
    width: 3px; height: 3px;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgb(var(--rw-cursor-rgb));
    opacity: .9;
    transition: opacity 140ms ease, width 140ms ease, height 140ms ease;
  }
  .rw-reactive-cursor.is-visible { opacity: .92; }
  .rw-reactive-cursor.is-interactive {
    width: 35px; height: 35px;
    margin: -17.5px 0 0 -17.5px;
    background: rgba(var(--rw-cursor-rgb), .12);
    box-shadow: 0 0 13px rgba(var(--rw-cursor-rgb), .31), inset 0 0 8px rgba(var(--rw-cursor-rgb), .09);
  }
  .rw-reactive-cursor.is-interactive::after { width: 4px; height: 4px; }
  .rw-reactive-cursor.is-pressed {
    width: 13px; height: 13px;
    margin: -6.5px 0 0 -6.5px;
    background: rgba(var(--rw-cursor-rgb), .3);
    box-shadow: 0 0 16px rgba(var(--rw-cursor-rgb), .42);
  }
  .rw-reactive-cursor.is-text { opacity: 0 !important; }
  .rw-reactive-cursor.is-hidden { opacity: 0 !important; }
  .rw-cursor-click-pulse {
    position: fixed;
    z-index: 2147483645;
    top: 0; left: 0;
    width: 14px; height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    border: 1.5px solid rgba(var(--rw-cursor-rgb), .72);
    transform: translate3d(var(--rw-pulse-x),var(--rw-pulse-y),0) scale(.4);
    animation: rw-cursor-pulse 430ms ease-out forwards;
    pointer-events: none !important;
  }
  @keyframes rw-cursor-pulse {
    0% { opacity: .8; transform: translate3d(var(--rw-pulse-x),var(--rw-pulse-y),0) scale(.4); }
    100% { opacity: 0; transform: translate3d(var(--rw-pulse-x),var(--rw-pulse-y),0) scale(3.4); }
  }
}
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .rw-reactive-cursor, .rw-cursor-click-pulse { display: none !important; }
}
