/* Palette owned by the login; the renderer reads these same CSS tokens. */
:root {
  --motion-glow: #9274ff;
  --motion-highlight: #d2c5ff;
  --motion-grid: #34217e;
}

body {
  position: relative;
  isolation: isolate;
}

body.fel-motion-ready {
  background-image: none;
}

.fel-motion {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

#fel-motion-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#fel-motion-toggle {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--motion-glow) 45%, transparent);
  border-radius: 50%;
  background: var(--navy);
  color: var(--motion-highlight);
  font-size: 17px;
  cursor: pointer;
}

#fel-motion-toggle:hover {
  background: var(--violet-dark);
  border-color: var(--motion-glow);
}

#fel-motion-toggle:focus-visible {
  outline: 3px solid var(--motion-highlight);
  outline-offset: 4px;
}

#fel-motion-toggle:active {
  transform: scale(.94);
}

@media (prefers-reduced-motion: reduce) {
  .field input, .btn { transition: none; }
}
