/* 风雪服务器 FXMC 全站动效 */

#snow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-decor {
  z-index: 1;
}

/* 滚动渐入：由 main.js 动态标记，无 JS 或减少动态效果时不会隐藏内容 */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes fxmc-rise-in {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero .eyebrow,
  .page-hero .eyebrow {
    animation: fxmc-rise-in 0.5s ease both;
    animation-delay: 0.05s;
  }

  .hero h1,
  .page-hero h1 {
    animation: fxmc-rise-in 0.55s ease both;
    animation-delay: 0.12s;
  }

  .hero .lead,
  .page-hero .lead {
    animation: fxmc-rise-in 0.55s ease both;
    animation-delay: 0.2s;
  }

  .hero .hero-actions {
    animation: fxmc-rise-in 0.55s ease both;
    animation-delay: 0.28s;
  }

  .hero .pixel-panel {
    animation: fxmc-rise-in 0.6s ease both;
    animation-delay: 0.34s;
  }

  @keyframes fxmc-float {
    0%,
    100% {
      transform: translateY(0) rotate(0deg);
    }
    50% {
      transform: translateY(-11px) rotate(4deg);
    }
  }

  .hero .pixel-cube {
    animation: fxmc-float 7s ease-in-out infinite;
  }

  .hero .cube-grass {
    animation-delay: 0s;
  }

  .hero .cube-dirt {
    animation-delay: -1.8s;
  }

  .hero .cube-water {
    animation-delay: -3.4s;
  }

  .hero .cube-gold {
    animation-delay: -5s;
  }
}
