/* ============ generic oscillators (custom props: --c center, --a amplitude) ============ */
@keyframes osc-rot { from { transform: rotate(calc(var(--c, 0deg) - var(--a, 5deg))); } to { transform: rotate(calc(var(--c, 0deg) + var(--a, 5deg))); } }
@keyframes osc-y { from { transform: translateY(calc(var(--c, 0px) - var(--a, 3px))); } to { transform: translateY(calc(var(--c, 0px) + var(--a, 3px))); } }
@keyframes osc-x { from { transform: translateX(calc(var(--c, 0px) - var(--a, 2px))); } to { transform: translateX(calc(var(--c, 0px) + var(--a, 2px))); } }
@keyframes rot-bump { 0%, 100% { transform: rotate(var(--c, 0deg)); } 40% { transform: rotate(calc(var(--c, 0deg) + var(--a, 20deg))); } }
@keyframes rig-bob {
  from { transform: translateY(calc(var(--by, 10px) * -1)) rotate(calc(var(--rr, 0deg) - var(--ra, 0deg))); }
  to { transform: translateY(var(--by, 10px)) rotate(calc(var(--rr, 0deg) + var(--ra, 0deg))); }
}
@keyframes breath { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.025); } }
@keyframes breath-deep { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.045); } }
@keyframes blink { 0%, 95.5%, 100% { transform: scaleY(1); } 97.5% { transform: scaleY(.1); } }
@keyframes talk { from { transform: scaleY(1); } to { transform: scaleY(.4); } }

/* ============ always-on life ============ */
.actor-anim .eyes { animation: blink var(--blink, 4s) ease-in-out var(--bd, 0s) infinite; }
.actor-anim .torso { animation: breath 2.6s ease-in-out var(--ph, 0s) infinite; }
.actor-anim .rig { --c: 0px; --a: 1.5px; animation: osc-x calc(4s / var(--tempo, 1)) ease-in-out var(--ph, 0s) infinite alternate; }
.actor-anim .head { --c: 0deg; --a: 3deg; animation: osc-rot calc(3s / var(--tempo, 1)) ease-in-out var(--ph, 0s) infinite alternate; }
.actor-anim .arm-front { --c: 0deg; --a: 4deg; animation: osc-rot calc(2.4s / var(--tempo, 1)) ease-in-out var(--ph, 0s) infinite alternate; }
.actor-anim .arm-back { --c: 0deg; --a: 4deg; animation: osc-rot calc(2.4s / var(--tempo, 1)) ease-in-out var(--ph, 0s) infinite alternate-reverse; }
.actor-anim .tail { --c: 0deg; --a: 10deg; animation: osc-rot calc(1.8s / var(--tempo, 1)) ease-in-out var(--ph, 0s) infinite alternate; }
.actor-anim .ear-front { --c: 0deg; --a: 6deg; animation: osc-rot calc(2.2s / var(--tempo, 1)) ease-in-out calc(var(--ph, 0s) + .15s) infinite alternate; }
.actor-anim .ear-back { --c: 0deg; --a: 6deg; animation: osc-rot calc(2.2s / var(--tempo, 1)) ease-in-out calc(var(--ph, 0s) + .15s) infinite alternate-reverse; }
.actor-anim .wing-front { --c: 0deg; --a: 8deg; animation: osc-rot calc(2s / var(--tempo, 1)) ease-in-out calc(var(--ph, 0s) + .15s) infinite alternate; }
.actor-anim .wing-back { --c: 0deg; --a: 8deg; animation: osc-rot calc(2s / var(--tempo, 1)) ease-in-out calc(var(--ph, 0s) + .15s) infinite alternate-reverse; }

/* legacy (old art without a rig): simple whole-body bob */
.actor-anim.legacy { animation: osc-y 2.4s ease-in-out infinite alternate; --c: -1%; --a: 1%; }
.actor-anim.still *, .actor-anim.still { animation: none !important; }

