/* ============================================================================
   AVALON · animations.css (unslopped)
   Чистые, целевые микровзаимодействия без перегрузки процессора и лишнего шума.
   ============================================================================ */

/* ── 1. Нажатия на кнопки и интерактивные элементы ─────────────────────── */
.btn:active, .tab:active, .icon-btn:active {
  transform: scale(0.99);
}

/* ── 2. Кнопка «Наверх» ─────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s, border-color .15s, color .15s;
  cursor: pointer;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  color: var(--ink);
  border-color: var(--line-2);
  background: var(--bg-raised);
}
.back-to-top svg {
  width: 16px;
  height: 16px;
}
.back-to-top .progress-ring {
  display: none;
}

/* ── 3. Отключение декоративного шума ──────────────────────────────────── */
#global-particles,
.aurora-animated,
.floating-rune,
.card-scanline,
.typewriter-cursor,
.ripple-wave,
.spark-burst,
.nav-glow-pill {
  display: none !important;
}

/* ── 4. Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .back-to-top {
    transition: none !important;
  }
}
