/* assets/css/no-flash.css - 全局減少閃爍與過強動畫 */

/* 1. 預設放慢所有動畫，避免視覺閃爍 */
*, *::before, *::after {
  animation-duration: 1.5s !important;
  transition-duration: 0.35s !important;
}

/* 2. 允許背景與裝飾性無限動畫繼續運作，但大幅放慢 */
.login-bg-1, .login-bg-2, .login-hex, .login-scan,
.reg-bg-1, .reg-bg-2, .reg-scan,
.forgot-bg, .forgot-scan,
.chat-bg-1, .chat-bg-2, .chat-bg-3, .chat-bg-4,
.chat-stars, .chat-scanline, .chat-star,
.price-bg-1, .price-bg-2, .price-bg-3,
.price-grid-bg, .price-scanline, .price-bg-rotate,
.about-bg,
.dash-grid-bg, .dash-glow-bg, .dash-scanline,
.hero-ring, .bg-rotate, .ticker-track,
.border-runner::before, .neon-btn::before,
.login-card::before, .register-card::before,
.dash-security-card, .dash-security-card::before,
.wallet-dot, .chat-status-dot,
.login-brand, .reg-brand,
.ai-brain-core, .ai-brain-ring, .ai-particle, .ai-scanline,
.ai-brain-bg .brain-core, .ai-brain-bg .brain-ring {
  animation-iteration-count: infinite !important;
  animation-duration: 8s !important;
}

/* 3. 粒子 Canvas 與腦波背景保持運作，但整體不加速閃爍 */
canvas, .ai-brain-bg {
  animation: none !important;
}

/* 4. 降低掃描線與閃爍層的對比，減少刺眼感 */
.scanlines, .login-scan, .forgot-scan,
.chat-scanline, .dash-scanline, .ai-scanline {
  opacity: 0.25 !important;
}

/* 5. 降低霓虹光暈強度 */
.neon-text, .highlight, .login-brand h1 .highlight,
.brand-text span, .price-modal-box h2,
.price-modal-box .pm-price-big, .neon-btn {
  text-shadow: 0 0 6px currentColor !important;
  box-shadow: none !important;
}

/* 6. 減少 drop-shadow 脈衝的對比 */
.login-brand img, .reg-brand img,
.login-brand .brand-icon, .reg-brand .brand-icon {
  filter: drop-shadow(0 0 8px rgba(180, 0, 255, 0.25)) !important;
}

/* 7. 使用者偏好減少動畫時：完全關閉 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  canvas, .ai-brain-bg {
    display: none !important;
  }
  .scanlines, .login-scan, .forgot-scan, .chat-scanline,
  .dash-scanline, .ai-scanline, .bg-rotate, .hero-ring,
  .dash-grid-bg, .chat-bg-1, .chat-bg-2, .chat-bg-3, .chat-bg-4,
  .login-bg-2, .login-bg-1, .login-hex, .forgot-bg,
  .about-bg, .price-bg-1, .price-bg-2, .price-bg-3,
  .reg-bg-1, .reg-bg-2 {
    display: none !important;
  }
}