/* ============ bounce: happy dance ============ */
.act-bounce { --d: calc(.8s / var(--tempo, 1)); }
.act-bounce .rig { animation: bounce-rig var(--d) ease-in-out var(--ph, 0s) infinite; }
@keyframes bounce-rig {
  0%, 100% { transform: translateY(0) scale(1.06, .9); }
  35% { transform: translateY(-29px) scale(.95, 1.08); }
  65% { transform: translateY(0) scale(1, 1); }
  85% { transform: translateY(0) scale(1.04, .94); }
}
.act-bounce .arm-front, .act-bounce .arm-back { --c: 0deg; --a: -40deg; animation: rot-bump var(--d) ease-in-out var(--ph, 0s) infinite; }
.act-bounce .ear-front, .act-bounce .ear-back { --c: 0deg; --a: 14deg; animation: rot-bump var(--d) ease-in-out calc(var(--ph, 0s) + .12s) infinite; }
.act-bounce .tail { --c: 0deg; --a: -14deg; animation: rot-bump var(--d) ease-in-out calc(var(--ph, 0s) + .12s) infinite; }
.act-bounce .wing-front, .act-bounce .wing-back { --c: 0deg; --a: -20deg; animation: rot-bump var(--d) ease-in-out calc(var(--ph, 0s) + .08s) infinite; }
.act-bounce .head { --c: 0deg; --a: -4deg; animation: rot-bump var(--d) ease-in-out calc(var(--ph, 0s) + .06s) infinite; }
.act-bounce .leg-front, .act-bounce .leg-back { --c: 0deg; --a: 10deg; animation: rot-bump var(--d) ease-in-out var(--ph, 0s) infinite; }

/* ============ walk (legs + arms alternate, rig bob); travel is on .actor-move ============ */
.anim-walk-in-left { animation: walk-l 1.6s ease-out both; }
.anim-walk-in-right { animation: walk-r 1.6s ease-out both; }
@keyframes walk-l { 0% { transform: translateX(-70cqw); } 85% { transform: translateX(1.5cqw); } 100% { transform: translateX(0); } }
@keyframes walk-r { 0% { transform: translateX(70cqw); } 85% { transform: translateX(-1.5cqw); } 100% { transform: translateX(0); } }
.act-walk .rig { --c: -3.5px; --a: 3.5px; animation: osc-y .2s ease-in-out infinite alternate; }
.act-walk .head { --c: 0px; --a: 2px; animation: osc-y .2s ease-in-out infinite alternate-reverse; }
.act-walk .leg-front { --c: 0deg; --a: 22deg; animation: osc-rot .4s ease-in-out infinite alternate; }
.act-walk .leg-back { --c: 0deg; --a: 22deg; animation: osc-rot .4s ease-in-out infinite alternate-reverse; }
.act-walk .arm-front { --c: 0deg; --a: 18deg; animation: osc-rot .4s ease-in-out infinite alternate-reverse; }
.act-walk .arm-back { --c: 0deg; --a: 18deg; animation: osc-rot .4s ease-in-out infinite alternate; }
.act-walk .tail { --a: 8deg; animation: osc-rot .4s ease-in-out .1s infinite alternate; }
.act-walk .ear-front, .act-walk .ear-back { --a: 8deg; animation: osc-rot .2s ease-in-out .1s infinite alternate; }

/* ============ jump: anticipation, stretch, land squash ============ */
.act-jump { --d: calc(1.4s / var(--tempo, 1)); }
.act-jump .rig { animation: jump-rig var(--d) cubic-bezier(.34, 1.2, .64, 1) var(--ph, 0s) infinite; }
@keyframes jump-rig {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  12%, 18% { transform: translateY(0) scale(1.08, .88); }
  38% { transform: translateY(-72px) scale(.93, 1.1); }
  62% { transform: translateY(0) scale(1.1, .86); }
  72% { transform: translateY(0) scale(.97, 1.03); }
  82% { transform: translateY(0) scale(1, 1); }
}
.act-jump .arm-front, .act-jump .arm-back { animation: jump-arm var(--d) ease-in-out var(--ph, 0s) infinite; }
@keyframes jump-arm { 0%, 100% { transform: rotate(0); } 14% { transform: rotate(20deg); } 38% { transform: rotate(-150deg); } 62% { transform: rotate(10deg); } 80% { transform: rotate(0); } }
.act-jump .leg-front, .act-jump .leg-back { animation: jump-leg var(--d) ease-in-out var(--ph, 0s) infinite; }
@keyframes jump-leg { 0%, 62%, 100% { transform: rotate(0); } 38% { transform: rotate(16deg); } }
.act-jump .ear-front, .act-jump .ear-back, .act-jump .tail, .act-jump .wing-front, .act-jump .wing-back { animation: jump-lag var(--d) ease-in-out calc(var(--ph, 0s) + .15s) infinite; }
@keyframes jump-lag { 0%, 100% { transform: rotate(0); } 14% { transform: rotate(-6deg); } 38% { transform: rotate(18deg); } 62% { transform: rotate(-10deg); } 80% { transform: rotate(0); } }

