/* Approved original animation keyframes; selectors scoped to Jimmy avatars. */
    @keyframes mochiWaveLeft {
      0%, 100% { transform: translate(9px, 56px) rotate(0deg); }
      25% { transform: translate(4px, 42px) rotate(-38deg); }
      50% { transform: translate(8px, 46px) rotate(-12deg); }
      75% { transform: translate(3px, 40px) rotate(-42deg); }
    }
    /* ۲. رقصیدن مستقل بدنه و هر دو دست در فازهای متفاوت (Bailando) */
    @keyframes mochiDanceBody {
      0%, 100% { transform: translateY(0px) rotate(-5deg) scale(1.03, 0.97); }
      25% { transform: translateY(-6px) rotate(0deg) scale(0.97, 1.04); }
      50% { transform: translateY(0px) rotate(5deg) scale(1.03, 0.97); }
      75% { transform: translateY(-6px) rotate(0deg) scale(0.97, 1.04); }
    }
    @keyframes mochiDanceArmLeft {
      0%, 100% { transform: translate(9px, 58px) rotate(-25deg); }
      50% { transform: translate(7px, 34px) rotate(45deg); }
    }
    @keyframes mochiDanceArmRight {
      0%, 100% { transform: translate(91px, 34px) rotate(-45deg); }
      50% { transform: translate(91px, 58px) rotate(25deg); }
    }
    /* ۳. خمیازه پویا: باز و بسته شدن دهان + بالا آمدن دست و زدن روی دهان (Bostezo) */
    @keyframes mochiYawnMouth {
      0%, 12%, 90%, 100% { transform: translate(50px, 64px) scale(0.35, 0.2); }
      30%, 70% { transform: translate(50px, 63px) scale(1.08, 1.22); }
      50% { transform: translate(50px, 63px) scale(1.15, 1.32); }
    }
    @keyframes mochiYawnHandPat {
      0%, 12%, 90%, 100% { transform: translate(78px, 75px) rotate(15deg); }
      28% { transform: translate(55px, 64px) rotate(-18deg); }
      40% { transform: translate(59px, 67px) rotate(-8deg); }
      52% { transform: translate(54px, 63px) rotate(-22deg); }
      64% { transform: translate(59px, 67px) rotate(-8deg); }
      76% { transform: translate(55px, 64px) rotate(-18deg); }
    }
    @keyframes mochiYawnBodyStretch {
      0%, 15%, 88%, 100% { transform: scale(1, 1) translateY(0px); }
      35%, 68% { transform: scale(0.96, 1.06) translateY(-3px); }
    }
    /* ۴. چشمک واقعی: ابتدا دو چشم باز است و سپس چشم راست چشمک می‌زند (Guiño) */
    @keyframes mochiWinkOpenEye {
      0%, 28%, 68%, 100% { opacity: 1; transform: scaleY(1); }
      33%, 62% { opacity: 0; transform: scaleY(0.1); }
    }
    @keyframes mochiWinkClosedChevron {
      0%, 28%, 68%, 100% { opacity: 0; transform: scale(0.7); }
      33%, 62% { opacity: 1; transform: scale(1); }
    }
    @keyframes mochiWinkSparkle {
      0%, 32%, 65%, 100% { opacity: 0; transform: translate(74px, 44px) scale(0.3); }
      45% { opacity: 1; transform: translate(78px, 40px) scale(1.1); }
    }
    /* ۵. پویایی جستجو با ذره‌بین، فکر کردن، عصبانیت، تعجب و خواب */
    @keyframes mochiSearchScan {
      0%, 100% { transform: translate(-4px, -2px) rotate(-6deg); }
      50% { transform: translate(8px, 3px) rotate(8deg); }
    }
    @keyframes mochiThinkChinTap {
      0%, 100% { transform: translate(43px, 73px) rotate(0deg); }
      50% { transform: translate(45px, 70px) rotate(-12deg); }
    }
    @keyframes mochiThinkBrow {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-2.8px); }
    }
    @keyframes mochiAngryShake {
      0%, 100% { transform: translate(0px, 0px); }
      25% { transform: translate(-1.4px, 0.8px); }
      50% { transform: translate(1.4px, -0.8px); }
      75% { transform: translate(-1.2px, -0.6px); }
    }
    @keyframes mochiSurprisePulse {
      0%, 100% { transform: translate(50px, 65px) scale(0.85); }
      50% { transform: translate(50px, 65px) scale(1.22); }
    }
    @keyframes mochiUploadArrow {
      0% { transform: translateY(4px); opacity: 0.3; }
      50% { transform: translateY(-2px); opacity: 1; }
      100% { transform: translateY(-5px); opacity: 0; }
    }
    @keyframes mochiSleepBreathe {
      0%, 100% { transform: scale(1, 1); }
      50% { transform: scale(1.04, 0.96); }
    }
    @keyframes mochiFloatUp {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-4px); }
    }
    /* ۶. انیمیشن‌های جدید چرخه خواب و بیداری نسخه ۵ (چرت زدن، کش‌وقوس صبحگاهی و پریدن از خواب) */
    @keyframes mochiDrowsyNod {
      0%, 100% { transform: translateY(0px) rotate(0deg) scale(1, 1); }
      45% { transform: translateY(4.5px) rotate(5deg) scale(1.03, 0.96); }
      60% { transform: translateY(6.2px) rotate(7deg) scale(1.05, 0.94); }
      75% { transform: translateY(1.2px) rotate(-1deg) scale(0.99, 1.01); }
    }
    @keyframes mochiDrowsyEye {
      0%, 100% { transform: translateY(0px) scaleY(0.75); }
      55% { transform: translateY(3.8px) scaleY(0.28); }
    }
    @keyframes mochiSleepBubble {
      0%, 100% { transform: translate(56px, 60px) scale(0.55); opacity: 0.75; }
      50% { transform: translate(59px, 57px) scale(1.35); opacity: 0.95; }
    }
    @keyframes mochiGentleWakeBody {
      0% { transform: translateY(3px) rotate(3deg) scale(1.04, 0.96); }
      35% { transform: translateY(-6px) rotate(0deg) scale(0.93, 1.09); }
      65% { transform: translateY(-2px) rotate(-2deg) scale(1.02, 0.98); }
      100% { transform: translateY(0px) rotate(0deg) scale(1, 1); }
    }
    @keyframes mochiGentleStretchL {
      0%, 100% { transform: translate(12px, 66px) rotate(10deg); opacity: 0; }
      12% { opacity: 1; }
      38% { transform: translate(8px, 32px) rotate(-35deg); opacity: 1; }
      75% { transform: translate(11px, 58px) rotate(0deg); opacity: 1; }
      92% { opacity: 0; }
    }
    @keyframes mochiGentleStretchR {
      0%, 100% { transform: translate(88px, 66px) rotate(-10deg); opacity: 0; }
      12% { opacity: 1; }
      38% { transform: translate(92px, 32px) rotate(35deg); opacity: 1; }
      75% { transform: translate(89px, 58px) rotate(0deg); opacity: 1; }
      92% { opacity: 0; }
    }
    @keyframes mochiGentleWakeEyes {
      0%, 35% { transform: scaleY(0.22); }
      52% { transform: scaleY(0.9); }
      62% { transform: scaleY(0.15); }
      72% { transform: scaleY(1); }
      82% { transform: scaleY(0.15); }
      92%, 100% { transform: scaleY(1); }
    }
    @keyframes mochiGentleWakeMouth {
      0%, 10% { transform: translate(50px, 62px) scale(0.3); opacity: 0.6; }
      35% { transform: translate(50px, 62px) scale(1.15, 1.28); opacity: 1; }
      65%, 100% { transform: translate(50px, 62px) scale(0.2); opacity: 0; }
    }
    @keyframes mochiStartleJump {
      0.00000% { transform: translate(0.000px, -0.000px) scale(0.8000, 1.2800) rotate(0.000deg); }
      1.72414% { transform: translate(1.905px, -1.827px) scale(0.8349, 1.2311) rotate(7.980deg); }
      3.44828% { transform: translate(-2.342px, -3.623px) scale(0.8637, 1.1908) rotate(1.129deg); }
      5.17241% { transform: translate(1.055px, -5.358px) scale(0.8875, 1.1575) rotate(-7.820deg); }
      6.89655% { transform: translate(0.944px, -7.000px) scale(0.9071, 1.1300) rotate(-2.235deg); }
      8.62069% { transform: translate(-2.167px, -8.523px) scale(0.9233, 1.1073) rotate(7.504deg); }
      10.34483% { transform: translate(1.758px, -9.899px) scale(0.9367, 1.0886) rotate(3.297deg); }
      12.06897% { transform: translate(-0.090px, -11.107px) scale(0.9477, 1.0732) rotate(-7.038deg); }
      13.79310% { transform: translate(-1.565px, -12.124px) scale(0.9569, 1.0604) rotate(-4.293deg); }
      15.51724% { transform: translate(2.002px, -12.934px) scale(0.9644, 1.0499) rotate(6.430deg); }
      17.24138% { transform: translate(-0.964px, -13.523px) scale(0.9706, 1.0412) rotate(5.202deg); }
      18.96552% { transform: translate(-0.720px, -13.880px) scale(0.9757, 1.0340) rotate(-5.694deg); }
      20.68966% { transform: translate(1.793px, -14.000px) scale(0.9800, 1.0280) rotate(-6.008deg); }
      22.41379% { transform: translate(-1.510px, -13.880px) scale(0.9835, 1.0232) rotate(4.844deg); }
      24.13793% { transform: translate(0.149px, -13.523px) scale(0.9863, 1.0191) rotate(6.693deg); }
      25.86207% { transform: translate(1.242px, -12.934px) scale(0.9887, 1.0158) rotate(-3.897deg); }
      27.58621% { transform: translate(-1.653px, -12.124px) scale(0.9907, 1.0130) rotate(-7.245deg); }
      29.31034% { transform: translate(0.845px, -11.107px) scale(0.9923, 1.0108) rotate(2.872deg); }
      31.03448% { transform: translate(0.522px, -9.899px) scale(0.9937, 1.0089) rotate(7.651deg); }
      32.75862% { transform: translate(-1.425px, -8.523px) scale(0.9948, 1.0073) rotate(-1.790deg); }
      34.48276% { transform: translate(1.241px, -7.000px) scale(0.9957, 1.0060) rotate(-7.904deg); }
      36.20690% { transform: translate(-0.177px, -5.358px) scale(0.9964, 1.0050) rotate(0.672deg); }
      37.93103% { transform: translate(-0.938px, -3.623px) scale(0.9971, 1.0041) rotate(7.999deg); }
      39.65517% { transform: translate(1.297px, -1.827px) scale(0.9976, 1.0034) rotate(0.460deg); }
      41.37931% { transform: translate(-0.698px, -0.000px) scale(0.9980, 1.0028) rotate(-7.934deg); }
      43.10345% { transform: translate(-0.368px, -0.000px) scale(0.9983, 1.0023) rotate(-1.582deg); }
      44.82759% { transform: translate(1.161px, -0.000px) scale(0.9986, 1.0019) rotate(7.710deg); }
      46.55172% { transform: translate(-1.090px, -0.000px) scale(0.9989, 1.0016) rotate(2.673deg); }
      48.27586% { transform: translate(0.209px, -0.000px) scale(0.9991, 1.0013) rotate(-7.332deg); }
      50.00000% { transform: translate(0.827px, -0.000px) scale(0.9992, 1.0011) rotate(-3.711deg); }
      51.72414% { transform: translate(-1.249px, -0.000px) scale(0.9994, 1.0009) rotate(6.807deg); }
      53.44828% { transform: translate(0.741px, -0.000px) scale(0.9995, 1.0007) rotate(4.674deg); }
      55.17241% { transform: translate(0.317px, -0.000px) scale(0.9996, 1.0006) rotate(-6.146deg); }
      56.89655% { transform: translate(-1.140px, -0.000px) scale(0.9996, 1.0005) rotate(-5.543deg); }
      58.62069% { transform: translate(1.115px, -0.000px) scale(0.9997, 1.0004) rotate(5.362deg); }
      60.34483% { transform: translate(-0.261px, -0.000px) scale(0.9998, 1.0003) rotate(6.302deg); }
      62.06897% { transform: translate(-0.787px, -0.000px) scale(0.9998, 1.0003) rotate(-4.470deg); }
      63.79310% { transform: translate(1.250px, -0.000px) scale(0.9998, 1.0002) rotate(-6.934deg); }
      65.51724% { transform: translate(-0.783px, -0.000px) scale(0.9999, 1.0002) rotate(3.489deg); }
      67.24138% { transform: translate(-0.266px, -0.000px) scale(0.9999, 1.0002) rotate(7.428deg); }
      68.96552% { transform: translate(1.117px, -0.000px) scale(0.9999, 1.0001) rotate(-2.438deg); }
      70.68966% { transform: translate(-1.138px, -0.000px) scale(0.9999, 1.0001) rotate(-7.773deg); }
      72.41379% { transform: translate(0.312px, -0.000px) scale(0.9999, 1.0001) rotate(1.339deg); }
      74.13793% { transform: translate(0.746px, -0.000px) scale(0.9999, 1.0001) rotate(7.962deg); }
      75.86207% { transform: translate(-1.249px, -0.000px) scale(1.0000, 1.0001) rotate(-0.212deg); }
      77.58621% { transform: translate(0.823px, -0.000px) scale(1.0000, 1.0001) rotate(-7.992deg); }
      79.31034% { transform: translate(0.215px, -0.000px) scale(1.0000, 1.0000) rotate(-0.918deg); }
      81.03448% { transform: translate(-1.093px, -0.000px) scale(1.0000, 1.0000) rotate(7.862deg); }
      82.75862% { transform: translate(1.159px, -0.000px) scale(1.0000, 1.0000) rotate(2.031deg); }
      84.48276% { transform: translate(-0.363px, -0.000px) scale(1.0000, 1.0000) rotate(-7.575deg); }
      86.20690% { transform: translate(-0.703px, -0.000px) scale(1.0000, 1.0000) rotate(-3.102deg); }
      87.93103% { transform: translate(1.246px, -0.000px) scale(1.0000, 1.0000) rotate(7.136deg); }
      89.65517% { transform: translate(-0.862px, -0.000px) scale(1.0000, 1.0000) rotate(4.112deg); }
      91.37931% { transform: translate(-0.163px, -0.000px) scale(1.0000, 1.0000) rotate(-6.554deg); }
      93.10345% { transform: translate(1.067px, -0.000px) scale(1.0000, 1.0000) rotate(-5.039deg); }
      94.82759% { transform: translate(-1.177px, -0.000px) scale(1.0000, 1.0000) rotate(5.841deg); }
      96.55172% { transform: translate(0.412px, -0.000px) scale(1.0000, 1.0000) rotate(5.866deg); }
      98.27586% { transform: translate(0.659px, -0.000px) scale(1.0000, 1.0000) rotate(-5.012deg); }
      100.00000% { transform: translate(-1.240px, -0.000px) scale(1.0000, 1.0000) rotate(-6.575deg); }
    }
    @keyframes mochiStartlePupil {
      0%, 100% { transform: translate(0px, 0px); }
      25% { transform: translate(-1.2px, -0.8px); }
      50% { transform: translate(1.2px, 0.8px); }
      75% { transform: translate(-1px, 0.6px); }
    }

    [data-gmf-mochi] .anim-wave { animation: mochiWaveLeft 0.7s ease-in-out infinite; }
    [data-gmf-mochi] .anim-float { animation: mochiFloatUp 1.4s ease-in-out infinite; }
    [data-gmf-mochi] .anim-dance { animation: mochiDanceBody 0.65s ease-in-out infinite; transform-origin: 50px 58px; }
    [data-gmf-mochi] .anim-dance-arm-l { animation: mochiDanceArmLeft 0.65s ease-in-out infinite; }
    [data-gmf-mochi] .anim-dance-arm-r { animation: mochiDanceArmRight 0.65s ease-in-out infinite; }
    [data-gmf-mochi] .anim-yawn-mouth { animation: mochiYawnMouth 3.1s ease-in-out infinite; }
    [data-gmf-mochi] .anim-yawn-hand { animation: mochiYawnHandPat 3.1s ease-in-out infinite; }
    [data-gmf-mochi] .anim-yawn-body { animation: mochiYawnBodyStretch 3.1s ease-in-out infinite; transform-origin: 50px 84px; }
    [data-gmf-mochi] .anim-wink-open { animation: mochiWinkOpenEye 2.4s ease-in-out infinite; transform-origin: 62px 55px; }
    [data-gmf-mochi] .anim-wink-shut { animation: mochiWinkClosedChevron 2.4s ease-in-out infinite; transform-origin: 62px 55px; }
    [data-gmf-mochi] .anim-wink-star { animation: mochiWinkSparkle 2.4s ease-in-out infinite; }
    [data-gmf-mochi] .anim-search { animation: mochiSearchScan 1.8s ease-in-out infinite; }
    [data-gmf-mochi] .anim-think-hand { animation: mochiThinkChinTap 1.1s ease-in-out infinite; }
    [data-gmf-mochi] .anim-think-brow { animation: mochiThinkBrow 1.1s ease-in-out infinite; }
    [data-gmf-mochi] .anim-angry { animation: mochiAngryShake 0.18s linear infinite; }
    [data-gmf-mochi] .anim-surprise { animation: mochiSurprisePulse 0.9s ease-in-out infinite; }
    [data-gmf-mochi] .anim-upload-arr { animation: mochiUploadArrow 1.1s ease-in-out infinite; }
    [data-gmf-mochi] .anim-sleep { animation: mochiSleepBreathe 2.6s ease-in-out infinite; transform-origin: 50px 84px; }
    [data-gmf-mochi] .anim-drowsy-nod { animation: mochiDrowsyNod 3.2s ease-in-out infinite; transform-origin: 50px 82px; }
    [data-gmf-mochi] .anim-drowsy-eye { animation: mochiDrowsyEye 3.2s ease-in-out infinite; transform-origin: 50px 55px; }
    [data-gmf-mochi] .anim-sleep-bubble { animation: mochiSleepBubble 2.6s ease-in-out infinite; }
    [data-gmf-mochi] .anim-gentle-body { animation: mochiGentleWakeBody 2.6s ease-in-out infinite; transform-origin: 50px 84px; }
    [data-gmf-mochi] .anim-gentle-l { animation: mochiGentleStretchL 2.6s ease-in-out infinite; }
    [data-gmf-mochi] .anim-gentle-r { animation: mochiGentleStretchR 2.6s ease-in-out infinite; }
    [data-gmf-mochi] .anim-gentle-eyes { animation: mochiGentleWakeEyes 2.6s ease-in-out infinite; transform-origin: 50px 54px; }
    [data-gmf-mochi] .anim-gentle-mouth { animation: mochiGentleWakeMouth 2.6s ease-in-out infinite; }
    [data-gmf-mochi] .anim-startle-body { animation: mochiStartleJump 1.45s linear 1 forwards; transform-origin: 50px 52px; }
    [data-gmf-mochi] .anim-startle-pupil { animation: mochiStartlePupil 0.22s linear infinite; }

/* Local SVG utility equivalents; no external stylesheet is required. */
[data-gmf-mochi] svg.w-full.h-full.overflow-visible {
  display: block;
  vertical-align: middle;
  width: 100%;
  height: 100%;
  overflow: visible;
}
