/* Rune fusion follow-through (2026-10-11). Presentation only; pairs with ActorFX.gather/forgeSpecial.
   The canvas hands over a target gem swollen to ~1.2, so the born special starts at 1.22 and settles elastically
   (squash .92 → overshoot 1.04 → 1) in 240 ms. The same animation name is used for .spawn and .gem-awaken so
   swapping those classes mid-way never restarts it. Neighbours nudge 3 px away from the drop cell on the tile's
   own `translate` property (positions use `transform`, so the two compose and never fight). */
#game .tile.spawn.charged_h .gem, #game .tile.spawn.charged_v .gem, #game .tile.spawn.blast .gem,
#game .tile.spawn.cross .gem, #game .tile.spawn.world .gem, #game .tile .gem.gem-awaken {
  animation: fusionBirth .24s cubic-bezier(.3, .7, .4, 1) both !important; }
@keyframes fusionBirth {
  0%   { transform: scale(1.22); filter: brightness(1.45); }
  30%  { transform: scale(.92, .9); filter: brightness(1.18); }
  58%  { transform: scale(1.04, 1.05); filter: brightness(1.05); }
  80%  { transform: scale(.99); filter: none; }
  100% { transform: scale(1); filter: none; } }
#game .tile.fusion-nudge { animation: fusionNudge .2s cubic-bezier(.25, .8, .4, 1); }
@keyframes fusionNudge {
  0%   { translate: 0 0; }
  22%  { translate: var(--nx, 0) var(--ny, 0); }
  50%  { translate: calc(var(--nx, 0) * -.35) calc(var(--ny, 0) * -.35); }
  75%  { translate: calc(var(--nx, 0) * .12) calc(var(--ny, 0) * .12); }
  100% { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  #game .tile.spawn.charged_h .gem, #game .tile.spawn.charged_v .gem, #game .tile.spawn.blast .gem,
  #game .tile.spawn.cross .gem, #game .tile.spawn.world .gem, #game .tile .gem.gem-awaken,
  #game .tile.fusion-nudge { animation: none !important; } }
