.spellButton {
  --spell-primary: #ff4500;
  --spell-glow: #ff6b35;
  --spell-particle: #ffa500;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid var(--spell-primary);
  cursor: pointer;
  overflow: visible;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.spellButton:hover {
  box-shadow: 0 0 20px var(--spell-glow), 0 0 40px var(--spell-primary), inset 0 0 30px rgba(0, 0, 0, 0.5);
  border-color: var(--spell-glow);
}

.spellButton:active {
  transform: scale(0.95);
}

.spellButton:focus-visible {
  outline: 2px solid var(--spell-glow);
  outline-offset: 2px;
}

/* Sizes */
.sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  border-radius: 4px;
}

.md {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  border-radius: 6px;
}

.lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
}

/* Content */
.content {
  position: relative;
  z-index: 10;
  text-shadow: 0 0 10px var(--spell-glow);
}

/* Glow layer */
.glowLayer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--spell-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.spellButton:hover .glowLayer {
  opacity: 0.3;
}

/* Particle container */
.particleContainer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

/* Particles */
.particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--spell-particle);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 6px var(--spell-particle), 0 0 12px var(--spell-glow);
  animation-delay: var(--delay, 0s);
}

.spellButton:hover .particle {
  animation: particle-burst 1.5s ease-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes particle-burst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(-50% + (var(--tx, 0px))),
      calc(-50% + (var(--ty, 0px)))
    ) scale(0);
  }
}

/* Particle directions - set via nth-child */
.particle:nth-child(1) { --tx: -30px; --ty: -50px; }
.particle:nth-child(2) { --tx: 0px; --ty: -60px; }
.particle:nth-child(3) { --tx: 30px; --ty: -50px; }
.particle:nth-child(4) { --tx: 50px; --ty: -20px; }
.particle:nth-child(5) { --tx: 50px; --ty: 20px; }
.particle:nth-child(6) { --tx: 30px; --ty: 50px; }
.particle:nth-child(7) { --tx: 0px; --ty: 60px; }
.particle:nth-child(8) { --tx: -30px; --ty: 50px; }
.particle:nth-child(9) { --tx: -50px; --ty: 20px; }
.particle:nth-child(10) { --tx: -50px; --ty: -20px; }
.particle:nth-child(11) { --tx: -40px; --ty: 0px; }
.particle:nth-child(12) { --tx: 40px; --ty: 0px; }

/* Expansion rings */
.ring,
.ring2 {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  border: 2px solid var(--spell-glow);
}

.ring {
  animation: ring-expand 2s ease-out infinite;
  animation-delay: 0s;
}

.ring2 {
  animation: ring-expand 2s ease-out infinite;
  animation-delay: 1s;
}

@keyframes ring-expand {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* INTENSE variant */
.epic:hover .particle {
  animation: particle-burst-epic 1s ease-out infinite;
  animation-delay: var(--delay, 0s);
}

.epic:hover .ring,
.epic:hover .ring2 {
  animation-duration: 1.2s;
}

@keyframes particle-burst-epic {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(-50% + var(--tx, 0px) * 1.5),
      calc(-50% + var(--ty, 0px) * 1.5)
    ) scale(0);
  }
}

.epic:hover {
  animation: epic-pulse 0.5s ease-in-out infinite;
}

@keyframes epic-pulse {
  0%, 100% {
    box-shadow: 0 0 20px var(--spell-glow), 0 0 40px var(--spell-primary), inset 0 0 30px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 30px var(--spell-glow), 0 0 60px var(--spell-primary), inset 0 0 40px rgba(0, 0, 0, 0.5);
  }
}

/* SUBTLE variant */
.subtle:hover .particle {
  animation-duration: 2.5s;
}

.subtle .ring,
.subtle .ring2 {
  animation-duration: 3s;
}
