/* Effects shared by the forge and the cases page: the sparks thrown off a hot strike and the flash of a win.
   The colour comes from --tier (a rarity colour) or falls back to the forge's ember, so one set works on both pages.
   The motion itself is started from JS (Web Animations), which checks prefers-reduced-motion. */

.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--spark-color, var(--ember-light));
  border-radius: 50%;
  box-shadow: 0 0 8px 2px var(--spark-color, var(--ember));
  pointer-events: none;
}

/* A soft burst of light centred on its parent, in the tier colour. Starts invisible. */
.forge-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff8ec 0%, color-mix(in srgb, var(--tier, var(--ember)) 85%, transparent) 32%, transparent 72%);
  opacity: 0;
  pointer-events: none;
}