/* ============ spin: lean back, rotateY x2 with arms out, wobble, then idle (JS swaps) ============ */
.act-spin { animation: spin-seq 2.2s ease-in-out 1 both; }
@keyframes spin-seq {
  0% { transform: perspective(700px) rotateY(0deg); }
  12% { transform: perspective(700px) rotateY(-14deg); }
  70% { transform: perspective(700px) rotateY(720deg); }
  80% { transform: perspective(700px) rotateY(734deg); }
  90% { transform: perspective(700px) rotateY(716deg); }
  100% { transform: perspective(700px) rotateY(720deg); }
}
.act-spin .rig { animation: spin-rig 2.2s ease-in-out 1 both; }
@keyframes spin-rig { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-8deg); } 22% { transform: rotate(0); } 78% { transform: rotate(4deg); } 88% { transform: rotate(-3deg); } }
.act-spin .arm-front, .act-spin .arm-back { animation: spin-arm 2.2s ease-in-out 1 both; }
@keyframes spin-arm { 0%, 100% { transform: rotate(0); } 12% { transform: rotate(8deg); } 22%, 70% { transform: rotate(-85deg); } 88% { transform: rotate(0); } }

/* ============ float ============ */
.act-float .rig { --by: 12px; --rr: 0deg; --ra: 4deg; animation: rig-bob calc(3s / var(--tempo, 1)) ease-in-out var(--ph, 0s) infinite alternate; }
.act-float .arm-front { --c: 12deg; --a: 10deg; animation: osc-rot 3s ease-in-out calc(var(--ph, 0s) + .2s) infinite alternate-reverse; }
.act-float .arm-back { --c: 12deg; --a: 10deg; animation: osc-rot 3s ease-in-out calc(var(--ph, 0s) + .35s) infinite alternate-reverse; }
.act-float .leg-front { --c: 6deg; --a: 8deg; animation: osc-rot 3s ease-in-out calc(var(--ph, 0s) + .2s) infinite alternate-reverse; }
.act-float .leg-back { --c: 6deg; --a: 8deg; animation: osc-rot 3s ease-in-out calc(var(--ph, 0s) + .3s) infinite alternate; }

/* ============ shake: tremble, ears down, eyes wide ============ */
.act-shake .rig { animation: shake-rig 1.6s linear var(--ph, 0s) infinite; }
@keyframes shake-rig {
  0%, 50%, 100% { transform: translateX(0); }
  5%, 15%, 25%, 35%, 45% { transform: translateX(-3.6px); }
  10%, 20%, 30%, 40% { transform: translateX(3.6px); }
}
.act-shake .ear-front, .act-shake .ear-back { rotate: 15deg; }
.act-shake .eyes { scale: 1.15; }

