clawd-desktop 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -0
  3. package/assets/LICENSE-clawd +22 -0
  4. package/assets/gif/clawd-building.gif +0 -0
  5. package/assets/gif/clawd-carrying.gif +0 -0
  6. package/assets/gif/clawd-conducting.gif +0 -0
  7. package/assets/gif/clawd-debugger.gif +0 -0
  8. package/assets/gif/clawd-error.gif +0 -0
  9. package/assets/gif/clawd-happy.gif +0 -0
  10. package/assets/gif/clawd-idle-reading.gif +0 -0
  11. package/assets/gif/clawd-idle.gif +0 -0
  12. package/assets/gif/clawd-juggling.gif +0 -0
  13. package/assets/gif/clawd-notification.gif +0 -0
  14. package/assets/gif/clawd-react-annoyed.gif +0 -0
  15. package/assets/gif/clawd-react-double-jump.gif +0 -0
  16. package/assets/gif/clawd-sleeping.gif +0 -0
  17. package/assets/gif/clawd-sweeping.gif +0 -0
  18. package/assets/gif/clawd-thinking.gif +0 -0
  19. package/assets/gif/clawd-typing.gif +0 -0
  20. package/assets/svg/clawd-about-hero.svg +202 -0
  21. package/assets/svg/clawd-collapse-sleep.svg +247 -0
  22. package/assets/svg/clawd-error.svg +94 -0
  23. package/assets/svg/clawd-happy.svg +161 -0
  24. package/assets/svg/clawd-idle-collapse.svg +101 -0
  25. package/assets/svg/clawd-idle-doze.svg +72 -0
  26. package/assets/svg/clawd-idle-follow.svg +64 -0
  27. package/assets/svg/clawd-idle-living.svg +196 -0
  28. package/assets/svg/clawd-idle-look.svg +115 -0
  29. package/assets/svg/clawd-idle-reading.svg +201 -0
  30. package/assets/svg/clawd-idle-yawn.svg +158 -0
  31. package/assets/svg/clawd-mini-alert.svg +129 -0
  32. package/assets/svg/clawd-mini-crabwalk.svg +76 -0
  33. package/assets/svg/clawd-mini-enter-sleep.svg +65 -0
  34. package/assets/svg/clawd-mini-enter.svg +115 -0
  35. package/assets/svg/clawd-mini-happy.svg +124 -0
  36. package/assets/svg/clawd-mini-idle.svg +83 -0
  37. package/assets/svg/clawd-mini-peek.svg +82 -0
  38. package/assets/svg/clawd-mini-sleep.svg +112 -0
  39. package/assets/svg/clawd-mini-typing.svg +153 -0
  40. package/assets/svg/clawd-notification.svg +149 -0
  41. package/assets/svg/clawd-react-annoyed.svg +167 -0
  42. package/assets/svg/clawd-react-double-jump.svg +229 -0
  43. package/assets/svg/clawd-react-double.svg +108 -0
  44. package/assets/svg/clawd-react-drag.svg +102 -0
  45. package/assets/svg/clawd-react-left.svg +102 -0
  46. package/assets/svg/clawd-react-right.svg +102 -0
  47. package/assets/svg/clawd-sleeping.svg +118 -0
  48. package/assets/svg/clawd-static-base.svg +21 -0
  49. package/assets/svg/clawd-wake.svg +277 -0
  50. package/assets/svg/clawd-working-building.svg +329 -0
  51. package/assets/svg/clawd-working-carrying.svg +178 -0
  52. package/assets/svg/clawd-working-conducting.svg +220 -0
  53. package/assets/svg/clawd-working-debugger.svg +245 -0
  54. package/assets/svg/clawd-working-juggling.svg +183 -0
  55. package/assets/svg/clawd-working-sweeping.svg +248 -0
  56. package/assets/svg/clawd-working-thinking.svg +196 -0
  57. package/assets/svg/clawd-working-typing.svg +273 -0
  58. package/assets/svg/clawd-working-ultrathink.svg +166 -0
  59. package/assets/svg/clawd-working-wizard.svg +98 -0
  60. package/assets/tray-icon.ico +0 -0
  61. package/bin/claude-pet.js +6 -0
  62. package/main.js +86 -0
  63. package/package.json +38 -0
  64. package/preload.js +6 -0
  65. package/renderer/avatar.js +55 -0
  66. package/renderer/index.html +14 -0
  67. package/renderer/motion.js +24 -0
  68. package/renderer/style.css +104 -0
