-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathladybug.css
More file actions
336 lines (292 loc) · 8.48 KB
/
Copy pathladybug.css
File metadata and controls
336 lines (292 loc) · 8.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
/* ============================================================
Ladybug Feature — Home Page Only
============================================================ */
/* Bug container: fixed overlay, full-page movement space */
#ladybug-container {
position: fixed;
top: 0;
left: 0;
width: 40px;
height: 40px;
pointer-events: none;
z-index: 9999;
transform-origin: center center;
transform: translate(-100px, -100px);
filter: drop-shadow(2px 4px 3px rgba(0, 0, 0, 0.4));
transition: filter 0.35s ease;
will-change: transform, filter;
}
/* Larger shadow when flying (higher altitude) */
#ladybug-container.ladybug-flying {
filter: drop-shadow(15px 25px 8px rgba(0, 0, 0, 0.3));
}
/* State-based depth cues */
#ladybug-container.ladybug-state-moving {
filter: drop-shadow(3px 6px 4px rgba(0, 0, 0, 0.3));
}
#ladybug-container.ladybug-state-flying {
filter: drop-shadow(14px 22px 8px rgba(0, 0, 0, 0.26));
}
#ladybug-container.ladybug-state-angry {
filter: drop-shadow(18px 26px 10px rgba(0, 0, 0, 0.28));
}
/* Wings: hidden at rest */
#ladybug-container .ladybug-wing {
opacity: 0;
transform-origin: 50px 30px;
transition: opacity 0.2s;
}
/* Wing-case shells: hinged near the head */
#ladybug-container .ladybug-shell {
transform-origin: 50px 30px;
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Open shells when flying */
#ladybug-container.ladybug-flying .ladybug-shell-left { transform: rotate(-35deg); }
#ladybug-container.ladybug-flying .ladybug-shell-right { transform: rotate(35deg); }
/* Reveal and flap wings when flying */
#ladybug-container.ladybug-flying .ladybug-wing {
opacity: 0.9;
animation: ladybug-flap 0.05s infinite alternate ease-in-out;
}
@keyframes ladybug-flap {
0% {
transform: scaleX(1) scaleY(0.92);
opacity: 0.78;
}
100% {
transform: scaleX(0.38) scaleY(1.07);
opacity: 0.95;
}
}
@keyframes ladybug-shell-vibe {
0% { transform: translateY(0) rotate(0deg); }
100% { transform: translateY(-0.4px) rotate(1deg); }
}
/* Fine-tune animation intensity by state */
#ladybug-container.ladybug-state-flying .ladybug-wing {
animation-duration: 0.045s;
}
#ladybug-container.ladybug-state-angry .ladybug-wing {
animation-duration: 0.032s;
opacity: 1;
}
#ladybug-container.ladybug-state-flying .ladybug-shell,
#ladybug-container.ladybug-state-angry .ladybug-shell {
animation: ladybug-shell-vibe 0.085s infinite alternate ease-in-out;
}
/* Scared posture: slight tilt + punchier shadow */
#ladybug-container.ladybug-state-scared {
filter: drop-shadow(8px 12px 7px rgba(0, 0, 0, 0.27));
}
/* Angry: deep red glow */
#ladybug-container.ladybug-angry {
filter: drop-shadow(0 0 12px rgba(220, 38, 38, 0.9))
hue-rotate(-20deg)
saturate(2.5) !important;
}
/* Subtle shell polish and contrast boost */
#ladybug-container .ladybug-shell path:first-child {
filter: saturate(1.05) contrast(1.03);
}
/* Eaten-cursor state: hide the real cursor everywhere */
body.ladybug-no-cursor,
body.ladybug-no-cursor * {
cursor: none !important;
}
/* H1 “leaf nibble” — characters the ladybug eats bit by bit */
#ladybug-h1-bite-target {
position: relative;
z-index: 1;
}
#ladybug-h1-bite-target .ladybug-h1-char {
display: inline-block;
position: relative;
transition: opacity 0.45s ease, color 0.4s ease, transform 0.4s ease,
clip-path 0.4s ease;
vertical-align: baseline;
will-change: opacity, transform, clip-path;
}
#ladybug-h1-bite-target .ladybug-h1-char-sup {
font-size: inherit;
}
#ladybug-h1-bite-target .ladybug-h1-char.ladybug-h1-char-eaten {
opacity: 0.1;
color: transparent;
transform: scale(0.15) translateY(2px) rotate(-8deg);
clip-path: polygon(
10% 35%,
45% 0%,
88% 22%,
100% 60%,
72% 100%,
28% 88%,
0% 45%
);
pointer-events: none;
text-shadow: none;
}
/* ============================================================
Message Pill
============================================================ */
#ladybug-message {
position: fixed;
bottom: 1.5rem;
right: 1.5rem;
padding: 0.625rem 1.25rem;
border-radius: 9999px;
font-weight: 700;
font-size: 0.875rem;
letter-spacing: 0.025em;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
0 4px 6px -4px rgba(0, 0, 0, 0.1);
opacity: 0;
transform: translateY(1rem);
transition: opacity 0.3s ease, transform 0.3s ease;
pointer-events: none;
z-index: 50;
background: var(--bg-tertiary);
color: var(--text-primary);
}
#ladybug-message.is-visible {
opacity: 1;
transform: translateY(0);
}
#ladybug-message.is-warning {
background: #fbbf24;
color: #451a03;
}
#ladybug-message.is-danger {
background: #dc2626;
color: #ffffff;
}
/* ============================================================
Cursor "eaten" particle burst (namespaced)
============================================================ */
#ladybug-particles-host {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 9998;
overflow: hidden;
}
.ladybug-chomp-particle {
position: absolute;
left: 0;
top: 0;
width: 5px;
height: 5px;
margin-left: -2.5px;
margin-top: -2.5px;
border-radius: 50%;
--lb-tx: 0px;
--lb-ty: 0px;
animation: ladybug-chomp-fly 0.7s ease-out forwards;
box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
}
.ladybug-chomp-particle.ladybug-chomp-crumb {
width: 4px;
height: 7px;
border-radius: 2px;
margin-left: -2px;
margin-top: -3.5px;
}
@keyframes ladybug-chomp-fly {
0% {
transform: translate(0, 0) scale(1) rotate(0deg);
opacity: 1;
}
55% {
opacity: 0.95;
}
100% {
transform: translate(var(--lb-tx), var(--lb-ty)) scale(0.15) rotate(180deg);
opacity: 0;
}
}
.ladybug-chomp-shock {
position: absolute;
left: 0;
top: 0;
width: 8px;
height: 8px;
margin-left: -4px;
margin-top: -4px;
border: 3px solid rgba(220, 38, 38, 0.65);
border-radius: 50%;
animation: ladybug-chomp-shock-expand 0.45s ease-out forwards;
box-shadow: 0 0 12px rgba(220, 38, 38, 0.35);
}
@keyframes ladybug-chomp-shock-expand {
0% {
transform: scale(0.4);
opacity: 1;
}
100% {
transform: scale(14);
opacity: 0;
}
}
/* ============================================================
Header logo: perch + scratch (ladybug easter egg)
============================================================ */
.page-header-logo-link {
display: inline-block;
transform-origin: center 92%;
transition: transform 0.25s ease;
}
#ladybug-logo-anchor.ladybug-logo-perched {
animation: ladybug-logo-breathe 3s ease-in-out infinite;
}
#ladybug-logo-anchor.ladybug-logo-imbalance {
animation: ladybug-logo-wobble 0.28s ease-in-out infinite;
}
@keyframes ladybug-logo-breathe {
0%, 100% { transform: rotate(0deg); }
50% { transform: rotate(-0.6deg); }
}
@keyframes ladybug-logo-wobble {
0%, 100% { transform: rotate(-2.2deg); }
50% { transform: rotate(2.2deg); }
}
#ladybug-container.ladybug-scratching {
z-index: 10000;
}
#ladybug-container.ladybug-scratching .ladybug-wing {
animation-duration: 0.1s;
}
/* ============================================================
Home tool tiles: perch + silly wobble (neumorphic buttons)
============================================================ */
main#main-content .button-grid a.neumorphic-button.ladybug-sat-tile {
transform: scale(0.98);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
main#main-content .button-grid a.neumorphic-button.ladybug-tile-boogie {
animation: ladybug-tile-boogie 0.3s ease-in-out infinite;
}
@keyframes ladybug-tile-boogie {
0%, 100% { transform: scale(0.97) rotate(-1.4deg); }
50% { transform: scale(0.99) rotate(1.3deg); }
}
.ladybug-tool-mote {
position: fixed;
z-index: 9997;
pointer-events: none;
font-size: 0.75rem;
font-weight: 800;
letter-spacing: 0.02em;
color: var(--text-secondary, #64748b);
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
animation: ladybug-mote-float 0.95s ease-out forwards;
}
@keyframes ladybug-mote-float {
0% {
opacity: 1;
transform: translate(0, 0) rotate(0deg) scale(1);
}
100% {
opacity: 0;
transform: translate(var(--lb-tmx), var(--lb-tmy)) rotate(16deg) scale(0.85);
}
}