-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstyles.css
More file actions
1450 lines (1363 loc) · 51.4 KB
/
Copy pathstyles.css
File metadata and controls
1450 lines (1363 loc) · 51.4 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
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@import "tailwindcss";
/*
* Theming model
* =============
* Every surface colour is a CSS custom property. Components reference
* them via arbitrary Tailwind values (`bg-[var(--color-bg)]`, …), so
* overriding the variable at runtime re-themes the whole app with no
* React re-render.
*
* The `@theme` block below is the **dark** palette — it's both the
* Tailwind-token default and the "system mode + OS is dark" case.
*
* Theme resolution (controlled by the `data-theme` attribute on
* <html>, set by `lib/theme.ts`):
*
* data-theme="dark" → forced dark (explicit override block)
* data-theme="light" → forced light (explicit override block)
* data-theme="system" → follow the OS (media query below)
* (attribute absent) → follow the OS (pre-JS baseline)
*/
@theme {
/* ── Dark palette (default) ───────────────────────────────────────
Refined v0.20.0: deeper near-black background with a faint cool
undertone, surface lifted enough to read as a distinct layer,
borders subtle but visible. Brand indigo accent unchanged. */
--color-bg: #0c0d11;
--color-surface: #17191f;
--color-border: #2b2e38;
--color-muted: #9a9fac;
--color-fg: #f2f3f5;
--color-accent: #6366f1;
--color-accent-fg: #ffffff;
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Helvetica, Arial, sans-serif;
--font-mono: "JetBrains Mono", Consolas, "SF Mono", Menlo, monospace;
/* ── Animation-layer timing tokens (v0.163.0) ──────────────────────────
The ONLY durations new animation work may use — no literal ms in markup
(.claude/rules/animation.md). `--ease-sharp` deliberately has no
overshoot: this is a tool summoned 100× a day, the target feel is
native system UI (Alfred/Raycast), not Material springs. Registered in
@theme so `ease-sharp` exists as a utility; durations are referenced as
`duration-(--duration-fast)`. Zeroed wholesale by the anim-reduced /
anim-off stage classes below the md3 block. */
--duration-instant: 80ms;
--duration-fast: 100ms;
--duration-base: 130ms;
--duration-slow: 200ms;
--ease-sharp: cubic-bezier(0.2, 0, 0, 1);
}
/* ── Light palette ──────────────────────────────────────────────────
Defined once as a custom-property group; applied either by an
explicit `data-theme="light"` override or by the system-mode media
query further down. The two copies must stay in sync — there's no
variable-group nesting in plain CSS. */
:root[data-theme="light"] {
--color-bg: #fafafa;
--color-surface: #ffffff;
--color-border: #e3e3e7;
--color-muted: #6b7280;
--color-fg: #18181b;
--color-accent: #6366f1;
--color-accent-fg: #ffffff;
}
/* Explicit dark override — same values as the @theme default, but a
higher-specificity selector so `data-theme="dark"` always wins over
the system-mode media query (which could otherwise paint light when
the OS is light). */
:root[data-theme="dark"] {
--color-bg: #0c0d11;
--color-surface: #17191f;
--color-border: #2b2e38;
--color-muted: #9a9fac;
--color-fg: #f2f3f5;
--color-accent: #6366f1;
--color-accent-fg: #ffffff;
}
/* System mode: follow the OS. Applies only when the user picked
"System" (data-theme="system") or before JS has set the attribute
at all (data-theme absent). An explicit light/dark choice carries a
matching [data-theme="…"] selector above and is unaffected. */
@media (prefers-color-scheme: light) {
:root[data-theme="system"],
:root:not([data-theme]) {
--color-bg: #fafafa;
--color-surface: #ffffff;
--color-border: #e3e3e7;
--color-muted: #6b7280;
--color-fg: #18181b;
--color-accent: #6366f1;
--color-accent-fg: #ffffff;
}
}
/* ── Material 3 Expressive motion tokens ───────────────────────────────────
Easing curves + a duration scale from the M3 spec, exposed as custom
properties so transitions/animations across the app share one motion
language. `--md3-spring-bounce` is a small-amplitude overshoot bezier used
as a lightweight stand-in for an expressive *spatial* spring on tiny UI
(button press), where a full WAAPI spring would be overkill. Genuine spring
physics (the popup entrance) is generated in `lib/md3-motion.ts`. */
:root {
--md3-emphasized: cubic-bezier(0.2, 0, 0, 1);
--md3-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
--md3-emphasized-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15);
--md3-standard: cubic-bezier(0.2, 0, 0, 1);
--md3-spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
--md3-short1: 50ms;
--md3-short2: 100ms;
--md3-short4: 200ms;
--md3-medium2: 300ms;
--md3-medium4: 400ms;
}
/* ── Animation stage: Full / Reduced / Off (v0.163.0) ──────────────────────
`lib/motion-stage.ts` is the only writer of these root classes. The stored
"full" defers to the OS reduced-motion hint, so `anim-reduced` is ALSO the
class carried when the OS asks for reduction — the @media blocks in this
file remain as the pre-JS/no-JS baseline, the class is the runtime truth.
Reduced: every token-based duration collapses to 0 (both the new
--duration-* layer and the --md3-* scale), plus the central app-chrome
disable list mirrored from the prefers-reduced-motion block further down.
Off: a global kill INSIDE the popup — everything except `.anim-keep`,
the marker for FUNCTIONAL animations (a countdown ring, an indeterminate
progress line) whose freezing would misinform rather than calm. */
html.anim-reduced,
html.anim-off {
--duration-instant: 0s;
--duration-fast: 0s;
--duration-base: 0s;
--duration-slow: 0s;
--md3-short1: 0s;
--md3-short2: 0s;
--md3-short4: 0s;
--md3-medium2: 0s;
--md3-medium4: 0s;
}
html.anim-reduced
:is(
.md3-press,
.panel-enter,
.banner-expand,
.md3-banner-in,
.md3-pop-in,
.md3-overlay-in,
.md3-cmd-enter,
.md3-cmd-icon,
.md3-num-lock,
.fade-in,
.recordPulse
),
html.anim-reduced .md3-list-enter [data-vlist] > *,
html.anim-reduced .md3-preview-in,
html.anim-reduced .md3-settings-cascade > * {
animation: none !important;
transition: none !important;
}
html.anim-off *:not(.anim-keep),
html.anim-off *:not(.anim-keep)::before,
html.anim-off *:not(.anim-keep)::after {
transition-duration: 0s !important;
animation-duration: 0s !important;
animation-delay: 0s !important;
}
/* Tactile press: scale down quickly under the finger, spring back with a
small overshoot on release. `transition` (not Tailwind's transition-colors)
so it composes cleanly on buttons that only need press feedback. */
.md3-press {
transition: transform var(--md3-short4) var(--md3-spring-bounce);
}
/* Timesheet "By app" groups — native <details>, chevron rotates when open. */
.ts-app-group > summary {
list-style: none;
}
.ts-app-group > summary::-webkit-details-marker {
display: none;
}
.ts-app-group[open] > summary .ts-chevron {
transform: rotate(90deg);
}
.md3-press:active {
transform: scale(0.93);
transition-duration: var(--md3-short1);
}
/* Tab-content swap (animation layer, Etappe 3): cross-fade + 4px rise on the
freshly-mounted panel (the wrapper is keyed on activeTab) via
@starting-style — gated on the has-enter-anim feature class, so an old
WKWebView (< Safari 17.4) shows the panel instantly instead of hanging in
a half state. Replaces the 300ms md3TabEnter keyframe. */
.has-enter-anim .panel-enter {
transition:
opacity var(--duration-fast) var(--ease-sharp),
transform var(--duration-fast) var(--ease-sharp);
@starting-style {
opacity: 0;
transform: translateY(4px);
}
}
/* Modal / takeover panel (retimed Etappe 5): scale 0.95 → 1 + fade on the
sharp ease — no spring, no overshoot (the tool-feel decision in
.claude/rules/animation.md). One class serves the whole modal family
(ColorPicker, the 2fa/bpm takeovers, trim/audio-swap/alarm windows), so
the modal language can't fork. Its backdrop fades separately below. */
@keyframes md3PopIn {
from { opacity: 0; transform: scale(0.95); }
to { opacity: 1; transform: scale(1); }
}
.md3-pop-in {
animation: md3PopIn var(--duration-base) var(--ease-sharp);
}
@keyframes md3FadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.md3-overlay-in {
animation: md3FadeIn var(--duration-base) var(--ease-sharp);
}
/* Screenshot-HUD card (Etappe 5): sharp scale-in per fresh capture. NOT the
planned FLIP out of the capture rect — macOS `screencapture -i` returns
PNG bytes only and never surfaces the marquee geometry, so a flight
origin would be an invented direction; an honest scale-in beats a fake
flight. Gated on has-enter-anim (old WebKit: instant). */
.has-enter-anim .hud-enter {
transition:
opacity var(--duration-slow) var(--ease-sharp),
transform var(--duration-slow) var(--ease-sharp);
@starting-style {
opacity: 0;
transform: scale(0.95);
}
}
/* TOTP countdown ring (Etappe 6): a free-running LINEAR drain over the
token period, phase-set by a NEGATIVE animation-delay (= the elapsed
slice) — no rAF, no JS tick; the compositor keeps it in sync. Marked
anim-keep at the call site: a countdown is information, the "Off"
animation stage must not freeze it. Deliberately linear — an eased
countdown would misreport how much time is left. */
@keyframes totpRingDrain {
from {
stroke-dashoffset: 0;
}
to {
stroke-dashoffset: var(--ring-c);
}
}
.totp-ring-drain {
animation: totpRingDrain var(--ring-period) linear infinite;
animation-delay: var(--ring-delay);
}
/* Permission banners in Settings (Etappe 6): a freshly-appearing banner
unfolds via grid-template-rows 0fr → 1fr — the ONE sanctioned layout
animation (rule file): the only clean CSS way to animate an unknown
height, in a rarely-open tab. Gated on has-enter-anim; old WebKit shows
the banner instantly. */
.has-enter-anim .banner-expand {
display: grid;
grid-template-rows: 1fr;
transition: grid-template-rows var(--duration-slow) var(--ease-sharp);
@starting-style {
grid-template-rows: 0fr;
}
}
.banner-expand > * {
overflow: hidden;
min-height: 0;
}
/* Settings confirmations (Etappe 6): the just-granted card fades in calmly
— the one moment the user is certainly looking at this row. */
.has-enter-anim .confirm-enter {
transition: opacity var(--duration-slow) var(--ease-sharp);
@starting-style {
opacity: 0;
}
}
/* Interactive theme switch (Etappe 6): while lib/theme.ts arms
`theme-switching` (~200 ms around the data-theme flip), background,
border and text colours glide on --duration-base. A blanket rule on *,
deliberately: it exists only during an explicit, rare user action in
Settings — never on a hot path — and is removed right after. It
temporarily REPLACES other transitions on the same elements (shorthand),
which is fine for 200 ms. */
html.theme-switching,
html.theme-switching * {
transition:
background-color var(--duration-base) var(--ease-sharp),
border-color var(--duration-base) var(--ease-sharp),
color var(--duration-base) var(--ease-sharp) !important;
}
/* Custom-command rows. The row root carries the virtual list's inline
`transform: translateY(...)`, so the entrance is **opacity-only** (animating
transform there would fight the virtualizer). The icon pop targets the inner
icon span, which has no virtualizer transform, so a scale is safe. */
@keyframes md3CmdEnter {
from { opacity: 0; }
to { opacity: 1; }
}
/* Etappe 4 (animation layer): rows that APPEAR while typing (command /
calc / colour / bruno / otp rows) fade in on --duration-instant —
enter-only and opacity-only. Deliberately a keyframe, not
@starting-style: these live on VIRTUALISED rows whose DOM nodes are
recycled per keystroke; the stable per-kind key replays the keyframe
exactly once per appearance, while a starting-style transition would
re-fire on every recycle. NO exit animation, ever — a fading-out row
lags visibly behind fast typing and makes the search feel sluggish. */
.md3-cmd-enter {
animation: md3CmdEnter var(--duration-instant) var(--ease-sharp);
}
@keyframes md3IconPop {
0% { transform: scale(1); }
45% { transform: scale(1.28); }
100% { transform: scale(1); }
}
.md3-cmd-icon {
animation: md3IconPop var(--md3-medium2) var(--md3-spring-bounce);
display: inline-flex;
}
/* Calculator result lock-in — a quick spring pop + accent flash the instant the
slot-machine digits settle on the final value. */
@keyframes md3NumLock {
0% { transform: scale(1.14); color: var(--color-accent); }
55% { transform: scale(0.98); }
100% { transform: scale(1); color: inherit; }
}
.md3-num-lock {
display: inline-block;
animation: md3NumLock var(--md3-medium2) var(--md3-spring-bounce);
}
/* ── Social-download animation ─────────────────────────────────────────────
Shown in the preview while a YouTube/Instagram/… download runs: a pulsing
download icon with two expanding accent rings + an MD3 "wavy" indeterminate
progress wave scrolling underneath. */
@keyframes md3DlRing {
0% { transform: scale(0.45); opacity: 0.5; }
100% { transform: scale(1.75); opacity: 0; }
}
.md3-dl-ring {
position: absolute;
inset: 0;
border-radius: 9999px;
border: 2px solid var(--color-accent);
animation: md3DlRing 1.8s var(--md3-emphasized-decelerate) infinite;
}
@keyframes md3DlBob {
0%, 100% { transform: translateY(-2px); }
50% { transform: translateY(3px); }
}
.md3-dl-icon {
animation: md3DlBob 1.2s var(--md3-standard) infinite;
}
@keyframes md3DlWave {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}
.md3-dl-wave {
animation: md3DlWave 1.1s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
.md3-dl-ring, .md3-dl-icon, .md3-dl-wave {
animation: none !important;
}
.md3-dl-ring { opacity: 0.25; }
}
/* Opener carousel — the new opener slides in from the ←/→ direction of the
switch (keyed on the text so each ←/→ press replays it). */
@keyframes md3OpenerInRight {
from { opacity: 0; transform: translateX(18px); }
to { opacity: 1; transform: translateX(0); }
}
@keyframes md3OpenerInLeft {
from { opacity: 0; transform: translateX(-18px); }
to { opacity: 1; transform: translateX(0); }
}
.md3-opener-in-right { animation: md3OpenerInRight var(--md3-medium2) var(--md3-emphasized-decelerate) both; }
.md3-opener-in-left { animation: md3OpenerInLeft var(--md3-medium2) var(--md3-emphasized-decelerate) both; }
@media (prefers-reduced-motion: reduce) {
.md3-opener-in-right, .md3-opener-in-left { animation: none !important; }
}
/* Inline alerts (still used by preview/calendar/hue/trim/audio-swap notes)
drop in from the top. The six TOP-OF-POPUP banners moved to the
.banner-expand unfold in Etappe 6. */
@keyframes md3BannerIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
.md3-banner-in {
animation: md3BannerIn var(--md3-medium2) var(--md3-emphasized-decelerate);
}
/* Accessibility: honour "reduce motion" for the app-chrome animations (the
game easter-egg intros are deliberately left alone — they're opt-in). The
JS spring entrance is separately gated by `prefersReducedMotion()`. */
@media (prefers-reduced-motion: reduce) {
.md3-press,
.panel-enter,
.banner-expand,
.md3-banner-in,
.md3-pop-in,
.md3-overlay-in,
.md3-cmd-enter,
.md3-cmd-icon,
.md3-num-lock,
.fade-in,
.recordPulse {
animation: none !important;
transition: none !important;
}
}
html,
body,
#root {
height: 100%;
margin: 0;
padding: 0;
background: transparent;
color: var(--color-fg);
font-family: var(--font-sans);
-webkit-font-smoothing: antialiased;
user-select: none;
}
input,
textarea,
pre,
code {
user-select: text;
}
/* scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--color-border);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--color-muted);
}
/* While the CRT power-on/off scales + brightness-filters the shell, the
scrollbar thumb (at the scroll area's edge) scales with it and reads as a
weirdly-animated bar. Make the thumb transparent for the duration — the
track is already transparent and the gutter width is unchanged, so this
hides the thumb WITHOUT reflowing the content. Toggled on <html> by
playCrtOn/playCrtOff (lib/md3-motion.ts). */
html.crt-anim ::-webkit-scrollbar-thumb,
html.crt-anim ::-webkit-scrollbar-thumb:hover {
background: transparent;
}
.app-shell {
border: 1px solid var(--color-border);
background: var(--color-bg);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
/* The CRT power-on/off (playCrtOn/playCrtOff) scales the shell about its
centre into a scanline — pin the origin so it can't drift. */
transform-origin: center center;
}
.fade-in {
animation: fadeIn 120ms ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-2px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* ── Wakelock LED pulse (v0.36.0+) ────────────────────────────────────
Slow ease-in-out brightness + glow animation for the footer's red
"wakelock on" indicator. 1.6 s cycle is slow enough to read as a
gentle status pulse, not a frantic warning. The dot itself stays
in the layout flow at full opacity at the *low* point so the
indicator never visually disappears. */
@keyframes wakelockPulse {
0%, 100% {
opacity: 0.55;
box-shadow: 0 0 3px rgba(239, 68, 68, 0.55),
0 0 6px rgba(239, 68, 68, 0.25);
}
50% {
opacity: 1;
box-shadow: 0 0 5px rgba(239, 68, 68, 1),
0 0 10px rgba(239, 68, 68, 0.6);
}
}
/* ── Screen-recording stop bar ─────────────────────────────────────────
The red dot pulses while a recording is active. */
.recordPulse {
animation: wakelockPulse 1.4s ease-in-out infinite;
}
/* ── BPM detector ──────────────────────────────────────────────────────
Two animations: the slow `bpmPulse` runs while waiting for mic
permission (mic icon breathing); `bpmBeatPulse` fires once per
detected beat on the big BPM number, with a quick scale + accent-
color flash that settles back to neutral. */
@keyframes bpmPulse {
0%, 100% { opacity: 0.55; transform: scale(0.95); }
50% { opacity: 1; transform: scale(1.05); }
}
@keyframes bpmBeatPulse {
0% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); color: inherit; }
20% { transform: scale(1.08); filter: drop-shadow(0 0 18px var(--color-accent)); color: var(--color-accent); }
100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); color: inherit; }
}
/* ── `getshaky` easter egg — the shaky transformation flourish ──────── */
/* Whole-overlay jitter during the ~1.3 s intro phase, intensifying
toward the middle then settling — the "shaky" the command is named
for. Applied to the PongGame root while phase === "intro". */
.getshaky-shake {
animation: getshakyShake 1300ms ease-in-out;
}
@keyframes getshakyShake {
0% { transform: translate(0, 0) rotate(0deg); }
8% { transform: translate(-4px, 3px) rotate(-0.6deg); }
16% { transform: translate(5px, -2px) rotate(0.7deg); }
26% { transform: translate(-6px, -3px) rotate(-0.9deg); }
38% { transform: translate(7px, 4px) rotate(1deg); }
50% { transform: translate(-8px, 2px) rotate(-1.1deg); }
62% { transform: translate(6px, -4px) rotate(0.9deg); }
74% { transform: translate(-4px, 3px) rotate(-0.6deg); }
86% { transform: translate(3px, -2px) rotate(0.3deg); }
100% { transform: translate(0, 0) rotate(0deg); }
}
/* "GET SHAKY" title — zooms in with an overshoot, holds, fades out as
the play field takes over. */
.getshaky-title {
animation: getshakyTitle 1300ms ease-out forwards;
}
@keyframes getshakyTitle {
0% { opacity: 0; transform: scale(0.3) rotate(-8deg); }
35% { opacity: 1; transform: scale(1.18) rotate(3deg); }
55% { opacity: 1; transform: scale(1) rotate(0deg); }
80% { opacity: 1; transform: scale(1.04); }
100% { opacity: 0; transform: scale(0.6); }
}
/* ── `spacer` easter egg — invaders descend flourish ──────────────────── */
.space-invaders-descend {
animation: spaceInvadersDescend 1400ms ease-in-out;
}
@keyframes spaceInvadersDescend {
0% { transform: translateY(-6px); }
20% { transform: translateY(4px); }
40% { transform: translateY(-3px); }
60% { transform: translateY(2px); }
80% { transform: translateY(-1px); }
100% { transform: translateY(0); }
}
.space-invaders-title {
animation: spaceInvadersTitle 1400ms ease-out forwards;
}
@keyframes spaceInvadersTitle {
0% { opacity: 0; transform: translateY(-40px) scale(0.5); letter-spacing: 0.6em; }
30% { opacity: 1; transform: translateY(0) scale(1.1); letter-spacing: 0.35em; }
55% { opacity: 1; transform: scale(1); }
80% { opacity: 1; }
100% { opacity: 0; transform: translateY(12px) scale(0.85); letter-spacing: 0.5em; }
}
/* ── `learningtofly` easter egg — Flappy Bird take-off flourish ────────── */
/* The shell flutters upward like a bird taking off. */
.flappy-rise {
animation: flappyRise 1500ms cubic-bezier(0.34, 1.4, 0.5, 1);
}
@keyframes flappyRise {
0% { transform: translateY(10px); }
25% { transform: translateY(-6px); }
45% { transform: translateY(3px); }
62% { transform: translateY(-4px); }
78% { transform: translateY(2px); }
100% { transform: translateY(0); }
}
.flappy-title {
animation: flappyTitle 1500ms ease-out forwards;
}
@keyframes flappyTitle {
0% { opacity: 0; transform: translateY(28px) rotate(-6deg) scale(0.7); }
28% { opacity: 1; transform: translateY(-8px) rotate(3deg) scale(1.08); }
48% { transform: translateY(0) rotate(-2deg) scale(1); }
66% { transform: rotate(1deg); }
82% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
100% { opacity: 0; transform: translateY(-10px) scale(0.9); }
}
/* ── status-toast — wakelock on/off confirmation flourish ─────────────── */
/* The whole badge: pop in with a slight overshoot, hold, fade out. The
total duration MUST match HOLD_MS in StatusToast.tsx so the window's
auto-dismiss timer fires exactly as the fade-out completes. */
.status-toast-pop {
/* 1600ms is the toast's LIFETIME (hold + exit), coupled to the Rust-side
hide — a named exception to the timing tokens. Only the entrance slice
was sharpened (Etappe 5): 0→8% ≈ 130ms scale+fade, no overshoot. */
animation: statusToastPop 1600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes statusToastPop {
0% { opacity: 0; transform: scale(0.95) translateY(6px); }
8% { opacity: 1; transform: scale(1) translateY(0); }
80% { opacity: 1; transform: scale(1); }
100% { opacity: 0; transform: scale(0.96) translateY(-8px); }
}
/* One-shot icon pop on entry. */
.status-toast-icon {
animation: statusToastIcon 900ms ease-in-out 1;
}
@keyframes statusToastIcon {
0% { transform: scale(0.6); }
45% { transform: scale(1.18); }
100% { transform: scale(1); }
}
/* Persistent (volume/mute) toast: pop IN and stay (ends at opacity 1) so it can
linger + update in place on rapid re-triggers, instead of the one-shot
pop-in-and-out. Paired with `.status-toast-out` for the deferred dismissal. */
.status-toast-in {
animation: statusToastIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes statusToastIn {
0% { opacity: 0; transform: scale(0.7) translateY(10px); }
60% { opacity: 1; transform: scale(1.06) translateY(0); }
100% { opacity: 1; transform: scale(1); }
}
.status-toast-out {
animation: statusToastOut 240ms ease-in both;
}
@keyframes statusToastOut {
0% { opacity: 1; transform: scale(1); }
100% { opacity: 0; transform: scale(0.96) translateY(-8px); }
}
/* Quick bump replayed on each in-place value update (re-trigger), so a repeated
volume change reads as "updating" without re-popping the whole card. */
.status-toast-bump {
animation: statusToastBump 280ms ease-out;
}
@keyframes statusToastBump {
0% { transform: scale(0.86); }
50% { transform: scale(1.08); }
100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
.status-toast-in, .status-toast-out, .status-toast-bump { animation: none; }
}
/* ── Volume / mute HUD (macOS-system-HUD-style, premium) ─────────────────── */
.vol-overlay-in {
animation: volOverlayIn 380ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}
@keyframes volOverlayIn {
0% { opacity: 0; transform: scale(0.92); }
55% { opacity: 1; transform: scale(1.02); }
100% { opacity: 1; transform: scale(1); }
}
.vol-overlay-out {
animation: volOverlayOut 240ms cubic-bezier(0.4, 0, 1, 1) both;
}
@keyframes volOverlayOut {
0% { opacity: 1; transform: scale(1); }
100% { opacity: 0; transform: scale(0.95); }
}
.vol-card {
display: flex;
align-items: center;
gap: 0.95rem;
min-width: 15rem;
padding: 0.95rem 1.25rem;
border-radius: 1.5rem;
/* Frosted glass: the status-toast window is transparent, so backdrop-filter
blurs the desktop/apps behind it (real vibrancy). */
background: color-mix(in srgb, var(--color-surface) 72%, transparent);
backdrop-filter: blur(28px) saturate(1.7);
-webkit-backdrop-filter: blur(28px) saturate(1.7);
border: 1px solid color-mix(in srgb, var(--color-fg) 11%, transparent);
box-shadow:
0 22px 60px rgba(0, 0, 0, 0.45),
inset 0 1px 0 color-mix(in srgb, #fff 9%, transparent);
}
.vol-icon {
display: flex;
align-items: center;
justify-content: center;
flex: none;
width: 2.5rem;
height: 2.5rem;
animation: volIconSwap 240ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes volIconSwap {
0% { opacity: 0; transform: scale(0.55); }
100% { opacity: 1; transform: scale(1); }
}
.vol-body {
display: flex;
flex-direction: column;
gap: 0.5rem;
flex: 1 1 auto;
min-width: 0;
}
.vol-readout {
display: flex;
align-items: baseline;
gap: 0.1rem;
font-family: ui-sans-serif, system-ui, -apple-system, "Inter", "Segoe UI", sans-serif;
font-variant-numeric: tabular-nums;
font-feature-settings: "tnum" 1;
line-height: 1;
}
.vol-num {
font-size: 28px;
font-weight: 700;
letter-spacing: -0.01em;
}
.vol-pct {
font-size: 15px;
font-weight: 600;
opacity: 0.55;
}
.vol-label {
font-family: ui-sans-serif, system-ui, -apple-system, "Inter", "Segoe UI", sans-serif;
font-size: 19px;
font-weight: 650;
letter-spacing: 0.01em;
}
.vol-track {
width: 100%;
height: 7px;
border-radius: 999px;
overflow: hidden;
background: color-mix(in srgb, var(--color-fg) 14%, transparent);
}
.vol-fill {
width: 100%;
height: 100%;
border-radius: 999px;
transform-origin: left center;
/* `transform: scaleX(...)` is owned by the rAF spring in JS (not transitioned
here) so rapid swipes interrupt smoothly; only colour/opacity transition. */
will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
.vol-overlay-in, .vol-overlay-out, .vol-icon { animation: none; }
}
/* Expanding ring radiating from the icon on entry. */
.status-toast-ring {
animation: statusToastRing 900ms ease-out 1 forwards;
}
@keyframes statusToastRing {
0% { opacity: 0.55; transform: scale(0.8); }
100% { opacity: 0; transform: scale(1.9); }
}
/* ── `rockthebox` easter egg — the box-assembling flourish ───────────── */
/* Whole-overlay rocking during the ~1.9 s intro — a damped side-to-side
sway (you "rock" the box), gentler and more musical than getshaky's
jitter. Applied to the SnakeGame root while phase === "intro".
Duration must match snake.ts INTRO_MS. */
.rockthebox-rock {
animation: rockTheBoxRock 1900ms ease-in-out;
}
@keyframes rockTheBoxRock {
0% { transform: rotate(0deg); }
10% { transform: rotate(-2.4deg); }
22% { transform: rotate(2.2deg); }
34% { transform: rotate(-2deg); }
46% { transform: rotate(1.6deg); }
58% { transform: rotate(-1.2deg); }
70% { transform: rotate(0.8deg); }
82% { transform: rotate(-0.4deg); }
100% { transform: rotate(0deg); }
}
/* "ROCK THE BOX" title — drops in from above with the letters spaced
wide, snaps them tight with an overshoot bounce, holds, then zooms
out as the play field takes over. Duration matches snake.ts INTRO_MS. */
.rockthebox-title {
animation: rockTheBoxTitle 1900ms ease-out forwards;
}
@keyframes rockTheBoxTitle {
0% { opacity: 0; transform: translateY(-26px) scale(0.6); letter-spacing: 0.55em; }
22% { opacity: 1; transform: translateY(0) scale(1.14); letter-spacing: 0.02em; }
34% { transform: translateY(0) scale(0.97); }
46% { transform: translateY(0) scale(1.05); }
60% { opacity: 1; transform: translateY(0) scale(1); letter-spacing: 0.02em; }
84% { opacity: 1; transform: scale(1.03); }
100% { opacity: 0; transform: scale(1.4); letter-spacing: 0.3em; }
}
/* ── Live uptime readout (`uptime` command) ───────────────────────────────────
Clean tabular monospace digits updated each animation frame. A digit "heats"
(accent + glow) the instant its value changes and cools back over ~0.6 s —
so fast (sub-second) digits stay lit/shimmering and slow ones pulse as they
tick. Only `color`/`text-shadow` change (paint-only), so the 60 fps motion is
cheap and every digit always shows exactly one clean glyph. */
.uptime-odo {
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
font-variant-numeric: tabular-nums;
font-weight: 700;
letter-spacing: 0.02em;
line-height: 1;
}
.uptime-digit {
display: inline-block;
color: var(--color-fg);
transition: color 600ms ease, text-shadow 600ms ease;
}
.uptime-digit.hot {
color: var(--color-accent);
text-shadow: 0 0 12px color-mix(in srgb, var(--color-accent) 60%, transparent);
transition: none; /* flare instantly, then the cooled state transitions back */
}
.uptime-dot {
color: var(--color-accent);
}
.uptime-colon {
color: var(--color-muted);
margin: 0 0.04em;
}
/* Milliseconds tail in the hero clock — smaller, so the readable time stays
dominant while the ms digits shimmer. */
.uptime-ms {
font-size: 0.5em;
margin-left: 0.1em;
}
.uptime-days {
margin-right: 0.35em;
color: var(--color-fg);
}
.uptime-days:empty {
margin-right: 0;
}
.uptime-unit {
margin-left: 0.35ch;
font-size: 0.7em;
color: var(--color-muted);
}
/* The converted (total-seconds.µs) line is deliberately subdued — muted base,
accent only on the heat flare — so it reads as a quiet, shimmering footnote. */
.uptime-sub {
font-weight: 600;
letter-spacing: 0.01em;
opacity: 0.85;
}
.uptime-sub .uptime-digit {
color: var(--color-muted);
transition: color 700ms ease, text-shadow 700ms ease;
}
.uptime-sub .uptime-digit.hot {
color: var(--color-accent);
text-shadow: 0 0 8px color-mix(in srgb, var(--color-accent) 45%, transparent);
transition: none;
}
.uptime-hero {
animation: uptimeBreathe 3.2s ease-in-out infinite;
}
@keyframes uptimeBreathe {
0%, 100% { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--color-accent) 18%, transparent)); }
50% { filter: drop-shadow(0 0 16px color-mix(in srgb, var(--color-accent) 38%, transparent)); }
}
/* A quick pop on the whole hero each time the integer-seconds digit ticks. */
.uptime-tick {
animation: uptimeTick 420ms var(--md3-spring-bounce, ease-out);
}
@keyframes uptimeTick {
0% { transform: scale(1); }
30% { transform: scale(1.035); }
100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
.uptime-hero, .uptime-tick { animation: none; }
}
/* ── Color-picker loupe (`color-loupe` window) ────────────────────────────────
A circular magnifier that follows the cursor over a full-screen snapshot,
with the live hex shown right under it. The OS cursor is hidden so only the
loupe + reticle + hex read out. */
.loupe-root {
position: fixed;
inset: 0;
cursor: none;
background: transparent;
overflow: hidden;
}
.loupe-anchor {
position: fixed;
left: 0;
top: 0;
will-change: transform;
}
.loupe-circle {
position: absolute;
width: 152px;
height: 152px;
transform: translate(-50%, -50%);
border-radius: 50%;
overflow: hidden;
box-shadow:
0 0 0 2px rgba(255, 255, 255, 0.9),
0 0 0 4px rgba(0, 0, 0, 0.35),
0 12px 30px rgba(0, 0, 0, 0.5);
}
.loupe-circle canvas {
display: block;
width: 152px;
height: 152px;
}
.loupe-hex {
position: absolute;
left: 0;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: 7px;
padding: 5px 10px;
border-radius: 9999px;
background: rgba(18, 18, 22, 0.92);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
white-space: nowrap;
}
.loupe-swatch {
width: 17px;
height: 17px;
border-radius: 5px;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.loupe-code {
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
font-variant-numeric: tabular-nums;
font-size: 21px;
font-weight: 700;
letter-spacing: 0.06em;
/* Perspective so each digit's split-flap rotateX reads as a 3D flip. */
perspective: 320px;
}
.loupe-digit {
display: inline-block;
color: #f2f3f5;
transform-origin: 50% 0;
backface-visibility: hidden;
transition: color 450ms ease, text-shadow 450ms ease;
}
.loupe-digit.loupe-hot {
color: var(--color-accent, #b3c5ff);
text-shadow: 0 0 11px color-mix(in srgb, var(--color-accent, #b3c5ff) 65%, transparent);
transition: none;
}
/* Airport split-flap: the changed digit drops in from a folded-up position
with a small settle bounce. */
.loupe-digit.loupe-flap {
animation: loupeFlap 260ms cubic-bezier(0.3, 0.7, 0.3, 1.2) both;