-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
4204 lines (4005 loc) · 122 KB
/
Copy pathstyles.css
File metadata and controls
4204 lines (4005 loc) · 122 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
:root {
--color-bg: #f4ead8;
--color-bg-2: #ece0c5;
--color-surface: #fbf4e2;
--color-text: #1a1410;
--color-muted: #7a6f5e;
--color-primary: #d94f2a;
--color-primary-text: #fbf4e2;
--color-border: #d8c9a8;
--color-border-strong: #1a1410;
--color-hit: #c2362a;
--color-miss: #a89e88;
--color-sunk: #6b1f17;
--color-ship: #1f3540;
--color-accent: #d9a73a;
--color-p1: #d94f2a;
--color-p2: #1e5e6e;
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 24px;
--space-6: 32px;
--space-7: 48px;
--radius-sm: 8px;
--radius-md: 14px;
--radius-lg: 22px;
--font-display: "Fraunces Variable", "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
--font-stack: "Outfit Variable", "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--shadow-sm: 0 1px 2px rgba(26, 20, 16, 0.06);
--shadow-md: 0 6px 18px rgba(26, 20, 16, 0.10);
--shadow-stamp: 4px 4px 0 var(--color-border-strong);
--shadow-stamp-sm: 2px 2px 0 var(--color-border-strong);
/* Activity tints — used as the glyph swatch fill on home cards.
Tuned to read cleanly against the warm cream bg (#f4ead8);
the originals were too washed out to separate from the page. */
--tint-vermilion: #ea9d83;
--tint-teal: #9cc1c7;
--tint-mustard: #e6c46a;
--tint-rose: #e1a0b1;
--tint-olive: #b8c184;
--tint-plum: #b39bc9;
--tint-sky: #98bbdd;
--tint-peach: #ebab7c;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
font-family: var(--font-stack);
color: var(--color-text);
background-color: var(--color-bg);
background-image:
radial-gradient(rgba(26, 20, 16, 0.05) 1px, transparent 1px),
radial-gradient(rgba(26, 20, 16, 0.035) 1px, transparent 1px);
background-size: 4px 4px, 7px 7px;
background-position: 0 0, 2px 3px;
font-size: 16px;
line-height: 1.45;
min-height: 100dvh;
-webkit-font-smoothing: antialiased;
}
button { font-family: inherit; font-size: inherit; }
select { font-family: inherit; font-size: inherit; }
.app {
max-width: 640px;
margin: 0 auto;
padding: var(--space-4);
min-height: 100dvh;
display: flex;
flex-direction: column;
}
.header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: var(--space-3);
padding: var(--space-2) 0 var(--space-4) 0;
}
.header h1 {
font-family: var(--font-display);
font-size: 30px;
font-weight: 900;
letter-spacing: -0.02em;
line-height: 0.95;
margin: 0;
}
.header h1 .header__accent {
font-style: italic;
font-weight: 900;
color: var(--color-primary);
}
/* Home wordmark — bigger, left-anchored, with italic accent letter. */
.header--brand .header__titles { align-items: flex-start; }
.header--brand h1.header__brand {
font-size: 48px;
line-height: 0.9;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
padding: var(--space-3) var(--space-4);
border: 1.5px solid var(--color-border-strong);
border-radius: var(--radius-md);
background: var(--color-primary);
color: var(--color-primary-text);
font-weight: 600;
cursor: pointer;
min-height: 48px;
box-shadow: var(--shadow-stamp-sm);
transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.1s ease;
}
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--color-border-strong); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--ghost {
background: var(--color-surface);
color: var(--color-text);
border: 1.5px solid var(--color-border-strong);
}
/* Hero CTA — the one-of-a-kind stamped showpiece (home "Suggest activity",
Dice "Roll"). Heavy display serif, italic, oversized. Reserved for
primaryBig — do not reach for this on in-game screens. */
.btn--hero {
font-family: var(--font-display);
font-style: italic;
font-weight: 800;
font-size: 32px;
line-height: 1;
letter-spacing: -0.01em;
min-height: 84px;
padding: var(--space-5) var(--space-5);
border-radius: 26px;
box-shadow: 6px 6px 0 var(--color-border-strong);
border-width: 2px;
}
.btn--hero:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--color-border-strong); }
/* Primary in-game action — bigger touch target than .btn, but readable
sans at conversational weight. Used by "New round", "Asked!", "New word",
replay/print actions. Inherits Outfit from body. */
.btn--lg {
font-size: 20px;
font-weight: 700;
letter-spacing: 0.005em;
line-height: 1.15;
min-height: 64px;
padding: var(--space-4) var(--space-5);
border-radius: 18px;
box-shadow: 4px 4px 0 var(--color-border-strong);
border-width: 2px;
}
.btn--lg:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--color-border-strong); }
.btn--block { width: 100%; }
.btn--icon { padding: var(--space-2) var(--space-3); min-height: 40px; }
.btn--stacked { flex-direction: column; gap: 2px; }
.btn__sub { font-size: 13px; font-weight: 500; }
.btn__sub.is-hidden { display: none; }
.corner-menu__toggle svg { width: 22px; height: 22px; display: block; }
/* A horizontal rule sets the reroll off from the activity; the button sits
centred below it. In flow at the end of the activity. */
.activity-bar {
margin-top: var(--space-4);
padding-bottom: env(safe-area-inset-bottom, 0px);
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-3);
}
.activity-bar__rule {
width: 100%;
height: 1.5px;
margin: 0;
border: none;
background: var(--color-border);
}
/* A compact, centred button below the rule — the home Suggest wordmark's serif
at a lighter weight, no vermilion fill, so it reads as the same action
without competing with the activity. The › ‹ marks echo the reel's focus
needles and bite inward on hover, linking it to the spin it triggers. */
.activity-resuggest {
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 0;
padding: var(--space-2) var(--space-4);
background: var(--color-surface);
border: 1.5px solid var(--color-border-strong);
border-radius: var(--radius-md);
box-shadow: var(--shadow-stamp-sm);
cursor: pointer;
color: var(--color-text);
transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.activity-resuggest:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--color-border-strong); }
.activity-resuggest__main {
display: inline-flex;
align-items: baseline;
gap: var(--space-2);
font-family: var(--font-display);
font-style: italic;
font-weight: 500;
font-size: 19px;
letter-spacing: -0.01em;
}
.activity-resuggest__chev { color: var(--color-muted); transition: transform 0.12s ease; }
.activity-resuggest:hover .activity-resuggest__main > .activity-resuggest__chev:first-child { transform: translateX(3px); }
.activity-resuggest:hover .activity-resuggest__main > .activity-resuggest__chev:last-child { transform: translateX(-3px); }
.activity-resuggest__sub { font-size: 12px; font-weight: 500; color: var(--color-muted); }
.activity-resuggest__sub.is-hidden { display: none; }
/* Home hero carries the same › ‹ motif (cream on vermilion) so the primary
Suggest and the per-activity re-suggest read as one family. */
.suggest-chev {
font-family: var(--font-display);
font-style: italic;
font-weight: 500;
font-size: 28px;
line-height: 1;
color: var(--color-primary-text);
opacity: 0.7;
transition: transform 0.12s ease;
}
.activity-card--suggest:hover .suggest-chev:first-child { transform: translateX(4px); }
.activity-card--suggest:hover .suggest-chev:last-child { transform: translateX(-4px); }
@media (prefers-reduced-motion: reduce) {
.activity-resuggest__chev, .suggest-chev { transition: none; }
}
.card {
background: var(--color-surface);
border: 1.5px solid var(--color-border-strong);
border-radius: var(--radius-lg);
padding: var(--space-4);
box-shadow: var(--shadow-stamp-sm);
}
.stack > * + * { margin-top: var(--space-3); }
.stack-lg > * + * { margin-top: var(--space-5); }
.row { display: flex; gap: var(--space-3); align-items: center; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.muted { color: var(--color-muted); }
.center { text-align: center; }
.h2 {
font-family: var(--font-display);
font-size: 24px;
font-weight: 700;
letter-spacing: -0.01em;
margin: 0 0 var(--space-2) 0;
display: inline-flex;
align-items: baseline;
gap: var(--space-2);
}
.h2 em {
font-style: italic;
font-weight: 400;
font-size: 14px;
color: var(--color-muted);
}
.big { font-size: 56px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.bigger { font-size: 96px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.pill-toggle {
display: inline-flex;
border: 1.5px solid var(--color-border-strong);
border-radius: 999px;
overflow: hidden;
background: var(--color-surface);
}
.pill-toggle .pill-btn {
background: transparent;
border: 0;
padding: var(--space-2) var(--space-3);
font-weight: 600;
color: var(--color-text);
cursor: pointer;
min-height: 40px;
}
.pill-toggle .pill-btn.is-active {
background: var(--color-text);
color: var(--color-bg);
}
.pill-toggle .pill-btn--icon {
font-size: 16px;
line-height: 1;
min-width: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.pill-eye { width: 18px; height: 18px; display: block; }
/* Kind filter — additive multi-select, grouped as one rounded track (matching
the .pill-toggle shell) so the four options read as a single control. Each
option carries a leading checkbox: ticked ink box = selected, empty box =
excluded. Only the small boxes carry ink, so the default (all selected) stays
light — no block of fill. The checkbox distinguishes this multi-select from
the single-select .pill-toggle beside it. */
.checkbox-track {
display: inline-flex;
align-items: center;
border: 1.5px solid var(--color-border-strong);
border-radius: 999px;
background: var(--color-surface);
overflow: hidden;
}
.checkbox-track__opt {
display: inline-flex;
align-items: center;
gap: var(--space-2);
appearance: none;
border: 0;
background: transparent;
padding: var(--space-2) var(--space-3);
min-height: 40px;
font-family: inherit;
font-weight: 600;
font-size: 14px;
color: var(--color-text);
cursor: pointer;
transition: color 0.14s ease, opacity 0.14s ease;
}
/* The checkbox: ticked ink box when selected. The tick is an SVG background (not
text) so it stays decorative — it must not leak into the button's accessible
name, which has to remain just the kind label. */
.checkbox-track__opt::before {
content: "";
flex: 0 0 auto;
width: 16px;
height: 16px;
border-radius: 4px;
border: 1.5px solid var(--color-text);
background-color: var(--color-text);
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbf4e2' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12 10 18 20 6'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: center;
background-size: 11px;
transition: background-color 0.14s ease, border-color 0.14s ease;
}
/* Excluded: empty box + muted, dimmed label. */
.checkbox-track__opt:not(.is-active) {
color: var(--color-muted);
opacity: 0.65;
}
.checkbox-track__opt:not(.is-active)::before {
background-color: transparent;
background-image: none;
border-color: var(--color-muted);
}
@media (hover: hover) {
.checkbox-track__opt:not(.is-active):hover { color: var(--color-text); opacity: 0.9; }
}
.corner-menu { position: relative; }
.corner-menu__backdrop {
position: fixed;
inset: 0;
z-index: 109;
display: none;
}
.corner-menu__panel {
position: absolute;
top: calc(100% + var(--space-2));
right: 0;
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-md);
padding: var(--space-2);
min-width: 220px;
z-index: 110;
display: none;
flex-direction: column;
gap: 2px;
}
.corner-menu.is-open .corner-menu__backdrop { display: block; }
.corner-menu.is-open .corner-menu__panel { display: flex; }
.corner-menu__langs {
display: flex;
gap: 2px;
padding: 2px;
}
.corner-menu__lang {
flex: 1;
background: transparent;
border: 1px solid transparent;
border-radius: var(--radius-sm);
padding: var(--space-2);
font-size: 20px;
line-height: 1;
cursor: pointer;
min-height: 40px;
}
.corner-menu__lang.is-active {
background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface));
border-color: var(--color-primary);
}
.corner-menu__divider {
height: 1px;
background: var(--color-border);
margin: var(--space-1) 2px;
}
.corner-menu__item {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-2) var(--space-3);
background: transparent;
border: 0;
border-radius: var(--radius-sm);
color: var(--color-text);
text-decoration: none;
font: inherit;
font-weight: 600;
cursor: pointer;
text-align: left;
min-height: 40px;
width: 100%;
}
.corner-menu__item:hover { background: var(--color-bg); }
.corner-menu__item-icon {
width: 20px;
height: 20px;
color: var(--color-muted);
flex-shrink: 0;
}
.corner-menu__item-icon svg { width: 100%; height: 100%; display: block; }
/* Tap-to-hear button — reused across read-aloud activities. */
.speak-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
flex-shrink: 0;
padding: 0;
border-radius: 50%;
border: 2px solid var(--color-border-strong);
background: var(--color-surface);
color: var(--color-primary);
cursor: pointer;
box-shadow: var(--shadow-stamp-sm);
}
.speak-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--color-border-strong); }
.speak-btn__icon { width: 24px; height: 24px; display: block; }
.tile {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-3) var(--space-4);
background: var(--color-surface);
border: 1.5px solid var(--color-border-strong);
border-radius: var(--radius-md);
cursor: pointer;
text-align: left;
width: 100%;
font: inherit;
color: inherit;
box-shadow: var(--shadow-stamp-sm);
transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.tile:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--color-border-strong); }
.tile .tile__glyph {
font-family: var(--font-display);
font-weight: 900;
font-size: 28px;
line-height: 1;
width: 40px;
text-align: center;
flex: 0 0 auto;
}
.tile .tile__body { flex: 1; min-width: 0; }
.tile .tile__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.1; display: inline-flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.tile .tile__desc { color: var(--color-muted); font-size: 13px; margin-top: 2px; }
.tile .tile__chev { color: var(--color-muted); font-size: 22px; margin-left: auto; }
.tile__badge {
font-family: var(--font-stack);
font-style: normal;
font-weight: 700;
font-size: 10px;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--color-primary);
background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface));
border: 1px solid color-mix(in srgb, var(--color-primary) 40%, transparent);
border-radius: 999px;
padding: 2px 8px;
line-height: 1.2;
}
.activity-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--space-3);
margin-top: var(--space-5);
}
/* Name filter — sits in the filter-pill cluster as a single round pill, and
unwinds sideways into a search bar on tap. Matches the pill toggles next to
it (same border, radius, surface) so it reads as one of the controls. */
.search {
display: inline-flex;
align-items: center;
flex: none;
width: 43px;
overflow: hidden;
background: var(--color-surface);
border: 1.5px solid var(--color-border-strong);
border-radius: 999px;
transition: width 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.search.is-open { width: min(280px, 72vw); }
.search__toggle {
flex: 0 0 40px;
width: 40px;
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
background: transparent;
border: none;
cursor: pointer;
color: var(--color-text);
font-size: 16px;
line-height: 1;
}
.search__icon { width: 19px; height: 19px; display: block; }
.search__field {
flex: 1;
min-width: 0;
height: 100%;
padding: 0 var(--space-3) 0 var(--space-1);
font: inherit;
font-size: 1rem;
color: inherit;
background: transparent;
border: none;
opacity: 0;
transition: opacity 0.18s ease 0.08s;
}
.search.is-open .search__field { opacity: 1; }
.search__field:focus { outline: none; }
.search__field::placeholder { color: var(--color-muted); }
.activity-grid__divider {
grid-column: 1 / -1;
display: flex;
align-items: center;
gap: var(--space-3);
margin: var(--space-2) 0;
color: var(--color-muted);
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.activity-grid__divider::before,
.activity-grid__divider::after {
content: "";
flex: 1;
height: 1.5px;
background: var(--color-border);
}
.activity-grid__divider-label { white-space: nowrap; }
.activity-grid__empty {
grid-column: 1 / -1;
padding: var(--space-5) var(--space-4);
text-align: center;
border: 1.5px dashed var(--color-border-strong);
border-radius: var(--radius-md);
background: var(--color-surface);
}
.activity-card {
position: relative;
/* Two-row grid: glyph+name share row 1 (horizontal), desc spans row 2
full-width so longer copy isn't squeezed into a narrow column. */
display: grid;
grid-template-columns: auto 1fr;
grid-template-rows: auto auto;
column-gap: var(--space-3);
row-gap: var(--space-2);
align-items: center;
padding: var(--space-3) var(--space-4);
background: var(--color-surface);
border: 1.5px solid var(--color-border-strong);
border-radius: var(--radius-md);
cursor: pointer;
text-align: left;
font: inherit;
color: var(--color-text);
min-height: 84px;
overflow: hidden;
box-shadow: var(--shadow-stamp-sm);
transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.activity-card:active { transform: translate(1.5px, 1.5px); box-shadow: 1px 1px 0 var(--color-border-strong); }
.activity-card .activity-card__glyph {
grid-row: 1;
grid-column: 1;
font-family: var(--font-display);
font-weight: 900;
font-size: 22px;
line-height: 1;
width: 40px;
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 10px;
background: var(--tile-stamp, var(--color-bg-2));
/* Hairline border tinted from the swatch itself — anchors the square
against the parchment bg without dropping a hard black outline. */
border: 1px solid color-mix(in srgb, var(--tile-stamp, var(--color-border-strong)) 55%, var(--color-border-strong));
/* Glyph reads as ink from the same color family as the wash. */
color: color-mix(in srgb, var(--tile-stamp, var(--color-text)) 30%, var(--color-text));
}
/* Body wrapper participates in the outer grid via display:contents so
name and desc can land in distinct grid cells without restructuring
the Laminar markup. */
.activity-card .activity-card__body { display: contents; }
.activity-card .activity-card__name {
grid-row: 1;
grid-column: 2;
font-family: var(--font-display);
font-weight: 700;
font-size: 17px;
line-height: 1.1;
letter-spacing: -0.01em;
align-self: center;
}
.activity-card .activity-card__desc {
grid-row: 2;
grid-column: 1 / -1;
color: var(--color-muted);
font-size: 13px;
line-height: 1.3;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
min-height: calc(2 * 1.3em);
}
/* Top-right control cluster: hide (eye) + favourite (star). */
.activity-card__actions {
position: absolute;
top: 4px;
right: 6px;
display: flex;
align-items: center;
gap: 2px;
}
.activity-card__action {
width: 28px;
height: 28px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
background: transparent;
border: none;
cursor: pointer;
line-height: 1;
color: var(--color-muted);
border-radius: 6px;
transition: color 0.08s ease, background 0.08s ease, transform 0.08s ease;
}
.activity-card__action:hover {
background: color-mix(in srgb, var(--color-text) 8%, transparent);
color: var(--color-text);
}
.activity-card__action:active { transform: scale(0.92); }
.activity-card__fav { font-size: 18px; }
.activity-card__fav.is-active { color: var(--color-primary); }
.activity-card__action-icon { width: 16px; height: 16px; display: block; }
/* Eye starts open (visible); the slash appears once the card is hidden. */
.activity-card__eye-slash { opacity: 0; transition: opacity 0.08s ease; }
.activity-card__hide.is-active { color: var(--color-text); }
.activity-card__hide.is-active .activity-card__eye-slash { opacity: 1; }
/* A hidden card (only seen while "show hidden" is on) is dimmed so it reads
as set-aside, and its glyph desaturates toward the parchment. */
.activity-card--muted { opacity: 0.5; }
.activity-card--muted:hover { opacity: 0.72; }
/* Narrow phones: descriptions get squeezed in a 2-col grid, so the
activity catalog becomes a single-column index strip. Glyph stamp
spans both rows on the left; name + full-width description stack
to its right. The "Suggest" card still sits at the top as a banner. */
@media (max-width: 479px) {
.activity-grid { grid-template-columns: 1fr; }
.activity-card .activity-card__glyph { grid-row: 1 / span 2; align-self: center; }
.activity-card .activity-card__desc { grid-column: 2; }
}
/* Primary call-to-action card — vermilion field, cream ink, italic display
type. Distinct as the showpiece while still occupying a grid cell. */
.activity-card--suggest {
grid-column: 1 / -1;
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-3);
min-height: 72px;
background: var(--color-primary);
color: var(--color-primary-text);
}
.activity-card--suggest .activity-card__name {
font-family: var(--font-display);
font-style: italic;
font-weight: 800;
font-size: 34px;
letter-spacing: -0.01em;
line-height: 1;
color: var(--color-primary-text);
}
/* Tint variants — color is contained to the glyph stamp, not the whole tile,
so the grid reads as a quiet catalog rather than a patchwork. */
.activity-card--vermilion { --tile-stamp: var(--tint-vermilion); }
.activity-card--teal { --tile-stamp: var(--tint-teal); }
.activity-card--mustard { --tile-stamp: var(--tint-mustard); }
.activity-card--rose { --tile-stamp: var(--tint-rose); }
.activity-card--olive { --tile-stamp: var(--tint-olive); }
.activity-card--plum { --tile-stamp: var(--tint-plum); }
.activity-card--sky { --tile-stamp: var(--tint-sky); }
.activity-card--peach { --tile-stamp: var(--tint-peach); }
/* ── Suggest spin — slot reel ──────────────────────────────────────────
Plays after tapping the Suggest card: a strip of catalog cards spins
through a framed focus window and decelerates onto the picked activity,
then gives a stamp "thunk". Item height (76px) is mirrored in
SuggestSpin.ItemPx — keep the two in sync. */
.suggest-spin { position: fixed; inset: 0; z-index: 200; display: none; }
.suggest-spin.is-open { display: block; }
.suggest-spin__backdrop {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: var(--space-4);
padding: var(--space-4);
background: color-mix(in srgb, var(--color-text) 60%, transparent);
backdrop-filter: blur(2px);
-webkit-backdrop-filter: blur(2px);
animation: suggest-fade 0.18s ease both;
}
@keyframes suggest-fade { from { opacity: 0; } to { opacity: 1; } }
.suggest-spin__panel {
width: min(420px, 100%);
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-3);
}
.suggest-spin__title {
font-family: var(--font-display);
font-style: italic;
font-weight: 800;
font-size: 22px;
letter-spacing: 0.01em;
color: var(--color-surface);
text-shadow: 2px 2px 0 var(--color-border-strong);
}
.suggest-reel {
position: relative;
width: 100%;
height: 228px; /* 3 * item height */
overflow: hidden;
border: 2px solid var(--color-border-strong);
border-radius: var(--radius-md);
background: var(--color-bg);
box-shadow: var(--shadow-stamp);
}
/* Static viewport: soften the top and bottom rows so the eye settles on the
focus band. The fade lives here (not on the strip) so it stays anchored to
the window while the strip scrolls behind it. */
.suggest-reel__viewport {
position: absolute;
inset: 0;
overflow: hidden;
-webkit-mask-image: linear-gradient(to bottom, transparent 1%, #000 30%, #000 70%, transparent 99%);
mask-image: linear-gradient(to bottom, transparent 1%, #000 30%, #000 70%, transparent 99%);
}
.suggest-reel__strip {
display: flex;
flex-direction: column;
will-change: transform;
transition: transform 2.7s cubic-bezier(0.13, 0.86, 0.13, 1);
}
.suggest-reel__item {
height: 76px;
flex: 0 0 76px;
display: flex;
align-items: center;
gap: var(--space-3);
padding: 0 var(--space-4);
}
.suggest-reel__glyph {
flex: 0 0 auto;
width: 40px;
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
font-family: var(--font-display);
font-weight: 900;
font-size: 22px;
line-height: 1;
border-radius: 10px;
background: var(--tile-stamp, var(--color-bg-2));
border: 1px solid color-mix(in srgb, var(--tile-stamp, var(--color-border-strong)) 55%, var(--color-border-strong));
color: color-mix(in srgb, var(--tile-stamp, var(--color-text)) 30%, var(--color-text));
}
.suggest-reel__name {
font-family: var(--font-display);
font-weight: 700;
font-size: 19px;
letter-spacing: -0.01em;
}
/* Focus band: the centre row, framed with dashed rules and a vermilion
needle biting in from each edge. Sits above the strip, ignores pointers. */
.suggest-reel__window {
position: absolute;
left: 0;
right: 0;
top: 50%;
height: 76px;
transform: translateY(-50%);
pointer-events: none;
border-top: 2px dashed var(--color-border-strong);
border-bottom: 2px dashed var(--color-border-strong);
background: color-mix(in srgb, var(--color-accent) 14%, transparent);
}
.suggest-reel__window::before,
.suggest-reel__window::after {
content: "";
position: absolute;
top: 50%;
width: 0;
height: 0;
transform: translateY(-50%);
border-top: 9px solid transparent;
border-bottom: 9px solid transparent;
}
.suggest-reel__window::before { left: 0; border-left: 12px solid var(--color-primary); }
.suggest-reel__window::after { right: 0; border-right: 12px solid var(--color-primary); }
/* Stamp "thunk" the moment the reel lands. */
.suggest-spin__panel.is-landed .suggest-reel__window {
animation: suggest-thunk 0.42s cubic-bezier(0.2, 1.5, 0.3, 1) both;
}
@keyframes suggest-thunk {
0% { transform: translateY(-50%) scaleY(1); }
35% { transform: translateY(-50%) scaleY(1.18); background: color-mix(in srgb, var(--color-primary) 24%, transparent); }
100% { transform: translateY(-50%) scaleY(1); }
}
/* Honour reduced-motion: collapse the long decel to a quick settle. */
@media (prefers-reduced-motion: reduce) {
.suggest-reel__strip { transition-duration: 0.35s; }
.suggest-spin__backdrop { animation: none; }
.suggest-spin__panel.is-landed .suggest-reel__window { animation: none; }
}
/* Boards */
.board {
display: grid;
gap: 2px;
background: var(--color-border);
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
overflow: hidden;
user-select: none;
touch-action: manipulation;
}
.cell {
background: var(--color-surface);
aspect-ratio: 1 / 1;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: clamp(14px, 4vw, 22px);
line-height: 1;
color: var(--color-text);
}
.cell--btn { cursor: pointer; }
.cell--ship { background: var(--color-ship); color: white; }
.cell--hit { background: var(--color-hit); color: white; }
.cell--miss { background: var(--color-miss); color: white; }
.cell--sunk { background: var(--color-sunk); color: white; }
.cell--x { color: var(--color-p1); font-size: clamp(28px, 9vw, 56px); }
.cell--o { color: var(--color-p2); font-size: clamp(28px, 9vw, 56px); }
.board--dense .cell--x,
.board--dense .cell--o { font-size: clamp(12px, 3.5vw, 20px); }
.cell--win { background: #fef9c3; }
.cell--fresh {
box-shadow: inset 0 0 0 3px #facc15;
position: relative;
z-index: 1;
}
.bs-grid { grid-template-columns: repeat(10, 1fr); }
.bs-resolve-bar {
display: flex;
align-items: stretch;
gap: var(--space-2);
}
.bs-resolve-bar .banner { flex: 1; display: flex; align-items: center; justify-content: center; }
.bs-resolve-bar .btn { white-space: nowrap; }
.ttt-board { max-width: 360px; width: 100%; margin-left: auto; margin-right: auto; }
.ttt-board.board--dense { max-width: 480px; }
.mem-board { max-width: 480px; width: 100%; margin-left: auto; margin-right: auto; }
.mem-card { background: var(--color-primary); font-size: clamp(28px, 9vw, 56px); transition: background 120ms ease, opacity 120ms ease; }
.mem-card.mem-card--up { background: var(--color-surface); }
.mem-card.mem-card--matched { opacity: 0.45; }
.mem-score {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
padding: 6px 14px;
border-radius: var(--radius-sm);
border: 2px solid transparent;
min-width: 80px;
}
.mem-score--p1 { background: color-mix(in srgb, var(--color-p1) 12%, var(--color-surface)); color: var(--color-p1); }
.mem-score--p2 { background: color-mix(in srgb, var(--color-p2) 12%, var(--color-surface)); color: var(--color-p2); }
.mem-score.is-active.mem-score--p1 { border-color: var(--color-p1); }
.mem-score.is-active.mem-score--p2 { border-color: var(--color-p2); }
.mem-score__label { font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; opacity: 0.8; }
.mem-score__value { font-size: 28px; font-weight: 800; line-height: 1; }
/* Checkers */
.ck-board { max-width: 480px; width: 100%; margin-left: auto; margin-right: auto; }
.ck-cell { position: relative; }
.ck-cell--light { background: #f1e4c3; }
.ck-cell--dark { background: #8b6b3a; }
.ck-cell--selected { box-shadow: inset 0 0 0 4px #facc15; z-index: 1; }
.ck-cell--target::after {
content: "";
position: absolute;
inset: 0;
margin: auto;
width: 30%;
height: 30%;
border-radius: 50%;
background: rgba(250, 204, 21, 0.85);
pointer-events: none;
}
.ck-cell--hint > .ck-piece { box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.9), 0 1px 3px rgba(0, 0, 0, 0.35); }
.ck-piece {
width: 78%;
height: 78%;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: clamp(14px, 4vw, 22px);
color: white;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.ck-piece--p1 { background: var(--color-p1); }
.ck-piece--p2 { background: var(--color-p2); }
.ck-piece--king::after { content: "♛"; color: #fde68a; }
/* Chess */
.chess-board { max-width: 480px; width: 100%; margin-left: auto; margin-right: auto; }
.chess-showcase {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: var(--space-3);
}
.chess-showcase .chess-board { max-width: 100%; }