/* ============ sleep ============ */
.act-sleep .rig { animation: none; }
.act-sleep .torso { animation: breath-deep 4s ease-in-out infinite; }
.act-sleep .eyes { animation: none; }
.act-sleep .head { rotate: 8deg; --a: 1deg; }
.act-sleep .ear-front, .act-sleep .ear-back, .act-sleep .tail { --a: 2deg; }
.act-sleep .arm-front, .act-sleep .arm-back { --a: 1.5deg; }
@keyframes zzz {
  0% { transform: translate(0, 0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(60%, -130%); opacity: 0; }
}

/* ============ wave ============ */
.act-wave .rig { --c: 0deg; --a: 2deg; animation: osc-rot 1.2s ease-in-out var(--ph, 0s) infinite alternate; }
.act-wave .head { rotate: 6deg; }
.act-wave .arm-front {
  --c: -120deg; --a: 25deg;
  animation: wave-raise .5s cubic-bezier(.34, 1.56, .64, 1) both, osc-rot .35s ease-in-out .5s infinite alternate;
}
@keyframes wave-raise { from { transform: rotate(0deg); } to { transform: rotate(-120deg); } }

/* ============ fly ============ */
.act-fly .rig { --by: 14px; --rr: 6deg; --ra: 2deg; animation: rig-bob 1.6s ease-in-out var(--ph, 0s) infinite alternate; }
.act-fly .wing-front, .act-fly .wing-back { --c: -10deg; --a: 35deg; animation: osc-rot .3s ease-in-out infinite alternate; }
.act-fly .arm-front, .act-fly .arm-back { --c: -40deg; --a: 25deg; animation: osc-rot .3s ease-in-out infinite alternate; }
.act-fly .leg-front, .act-fly .leg-back { rotate: 15deg; animation: none; }
.anim-fly-move { animation: a-flymove 3.2s ease-in-out infinite alternate; }
@keyframes a-flymove { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

/* ============ emotion tweaks (idle only) ============ */
.act-idle[data-emotion="sad"] .head { rotate: 6deg; }
.act-idle[data-emotion="scared"] .ear-front, .act-idle[data-emotion="scared"] .ear-back { rotate: 14deg; }
.act-idle[data-emotion="grumpy"] .arm-front, .act-idle[data-emotion="grumpy"] .arm-back { rotate: -20deg; }
.act-idle[data-emotion="grumpy"] .leg-front { --c: 0deg; --a: 8deg; animation: rot-bump .6s ease-in-out infinite; }
.act-idle.hopback .rig { animation: hop-back .7s cubic-bezier(.34, 1.56, .64, 1) 1, osc-x calc(4s / var(--tempo, 1)) ease-in-out .7s infinite alternate; }
@keyframes hop-back {
  0% { transform: translate(0, 0) scale(1, 1); }
  25% { transform: translate(-14px, -18px) scale(.95, 1.1); }
  60% { transform: translate(-6px, 0) scale(1.04, .96); }
  100% { transform: translate(0, 0) scale(1, 1); }
}

/* ============ talking (set by JS during TTS) ============ */
.actor-anim.talking .mouth { animation: talk .16s ease-in-out infinite alternate; }
.actor-anim.talking .head { --c: 0deg; --a: 3deg; animation: osc-rot .32s ease-in-out infinite alternate; }

/* ============ entrance / props alive / camera ============ */
.pop { animation: pop-in .45s cubic-bezier(.34, 1.56, .64, 1) var(--st, 0s) both; }
@keyframes pop-in { from { scale: 0; } to { scale: 1; } }
.bg.enter { animation: bg-in .6s ease-out both; }
@keyframes bg-in { from { transform: scale(1.04); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.cam.kb { animation: kenburns 8s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }

.prop.alive-bob { animation: pop-in .45s cubic-bezier(.34, 1.56, .64, 1) var(--st, 0s) both, prop-bob 3s ease-in-out var(--ph, 0s) infinite alternate; }
.prop.alive-drift { animation: pop-in .45s cubic-bezier(.34, 1.56, .64, 1) var(--st, 0s) both, prop-drift 6s ease-in-out var(--ph, 0s) infinite alternate; }
.prop.alive-spin { animation: pop-in .45s cubic-bezier(.34, 1.56, .64, 1) var(--st, 0s) both, prop-spin 24s linear infinite; }
.prop.alive-twinkle { animation: pop-in .45s cubic-bezier(.34, 1.56, .64, 1) var(--st, 0s) both, prop-twinkle 1.8s ease-in-out var(--ph, 0s) infinite alternate; }
.prop.alive-sway { animation: pop-in .45s cubic-bezier(.34, 1.56, .64, 1) var(--st, 0s) both, prop-sway 3s ease-in-out var(--ph, 0s) infinite alternate; }
@keyframes prop-bob { from { transform: translateY(-3%); } to { transform: translateY(3%); } }
@keyframes prop-drift { from { transform: translate(-3%, -2%); } to { transform: translate(3%, 2%); } }
@keyframes prop-spin { to { transform: rotate(360deg); } }
@keyframes prop-twinkle { from { transform: scale(.92) rotate(-4deg); opacity: .8; } to { transform: scale(1.08) rotate(4deg); opacity: 1; } }
@keyframes prop-sway { from { transform: translateY(-3%) rotate(-5deg); } to { transform: translateY(3%) rotate(5deg); } }

/* pause everything while the tab is hidden */
#app.paused *, #app.paused *::before, #app.paused *::after { animation-play-state: paused !important; }

/* ============ effects ============ */
.fx-twinkle img { animation: fx-twinkle var(--dur, 2s) ease-in-out var(--delay, 0s) infinite; }
@keyframes fx-twinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }

.fx-fall { animation: fx-fall var(--dur, 5s) linear var(--delay, 0s) infinite; }
.fx-fall.sway { animation: fx-fall var(--dur, 5s) linear var(--delay, 0s) infinite, fx-sway calc(var(--dur, 5s) / 2) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes fx-fall { from { top: -10%; } to { top: 110%; } }
@keyframes fx-sway {
  from { transform: translateX(calc(var(--sway, 3) * -1cqw)); }
  to { transform: translateX(calc(var(--sway, 3) * 1cqw)); }
}
.fx-rise { animation: fx-rise var(--dur, 4s) ease-out var(--delay, 0s) infinite; }
@keyframes fx-rise { 0% { top: 85%; opacity: 0; } 15% { opacity: 1; } 100% { top: 20%; opacity: 0; } }
.fx-bubble { animation: fx-bubble var(--dur, 5s) linear var(--delay, 0s) infinite, fx-sway calc(var(--dur, 5s) / 2) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes fx-bubble { from { top: 105%; } to { top: -10%; } }
.fx-pop img { animation: fx-pop var(--dur, 1.6s) ease-in-out var(--delay, 0s) infinite; }
@keyframes fx-pop { 0%, 100% { transform: scale(0); } 50% { transform: scale(1); } }
.fx-rot img { animation: fx-rot var(--dur, 4s) linear var(--delay, 0s) infinite; }
@keyframes fx-rot { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============ reduced motion: keep blink / breath / talk only ============ */
@media (prefers-reduced-motion: reduce) {
  .actor-anim .part:not(.torso), .actor-anim .rig, .actor-anim.act-spin, .actor-move, .actor,
  .prop, .cam, .bg, .zzz, .fx-p, .fx-p img { animation: none !important; }
  .actor-anim.talking .head { animation: none !important; }
}

/* ============ raster characters: whole-body motion on .char-img (talk on .char-talk, spin on .actor-anim) ============ */
.raster .char-img { will-change: transform; }
.raster.act-idle .char-img { animation: r-idle calc(2.6s / var(--tempo, 1)) ease-in-out var(--ph, 0s) infinite alternate; }
@keyframes r-idle { from { transform: rotate(-2deg) scaleY(1); } to { transform: rotate(2deg) scaleY(1.025); } }
.raster.act-idle[data-emotion="sad"] .char-img { rotate: 5deg; translate: 0 1%; }
.raster.act-idle[data-emotion="scared"] .char-img { animation: r-idle calc(2.6s / var(--tempo, 1)) ease-in-out var(--ph, 0s) infinite alternate, r-tremble .22s linear infinite; }
.raster.act-idle[data-emotion="surprised"] .char-img { animation: r-idle calc(2.6s / var(--tempo, 1)) ease-in-out var(--ph, 0s) infinite alternate, r-startle .7s cubic-bezier(.34, 1.56, .64, 1) 1; }
.raster.act-idle[data-emotion="grumpy"] .char-img { animation: r-grump .6s ease-in-out infinite alternate; }
@keyframes r-tremble { 0%, 100% { translate: 0 0; } 25% { translate: -.8% 0; } 75% { translate: .8% 0; } }
@keyframes r-startle { 0% { translate: 0 0; scale: 1; } 25% { translate: -4% -6%; scale: .95 1.1; } 60% { translate: -1.5% 0; scale: 1.04 .96; } 100% { translate: 0 0; scale: 1; } }
@keyframes r-grump { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg) scaleY(1.01); } }

.raster.act-bounce .char-img { animation: r-bounce calc(.8s / var(--tempo, 1)) ease-in-out var(--ph, 0s) infinite; }
@keyframes r-bounce {
  0%, 100% { transform: translateY(0) scale(1.06, .9); }
  35% { transform: translateY(-12%) scale(.95, 1.08); }
  65% { transform: translateY(0) scale(1, 1); }
  85% { transform: translateY(0) scale(1.04, .94); }
}
.raster.act-walk .char-img { animation: r-walk .4s ease-in-out infinite alternate; }
@keyframes r-walk { from { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-2.5%) rotate(0deg); } to { transform: translateY(0) rotate(4deg); } }
.raster.act-jump .char-img { animation: r-jump calc(1.4s / var(--tempo, 1)) cubic-bezier(.34, 1.2, .64, 1) var(--ph, 0s) infinite; }
@keyframes r-jump {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  12%, 18% { transform: translateY(0) scale(1.08, .88); }
  38% { transform: translateY(-30%) scale(.93, 1.1); }
  62% { transform: translateY(0) scale(1.1, .86); }
  72% { transform: translateY(0) scale(.97, 1.03); }
  82% { transform: translateY(0) scale(1, 1); }
}
.raster.act-spin .char-img { animation: r-idle 2.6s ease-in-out infinite alternate; }
.raster.act-float .char-img { animation: r-float calc(3s / var(--tempo, 1)) ease-in-out var(--ph, 0s) infinite alternate; }
@keyframes r-float { from { transform: translateY(-4%) rotate(-3deg); } to { transform: translateY(4%) rotate(3deg); } }
.raster.act-shake .char-img { animation: r-shake 1.6s linear var(--ph, 0s) infinite; }
@keyframes r-shake {
  0%, 50%, 100% { transform: translateX(0); }
  5%, 15%, 25%, 35%, 45% { transform: translateX(-1.6%) rotate(-1deg); }
  10%, 20%, 30%, 40% { transform: translateX(1.6%) rotate(1deg); }
}
.raster.act-sleep .char-img { rotate: 6deg; animation: r-sleep 4s ease-in-out infinite; }
@keyframes r-sleep { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.045); } }
.raster.act-wave .char-img { animation: r-wave .9s ease-in-out var(--ph, 0s) infinite; }
@keyframes r-wave {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  25% { transform: translateY(-3%) rotate(0deg); }
  50% { transform: translateY(0) rotate(6deg); }
  75% { transform: translateY(-3%) rotate(0deg); }
}
.raster.act-fly .char-img { rotate: 8deg; animation: r-fly 1.6s ease-in-out var(--ph, 0s) infinite alternate; }
@keyframes r-fly { from { transform: translateY(-5%); } to { transform: translateY(5%); } }

/* talking: small rhythmic squash */
.raster.talking .char-talk { animation: r-talk .18s ease-in-out infinite alternate; }
@keyframes r-talk { from { transform: scaleY(.97); } to { transform: scaleY(1.03); } }

/* emote overlays */
.emote { animation: emote-pop .45s cubic-bezier(.34, 1.56, .64, 1) .2s both; }
.emote img { animation: emote-bob 1.6s ease-in-out .65s infinite alternate; }
.emote-scared img { animation: emote-wobble .25s ease-in-out infinite alternate; }
.emote-happy img { animation: emote-twinkle 1.2s ease-in-out .65s infinite alternate; }
.emote-sleepy img { animation: emote-float 2.4s ease-in-out .65s infinite alternate; }
@keyframes emote-pop { from { scale: 0; } to { scale: 1; } }
@keyframes emote-bob { from { transform: translateY(-6%); } to { transform: translateY(6%); } }
@keyframes emote-wobble { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes emote-twinkle { from { transform: scale(.88) rotate(-6deg); } to { transform: scale(1.1) rotate(6deg); } }
@keyframes emote-float { from { transform: translate(-4%, 6%); } to { transform: translate(6%, -8%); } }

@media (prefers-reduced-motion: reduce) {
  .raster .char-img, .emote, .emote img { animation: none !important; }
}
