/* Motion.dev + Anime.js polish. Action-driven; no card fade-up. */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.btn.primary::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.38) 48%,
    transparent 62%
  );
  transform: translateX(-55%) rotate(8deg);
  pointer-events: none;
  z-index: 1;
}

.btn.primary:hover::after {
  animation: flint-shine 0.7s ease-out;
}

.btn > * {
  position: relative;
  z-index: 2;
}

.btn-volt {
  box-shadow: 0 0 0 1px rgba(180, 255, 90, 0.35), 0 10px 28px rgba(160, 240, 70, 0.18);
}

.btn-volt:hover {
  box-shadow: 0 0 0 1px rgba(210, 255, 140, 0.55), 0 14px 36px rgba(160, 240, 70, 0.32);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(180, 220, 255, 0.35);
  color: #e8f2ff;
}

.btn-ghost:hover {
  border-color: rgba(180, 255, 120, 0.7);
  background: rgba(126, 212, 255, 0.08);
  color: #f4f8fc;
}

.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(180, 255, 90, 0.15);
  pointer-events: none;
}

.dl-go.btn.primary {
  animation: flint-pulse 2.4s ease-in-out infinite;
}

.hub-play-btn.btn.primary,
.release-dl.btn.primary,
.topic-dl.btn.primary,
.game-file-dl.btn.primary {
  box-shadow: 0 8px 22px rgba(160, 240, 70, 0.16);
}

@keyframes flint-shine {
  from { transform: translateX(-55%) rotate(8deg); }
  to { transform: translateX(55%) rotate(8deg); }
}

@keyframes flint-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180, 255, 90, 0.35), 0 10px 24px rgba(160, 240, 70, 0.16); }
  50% { box-shadow: 0 0 0 8px rgba(180, 255, 90, 0), 0 12px 28px rgba(160, 240, 70, 0.28); }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn.primary::after,
  .dl-go.btn.primary {
    animation: none !important;
    transition: none !important;
  }
  .btn { will-change: auto; }
}
