/* Individual 650–760ms gestures; each returns to the original pose for 2000ms. */
.sym-LETTER_A { --patch-cycle: 2650ms; --patch-animation: patch-toss; }
.sym-LETTER_C { --patch-cycle: 2760ms; --patch-animation: patch-rock; --patch-origin: 50% 70%; }
.sym-NUMBER_8 { --patch-cycle: 2760ms; --patch-animation: patch-spring; }
.sym-NUMBER_10 { --patch-cycle: 2700ms; --patch-animation: patch-bow; --patch-origin: 50% 70%; }
.patch-rig {
  display: none;
  position: absolute;
  left: 10%; top: 10%; width: 80%; height: 80%;
  overflow: visible;
  pointer-events: none;
  transform-origin: var(--patch-origin, 50% 50%);
  filter: drop-shadow(0 2px 4px #00000040);
}
.sym-LETTER_C > .patch-rig,
.sym-NUMBER_8 > .patch-rig { left: 11%; top: 11%; width: 78%; height: 78%; }
.cell.patch:has(.symbol-img.win-anim-patch) > .symbol-img,
.reels.line-replay .cell.patch.line-current > .symbol-img { visibility: hidden; animation: none; }
.cell.patch:has(.symbol-img.win-anim-patch) > .patch-rig,
.reels.line-replay .cell.patch.line-current > .patch-rig {
  display: block;
  animation: var(--patch-animation) var(--patch-cycle) cubic-bezier(.22,.61,.36,1) infinite;
}
.symbol-glyph-fallback.win-anim-patch { animation: var(--patch-animation) var(--patch-cycle) cubic-bezier(.22,.61,.36,1) infinite; }
@keyframes patch-toss {
  0%, 24.528340%, 100% {
    transform: perspective(300px) translateY(0%) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    filter: drop-shadow(0 2px 4px #00000040);
  }
  6.792438% {
    transform: perspective(300px) translateY(-11%) rotateX(24deg) rotateY(-26deg) rotateZ(-5deg) scale(1.04);
    filter: drop-shadow(2px 9px 5px #00000055);
    animation-timing-function: cubic-bezier(.55,.05,.85,.65);
  }
  14.339600% {
    transform: perspective(300px) translateY(2%) rotateX(-6deg) rotateY(7deg) rotateZ(2deg) scale(1.035,.96);
    filter: drop-shadow(0 2px 4px #00000040);
    animation-timing-function: cubic-bezier(.18,.7,.25,1);
  }
  18.113223% {
    transform: perspective(300px) translateY(-3%) rotateX(2deg) rotateY(-3deg) rotateZ(-.5deg) scale(1.015);
    filter: drop-shadow(0 4px 4px #00000048);
    animation-timing-function: cubic-bezier(.4,0,.5,1);
  }
}
@keyframes patch-rock {
  0%, 27.536268%, 100% { transform: perspective(300px) translateX(0%) rotateY(0deg) rotateZ(0deg) scale(1); }
  5.434797% { transform: perspective(300px) translateX(-3%) rotateY(14deg) rotateZ(-12deg) scale(.99); }
  12.318804% { transform: perspective(300px) translateX(3%) rotateY(-14deg) rotateZ(12deg) scale(.99); }
  19.565254% { transform: perspective(300px) translateX(-1%) rotateY(6deg) rotateZ(-4deg) scale(1); }
}
@keyframes patch-spring {
  0%, 27.536268%, 100% {
    transform: translateY(0%) scale(1,1);
    filter: drop-shadow(0 2px 4px #00000040);
  }
  4.347790% {
    transform: translateY(7%) scale(1.1,.8);
    animation-timing-function: cubic-bezier(.18,.7,.25,1);
  }
  10.144949% {
    transform: translateY(-9%) scale(.91,1.09);
    filter: drop-shadow(0 9px 5px #00000055);
    animation-timing-function: cubic-bezier(.55,.05,.85,.65);
  }
  17.391319% {
    transform: translateY(3%) scale(1.075,.94);
    animation-timing-function: cubic-bezier(.18,.7,.25,1);
  }
  22.463754% {
    transform: translateY(-2%) scale(.99,1.015);
    animation-timing-function: cubic-bezier(.4,0,.5,1);
  }
}
@keyframes patch-bow {
  0%, 25.925941%, 100% { transform: perspective(300px) translateY(0%) rotateX(0deg) rotateY(0deg) scale(1); }
  5.185156% { transform: perspective(300px) translateY(-1%) rotateX(-8deg) rotateY(-3deg) scale(1.02); }
  11.851889% { transform: perspective(300px) translateY(2%) rotateX(34deg) rotateY(8deg) scale(1.04); }
  18.518541% { transform: perspective(300px) translateY(-1%) rotateX(-5deg) rotateY(-2deg) scale(1.01); }
}
@media (prefers-reduced-motion: reduce) {
  .cell.patch > .patch-rig { display: none !important; }
  .cell.patch > .symbol-img { visibility: visible !important; animation: none !important; }
  .symbol-glyph-fallback.win-anim-patch { animation: none; }
}
