/*! © 2026 INEASY (ineasy.site). Все права защищены / All rights reserved.
 * Копирование, изменение и использование без письменного разрешения запрещено.
 * Copying, modification or use without written permission is prohibited. */
/* Performance overrides, loaded last. Every endless animation only moves or fades (transform / opacity),
   which the GPU does without repainting. Shadows, backgrounds, colours or @property values are never
   animated: they repaint on the CPU every frame, which made phones lag, drop images and crash.
   Nothing is switched off: the same effects are drawn once and then moved or faded. */

/* Archive panel: the glow is a ready layer that fades in and out (was a full-panel repaint 60x/s). */
.ia-panel { animation: none; --glow: 0.5; }
.ia-glow {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(300px 190px at 0% 0%, rgba(91, 140, 255, 0.18), transparent 72%),
    radial-gradient(300px 190px at 100% 100%, rgba(102, 217, 255, 0.14), transparent 72%);
  box-shadow: 0 0 46px -16px rgba(91, 140, 255, 0.45);
  opacity: 0; animation: iaGlowFade 3.4s ease-in-out infinite alternate;
}
@keyframes iaGlowFade { to { opacity: 1; } }

/* Upload zone: the running border turns all the time again, as a GPU layer clipped to the edge. */
.dropzone::before { content: none; }
.edge-spin {
  position: absolute; inset: -1px; z-index: 0; border-radius: inherit; padding: 1px; overflow: hidden; pointer-events: none;
  -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);
  opacity: 0.55; transition: opacity 0.3s;
}
.edge-spin > i {
  position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(transparent 0 72%, rgba(102, 217, 255, 0.95) 88%, transparent 100%);
  animation: edgeTurn 7s linear infinite;
}
@keyframes edgeTurn { to { transform: rotate(360deg); } }
.dropzone:hover .dz-edge, .dropzone.drag .dz-edge { opacity: 1; }

/* Home nodes: the glow breathes by fading a ready-made layer instead of repainting the shadow. */
.he-node { animation: none; }
.he-node::after {
  content: ''; position: absolute; inset: -1px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 30px -2px rgba(102, 217, 255, 0.75); opacity: 0;
  animation: nodeGlow 5s ease-in-out infinite; animation-delay: inherit;
}
@keyframes nodeGlow { 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ia-glow, .edge-spin > i, .he-node::after { animation: none; }
}