@@ -0,0 +1,220 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="-15 -25 45 45" width="500" height="500">
2
+ <defs>
3
+ <style>
4
+ /* === Standard cycles === */
5
+ .breathe { transform-origin: 7.5px 13px; animation: breathe 3.2s infinite ease-in-out; }
6
+ @keyframes breathe {
7
+ 0%, 100% { transform: scale(1, 1) translate(0, 0); }
8
+ 50% { transform: scale(1.02, 0.98) translate(0, 0.5px); }
9
+ }
10
+ .shadow-pulse { transform-origin: 7.5px 15.5px; animation: shadow-pulse 3.2s infinite ease-in-out; }
11
+ @keyframes shadow-pulse {
12
+ 0%, 100% { transform: scale(1); opacity: 0.5; }
13
+ 50% { transform: scale(1.05); opacity: 0.4; }
14
+ }
15
+ .eyes-blink { transform-origin: 7.5px 9px; animation: blink 4s infinite; }
16
+ @keyframes blink {
17
+ 0%, 10%, 100% { transform: scaleY(1); }
18
+ 5% { transform: scaleY(0.1); }
19
+ }
20
+
21
+ /* === Arc flow: 8s, 4 traversals, speed unchanged === */
22
+ @keyframes flow-normal {
23
+ 0% { transform: translate(-2px, 6px); opacity: 0; }
24
+ 6.25% { transform: translate(0px, 1px); opacity: 1; }
25
+ 12.5% { transform: translate(7.5px, -3px); opacity: 1; }
26
+ 18.75% { transform: translate(15px, 1px); opacity: 1; }
27
+ 24.5% { transform: translate(17px, 6px); opacity: 0; }
28
+ 25% { transform: translate(-2px, 6px); opacity: 0; }
29
+ 31.25% { transform: translate(0px, 1px); opacity: 1; }
30
+ 37.5% { transform: translate(7.5px, -3px); opacity: 1; }
31
+ 43.75% { transform: translate(15px, 1px); opacity: 1; }
32
+ 49.5% { transform: translate(17px, 6px); opacity: 0; }
33
+ 50% { transform: translate(-2px, 6px); opacity: 0; }
34
+ 56.25% { transform: translate(0px, 1px); opacity: 1; }
35
+ 62.5% { transform: translate(7.5px, -3px); opacity: 1; }
36
+ 68.75% { transform: translate(15px, 1px); opacity: 1; }
37
+ 74.5% { transform: translate(17px, 6px); opacity: 0; }
38
+ 75% { transform: translate(-2px, 6px); opacity: 0; }
39
+ 81.25% { transform: translate(0px, 1px); opacity: 1; }
40
+ 87.5% { transform: translate(7.5px, -3px); opacity: 1; }
41
+ 93.75% { transform: translate(15px, 1px); opacity: 1; }
42
+ 99.5% { transform: translate(17px, 6px); opacity: 0; }
43
+ 100% { transform: translate(-2px, 6px); opacity: 0; }
44
+ }
45
+ .f1, .f2, .f3, .f4, .f5 {
46
+ animation-name: flow-normal;
47
+ animation-duration: 8s;
48
+ animation-iteration-count: infinite;
49
+ animation-timing-function: linear;
50
+ }
51
+ .f1 { animation-delay: 0s; }
52
+ .f2 { animation-delay: -0.4s; }
53
+ .f3 { animation-delay: -0.8s; }
54
+ .f4 { animation-delay: -1.2s; }
55
+ .f5 { animation-delay: -1.6s; }
56
+
57
+ /*
58
+ * Catch cycle: 4s (half of flow 8s, fires 2x per flow cycle)
59
+ * 12.5% = Block 1 at LEFT
60
+ * 45% = Block 3 at PEAK
61
+ * 67.5% = Block 4 at RIGHT
62
+ */
63
+
64
+ /* === Catch scale (4s cycle) === */
65
+ .cs1 { transform-origin: 1px 1px; animation: cs1 4s infinite; }
66
+ @keyframes cs1 {
67
+ 0%, 10% { transform: scale(1); }
68
+ 12.5% { transform: scale(2.2); }
69
+ 18% { transform: scale(2.2); }
70
+ 20%, 100% { transform: scale(1); }
71
+ }
72
+ .cs3 { transform-origin: 1px 1px; animation: cs3 4s infinite; }
73
+ @keyframes cs3 {
74
+ 0%, 43% { transform: scale(1); }
75
+ 45% { transform: scale(2.2); }
76
+ 51% { transform: scale(2.2); }
77
+ 53%, 100% { transform: scale(1); }
78
+ }
79
+ .cs4 { transform-origin: 1px 1px; animation: cs4 4s infinite; }
80
+ @keyframes cs4 {
81
+ 0%, 65.5% { transform: scale(1); }
82
+ 67.5% { transform: scale(2.2); }
83
+ 73.5% { transform: scale(2.2); }
84
+ 75.5%, 100% { transform: scale(1); }
85
+ }
86
+
87
+ /* === Dim layers (4s cycle) === */
88
+ .dim-all { animation: dim-all 4s infinite; }
89
+ @keyframes dim-all {
90
+ 0%, 8% { opacity: 1; }
91
+ 10%, 20% { opacity: 0.12; }
92
+ 22%, 41% { opacity: 1; }
93
+ 43%, 53% { opacity: 0.12; }
94
+ 55%, 63.5% { opacity: 1; }
95
+ 65.5%, 75.5% { opacity: 0.12; }
96
+ 77.5%, 100% { opacity: 1; }
97
+ }
98
+ .dim-23 { animation: dim-23 4s infinite; }
99
+ @keyframes dim-23 {
100
+ 0%, 41% { opacity: 1; }
101
+ 43%, 53% { opacity: 0.12; }
102
+ 55%, 63.5% { opacity: 1; }
103
+ 65.5%, 75.5% { opacity: 0.12; }
104
+ 77.5%, 100% { opacity: 1; }
105
+ }
106
+ .dim-13 { animation: dim-13 4s infinite; }
107
+ @keyframes dim-13 {
108
+ 0%, 8% { opacity: 1; }
109
+ 10%, 20% { opacity: 0.12; }
110
+ 22%, 63.5% { opacity: 1; }
111
+ 65.5%, 75.5% { opacity: 0.12; }
112
+ 77.5%, 100% { opacity: 1; }
113
+ }
114
+ .dim-12 { animation: dim-12 4s infinite; }
115
+ @keyframes dim-12 {
116
+ 0%, 8% { opacity: 1; }
117
+ 10%, 20% { opacity: 0.12; }
118
+ 22%, 41% { opacity: 1; }
119
+ 43%, 53% { opacity: 0.12; }
120
+ 55%, 100% { opacity: 1; }
121
+ }
122
+
123
+ /* === Dispatch: eyes + arms (4s cycle) === */
124
+ .eyes-dispatch { animation: eyes-dispatch 4s infinite; }
125
+ @keyframes eyes-dispatch {
126
+ 0%, 8% { transform: translate(0, 0); }
127
+ 10%, 20% { transform: translate(-1.5px, 0); }
128
+ 23%, 41% { transform: translate(0, 0); }
129
+ 43%, 53% { transform: translate(0, -1.5px); }
130
+ 56%, 63% { transform: translate(0, 0); }
131
+ 65.5%, 75.5% { transform: translate(1.5px, 0); }
132
+ 78%, 100% { transform: translate(0, 0); }
133
+ }
134
+ .arm-l-dispatch { transform-origin: 2px 10px; animation: arm-l-dispatch 4s infinite; }
135
+ @keyframes arm-l-dispatch {
136
+ 0%, 10% { transform: rotate(10deg); }
137
+ 12.5% { transform: rotate(24deg); }
138
+ 18%, 100% { transform: rotate(10deg); }
139
+ }
140
+ .arm-r-dispatch { transform-origin: 13px 10px; animation: arm-r-dispatch 4s infinite; }
141
+ @keyframes arm-r-dispatch {
142
+ 0%, 43% { transform: rotate(-10deg); }
143
+ 45% { transform: rotate(-18deg); }
144
+ 51%, 65.5% { transform: rotate(-10deg); }
145
+ 67.5% { transform: rotate(-24deg); }
146
+ 73.5%, 100% { transform: rotate(-10deg); }
147
+ }
148
+
149
+ /* Catch sparks (4s cycle) */
150
+ .spark-l { animation: spark-l 4s infinite; }
151
+ @keyframes spark-l {
152
+ 0%, 10%, 21%, 100% { opacity: 0; }
153
+ 12.5%, 18% { opacity: 1; }
154
+ }
155
+ .spark-p { animation: spark-p 4s infinite; }
156
+ @keyframes spark-p {
157
+ 0%, 43%, 54%, 100% { opacity: 0; }
158
+ 45%, 51% { opacity: 1; }
159
+ }
160
+ .spark-r { animation: spark-r 4s infinite; }
161
+ @keyframes spark-r {
162
+ 0%, 65%, 76%, 100% { opacity: 0; }
163
+ 67.5%, 73.5% { opacity: 1; }
164
+ }
165
+ </style>
166
+ </defs>
167
+
168
+ <!-- Ground Shadow -->
169
+ <rect class="shadow-pulse" x="3" y="15" width="9" height="1" fill="#000000"/>
170
+
171
+ <!-- 5 data blocks: dim(outer) > flow(middle) > scale(inner) > rect -->
172
+
173
+ <g class="dim-23"><g class="f1"><g class="cs1">
174
+ <rect x="0" y="0" width="2" height="2" fill="#FF5252"/>
175
+ </g></g></g>
176
+
177
+ <g class="dim-all"><g class="f2">
178
+ <rect x="0" y="0" width="2" height="2" fill="#FFC107"/>
179
+ </g></g>
180
+
181
+ <g class="dim-13"><g class="f3"><g class="cs3">
182
+ <rect x="0" y="0" width="2" height="2" fill="#0082FC"/>
183
+ </g></g></g>
184
+
185
+ <g class="dim-12"><g class="f4"><g class="cs4">
186
+ <rect x="0" y="0" width="2" height="2" fill="#4CAF50"/>
187
+ </g></g></g>
188
+
189
+ <g class="dim-all"><g class="f5">
190
+ <rect x="0" y="0" width="2" height="2" fill="#9C27B0"/>
191
+ </g></g>
192
+
193
+ <!-- Catch sparks -->
194
+ <rect class="spark-l" x="-1.5" y="-0.5" width="1" height="1" fill="#FFF" opacity="0"/>
195
+ <rect class="spark-p" x="9.5" y="-5" width="1" height="1" fill="#FFF" opacity="0"/>
196
+ <rect class="spark-r" x="17" y="-0.5" width="1" height="1" fill="#FFF" opacity="0"/>
197
+
198
+ <!-- Character Body -->
199
+ <g class="breathe">
200
+ <g fill="#DE886D">
201
+ <rect x="3" y="13" width="1" height="2"/>
202
+ <rect x="5" y="13" width="1" height="2"/>
203
+ <rect x="9" y="13" width="1" height="2"/>
204
+ <rect x="11" y="13" width="1" height="2"/>
205
+ </g>
206
+ <rect x="2" y="6" width="11" height="7" fill="#DE886D"/>
207
+ <g class="eyes-dispatch">
208
+ <g class="eyes-blink">
209
+ <rect x="4" y="8" width="1" height="2" fill="#000000"/>
210
+ <rect x="10" y="8" width="1" height="2" fill="#000000"/>
211
+ </g>
212
+ </g>
213
+ <g class="arm-l-dispatch">
214
+ <rect x="0" y="9" width="2" height="2" fill="#DE886D"/>
215
+ </g>
216
+ <g class="arm-r-dispatch">
217
+ <rect x="13" y="9" width="2" height="2" fill="#DE886D"/>
218
+ </g>
219
+ </g>
220
+ </svg>
@@ -0,0 +1,245 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="-15 -25 45 45" width="500" height="500">
2
+ <defs>
3
+ <style>
4
+ /* ═══ Independent animations (always running) ═══ */
5
+
6
+ .breathe {
7
+ transform-origin: 7.5px 13px;
8
+ animation: breathe 3.2s infinite ease-in-out;
9
+ }
10
+
11
+ .blink {
12
+ transform-origin: 7.5px 9px;
13
+ animation: blink 4s infinite linear;
14
+ }
15
+
16
+ .leg-a {
17
+ animation: sneak-a 0.5s infinite linear;
18
+ transform-origin: top center;
19
+ transform-box: fill-box;
20
+ }
21
+ .leg-b {
22
+ animation: sneak-b 0.5s infinite linear;
23
+ transform-origin: top center;
24
+ transform-box: fill-box;
25
+ }
26
+
27
+ .glass-wobble {
28
+ transform-origin: 14px 10px;
29
+ animation: glass-wobble 3s infinite ease-in-out;
30
+ }
31
+
32
+ /* ═══ Main 14s timeline ═══ */
33
+
34
+ .body-main {
35
+ transform-origin: 7.5px 15px;
36
+ animation: body-main 14s infinite ease-in-out;
37
+ }
38
+
39
+ .shadow-main {
40
+ transform-origin: 7.5px 15.5px;
41
+ animation: shadow-main 14s infinite ease-in-out;
42
+ }
43
+
44
+ .arm-l {
45
+ transform-origin: 1px 10px;
46
+ animation: arm-l 14s infinite ease-in-out;
47
+ }
48
+
49
+ .arm-r {
50
+ transform-origin: 14px 10px;
51
+ animation: arm-r 14s infinite ease-in-out;
52
+ }
53
+
54
+ .glass-vis {
55
+ animation: glass-vis 14s infinite linear;
56
+ }
57
+
58
+ .eye-squint {
59
+ transform-origin: 4.5px 9px;
60
+ animation: eye-squint 14s infinite ease-in-out;
61
+ }
62
+
63
+ .legs-idle {
64
+ animation: legs-idle 14s infinite linear;
65
+ }
66
+
67
+ .legs-sneak {
68
+ animation: legs-sneak 14s infinite linear;
69
+ }
70
+
71
+ /* ═══ Independent keyframes ═══ */
72
+
73
+ @keyframes breathe {
74
+ 0%, 100% { transform: scale(1, 1) translate(0, 0); }
75
+ 50% { transform: scale(1.02, 0.98) translate(0, 0.5px); }
76
+ }
77
+
78
+ @keyframes blink {
79
+ 0%, 10%, 100% { transform: scaleY(1); }
80
+ 5% { transform: scaleY(0.1); }
81
+ }
82
+
83
+ @keyframes sneak-a {
84
+ 0%, 100% { transform: rotate(0deg) scaleY(1); }
85
+ 50% { transform: rotate(-25deg) scaleY(0.7); }
86
+ }
87
+ @keyframes sneak-b {
88
+ 0%, 100% { transform: rotate(-25deg) scaleY(0.7); }
89
+ 50% { transform: rotate(0deg) scaleY(1); }
90
+ }
91
+
92
+ @keyframes glass-wobble {
93
+ 0%, 100% { transform: rotate(0deg) scale(1); }
94
+ 50% { transform: rotate(-3deg) scale(1.05); }
95
+ }
96
+
97
+ /* ═══ Main timeline keyframes (14s) ═══ */
98
+
99
+ /* Body: idle → hunch + patrol → idle (both idle phases trimmed) */
100
+ @keyframes body-main {
101
+ 0%, 3% { transform: translate(0, 0) rotate(0deg); }
102
+ 15% { transform: translate(0, 1px) rotate(2deg); }
103
+ 22% { transform: translate(-2px, 1px) rotate(2deg); }
104
+ 35% { transform: translate(3px, 1px) rotate(2deg); }
105
+ 48% { transform: translate(-2px, 1px) rotate(2deg); }
106
+ 61% { transform: translate(2px, 1px) rotate(2deg); }
107
+ 78% { transform: translate(0, 1px) rotate(2deg); }
108
+ 90% { transform: translate(0, 0) rotate(0deg); }
109
+ 96%, 100% { transform: translate(0, 0) rotate(0deg); }
110
+ }
111
+
112
+ /* Shadow: follows body X, shrinks during detective */
113
+ @keyframes shadow-main {
114
+ 0%, 3% { transform: scaleX(1) translate(0, 0); opacity: 0.5; }
115
+ 15% { transform: scale(0.9) translate(0, 0); opacity: 0.4; }
116
+ 22% { transform: scale(0.9) translate(-2px, 0); opacity: 0.4; }
117
+ 35% { transform: scale(0.9) translate(3px, 0); opacity: 0.4; }
118
+ 48% { transform: scale(0.9) translate(-2px, 0); opacity: 0.4; }
119
+ 61% { transform: scale(0.9) translate(2px, 0); opacity: 0.4; }
120
+ 78% { transform: scale(0.9) translate(0, 0); opacity: 0.4; }
121
+ 90% { transform: scaleX(1) translate(0, 0); opacity: 0.5; }
122
+ 96%, 100% { transform: scaleX(1) translate(0, 0); opacity: 0.5; }
123
+ }
124
+
125
+ /* Left arm: normal → tucked behind → normal */
126
+ @keyframes arm-l {
127
+ 0%, 5% { transform: translate(0, 0) rotate(0deg); }
128
+ 15%, 78% { transform: translate(1px, -1px) rotate(15deg); }
129
+ 90%, 100% { transform: translate(0, 0) rotate(0deg); }
130
+ }
131
+
132
+ /* Right arm: lifts briefly when glass appears/disappears */
133
+ @keyframes arm-r {
134
+ 0%, 4% { transform: translate(0, 0); }
135
+ 7%, 10% { transform: translate(0, -2px); }
136
+ 13%, 80% { transform: translate(0, 0); }
137
+ 83%, 86% { transform: translate(0, -2px); }
138
+ 90%, 100% { transform: translate(0, 0); }
139
+ }
140
+
141
+ /* Magnifying glass: appears while arm is up, vanishes while arm is up */
142
+ @keyframes glass-vis {
143
+ 0%, 8.9% { opacity: 0; }
144
+ 9% { opacity: 1; }
145
+ 83.9% { opacity: 1; }
146
+ 84% { opacity: 0; }
147
+ 100% { opacity: 0; }
148
+ }
149
+
150
+ /* Left eye: normal → squint → normal */
151
+ @keyframes eye-squint {
152
+ 0%, 10% { transform: scaleY(1); }
153
+ 15%, 78% { transform: scaleY(0.5); }
154
+ 86%, 100% { transform: scaleY(1); }
155
+ }
156
+
157
+ /* Idle legs: visible in idle, hidden in detective */
158
+ @keyframes legs-idle {
159
+ 0%, 13.9% { opacity: 1; }
160
+ 14% { opacity: 0; }
161
+ 85.9% { opacity: 0; }
162
+ 86% { opacity: 1; }
163
+ 100% { opacity: 1; }
164
+ }
165
+
166
+ /* Sneak legs: hidden in idle, visible in detective */
167
+ @keyframes legs-sneak {
168
+ 0%, 13.9% { opacity: 0; }
169
+ 14% { opacity: 1; }
170
+ 85.9% { opacity: 1; }
171
+ 86% { opacity: 0; }
172
+ 100% { opacity: 0; }
173
+ }
174
+ </style>
175
+ </defs>
176
+
177
+ <!-- Ground Shadow -->
178
+ <g class="shadow-main">
179
+ <rect x="3" y="15" width="9" height="1" fill="#000000"/>
180
+ </g>
181
+
182
+ <!-- Static Legs (idle phases) -->
183
+ <g class="legs-idle" fill="#DE886D">
184
+ <rect x="3" y="12" width="1" height="3"/>
185
+ <rect x="5" y="12" width="1" height="3"/>
186
+ <rect x="9" y="12" width="1" height="3"/>
187
+ <rect x="11" y="12" width="1" height="3"/>
188
+ </g>
189
+
190
+ <!-- Body Group (main timeline: hunch + walk) -->
191
+ <g class="body-main">
192
+
193
+ <!-- Sneaking Legs (detective phase, inside body so they walk with it) -->
194
+ <g class="legs-sneak" fill="#DE886D" opacity="0">
195
+ <rect class="leg-a" x="3" y="13" width="1" height="2"/>
196
+ <rect class="leg-b" x="5" y="13" width="1" height="2"/>
197
+ <rect class="leg-a" x="9" y="13" width="1" height="2"/>
198
+ <rect class="leg-b" x="11" y="13" width="1" height="2"/>
199
+ </g>
200
+
201
+ <!-- Upper Body (breathing) -->
202
+ <g class="breathe">
203
+ <!-- Torso -->
204
+ <rect x="2" y="6" width="11" height="7" fill="#DE886D"/>
205
+
206
+ <!-- Left Arm -->
207
+ <g class="arm-l">
208
+ <rect x="0" y="9" width="2" height="2" fill="#DE886D"/>
209
+ </g>
210
+
211
+ <!-- Eyes -->
212
+ <g class="blink" fill="#000000">
213
+ <!-- Left Eye (squints during detective phase) -->
214
+ <g class="eye-squint">
215
+ <rect x="4" y="8" width="1" height="2"/>
216
+ </g>
217
+ <!-- Right Eye -->
218
+ <rect x="10" y="8" width="1" height="2"/>
219
+ </g>
220
+
221
+ <!-- Right Arm + Magnifying Glass (on top of eyes in z-order) -->
222
+ <g class="arm-r">
223
+ <rect x="13" y="9" width="2" height="2" fill="#DE886D"/>
224
+
225
+ <!-- Magnifying Glass -->
226
+ <g class="glass-vis" opacity="0">
227
+ <g class="glass-wobble">
228
+ <g transform="translate(13.5, 9.5)">
229
+ <!-- Handle -->
230
+ <polygon points="0.5,1.5 1.5,0.5 -1,-2 -2,-1" fill="#795548"/>
231
+ <!-- Rim -->
232
+ <rect x="-6" y="-5" width="6" height="6" fill="#546E7A" rx="2"/>
233
+ <!-- Magnified Eye -->
234
+ <rect x="-4" y="-3.5" width="2" height="3" fill="#000000"/>
235
+ <!-- Lens -->
236
+ <rect x="-5.5" y="-4.5" width="5" height="5" fill="#E0F7FA" rx="1.5" opacity="0.6"/>
237
+ <!-- Glare -->
238
+ <rect x="-4.5" y="-3.5" width="1.5" height="1.5" fill="#FFFFFF" opacity="0.8"/>
239
+ </g>
240
+ </g>
241
+ </g>
242
+ </g>
243
+ </g>
244
+ </g>
245
+ </svg>
@@ -0,0 +1,183 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="-15 -25 45 45" width="500" height="500">
2
+ <defs>
3
+ <style>
4
+ /* ===== Independent sub-animations ===== */
5
+ .breathe {
6
+ transform-origin: 7.5px 13px;
7
+ animation: breathe 3.2s infinite ease-in-out;
8
+ }
9
+ .blink {
10
+ transform-origin: 7.5px 9px;
11
+ animation: blink 4s infinite;
12
+ }
13
+
14
+ /* ===== Body rock: left-right sway + micro-dip ===== */
15
+ .body-rock {
16
+ transform-origin: 7.5px 15px;
17
+ animation: rock 1.2s infinite ease-in-out;
18
+ }
19
+
20
+ /* ===== Shadow ===== */
21
+ .shadow-anim {
22
+ transform-origin: 7.5px 15.5px;
23
+ animation: shadow-rock 1.2s infinite ease-in-out;
24
+ }
25
+
26
+ /* ===== Arms: alternate catch/throw, synced with rock ===== */
27
+ .arm-juggle-l {
28
+ transform-origin: 1px 10px;
29
+ animation: arm-jl 1.2s infinite ease-in-out;
30
+ }
31
+ .arm-juggle-r {
32
+ transform-origin: 14px 10px;
33
+ animation: arm-jr 1.2s infinite ease-in-out;
34
+ }
35
+
36
+ /* ===== Eyes: track balls ===== */
37
+ .eye-track {
38
+ animation: eye-track 2.4s infinite ease-in-out;
39
+ }
40
+
41
+ /* ===== Juggling packets: parabolic arc ===== */
42
+ .packet {
43
+ animation: juggle 1.2s infinite;
44
+ }
45
+ .p1 { animation-delay: 0s; fill: #FF5252; }
46
+ .p2 { animation-delay: -0.4s; fill: #FFC107; }
47
+ .p3 { animation-delay: -0.8s; fill: #4CAF50; }
48
+
49
+ /* (no sweat — juggling is a steady state, not emergency) */
50
+
51
+ /* ===== Keyframes ===== */
52
+
53
+ @keyframes breathe {
54
+ 0%, 100% { transform: scale(1, 1) translate(0, 0); }
55
+ 50% { transform: scale(1.02, 0.98) translate(0, 0.5px); }
56
+ }
57
+
58
+ @keyframes blink {
59
+ 0%, 10%, 100% { transform: scaleY(1); }
60
+ 5% { transform: scaleY(0.1); }
61
+ }
62
+
63
+ /* Body: center → left-dip → center → right-dip → center */
64
+ @keyframes rock {
65
+ 0%, 50%, 100% { transform: rotate(0deg) translateY(0); }
66
+ 25% { transform: rotate(-3deg) translateY(0.3px); }
67
+ 75% { transform: rotate(3deg) translateY(0.3px); }
68
+ }
69
+
70
+ /* Shadow: sway with body */
71
+ @keyframes shadow-rock {
72
+ 0%, 50%, 100% { transform: scaleX(1); opacity: 0.5; }
73
+ 25% { transform: scaleX(1.03) translateX(-0.3px); opacity: 0.52; }
74
+ 75% { transform: scaleX(1.03) translateX(0.3px); opacity: 0.52; }
75
+ }
76
+
77
+ /* Left arm: up at 25% (catch left), down at 75% */
78
+ @keyframes arm-jl {
79
+ 0%, 50%, 100% { transform: rotate(20deg); }
80
+ 25% { transform: rotate(35deg); }
81
+ 75% { transform: rotate(5deg); }
82
+ }
83
+
84
+ /* Right arm: down at 25%, up at 75% (catch right) */
85
+ @keyframes arm-jr {
86
+ 0%, 50%, 100% { transform: rotate(-20deg); }
87
+ 25% { transform: rotate(-5deg); }
88
+ 75% { transform: rotate(-35deg); }
89
+ }
90
+
91
+ /* Eyes: track ball arc left-right */
92
+ @keyframes eye-track {
93
+ 0%, 100% { transform: translate(-1px, -1px); }
94
+ 15% { transform: translate(0, -1.5px); }
95
+ 30% { transform: translate(1px, -1px); }
96
+ 45% { transform: translate(1px, 0.5px); }
97
+ 50% { transform: translate(1px, -1px); }
98
+ 65% { transform: translate(0, -1.5px); }
99
+ 80% { transform: translate(-1px, -1px); }
100
+ 90% { transform: translate(-1px, 0.5px); }
101
+ }
102
+
103
+ /* Juggle: parabolic arc between hands, hang at top
104
+ Packet origin is x=-1 y=-1 (2x2 rect center ~0,0)
105
+ Left hand: x~1, y~10 → translate(2, 10)
106
+ Right hand: x~14, y~10 → translate(14, 10)
107
+ Arc peak: y ~ -1 (well above head) */
108
+ @keyframes juggle {
109
+ 0% { transform: translate(2px, 10px); }
110
+ 8% { transform: translate(4px, 4px); }
111
+ 18% { transform: translate(6px, 0px); }
112
+ 30% { transform: translate(8px, -1px); }
113
+ 42% { transform: translate(10px, 0px); }
114
+ 50% { transform: translate(14px, 10px); }
115
+ 58% { transform: translate(12px, 4px); }
116
+ 68% { transform: translate(10px, 0px); }
117
+ 80% { transform: translate(8px, -1px); }
118
+ 92% { transform: translate(4px, 4px); }
119
+ 100% { transform: translate(2px, 10px); }
120
+ }
121
+ </style>
122
+ </defs>
123
+
124
+ <!-- Ground Shadow -->
125
+ <rect class="shadow-anim" x="3" y="15" width="9" height="1" fill="#000" opacity="0.5"/>
126
+
127
+ <!-- Juggling Packets -->
128
+ <g>
129
+ <!-- Red ball -->
130
+ <g class="packet p1">
131
+ <circle cx="0" cy="0" r="1.2" fill="#FF5252"/>
132
+ <circle cx="-0.35" cy="-0.35" r="0.45" fill="#FF8A80" opacity="0.7"/>
133
+ <circle cx="0.3" cy="0.4" r="0.6" fill="#D32F2F" opacity="0.3"/>
134
+ </g>
135
+ <!-- Yellow ball -->
136
+ <g class="packet p2">
137
+ <circle cx="0" cy="0" r="1.2" fill="#FFC107"/>
138
+ <circle cx="-0.35" cy="-0.35" r="0.45" fill="#FFE082" opacity="0.7"/>
139
+ <circle cx="0.3" cy="0.4" r="0.6" fill="#FFA000" opacity="0.3"/>
140
+ </g>
141
+ <!-- Green ball -->
142
+ <g class="packet p3">
143
+ <circle cx="0" cy="0" r="1.2" fill="#4CAF50"/>
144
+ <circle cx="-0.35" cy="-0.35" r="0.45" fill="#81C784" opacity="0.7"/>
145
+ <circle cx="0.3" cy="0.4" r="0.6" fill="#388E3C" opacity="0.3"/>
146
+ </g>
147
+ </g>
148
+
149
+ <!-- Static Legs -->
150
+ <g fill="#DE886D">
151
+ <rect x="3" y="13" width="1" height="2"/>
152
+ <rect x="5" y="13" width="1" height="2"/>
153
+ <rect x="9" y="13" width="1" height="2"/>
154
+ <rect x="11" y="13" width="1" height="2"/>
155
+ </g>
156
+
157
+ <!-- Upper Body -->
158
+ <g class="body-rock">
159
+ <g class="breathe">
160
+ <!-- Torso -->
161
+ <rect x="2" y="6" width="11" height="7" fill="#DE886D"/>
162
+
163
+ <!-- Left Arm -->
164
+ <g class="arm-juggle-l">
165
+ <rect x="0" y="9" width="2" height="2" fill="#DE886D"/>
166
+ </g>
167
+
168
+ <!-- Right Arm -->
169
+ <g class="arm-juggle-r">
170
+ <rect x="13" y="9" width="2" height="2" fill="#DE886D"/>
171
+ </g>
172
+
173
+ <!-- Eyes -->
174
+ <g class="eye-track" fill="#000">
175
+ <g class="blink">
176
+ <rect x="4" y="8" width="1" height="2"/>
177
+ <rect x="10" y="8" width="1" height="2"/>
178
+ </g>
179
+ </g>
180
+
181
+ </g>
182
+ </g>
183
+ </svg>