/* Pointer trail adapted to this site's violet palette. It never receives clicks. */
html.rx-pointer-active, html.rx-pointer-active * { cursor: none !important; }
html.rx-pointer-active input,
html.rx-pointer-active textarea,
html.rx-pointer-active select,
html.rx-pointer-active [contenteditable="true"] { cursor: text !important; }
.rx-pointer-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
  overflow: hidden;
  opacity: .74;
  background-color: #09070d;
  background-image:
    radial-gradient(circle, rgba(207, 151, 255, .58) 1.2px, transparent 1.9px),
    radial-gradient(circle, rgba(239, 135, 229, .3) 1px, transparent 1.8px);
  background-size: 20px 20px, 37px 37px;
  background-position: 0 0, 10px 14px;
  -webkit-mask-image: radial-gradient(ellipse 85% 82% at 50% 48%, rgba(0,0,0,.42) 0%, rgba(0,0,0,.88) 100%);
  mask-image: radial-gradient(ellipse 85% 82% at 50% 48%, rgba(0,0,0,.42) 0%, rgba(0,0,0,.88) 100%);
  animation: rx-dot-field-breathe 4.8s ease-in-out infinite;
}
@keyframes rx-dot-field-breathe {
  0%, 100% { opacity: .66; }
  50% { opacity: .82; }
}
.rx-field-orb {
  position: absolute;
  left: 0;
  top: 0;
  width: min(620px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .58;
  background: radial-gradient(circle,
    rgba(167, 91, 245, .3) 0%,
    rgba(203, 101, 242, .22) 24%,
    rgba(189, 82, 229, .1) 48%,
    transparent 72%);
  filter: blur(18px);
  will-change: transform;
  z-index: 0;
}
.rx-pixel-trail {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
  z-index: 1;
}

/* Replace the old mouse-centered wash and homepage ribbon backdrop with the
   continuously animated dotted field. Site content stays above this layer. */
html, body { background-color: #09070d !important; }
body {
  background: #09070d !important;
  isolation: isolate;
}
body::before, body::after { display: none !important; }
.hero-bg-wrapper { display: none !important; }

.rx-pointer-cursor {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.rx-pointer-cursor.is-visible { opacity: 1; }
.rx-pointer-cursor > i {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  pointer-events: none;
  will-change: transform;
}
.rx-pointer-dot::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f3c7ff;
  box-shadow: 0 0 10px #df96ff, 0 0 22px #ae68f5;
}
.rx-pointer-ring::before {
  content: "";
  position: absolute;
  left: -17px;
  top: -17px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(212, 157, 255, .7);
  border-radius: 50%;
  background: rgba(171, 88, 243, .055);
  box-shadow: 0 0 14px rgba(178, 102, 244, .18);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.rx-pointer-cursor.on-link .rx-pointer-ring::before {
  transform: scale(1.55);
  border-color: #e6a8ff;
  background: rgba(178, 102, 244, .15);
}
.rx-pointer-cursor.is-down .rx-pointer-ring::before { transform: scale(.78); }
.rx-pointer-cursor.on-text { opacity: 0; }

/* Velmax-inspired continuously rotating edge and traveling highlight, recolored. */
@property --rx-signin-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes rx-signin-border { to { --rx-signin-angle: 360deg; } }
@keyframes rx-signin-sweep {
  0%, 16% { transform: translateX(-145%) skewX(-18deg); }
  48%, 100% { transform: translateX(145%) skewX(-18deg); }
}
.navbar a.btn-discord[data-rx-discord-auth="1"]:not(.rx-discord-user)::after {
  content: "" !important;
  position: absolute !important;
  inset: -1px !important;
  width: auto !important;
  height: auto !important;
  right: -1px !important;
  bottom: -1px !important;
  border-radius: inherit !important;
  padding: 2px !important;
  background: conic-gradient(from var(--rx-signin-angle),
    rgba(214, 157, 255, .15) 0 53%, #a86af4 72%, #f0a4f7 83%,
    rgba(214, 157, 255, .2) 96%) !important;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: rx-signin-border 4.5s linear infinite !important;
  pointer-events: none !important;
}
.navbar a.btn-discord[data-rx-discord-auth="1"]:not(.rx-discord-user)::before {
  background: linear-gradient(90deg, transparent 22%, rgba(239, 184, 255, .24) 49%, transparent 77%) !important;
  animation: rx-signin-sweep 3.5s ease-in-out infinite !important;
  pointer-events: none !important;
}

@media (hover: none), (pointer: coarse) {
  .rx-pointer-cursor, .rx-pixel-trail { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .rx-pointer-field, .rx-pointer-cursor { display: none !important; }
  .rx-pointer-field { animation: none !important; }
  .navbar a.btn-discord[data-rx-discord-auth="1"]:not(.rx-discord-user)::before,
  .navbar a.btn-discord[data-rx-discord-auth="1"]:not(.rx-discord-user)::after {
    animation: none !important;
  }
}
