-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
1769 lines (1682 loc) · 111 KB
/
Copy pathstyles.css
File metadata and controls
1769 lines (1682 loc) · 111 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
/* ── the deck's own fonts, lifted from the Canva design ─────────────────
Lazydog is the fat marker on the buttons, Bobby Jones Soft Condensed the
hand-printed city/continent names and Providence Sans everything else —
body copy, labels and the slogan. The alias-to-file mapping came out of
Canva's own @font-face rules. All three are commercial faces served by
Canva — fine for this prototype, check their licences before shipping. */
@font-face{font-family:'Bobby Jones Soft';src:url('assets/fonts/BobbyJonesSoft-Condensed.woff2') format('woff2');font-display:swap;}
@font-face{font-family:'Lazydog';src:url('assets/fonts/Lazydog.woff2') format('woff2');font-display:swap;}
@font-face{font-family:'Providence Sans';src:url('assets/fonts/ProvidenceSansPro.woff2') format('woff2');font-display:swap;}
:root{
--bg:#bbc0c9;--panel:#ffffff;--navy:#3a5070;--navy2:#2a3a55;
--bbg:#6a7d95;--bborder:#5a6d85;
--cbg:#d8e0ea;--cborder:#b8c8d8;
--or:#f5a820;--or2:#c07810;
--gr:#5ab855;--gr2:#3a8030;
--co:#e05040;--pk:#e040a0;
--ye:#f5c200;--re:#d04545;
--tx:#1a1a2a;--mu:#7a8090;
}
*{box-sizing:border-box;margin:0;padding:0;}
html,body{width:100%;height:100%;overflow:hidden;user-select:none;-webkit-user-select:none;touch-action:none;}
body{
font-family:'Nunito',sans-serif;
background-color:#bbc0c9;
background-size:60px 60px;
color:var(--tx);
}
body::before{display:none;}
/* ── screens ── */
.scr{display:none;width:100%;height:100vh;z-index:1;position:relative;}
.scr.on{display:flex;}
/* ════════ LOADING ════════ */
@keyframes bounce{
0%,100%{transform:translateY(0) scale(1);}
50%{transform:translateY(-16px) scale(1.1);}
}
@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
/* same floor as the title screen so boot → menu doesn't flash a different room */
#s-loading{background:#53535f url('assets/ui/bg-floor.png') center/cover no-repeat;}
.loading-card{background:#fff;border:2.5px solid #1a1a2a;box-shadow:3px 3px 0 #1a1a2a;border-radius:16px;padding:32px 40px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px;}
/* ════════ TITLE (legacy — kept for shared classes) ════════ */
.t-em{width:84px;height:84px;background:#3a5070;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;font-size:46px;border:3px solid #1a1a2a;box-shadow:3px 4px 0 #1a1a2a;}
.t-nm{font-family:'Fredoka One',cursive;font-size:50px;color:#1a1a2a;}
.t-nm-fit{color:#f5c200;-webkit-text-stroke:2px #1a1a2a;text-shadow:none;}
.t-tg{font-size:12px;color:rgba(255,255,255,.75);font-weight:700;letter-spacing:1px;}
.btn-play{width:100%;padding:13px;border:3px solid #1a1a2a;cursor:pointer;background:#5a85d5;color:#fff;font-family:'Fredoka One',cursive;font-size:20px;letter-spacing:1px;border-radius:16px;box-shadow:0 5px 0 #2a4090;transition:all .12s;}
.btn-play:hover{transform:translateY(-2px);box-shadow:0 7px 0 #2a4090;}
.btn-play:active{transform:translateY(2px);box-shadow:0 2px 0 #2a4090;}
.btn-cont{background:#5a85d5;color:#fff;border:3px solid #1a1a2a;box-shadow:0 5px 0 #2a4090;}
.btn-cont:hover{transform:translateY(-2px);box-shadow:0 7px 0 #2a4090!important;}
.btn-cont:active{transform:translateY(2px);box-shadow:0 2px 0 #2a4090!important;}
/* ════════ GAME ════════ */
#s-game{flex-direction:column;height:100vh;overflow:hidden;}
#g-topbar{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;height:44px;flex-shrink:0;background:rgba(0,0,0,.12);border-bottom:2px solid rgba(0,0,0,.15);}
.gtb-left{display:flex;align-items:center;gap:6px;}
.gtb-center{display:flex;align-items:center;}
.gtb-right{display:flex;align-items:center;justify-content:flex-end;}
.gtb-round-pill{background:#5ab855;border:2px solid #1a1a2a;border-radius:50px;padding:3px 14px;color:#fff;font-family:'Fredoka One',cursive;font-size:13px;font-weight:normal;letter-spacing:.5px;}
.gtb-score-pill{background:#f57c35;border:2px solid #1a1a2a;border-radius:50px;padding:3px 12px;color:#fff;font-family:'Fredoka One',cursive;font-size:13px;font-weight:normal;box-shadow:0 3px 0 #c05010;}
.gtb-mod-pill{display:flex;align-items:center;gap:5px;background:var(--re);border:2px solid #1a1a2a;border-radius:50px;padding:3px 12px;color:#fff;font-family:'Fredoka One',cursive;font-size:12px;box-shadow:0 3px 0 #8a2c2c;cursor:help;}
.gtb-title{font-family:'Fredoka One',cursive;color:rgba(255,255,255,.7);font-size:14px;letter-spacing:3px;}
.gtb-cash{display:flex;align-items:center;gap:5px;background:#f5a820;border:2px solid #1a1a2a;border-radius:50px;padding:3px 12px 3px 6px;box-shadow:0 3px 0 #c07810;font-family:'Fredoka One',cursive;font-size:14px;color:#1a1a2a;}
.gtb-coin{width:20px;height:20px;background:#f8d040;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:11px;border:1.5px solid #c07810;}
#g-main{flex:1;display:flex;flex-direction:row;align-items:stretch;padding:10px 12px;gap:10px;overflow:hidden;position:relative;}
/* LEFT */
.lc{display:flex;flex-direction:column;gap:6px;width:280px;flex-shrink:0;}
.tline{font-size:10px;color:rgba(255,255,255,.75);font-weight:700;font-style:italic;text-align:center;}
#s-game .tline{display:none;}
.card{background:#fff;border-radius:12px;padding:8px 13px;border:2.5px solid #1a1a2a;box-shadow:3px 3px 0 #1a1a2a;}
.card .lb{font-family:'Fredoka One',cursive;font-size:9px;color:#7a8090;letter-spacing:1px;text-transform:uppercase;}
.card .bv{font-family:'Fredoka One',cursive;font-size:29px;color:var(--tx);line-height:1.05;}
.card .bv.or{color:#e05040;}
.card .bv.co{color:var(--co);}
/* Live purrfect (board-fill) per-cell bonus — small gold notepad chip under the target */
.pf-rate{font-family:'Fredoka One',cursive;font-size:10px;color:#c07810;background:#fff4d8;border:1.5px solid #f0c060;border-radius:7px;padding:2px 7px;margin-top:4px;display:inline-block;letter-spacing:.3px;}
.earn-b{display:inline-flex;align-items:center;gap:6px;background:#f5a820;color:#1a1a2a;font-family:'Fredoka One',cursive;font-size:16px;border-radius:8px;padding:3px 10px;border:2px solid #1a1a2a;box-shadow:0 3px 0 #c07810;margin-top:3px;}
.pr{display:flex;gap:6px;margin-top:3px;}
.pl{flex:1;border-radius:8px;padding:4px 6px;text-align:center;box-shadow:0 3px 0 rgba(0,0,0,.22);}
.pl .pt{font-family:'Fredoka One',cursive;font-size:8px;letter-spacing:1px;}
.pl .pv{font-family:'Fredoka One',cursive;font-size:18px;line-height:1;}
.pl-or{background:#f5a820;color:#1a1a2a;}.pl-or .pt{color:rgba(26,26,42,.65);}
.pl-gr{background:#5ab855;color:#fff;}.pl-gr .pt{color:rgba(255,255,255,.75);}
.drow{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:10px;padding:6px 10px;box-shadow:0 3px 0 rgba(0,0,0,.14);}
.dlb{font-family:'Fredoka One',cursive;font-size:10px;color:#7a8090;}
.dpips{display:flex;gap:4px;}
.dp{width:10px;height:10px;border-radius:50%;background:var(--re);transition:opacity .2s;}
.dp.used{opacity:.2;}
.btn-disc{padding:4px 10px;border:2px solid #1a1a2a;cursor:pointer;background:#e05040;color:#fff;font-family:'Fredoka One',cursive;font-size:11px;border-radius:8px;box-shadow:0 3px 0 #902020;}
.btn-disc:disabled{opacity:.35;cursor:not-allowed;}
.pfbox{flex:1;display:flex;align-items:flex-end;justify-content:center;padding-bottom:5px;font-size:40px;filter:drop-shadow(2px 4px 6px rgba(0,0,0,.2));}
/* CENTER */
.cc{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1;min-width:0;}
.bwrap{flex:1;display:flex;align-items:center;justify-content:center;max-height:calc(100vh - 212px);}
.board{position:relative;display:grid;gap:4px;background:#6a7d95;padding:20px;border-radius:12px;border:3px solid #1a1a2a;box-shadow:4px 4px 0 #1a1a2a;}
/* Cat art: a single illustration spanning a whole shape (see js/catart.js). */
.cat-art-wrap,.cat-art-board{display:flex;align-items:center;justify-content:center;pointer-events:none;}
.cat-art-board{position:absolute;z-index:3;}
.cat-art-img{object-fit:fill;display:block;filter:drop-shadow(1px 2px 1px rgba(0,0,0,.25));}
.cell{background:#d8e0ea;border-radius:6px;border:2px solid #b8c8d8;cursor:pointer;transition:background .07s,border-color .07s;display:flex;align-items:center;justify-content:center;font-size:22px;}
.cell.ok{background:#c0e8c0!important;border-color:#5ab855!important;}
.cell.bad{background:rgba(220,72,72,.2)!important;border-color:#d04545!important;}
.cell.filled{border-color:rgba(255,255,255,.2);}
.cell.filled:hover{filter:brightness(1.1);}
.cell.pop{animation:pop .32s ease;}
@keyframes pop{0%,100%{transform:scale(1)}50%{transform:scale(1.14);filter:brightness(1.45)}}
@keyframes scoreFlash{0%,100%{transform:scale(1)}40%{transform:scale(1.08);filter:brightness(1.3);}}
.score-card-lit{animation:scoreFlash .4s ease;outline:3px solid #f5c200;outline-offset:2px;border-radius:12px;}
.bbtns{display:flex;gap:8px;align-items:center;}
/* ── Feature 2a: live projected score readout — DEV_MODE only ──
Hidden for normal play (the player reads the board, not a number) and
revealed by the dev toggle. Same CSS-only gate the Auto-fit pill uses:
applyDevModeUI() puts .active on #btn-dev-float, so no extra JS hook is
needed to keep this in sync with the toggle. */
.fit-proj{
display:none;
font-family:'Fredoka One',cursive;font-size:13px;color:#5a6472;
background:rgba(255,255,255,.55);border:2px solid rgba(0,0,0,.15);
border-radius:50px;padding:5px 12px;white-space:nowrap;
transition:color .2s ease,background-color .2s ease,border-color .2s ease;
}
body:has(#btn-dev-float.active) .fit-proj{display:block;}
.fit-proj.fit-proj-ready{color:#1a1a2a;background:#c0e8c0;border-color:#5ab855;}
.board-treats{display:flex;gap:4px;align-items:center;flex-wrap:wrap;justify-content:center;}
.bt-pill{display:flex;align-items:center;gap:3px;background:rgba(0,0,0,.15);border-radius:8px;padding:2px 8px 2px 4px;font-size:10px;font-weight:800;color:#fff;border:1.5px solid rgba(0,0,0,.2);cursor:default;position:relative;}
.bt-pill.req-fail{border-color:#d04545;outline:2px solid #d04545;outline-offset:1px;}
.bt-pill-em{font-size:14px;}
.bt-pill-nm{font-size:9px;font-family:'Fredoka One',cursive;letter-spacing:.3px;}
.btn-reload-cfg{padding:7px 18px;border:2px solid rgba(58,80,112,.3);cursor:pointer;background:transparent;color:rgba(58,80,112,.6);font-family:'Fredoka One',cursive;font-size:13px;border-radius:50px;transition:all .15s;width:100%;margin-top:4px;}
.btn-reload-cfg:hover{border-color:rgba(58,80,112,.6);color:rgba(58,80,112,.9);}
.btn-dev-toggle{padding:5px 14px;border:1px solid rgba(255,255,255,.25);cursor:pointer;background:transparent;color:rgba(255,255,255,.4);font-family:'Fredoka One',cursive;font-size:11px;border-radius:50px;transition:all .15s;letter-spacing:.5px;}
.btn-dev-toggle:hover{border-color:rgba(255,255,255,.5);color:rgba(255,255,255,.7);}
.btn-dev-toggle.active{border-color:rgba(245,194,0,.6);color:rgba(245,194,0,.9);background:rgba(245,194,0,.08);}
.dev-panel{display:none;flex-direction:column;gap:6px;width:100%;padding:8px 0 0;border-top:1px solid rgba(255,255,255,.15);margin-top:4px;}
.dev-panel.on{display:flex;}
/* ── the global floating dev pill: fixed to the viewport, above everything, so
it rides along on every screen (loading, HQ, calendar, shop, game).
Keep it position:fixed — the screens are 100vh blocks in normal flow, so a
static pill scrolls straight out of an overflow:hidden body and vanishes.
The title screen is the one exception; it has its own labelled toggle in the
same corner (see body:has(#s-menu.on) further down). ── */
.btn-dev-float{
position:fixed;bottom:12px;right:12px;z-index:10000;
padding:5px 12px;border:1px solid rgba(255,255,255,.28);cursor:pointer;
background:rgba(23,21,28,.55);color:rgba(255,255,255,.5);
font-family:'Fredoka One',cursive;font-size:11px;border-radius:50px;
transition:all .15s;letter-spacing:.5px;backdrop-filter:blur(4px);
}
.btn-dev-float:hover{border-color:rgba(255,255,255,.55);color:rgba(255,255,255,.8);}
.btn-dev-float.active{border-color:rgba(245,194,0,.65);color:rgba(245,194,0,.95);background:rgba(36,29,14,.65);}
/* floating Config Sheet shortcut — second slot of the bottom-right pill stack.
Always available (it only opens the sheet in a new tab, it changes nothing),
so config edits are one click away from HQ, schedule, shop and board alike. */
.btn-cfg-float{bottom:48px;}
.btn-cfg-float:hover{border-color:rgba(255,255,255,.55);color:rgba(255,255,255,.8);}
/* floating dev-mode Auto-fit button — third slot, game screen only,
DEV_MODE only */
.btn-dev-autofit{
display:none;bottom:84px;
border-color:rgba(245,194,0,.5);color:rgba(245,194,0,.85);background:rgba(36,29,14,.65);
}
.btn-dev-autofit:hover{border-color:rgba(245,194,0,.75);color:rgba(245,194,0,1);}
.btn-dev-autofit.devfit-err{border-color:rgba(208,69,69,.7);color:#ffb0b0;background:rgba(58,22,22,.75);}
body:has(#s-game.on) #btn-dev-float.active ~ #btn-dev-autofit{display:inline-flex;align-items:center;gap:4px;}
.btn-menu-exit{padding:7px 14px;border:2px solid rgba(255,255,255,.3);cursor:pointer;background:rgba(255,255,255,.12);color:rgba(255,255,255,.8);font-family:'Fredoka One',cursive;font-size:12px;border-radius:50px;transition:all .12s;width:100%;margin-top:auto;}
.btn-menu-exit:hover{background:rgba(255,255,255,.2);color:#fff;}
.btn-clr{padding:8px 14px;border:3px solid #1a1a2a;cursor:pointer;background:#5ab855;color:#fff;font-family:'Fredoka One',cursive;font-size:13px;border-radius:14px;box-shadow:0 4px 0 #3a8030;transition:all .12s;}
.btn-clr:hover{transform:translateY(-2px);box-shadow:0 6px 0 #3a8030;}
.btn-clr:active{transform:translateY(2px);box-shadow:0 1px 0 #3a8030;}
.btn-fit{padding:11px 34px;border:3px solid #1a1a2a;cursor:pointer;background:#f5c200;color:#1a1a2a;font-family:'Fredoka One',cursive;font-size:23px;letter-spacing:2px;border-radius:18px;box-shadow:0 6px 0 #a08000;transition:all .12s;}
.btn-fit:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 0 #a08000;}
.btn-fit:active:not(:disabled){transform:translateY(3px);box-shadow:0 2px 0 #a08000;}
.btn-fit:disabled{opacity:.45;cursor:not-allowed;}
@keyframes pulse-glow{0%,100%{transform:scale(1);box-shadow:0 6px 0 #a08000}50%{transform:scale(1.02);box-shadow:0 8px 0 #a08000,0 0 12px rgba(245,194,0,.4)}}
.btn-fit:not(:disabled){animation:pulse-glow 2s ease-in-out infinite;}
.hand{display:flex;gap:20px;align-items:flex-end;width:100%;justify-content:center;}
.deck-row{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:2px;margin-bottom: 80px;}
.discard-inline{display:flex;align-items:center;gap:5px;background:rgba(255,255,255,.18);border-radius:20px;padding:3px 6px 3px 10px;}
.dinfo-s{display:flex;align-items:center;gap:4px;background:rgba(0,0,0,.2);border-radius:12px;padding:3px 10px;border:2px solid rgba(0,0,0,.25);}
.dlb2{font-family:'Fredoka One',cursive;font-size:9px;color:rgba(255,255,255,.75);letter-spacing:1px;text-transform:uppercase;}
.bv2{font-family:'Fredoka One',cursive;font-size:16px;color:#fff;margin-left:4px;}
.bv2.co{color:var(--co);}
.cslot{position:relative;width:150px;height:150px;background:#ffffff36;border-radius:10px;border:2.5px solid #1a1a2a;cursor:pointer;transition:all .12s;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:3px 3px 0 #1a1a2a;padding:5px;gap:2px;}
.cslot:hover{border-color:#f5c200;transform:translateY(-3px);}
.cslot.held{border-color:#f5c200;opacity:.45;transform:translateY(-3px);}
.cslot.held::after{content:"R to rotate";display:block;position:absolute;bottom:-18px;left:50%;transform:translateX(-50%);font-size:8px;color:rgba(255,255,255,.7);white-space:nowrap;font-weight:800;}
.csn{font-size:8px;font-weight:800;color:#7a8090;text-align:center;line-height:1.1;}
.eslot{width:150px;height:150px;background:rgba(0,0,0,.12);border-radius:10px;border:2px dashed rgba(255,255,255,.3);display:flex;align-items:center;justify-content:center;}
.eslot::after{content:"—";color:rgba(255,255,255,.3);font-size:12px;font-family:'Fredoka One',cursive;}
/* RIGHT */
.rc{display:flex;flex-direction:column;gap:6px;width:345px;flex-shrink:0;justify-content:center;}
.bpcard{background:#3a5070;border-radius:14px;border:3px solid #1a1a2a;box-shadow:4px 4px 0 #1a1a2a;overflow:hidden;}
.bphdr{background:#8090cc;margin:0;padding:7px 10px;text-align:center;font-family:'Fredoka One',cursive;font-size:13px;color:#fff;border-bottom:2.5px solid #1a1a2a;}
.bpgw{padding:5px;}
.bpg{display:grid;gap:3px;background:rgba(0,0,0,.2);padding:4px;border-radius:7px;}
.bpc{background:rgba(255,255,255,.1);border-radius:4px;border:1px solid rgba(255,255,255,.12);cursor:pointer;transition:all .09s;display:flex;align-items:center;justify-content:center;font-size:16px;}
.bpc.ft{border-color:rgba(255,255,255,.25);}
.bpc.ok{background:rgba(90,184,85,.25)!important;border-color:#5ab855!important;}
.bpc.bad{background:rgba(208,69,69,.2)!important;border-color:#d04545!important;}
.bpc.sel-t{outline:2px solid #f5c200;outline-offset:1px;}
.bpcap{font-size:9px;color:rgba(255,255,255,.45);font-style:italic;text-align:center;padding:2px 6px 5px;}
/* treat tooltip */
.ttp{background:#fff;border-radius:12px;padding:9px 11px;border:2.5px solid #1a1a2a;box-shadow:3px 3px 0 #1a1a2a;display:none;}
.ttp.on{display:block;}
.ttn{font-family:'Fredoka One',cursive;font-size:14px;color:#e040a0;letter-spacing:.5px;}
.tte{font-size:10px;font-weight:800;color:#1a1a2a;margin-top:2px;line-height:1.5;}
.tte span{color:#e040a0;}
.ttae{font-size:9px;font-weight:800;color:#7a5ec7;margin-top:3px;line-height:1.4;display:none;}
.ttae span{color:#e040a0;}
.ttr{background:#d04545;color:#fff;border-radius:6px;padding:3px 7px;font-size:9px;font-weight:800;margin-top:4px;line-height:1.4;display:none;}
.ttf{font-size:9px;color:#7a8090;font-style:italic;margin-top:4px;text-align:center;}
.ttsell{margin-top:5px;display:flex;gap:6px;align-items:center;}
.btn-sell{padding:3px 10px;border:2px solid #1a1a2a;cursor:pointer;background:#c07810;color:#fff;font-family:'Fredoka One',cursive;font-size:10px;border-radius:8px;box-shadow:0 2px 0 #805008;}
.btn-place{padding:3px 10px;border:2px solid #1a1a2a;cursor:pointer;background:#5a85d5;color:#fff;font-family:'Fredoka One',cursive;font-size:10px;border-radius:8px;box-shadow:0 2px 0 #2a4090;}
.dinfo{background:#fff;border-radius:12px;padding:8px;text-align:center;border:2.5px solid #1a1a2a;box-shadow:3px 3px 0 #1a1a2a;}
.dinfo .lb{font-family:'Fredoka One',cursive;font-size:11px;color:#7a8090;}
.dinfo .bv{font-family:'Fredoka One',cursive;font-size:22px;color:#f5a820;}
.rinfo{background:#fff;border-radius:12px;padding:8px 12px;text-align:center;border:2.5px solid #1a1a2a;box-shadow:3px 3px 0 #1a1a2a;}
.rinfo .lb{font-family:'Fredoka One',cursive;font-size:8px;color:#7a8090;letter-spacing:1px;text-transform:uppercase;}
.rinfo .bv{font-family:'Fredoka One',cursive;font-size:26px;color:#e05040;line-height:1;}
.rinfo .sub{font-size:9px;color:#7a8090;}
/* ── Feature 2b: treat spot-rating (paw tooltip + affected-cell pulse) ── */
#paw-tip{
position:fixed;display:none;z-index:9991;pointer-events:none;
transform:translate(-50%,-100%);
background:rgba(45,27,105,.94);color:#fff;border-radius:10px;
padding:5px 11px;text-align:center;white-space:nowrap;
border:1px solid rgba(255,255,255,.22);box-shadow:0 4px 14px rgba(45,27,105,.4);
}
.paw-tip-paws{font-size:14px;letter-spacing:2px;}
.paw-tip-paws.zero{font-size:10px;letter-spacing:0;color:rgba(255,255,255,.55);font-weight:800;}
.paw-tip-delta{font-family:'Nunito',sans-serif;font-size:9px;font-weight:800;color:#c8d0e8;margin-top:2px;}
@keyframes cell-affect-pulse{
0%,100%{box-shadow:0 0 0 0 rgba(224,64,168,.5);}
50%{box-shadow:0 0 0 5px rgba(224,64,168,0);}
}
.cell.treat-affect-preview{animation:cell-affect-pulse 1.1s ease-in-out infinite;}
/* ── TREAT PIECE SILHOUETTE (js/piece.js) ──
A treat's cells bleed across the grid gap into each other so the piece reads
as one tetromino instead of a cluster of tiles. Painted INSIDE the real cell,
so the board's pop / glow / affect-pulse animations still carry it. */
.pc-skin{position:absolute;box-sizing:border-box;pointer-events:none;z-index:0;}
.pc-em{position:absolute;transform:translate(-50%,-50%);pointer-events:none;
z-index:2;line-height:1;white-space:nowrap;}
.pc-box{position:relative;}
.pc-cell{position:absolute;}
/* a drop preview lands ON a piece sometimes — keep the red/green readable */
.cell.ok .pc-skin,.cell.bad .pc-skin,.bpc.ok .pc-skin,.bpc.bad .pc-skin,
.sp-bpc.ok .pc-skin,.sp-bpc.bad .pc-skin{opacity:.22;}
/* ── GHOST (follows cursor) ── */
#ghost{position:fixed;pointer-events:none;z-index:9999;display:none;transform:translate(-50%,-50%);transition:none;}
.gh-grid{display:grid;gap:3px;}
.gh-cell{border-radius:5px;border:2px solid rgba(255,255,255,.5);}
/* ── INSTRUCTION HUD ── */
#ihud{
position:fixed;bottom:16px;left:50%;transform:translateX(-50%);
background:rgba(26,26,42,.88);color:#fff;border-radius:12px;
padding:7px 16px;display:none;flex-direction:row;gap:12px;align-items:center;
font-size:10px;font-weight:700;z-index:9998;
backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,.15);
box-shadow:0 4px 18px rgba(0,0,0,.4);
}
#ihud.on{display:flex;}
.ik{background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.3);border-radius:5px;padding:2px 7px;font-family:'Fredoka One',cursive;font-size:11px;}
.isep{color:rgba(255,255,255,.3);}
/* ── OVERLAYS ── */
.ov{position:fixed;inset:0;background:rgba(26,26,42,.78);display:flex;align-items:center;justify-content:center;z-index:300;backdrop-filter:blur(5px);}
.ov.off{display:none;}
.ob{background:#fff;border-radius:18px;padding:32px 40px;text-align:center;max-width:390px;width:90%;border:3px solid #1a1a2a;box-shadow:5px 5px 0 #1a1a2a;animation:pIn .28s cubic-bezier(.175,.885,.32,1.275);}
@keyframes pIn{0%{transform:scale(.5);opacity:0}100%{transform:scale(1);opacity:1}}
.ob h1{font-family:'Fredoka One',cursive;font-size:34px;color:#1a1a2a;margin-bottom:4px;}
.ob .sub{color:#7a8090;margin-bottom:10px;font-size:12px;font-weight:700;}
.ob .big{font-family:'Fredoka One',cursive;font-size:52px;line-height:1;color:#1a1a2a;}
.ob .brk{font-size:10px;color:#7a8090;margin-top:7px;line-height:2.1;}
/* ── REMAINING DECK popup (DECK pill → openDeckPopup, and the branch preview) ──
Same paperwork the schedule and the pet shop are made of: a periwinkle slab,
a light sheet laid on it, a tab pinned across the slab's top edge and a
sticker button to close. Sizing is px rather than the stages' cqw — this is a
body-level layer with no stage container to measure itself against. */
.dk-pop{
position:relative;width:min(92vw,560px);max-height:82vh;display:flex;flex-direction:column;
background:#575f7e;border:3px solid #1b1a24;border-radius:18px;padding:20px 18px 18px;
box-shadow:0 0 0 3px #fdfcff, 8px 10px 0 rgba(20,18,28,.45);
animation:pIn .28s cubic-bezier(.175,.885,.32,1.275);
}
.dk-tab{
position:absolute;left:18px;top:-15px;padding:2px 14px 4px;
background:#5b608c;border:3px solid #1b1a24;border-radius:10px;
box-shadow:0 0 0 3px #fdfcff;
font-family:'Lazydog',cursive;font-size:19px;line-height:1.25;letter-spacing:.02em;
color:#fdfcff;white-space:nowrap;
}
.dk-sheet{
flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;
background:#e9e8f2;border:3px solid #1b1a24;border-radius:12px;padding:14px 14px 16px;
}
.dk-sub{
font-family:'Bobby Jones Soft',cursive;font-size:13px;letter-spacing:.03em;
color:#4b4757;text-transform:uppercase;
}
/* the cards scroll, the tab and CLOSE stay put */
.dk-grid{
width:100%;flex:1;min-height:0;overflow-y:auto;margin-top:12px;padding-right:2px;
display:grid;grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:8px;align-content:start;
}
.dk-empty{grid-column:1/-1;text-align:center;padding:14px;
font-family:'Bobby Jones Soft',cursive;font-size:13px;color:#4b4757;}
/* one cat per card; its colour is the ink underline, set inline by deckPopTile */
.dk-card{
display:flex;flex-direction:column;align-items:center;gap:4px;
background:#fcfafa;border:2px solid #1b1a24;border-bottom-width:4px;
border-radius:9px;padding:7px 4px 5px;
}
.dk-card-lbl{font-family:'Bobby Jones Soft',cursive;font-size:9px;line-height:1.25;
letter-spacing:.02em;color:#6a6678;text-align:center;}
.dk-card-lbl span{color:#1b1a24;}
/* the deck's sticker button, at popup scale — the shape WORK and SHIP wear */
.dk-close{
margin-top:14px;padding:3px 26px 5px;cursor:pointer;
background:#d2f886;border:3px solid #17151c;border-radius:12px;
box-shadow:0 0 0 3px #fdfcff, 0 7px 0 #262229;
font-family:'Lazydog',cursive;font-size:21px;line-height:1.3;color:#17151c;
transition:transform .09s ease-out, box-shadow .09s ease-out;
}
.dk-close:hover {transform:translateY(-2px);box-shadow:0 0 0 3px #fdfcff, 0 9px 0 #262229;}
.dk-close:active{transform:translateY(5px);box-shadow:0 0 0 3px #fdfcff, 0 2px 0 #262229;}
/* ── INLINE WIN TRANSITION ──
#win-inline is a child of #s-game, so without these it falls back to
static/z-index:auto and the game's positioned layers paint straight over it —
the round is won but the only way out (Visit Pet Store) is invisible and
unclickable. Card styling deliberately mirrors .ob but skips its pIn
animation, which would fight the scale-in transition below. */
.win-inline{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:10;pointer-events:none;opacity:0;background:rgba(26,26,42,.78);backdrop-filter:blur(5px);transition:opacity .4s .35s ease-out;}
.win-inline.visible{opacity:1;pointer-events:auto;}
.win-inline-card{background:#fff;border-radius:18px;padding:32px 40px;text-align:center;max-width:390px;width:90%;border:3px solid #1a1a2a;box-shadow:5px 5px 0 #1a1a2a;transform:scale(.92);transition:transform .4s .35s ease-out;}
.win-inline.visible .win-inline-card{transform:scale(1);}
.win-inline-card h1{font-family:'Fredoka One',cursive;font-size:34px;color:#1a1a2a;margin-bottom:4px;}
.win-inline-card .sub{color:#7a8090;margin-bottom:10px;font-size:12px;font-weight:700;}
/* score sequence overlay */
#ov-score-seq{position:fixed;inset:0;z-index:400;pointer-events:none;overflow:hidden;}
#ov-score-seq.active{pointer-events:auto;}
.score-board-overlay{position:absolute;pointer-events:none;}
.score-cell-label{
position:absolute;display:flex;align-items:center;justify-content:center;
font-family:'Fredoka One',cursive;font-size:13px;color:#fff;
background:rgba(0,0,0,.55);border-radius:6px;pointer-events:none;
transition:all .3s ease;opacity:0;transform:scale(.6);
border:2px solid rgba(255,255,255,.3);
text-shadow:0 1px 3px rgba(0,0,0,.8);
}
.score-cell-label.show{opacity:1;transform:scale(1);}
.score-cell-label.boosted{background:rgba(245,194,0,.88);border-color:#fff;transform:scale(1.15);}
.score-treat-flash{
position:absolute;border-radius:8px;pointer-events:none;
border:3px solid rgba(255,255,255,.9);
box-shadow:0 0 16px 4px rgba(255,255,255,.5);
opacity:0;transition:opacity .25s;
}
.score-treat-flash.on{opacity:1;}
/* ── Type A add: cyan per-cat pulse ── */
@keyframes cat-pulse-cyan{
0%,100%{box-shadow:none;transform:scale(1);}
40%{box-shadow:0 0 0 4px #38c0c0,0 0 18px 4px rgba(56,192,192,.65);transform:scale(1.16);}
}
/* ── Type A mul: gold per-cat pulse ── */
@keyframes cat-pulse-gold{
0%,100%{box-shadow:none;transform:scale(1);}
40%{box-shadow:0 0 0 4px #f5c200,0 0 18px 4px rgba(245,194,0,.65);transform:scale(1.16);}
}
.cat-pulse-add{animation:cat-pulse-cyan .6s ease-out forwards;}
.cat-pulse-mul{animation:cat-pulse-gold .6s ease-out forwards;}
/* ── Per-cat bonus badge ── */
.cat-bonus-badge{
position:fixed;pointer-events:none;z-index:405;
font-family:'Fredoka One',cursive;font-size:11px;font-weight:900;
border-radius:50%;width:22px;height:22px;
display:flex;align-items:center;justify-content:center;
box-shadow:0 2px 6px rgba(0,0,0,.45);
opacity:0;transform:scale(.5);
transition:opacity .15s,transform .15s;
}
.cat-bonus-badge.show{opacity:1;transform:scale(1);}
.cat-bonus-badge.add{background:#38c0c0;color:#fff;}
.cat-bonus-badge.mul{background:#f5c200;color:#1a1a2e;}
/* ── Type B add: floating score badge ── */
@keyframes score-badge-float{
0%{opacity:0;transform:translate(-50%,-4px) scale(.7);}
30%{opacity:1;transform:translate(-50%,-20px) scale(1.05);}
65%{opacity:1;transform:translate(-50%,-24px) scale(1);}
100%{opacity:0;transform:translate(-50%,-40px) scale(.85);}
}
.score-float-badge{
position:fixed;pointer-events:none;z-index:405;
font-family:'Fredoka One',cursive;font-size:15px;
background:#38c0c0;color:#fff;border-radius:20px;padding:3px 12px;
white-space:nowrap;box-shadow:0 3px 8px rgba(0,0,0,.35);
animation:score-badge-float .9s ease-out forwards;
}
/* ── Type B mul: score slam ── */
@keyframes score-slam-out{
0%{opacity:1;transform:scale(1);}
100%{opacity:0;transform:scale(.6);}
}
@keyframes score-slam-in{
0%{opacity:0;transform:scale(1.5);color:#f5c200;filter:drop-shadow(0 0 14px #f5c200);}
55%{opacity:1;transform:scale(.95);color:#f5c200;}
100%{opacity:1;transform:scale(1);color:#fff;filter:none;}
}
.score-slam-out{animation:score-slam-out .22s ease-in forwards;}
.score-slam-in{animation:score-slam-in .38s ease-out forwards;}
.score-counter-wrap{position:fixed;top:32%;left:50%;transform:translateX(-50%);z-index:401;text-align:center;}
.seq-score-counter{
font-family:'Fredoka One',cursive;font-size:64px;color:#fff;
text-shadow:0 4px 0 rgba(0,0,0,.4),0 0 30px rgba(255,255,255,.2);
letter-spacing:2px;line-height:1;
}
.score-total-banner{
position:fixed;bottom:20%;left:50%;transform:translateX(-50%) scale(.5);
background:#f5c200;color:#1a1a2a;
font-family:'Fredoka One',cursive;font-size:48px;
border-radius:18px;padding:16px 40px;
border:3px solid #1a1a2a;box-shadow:0 6px 0 #a08000,4px 4px 0 #1a1a2a;
opacity:0;transition:all .4s cubic-bezier(.175,.885,.32,1.275);
white-space:nowrap;z-index:401;
}
.score-total-banner.show{opacity:1;transform:translateX(-50%) scale(1);}
.score-continue-btn{
position:fixed;bottom:12%;left:50%;transform:translateX(-50%);
padding:12px 32px;cursor:pointer;
background:#5ab855;color:#fff;font-family:'Fredoka One',cursive;font-size:16px;
border-radius:14px;border:3px solid #1a1a2a;box-shadow:0 4px 0 #3a8030;
opacity:0;transition:opacity .3s;z-index:402;
}
.score-continue-btn.show{opacity:1;}
/* The running log of what each piece did. It occupies the band between the step
controls and the bottom edge — runScoreSequence() sets `top` from the controls'
measured bottom — and the lines sit at the FOOT of that band, so a long line
wrapping to two rows eats space downwards-out rather than climbing over the
buttons. Sized to be read from across the desk, not squinted at. */
.seq-log{
position:fixed;left:50%;transform:translateX(-50%);bottom:16px;
display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
gap:8px;z-index:401;
max-width:640px;width:90%;pointer-events:none;overflow:hidden;
}
.seq-log-line{
background:rgba(26,26,42,.9);color:#fff;border-radius:18px;
padding:10px 28px;font-family:'Fredoka One',cursive;font-size:24px;
opacity:0;transform:translateY(8px);transition:all .25s;text-align:center;
}
.seq-log-line.show{opacity:1;transform:translateY(0);}
/* Oldest lines fade up and out so the log stays a compact bottom-margin strip. */
.seq-log-line.seq-log-retire{opacity:0;transform:translateY(-6px);}
/* ── Step-through scan: the player advances the scoring one piece at a time ──
runScoreSequence() re-anchors the explain chip, the control row and the log
onto SHIP's vacated slot under the board; the values here are the fallback for
a board it can't measure. */
.seq-step-explain{
position:fixed;bottom:calc(12% + 64px);left:50%;transform:translateX(-50%);
z-index:403;max-width:340px;width:90%;text-align:center;
background:rgba(26,26,42,.9);color:#fff;border-radius:14px;padding:9px 18px;
font-family:'Fredoka One',cursive;font-size:14px;
}
/* Next and Auto ride together in SHIP's vacated slot, so the row is what gets
positioned and the buttons themselves lay out inside it. */
.seq-step-controls{
position:fixed;left:50%;top:88%;transform:translate(-50%,-50%);
z-index:404;display:flex;align-items:center;gap:12px;
}
/* Carries SHIP's lime: it is the button standing in SHIP's place mid-scan. */
.seq-step-btn{
padding:11px 34px;cursor:pointer;white-space:nowrap;
background:#d2f886;color:#1a1a2a;font-family:'Fredoka One',cursive;font-size:17px;
border-radius:14px;border:3px solid #1a1a2a;box-shadow:0 5px 0 #7fa844;
transition:transform .09s ease-out,box-shadow .09s ease-out;
}
.seq-step-btn:hover {transform:translateY(-2px);box-shadow:0 7px 0 #7fa844;}
.seq-step-btn:active{transform:translateY(4px);box-shadow:0 1px 0 #7fa844;}
/* Auto sits beside Next in the overlay's slate, and lights up in the same gold
the multiplier badges use while it is the one driving the scan. */
.seq-auto-btn{
padding:11px 22px;cursor:pointer;white-space:nowrap;
background:#3a4a68;color:#fff;font-family:'Fredoka One',cursive;font-size:17px;
border-radius:14px;border:3px solid #1a1a2a;box-shadow:0 5px 0 #1a2436;
transition:transform .09s ease-out,box-shadow .09s ease-out,background .12s,color .12s;
}
.seq-auto-btn:hover {transform:translateY(-2px);box-shadow:0 7px 0 #1a2436;}
.seq-auto-btn:active{transform:translateY(4px);box-shadow:0 1px 0 #1a2436;}
.seq-auto-btn.on{background:#f5c200;color:#1a1a2a;box-shadow:0 5px 0 #a08000;}
.seq-auto-btn.on:hover {box-shadow:0 7px 0 #a08000;}
.seq-auto-btn.on:active{box-shadow:0 1px 0 #a08000;}
/* ── Feature 3: purrfect streak + near-miss callouts ── */
@keyframes streak-callout-in{
0%{opacity:0;transform:translateX(-50%) scale(.4) rotate(-6deg);}
60%{opacity:1;transform:translateX(-50%) scale(1.08) rotate(-3deg);}
100%{opacity:1;transform:translateX(-50%) scale(1) rotate(-3deg);}
}
@keyframes streak-callout-shimmer{
0%,100%{filter:brightness(1);}
50%{filter:brightness(1.3);}
}
.streak-callout{
position:fixed;top:20%;left:50%;transform:translateX(-50%) scale(.4) rotate(-6deg);
font-family:'Fredoka One',cursive;font-size:30px;color:#fff;letter-spacing:1px;
background:linear-gradient(135deg,#f5c200,#f57c35);
border:3px solid #1a1a2a;border-radius:16px;padding:10px 26px;
box-shadow:0 6px 0 #a05010,4px 4px 0 #1a1a2a;
opacity:0;z-index:406;white-space:nowrap;pointer-events:none;
}
.streak-callout.show{animation:streak-callout-in .4s cubic-bezier(.175,.885,.32,1.275) forwards,streak-callout-shimmer .9s ease-in-out .4s infinite;}
.near-miss-callout{
position:fixed;top:22%;left:50%;transform:translateX(-50%) scale(.5);
font-family:'Fredoka One',cursive;font-size:19px;color:#fff;
background:#3a4a68;border:3px solid #1a1a2a;border-radius:14px;padding:9px 22px;
box-shadow:0 5px 0 #1a2436,4px 4px 0 #1a1a2a;
opacity:0;z-index:406;white-space:nowrap;pointer-events:none;
transition:transform .3s cubic-bezier(.175,.885,.32,1.275),opacity .3s ease;
}
.near-miss-callout.show{opacity:1;transform:translateX(-50%) scale(1);}
/* ── Treat loss ceremony toasts (js/treat-loss.js) ──
Same marker-on-card language as the streak/near-miss callouts above:
Fredoka One, thick ink border, hard offset shadow, slight sticker tilt.
Container never blocks input; each toast re-enables clicks for itself. */
#treat-loss-toasts{
position:fixed;top:14px;right:14px;z-index:9600;
display:flex;flex-direction:column;align-items:flex-end;gap:9px;
pointer-events:none;
}
.treat-loss-toast{
display:flex;align-items:center;gap:10px;max-width:300px;
background:#3a4a68;color:#fff;
font-family:'Fredoka One',cursive;font-size:13px;letter-spacing:.3px;line-height:1.3;
border:3px solid #1a1a2a;border-radius:14px;padding:9px 15px 9px 11px;
box-shadow:0 5px 0 #1a2436,4px 4px 0 #1a1a2a;
opacity:0;transform:translateX(30px) rotate(2deg) scale(.85);
transition:transform .32s cubic-bezier(.175,.885,.32,1.275),opacity .28s ease;
pointer-events:auto;cursor:pointer;
}
.treat-loss-toast.show{opacity:1;transform:translateX(0) rotate(-1.2deg) scale(1);}
.treat-loss-toast:nth-child(even).show{transform:translateX(0) rotate(.8deg) scale(1);}
#treat-loss-toasts .treat-loss-toast.tl-hide{opacity:0;transform:translateX(30px) scale(.85);}
.treat-loss-toast.tl-destroyed{background:#a8443c;box-shadow:0 5px 0 #571d18,4px 4px 0 #1a1a2a;}
.treat-loss-toast.tl-no-room{background:#b5892f;box-shadow:0 5px 0 #63480f,4px 4px 0 #1a1a2a;}
.treat-loss-toast .tl-icon{font-size:22px;line-height:1;filter:drop-shadow(1px 2px 0 rgba(0,0,0,.28));}
.treat-loss-toast .tl-text{flex:1;}
/* ── PURRFECT FIT celebration ── */
.purrfect-fit-overlay{position:fixed;inset:0;z-index:500;pointer-events:none;display:flex;align-items:center;justify-content:center;}
.purrfect-fit-text{
font-family:'Fredoka One',cursive;font-size:clamp(36px,10vw,64px);
color:#fff;text-align:center;
text-shadow:0 0 20px rgba(245,194,0,.9),0 0 60px rgba(245,120,40,.6),0 4px 0 #c07810,0 6px 0 rgba(0,0,0,.3);
letter-spacing:3px;
opacity:0;transform:scale(.3) translateY(40px);
animation:purrfect-pop .6s cubic-bezier(.175,.885,.32,1.275) forwards,purrfect-float 1.8s ease-out .5s forwards,purrfect-shimmer 1.2s ease-in-out .2s infinite;
}
@keyframes purrfect-pop{to{opacity:1;transform:scale(1) translateY(0);}}
@keyframes purrfect-float{to{opacity:0;transform:scale(1.1) translateY(-60px);}}
@keyframes purrfect-shimmer{
0%,100%{filter:brightness(1) drop-shadow(0 0 8px rgba(245,194,0,.5));}
50%{filter:brightness(1.3) drop-shadow(0 0 20px rgba(245,194,0,.9));}
}
.cell.board-full-glow{
animation:cell-glow .5s ease-out forwards;
}
@keyframes cell-glow{
0%{box-shadow:inset 0 0 0 0 rgba(245,194,0,0);}
50%{box-shadow:inset 0 0 14px 4px rgba(245,194,0,.6),0 0 12px 2px rgba(245,194,0,.4);}
100%{box-shadow:inset 0 0 6px 1px rgba(245,194,0,.15),0 0 4px 1px rgba(245,194,0,.1);}
}
.purrfect-sparkle{
position:fixed;pointer-events:none;z-index:501;
width:8px;height:8px;border-radius:50%;
background:radial-gradient(circle,#fff 0%,#f5c200 60%,transparent 100%);
opacity:0;animation:sparkle-fly 1s ease-out forwards;
}
@keyframes sparkle-fly{
0%{opacity:1;transform:scale(0);}
30%{opacity:1;transform:scale(1);}
100%{opacity:0;transform:scale(0) translateY(-80px);}
}
.ost{display:flex;justify-content:center;gap:20px;margin-bottom:14px;}
.os .v{font-family:'Fredoka One',cursive;font-size:24px;color:var(--tx);}
.os .l{font-size:9px;color:var(--mu);text-transform:uppercase;font-weight:800;}
.bok{margin-top:12px;display:inline-block;padding:10px 28px;cursor:pointer;background:#5a85d5;color:#fff;font-family:'Fredoka One',cursive;font-size:15px;border-radius:14px;border:3px solid #1a1a2a;box-shadow:0 4px 0 #2a4090;transition:all .12s;}
.bok:hover{transform:translateY(-2px);box-shadow:0 6px 0 #2a4090;}
.bok:active{transform:translateY(2px);box-shadow:0 1px 0 #2a4090;}
.bok.re{background:#d04545;color:#fff;box-shadow:0 4px 0 #902020;border-color:#1a1a2a;}
.bok.or{background:#f5a820;color:#1a1a2a;box-shadow:0 4px 0 #c07810;border-color:#1a1a2a;}
/* ════ ROUNDS SCREEN ════ */
#s-rounds{flex-direction:column;align-items:stretch;position:relative;overflow:hidden;background:#6a7d95;}
.sp-body{display:flex;flex-direction:row;flex:1;overflow:hidden;justify-content:center;gap:20px;padding:0 24px 24px;}
.rds-bg{position:absolute;inset:0;background:linear-gradient(135deg,#6a7d95 0%,#bbc0c9 50%,#5a6d80 100%);}
.rds-bg::after{content:'';position:absolute;inset:0;
background:repeating-linear-gradient(45deg,transparent,transparent 40px,rgba(255,255,255,.012) 40px,rgba(255,255,255,.012) 41px);}
.rds-content{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:28px;width:100%;max-width:860px;padding:32px 24px;}
.rds-topbar{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;}
.rds-title{font-family:'Fredoka One',cursive;font-size:13px;color:rgba(255,255,255,.5);letter-spacing:4px;text-transform:uppercase;}
.rds-btn-exit{padding:7px 16px;border:2.5px solid rgba(255,255,255,.4);cursor:pointer;background:rgba(255,255,255,.15);color:#fff;font-family:'Fredoka One',cursive;font-size:12px;border-radius:50px;transition:all .12s;letter-spacing:.5px;}
.rds-btn-exit:hover{background:rgba(255,255,255,.25);color:#fff;transform:translateY(-1px);}
.rds-cash-badge{display:flex;align-items:center;gap:8px;background:#f5a820;color:#1a1a2a;
border-radius:12px;padding:7px 18px;font-family:'Fredoka One',cursive;font-size:20px;
border:2.5px solid #1a1a2a;box-shadow:0 4px 0 #c07810;}
.rds-coin{font-size:20px;}
.rds-rounds-track{display:flex;align-items:center;gap:0;width:100%;justify-content:center;}
.rds-round-item{display:flex;flex-direction:column;align-items:center;gap:8px;position:relative;}
.rds-connector{width:32px;height:3px;background:rgba(255,255,255,.2);flex-shrink:0;margin-top:-20px;}
.rds-connector.done{background:#5ab855;}
.rr-bubble{
width:64px;height:64px;border-radius:50%;display:flex;flex-direction:column;align-items:center;
justify-content:center;border:3px solid rgba(255,255,255,.2);
font-family:'Fredoka One',cursive;transition:all .2s;
}
.rr-bubble.past{background:rgba(255,255,255,.15);border-color:#5ab855;opacity:.7;}
.rr-bubble.current{
width:88px;height:88px;background:#f5c200;border-color:#1a1a2a;border-width:3px;
box-shadow:0 0 0 5px rgba(245,194,0,.3),3px 3px 0 #1a1a2a;
animation:pulse 2s ease-in-out infinite;
}
@keyframes pulse{0%,100%{box-shadow:0 0 0 5px rgba(245,194,0,.3),3px 3px 0 #1a1a2a}50%{box-shadow:0 0 0 10px rgba(245,194,0,.15),3px 3px 0 #1a1a2a}}
.rr-bubble.future{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.15);opacity:.55;}
.rr-num{font-family:'Fredoka One',cursive;font-size:22px;color:#1a1a2a;line-height:1;}
.rr-cat{font-size:18px;line-height:1;}
.rr-lbl{font-size:9px;font-weight:800;color:rgba(255,255,255,.65);letter-spacing:1px;text-transform:uppercase;}
.rr-tgt{font-size:9px;color:rgba(255,255,255,.5);margin-top:2px;}
.rr-lbl.current-lbl{color:#f5c200;font-size:11px;}
.rds-actions{display:flex;gap:16px;align-items:center;}
.rds-pip-row{display:flex;gap:8px;align-items:center;justify-content:center;}
.rds-pip{width:12px;height:12px;border-radius:50%;background:rgba(255,255,255,.2);transition:all .2s;cursor:default;}
.rds-pip.done{background:#5ab855;}
.rds-pip.cur{width:20px;height:20px;background:#f5c200;box-shadow:0 0 0 4px rgba(245,194,0,.3);}
.rds-round-card{background:#fff;border-radius:20px;padding:32px 48px;text-align:center;border:3px solid #1a1a2a;box-shadow:5px 5px 0 #1a1a2a;}
.rds-rc-label{font-family:'Fredoka One',cursive;font-size:11px;color:#7a8090;letter-spacing:4px;text-transform:uppercase;margin-bottom:2px;}
.rds-rc-num{font-family:'Fredoka One',cursive;font-size:72px;line-height:1;color:#1a1a2a;text-shadow:3px 3px 0 rgba(0,0,0,.1);}
.rds-rc-stats{display:flex;align-items:center;justify-content:center;gap:0;margin-top:16px;}
.rds-rc-stat{padding:0 20px;text-align:center;}
.rds-rc-div{width:1px;height:32px;background:rgba(0,0,0,.12);}
.rds-rc-sv{font-family:'Fredoka One',cursive;font-size:22px;color:#f5a820;}
.rds-rc-sl{font-size:10px;color:#7a8090;text-transform:uppercase;letter-spacing:1px;margin-top:2px;}
/* Live purrfect (board-fill) per-cell bonus chip under the round stats */
.rds-purrfect{font-family:'Fredoka One',cursive;font-size:12px;color:#c07810;background:#fff4d8;border:2px solid #f0c060;border-radius:10px;padding:4px 12px;margin-top:14px;display:inline-block;letter-spacing:.4px;}
.rds-mod-card{display:flex;align-items:center;gap:10px;background:#2d1b69;border-radius:16px;padding:10px 16px;border:2.5px solid #1a1a2a;box-shadow:3px 3px 0 #1a1a2a;max-width:280px;}
.rds-mod-em{font-size:28px;line-height:1;flex-shrink:0;}
.rds-mod-body{display:flex;flex-direction:column;gap:2px;text-align:left;}
.rds-mod-name{font-family:'Fredoka One',cursive;font-size:13px;color:#fff;letter-spacing:.5px;}
.rds-mod-desc{font-size:10px;color:rgba(255,255,255,.75);font-style:italic;line-height:1.3;}
.rds-shop-col{display:flex;flex-direction:column;align-items:center;gap:6px;}
.rds-btn-shop{
padding:12px 26px;cursor:pointer;
background:rgba(255,255,255,.2);color:#fff;
font-family:'Fredoka One',cursive;font-size:15px;border-radius:14px;
border:2.5px solid rgba(255,255,255,.5);transition:all .12s;letter-spacing:.5px;
}
.rds-btn-shop:hover{background:rgba(255,255,255,.3);transform:translateY(-2px);}
.rds-btn-play{
padding:14px 36px;border:3px solid #1a1a2a;cursor:pointer;
background:#5ab855;color:#fff;
font-family:'Fredoka One',cursive;font-size:20px;border-radius:16px;
box-shadow:0 5px 0 #3a8030;
transition:all .12s;letter-spacing:1px;
}
.rds-btn-play:hover{transform:translateY(-2px);box-shadow:0 7px 0 #3a8030;}
.rds-btn-play:active{transform:translateY(2px);box-shadow:0 2px 0 #3a8030;}
.rds-hint{font-size:11px;color:rgba(255,255,255,.5);font-style:italic;text-align:center;}
.shop-warn-tip{
position:fixed;z-index:9999;pointer-events:none;
background:#f5a820;color:#1a1a2a;border-radius:12px;padding:7px 16px;
font-family:'Fredoka One',cursive;font-size:13px;letter-spacing:.5px;
border:2px solid #1a1a2a;box-shadow:0 3px 0 #c07810;
opacity:0;transition:opacity .2s,transform .2s;
transform:translateX(-50%) translateY(4px);
white-space:nowrap;
}
.shop-warn-tip.show{opacity:1;transform:translateX(-50%) translateY(0);}
.rr-info-block{display:flex;flex-direction:row;align-items:stretch;gap:10px;margin-top:12px;}
.rr-stat{display:flex;flex-direction:column;align-items:center;gap:3px;}
.rr-info-tgt{
font-family:'Fredoka One',cursive;font-size:22px;color:#1a1a2a;
background:rgba(255,255,255,.88);border-radius:12px;padding:8px 20px;
border:2px solid rgba(0,0,0,.2);letter-spacing:.5px;line-height:1.1;
}
.rr-info-tgt-lbl{font-size:8px;font-weight:800;letter-spacing:2px;color:rgba(255,255,255,.6);text-transform:uppercase;}
.rr-info-earn{
font-family:'Fredoka One',cursive;font-size:22px;color:#1a1a2a;
background:#f5c200;border-radius:12px;padding:8px 20px;
border:2px solid #1a1a2a;box-shadow:0 3px 0 #a08000;line-height:1.1;
}
.rr-info-earn-lbl{font-size:8px;font-weight:800;letter-spacing:2px;color:rgba(255,255,255,.5);text-transform:uppercase;}
.rr-stat-row{display:flex;gap:10px;align-items:stretch;}
/* left panel */
.sp-left{
flex:0 0 auto;width:280px;display:flex;flex-direction:column;
align-items:center;gap:14px;padding:10px 0;
}
/* ════════ PET SHOP / round prep (deck page 6) ════════
Same furniture as the board screen — branch tab, day tag, paw, navy plate —
with the inventory in the middle and the treat shelf down the right. The
treat cards, backpack grid and sell list are still rendered by js/shop.js
into #treats-row, #shop-bpg and #shop-bp-list. */
#s-rounds{
flex-direction:row;align-items:center;justify-content:center;padding:0;
background:#53535f;overflow:hidden;
cursor:url('assets/ui/cursor-arrow.svg') 2 2, auto;
}
#s-rounds::before{
content:'';position:absolute;inset:0;z-index:0;
background:url('assets/ui/bg-floor.png') center/cover no-repeat;
}
.ps-stage>*{position:absolute;}
.ps-hidden{display:none;}
.ps-branch{left:4.1%;top:-1.4%;width:11.5%;height:5.6%;display:flex;align-items:flex-end;justify-content:center;
padding-bottom:.4cqw;background:#fcfafa;border:0.17cqw solid #1b1a24;border-radius:0 0 1cqw 1cqw;
font-family:'Bobby Jones Soft',cursive;font-size:1.8cqw;color:#8f6d59;}
.ps-day{left:14.9%;top:-2.2%;width:6.4%;height:9.6%;display:flex;flex-direction:column;
align-items:center;justify-content:flex-end;padding-bottom:.5cqw;gap:.1cqw;
background:#f6e379;border:0.17cqw solid #1b1a24;border-radius:0 0 1cqw 1cqw;
font-family:'Bobby Jones Soft',cursive;color:#1b1a24;line-height:1;}
.ps-day-d{font-size:1.05cqw;}
.ps-day-n{font-family:'Lazydog',cursive;font-size:2.2cqw;}
.ps-day-n small{font-family:'Bobby Jones Soft',cursive;font-size:1.05cqw;}
.ps-cash{right:3.5%;top:3.2%;height:5.2%;display:flex;align-items:center;gap:.4cqw;padding:0 1.4cqw 0 .35cqw;
background:#fcfafa;border:0.17cqw solid #1b1a24;border-radius:99px;
font-family:'Lazydog',cursive;font-size:1.9cqw;color:#1b1a24;}
.ps-cash img{height:150%;margin-left:-1.1cqw;}
.ps-paw{left:2.4%;top:11.2%;width:4.1%;height:6.7%;padding:0;cursor:inherit;
background:#f6e379;border:0.17cqw solid #17151c;border-radius:.9cqw;
box-shadow:0 0 0 0.17cqw #fdfcff, 0 .6cqw 0 #262229;overflow:hidden;
transition:transform .09s ease-out, box-shadow .09s ease-out;}
.ps-paw:hover {transform:translateY(-0.2cqw);box-shadow:0 0 0 0.17cqw #fdfcff, 0 .8cqw 0 #262229;}
.ps-paw:active{transform:translateY(0.4cqw);box-shadow:0 0 0 0.17cqw #fdfcff, 0 .2cqw 0 #262229;}
.ps-paw img{position:absolute;left:50%;top:48%;width:52%;transform:translate(-50%,-50%) rotate(-31.8deg);}
.ps-plate{left:4.4%;top:13.5%;width:18.5%;height:22.5%;background:#404461;
border:0.17cqw solid #1b1a24;border-radius:1.4cqw;}
.ps-plate-card{left:6.9%;top:12.0%;width:21.3%;height:13.7%;background:#fcfafa;
border:0.17cqw solid #1b1a24;border-radius:1.2cqw;box-shadow:0 0 0 0.17cqw #fdfcff;
display:flex;align-items:center;justify-content:center;
font-family:'Bobby Jones Soft',cursive;font-size:3.4cqw;color:#1b1a24;}
.ps-plate-flav{left:6.2%;top:31.0%;width:15.5%;line-height:1.15;
font-family:'Providence Sans',cursive;font-size:1.1cqw;color:rgba(255,255,255,.62);}
.ps-invtab{left:34.2%;top:12.45%;width:14.35%;height:5.37%;display:flex;align-items:center;justify-content:center;
background:#fcfafa;border:0.17cqw solid #1b1a24;border-radius:.9cqw;
font-family:'Bobby Jones Soft',cursive;font-size:1.5cqw;color:#1b1a24;letter-spacing:.03em;}
.ps-inv{left:32.9%;top:13.43%;width:30.29%;height:63.49%;background:rgba(26,22,46,.15);
border:0.17cqw solid rgba(255,255,255,.20);border-radius:1.4cqw;}
.ps-invcard{position:absolute;left:4.3%;top:6.5%;width:92.1%;height:70%;
background:#d1d0d8;border:0.17cqw solid rgba(255,255,255,.55);border-radius:1cqw;
display:flex;align-items:center;justify-content:center;padding:.55cqw;}
/* ── INVENTORY GRID — shared by the pet shop and the game scene ────────────
The two screens show the SAME bag, so they must render identically. Cell
size comes from bpFitCellSize() (js/backpack.js), measured off the card, so
the grid fills its card on both screens; everything below is chrome and is
deliberately written once for both. Keep them together — the game scene used
to carry its own copy of these rules and quietly drifted (hairline 1px
borders, white rims on filled cells, washed-out drop previews). */
.ps-stage .sp-bpg,.gm-stage .bpg{width:100%;height:100%;display:grid!important;gap:.6cqw;
background:transparent;padding:0;border-radius:0;place-content:center;}
.ps-stage .sp-bpc,.gm-stage .bpc{min-width:0;min-height:0;cursor:inherit;
display:flex;align-items:center;justify-content:center;font-size:1.6cqw;line-height:1;
background:rgba(255,255,255,.62);border:0.12cqw solid rgba(255,255,255,.85);border-radius:.5cqw;
transition:background .08s, border-color .08s;}
.ps-stage .sp-bpc.ft,.gm-stage .bpc.ft{border-color:rgba(20,18,28,.28);}
/* placement preview while a treat is in hand — !important because the renderer
writes an inline background on filled cells. */
.ps-stage .sp-bpc.ok ,.gm-stage .bpc.ok {background:rgba(122,196,96,.92)!important;border-color:#4f8f3f!important;}
.ps-stage .sp-bpc.bad,.gm-stage .bpc.bad{background:rgba(216,104,100,.92)!important;border-color:#a8443f!important;}
.ps-stage .sp-bpc.sel-t,.gm-stage .bpc.sel-t{outline:0.28cqw solid #f5c200;outline-offset:0.12cqw;}
.ps-deck{left:50.2%;top:10.4%;display:flex;align-items:flex-end;gap:.2cqw;}
.ps-deck img{height:3.4cqw;}
.ps-deck-col{display:flex;flex-direction:column;align-items:center;margin-left:-1.2cqw;}
.ps-deck-lbl{font-family:'Bobby Jones Soft',cursive;font-size:1.05cqw;color:#f0eef4;}
.ps-deck-n{padding:.1cqw 1.1cqw;background:#eeb84b;border:0.17cqw solid #1b1a24;
border-radius:.7cqw;font-family:'Lazydog',cursive;font-size:1.9cqw;color:#1b1a24;}
.ps-sell{left:39.5%;top:66.8%;width:17%;height:5.6%;cursor:inherit;
display:flex;align-items:center;justify-content:center;
background:#e3695e;border:0.17cqw solid #17151c;border-radius:.9cqw;
box-shadow:0 0 0 0.17cqw #fdfcff, 0 .7cqw 0 #262229;
font-family:'Lazydog',cursive;font-size:1.9cqw;color:#1b1a24;
transition:transform .09s ease-out, box-shadow .09s ease-out, background .12s;}
/* lights up while a treat is in hand, so the drop target is obvious */
.ps-sell #ps-sell-lbl{display:flex;align-items:center;gap:.3cqw;}
.ps-sell img{height:2.6cqw;margin:-.6cqw 0;}
.ps-sell.armed{background:#d2f886;transform:translateY(-0.25cqw);
box-shadow:0 0 0 0.17cqw #fdfcff, 0 .95cqw 0 #262229;}
/* hovering the plate with a treat in hand: the drop is live, say so loudly */
.ps-sell.armed.over{background:#b6f24e;transform:translateY(-0.55cqw) scale(1.05);
box-shadow:0 0 0 0.3cqw #fdfcff, 0 1.25cqw 0 #262229;}
.ps-sell.armed.over::after{content:'DROP TO SELL';position:absolute;left:0;right:0;bottom:-2.4cqw;
text-align:center;font-family:'Bobby Jones Soft',cursive;font-size:1.15cqw;color:#d2f886;}
.ps-shelf-lbl{left:69%;top:10.5%;width:24%;text-align:center;
font-family:'Bobby Jones Soft',cursive;font-size:1.5cqw;color:#f0eef4;}
.ps-shelf{left:69%;top:17%;width:22%;height:64%;display:flex;flex-direction:column;gap:3.6cqw;}
.ps-bplist{display:none;}
.ps-work{left:6.6%;top:83.0%;width:10.4%;height:7.6%;cursor:inherit;padding:0;
background:#d2f886;border:0.17cqw solid #17151c;border-radius:1cqw;
box-shadow:0 0 0 0.17cqw #fdfcff, 0 .9cqw 0 #262229;
transition:transform .09s ease-out, box-shadow .09s ease-out;}
.ps-work:hover {transform:translateY(-0.2cqw);box-shadow:0 0 0 0.17cqw #fdfcff, 0 1.1cqw 0 #262229;}
.ps-work:active{transform:translateY(0.7cqw);box-shadow:0 0 0 0.17cqw #fdfcff, 0 .2cqw 0 #262229;}
.ps-work span{font-family:'Lazydog',cursive;font-size:2.7cqw;color:#17151c;
-webkit-text-stroke:.1em #fdfcff;paint-order:stroke fill;
filter:drop-shadow(.05em .09em 0 rgba(20,18,28,.35));display:inline-block;}
.ps-restock{left:78.2%;top:91.7%;height:4.3%;padding:0 .8cqw;cursor:inherit;
display:flex;align-items:center;gap:.4cqw;
background:#e3695e;border:0.17cqw solid #17151c;border-radius:.8cqw;box-shadow:0 .5cqw 0 #262229;
font-family:'Bobby Jones Soft',cursive;font-size:1.4cqw;color:#1b1a24;}
.ps-restock span{font-family:'Lazydog',cursive;font-size:1.8cqw;}
.ps-restock img{height:2.4cqw;}
.ps-restock:active{transform:translateY(.35cqw);box-shadow:0 .15cqw 0 #262229;}
/* treat cards on the shelf — js/shop.js renders .tc cards into .ps-shelf */
.ps-stage .tc{position:relative;width:100%;flex:1 1 0;min-height:0;background:#fcfafa;
border:0.17cqw solid #1b1a24;border-radius:1.1cqw;box-shadow:0 0 0 0.17cqw #fdfcff;
display:flex;align-items:center;justify-content:center;cursor:inherit;padding:1cqw;gap:.4cqw;
transition:transform .1s ease-out;}
.ps-stage .tc:hover{transform:translateY(-0.3cqw);}
.ps-stage .tc-em{display:none;}
.ps-stage .tc-info{position:static;display:contents;}
.ps-stage .tc-nm{position:absolute;left:.8cqw;top:-1.1cqw;background:#5b608c;
border:0.17cqw solid #1b1a24;border-radius:.6cqw;padding:.1cqw .6cqw;
font-family:'Bobby Jones Soft',cursive;font-size:1.15cqw;color:#fdfcff;white-space:nowrap;z-index:2;}
/* the deck's card shows only the shape, a name tab and a cost tag */
.ps-stage .tc-info>*{display:none;}
.ps-stage .tc-info>.tc-nm{display:block;}
/* The shape art is one silhouette painted by js/piece.js (paintShapePreview).
It keeps this block's old cqw sizing — the constants moved into shop.js
(SHOP_SHAPE_CELL / SHOP_SHAPE_GAP) because the painter positions each cell
itself; what went away is the grid of separate tiles it used to draw. */
.ps-stage .tc-shape{display:flex;align-items:center;justify-content:center;}
.ps-stage .tc-price{position:absolute;right:-2.4cqw;top:1.2cqw;min-width:4.4cqw;
display:flex;flex-direction:column;align-items:center;justify-content:center;
background:#d2f886;border:0.17cqw solid #1b1a24;border-radius:.8cqw;padding:.25cqw .5cqw;
box-shadow:0 .45cqw 0 #262229;
font-family:'Lazydog',cursive;font-size:2cqw;color:#1b1a24;z-index:2;line-height:1;}
.ps-stage .tc-price::after{content:'COST';font-family:'Bobby Jones Soft',cursive;font-size:.95cqw;margin-top:.1cqw;}
.ps-stage .tc-price.sold{background:#e3695e;}
/* the shelf card's fine print — js/shop.js hangs this strip off the bottom edge
whenever the sheet gives a treat a Requirement or an Additional Effect. It is
the hover card's chip language shrunk to the shelf: amber + ⚠ for the gate
the fit has to clear (LAST HAND only, PURRFECT FIT!), pale grey for the
mechanic footnote (TRIGGERS after 3 use, 1 in 2 chance REAPPEAR).
Deliberately ONE nowrap row. There is no room inside the card — a 3-cell
shape already fills it top to bottom — so the strip lives in the shelf's
3.6cqw gap, and a second row would reach the next card's name tab. Space is
rationed the way the words matter: the REQUIREMENT never gives up a pixel
(flex-shrink:0, capped at the strip width so it ellipses instead of
overflowing), and the footnote shrinks — to nothing if it has to — out of
the way. Both read in full in the hover card either way. A treat with
neither field gets no element at all, so its card is untouched. */
.ps-stage .tc-tags{
position:absolute;left:.7cqw;right:.7cqw;bottom:-1.05cqw;z-index:2;
display:flex;flex-wrap:nowrap;justify-content:flex-end;align-items:center;
gap:.35cqw;overflow:hidden;pointer-events:none;}
.ps-stage .tc-tag{
min-width:0;padding:.05cqw .5cqw .2cqw;
background:#eeb84b;border:0.17cqw solid #1b1a24;border-radius:.6cqw;
box-shadow:0 .3cqw 0 #262229;
font-family:'Bobby Jones Soft',cursive;font-size:.9cqw;line-height:1.35;
letter-spacing:.02em;text-transform:uppercase;color:#1b1a24;
white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ps-stage .tc-tag.req{flex:0 0 auto;max-width:100%;}
.ps-stage .tc-tag.req::before{content:'⚠ ';}
.ps-stage .tc-tag.note{flex:0 1 auto;background:#efedf3;color:#57525f;
border-color:rgba(27,26,36,.6);text-transform:none;}
.ps-stage .tc-tag .tl-mul{color:#8f3c02;}
.ps-stage .tc-tag .tl-add{color:#1e357a;}
/* ── hover card (#board-tip) ────────────────────────────────────────────
The deck's own card language shrunk to something that follows the cursor:
a periwinkle name tab tucked behind a white effect pill, with the yellow
modifier tags (the same chip the calendar stamps a deadline with) hung off
the bottom-right for the requirement and any additional effect.
Operators carry the meaning, so the card reads before the words do:
ORANGE multiplies, BLUE adds. Everything scales off --tls; .tip-lg is the
shop shelf's larger read, since that stage is sized in cqw and sits far
from the cursor. One builder in js/render.js fills all of it — board,
backpack, shop backpack and shop shelf. */
#board-tip{
--tls:1;
position:fixed;display:none;z-index:9990;pointer-events:none;
color:#1b1a24;font-family:'Providence Sans','Nunito',sans-serif;
padding:0 calc(16px * var(--tls)) calc(8px * var(--tls)) 0;
filter:drop-shadow(0 5px 12px rgba(26,26,42,.3));
}
#board-tip.tip-lg{--tls:1.32;}
/* name tab — sits behind the pill, its bottom edge covered by it */
.tl-nm{
position:relative;z-index:1;display:inline-block;
margin:0 0 calc(-7px * var(--tls)) calc(13px * var(--tls));
padding:calc(3px * var(--tls)) calc(11px * var(--tls)) calc(9px * var(--tls));
background:#7779a6;border:calc(2.5px * var(--tls)) solid #1b1a24;
border-radius:calc(9px * var(--tls)) calc(9px * var(--tls)) 0 0;
font-family:'Bobby Jones Soft',cursive;font-size:calc(14px * var(--tls));
line-height:1.1;letter-spacing:.03em;color:#fdfcff;white-space:nowrap;
}
.tl-nm.cat{background:#5a85d5;}
/* the effect pill */
.tl-body{
position:relative;z-index:2;
max-width:calc(272px * var(--tls));
padding:calc(9px * var(--tls)) calc(14px * var(--tls));
background:#fdfcff;border:calc(2.5px * var(--tls)) solid #1b1a24;
border-radius:calc(13px * var(--tls));box-shadow:0 calc(4px * var(--tls)) 0 #1b1a24;
}
/* leave a gutter for the chips to sit in, so they overlap the pill rather
than dangle off the bottom of it */
.tl-body.has-tags{padding-bottom:calc(18px * var(--tls));}
.tl-ef{font-family:'Lazydog',cursive;font-size:calc(16px * var(--tls));line-height:1.3;}
.tl-sub{
font-family:'Bobby Jones Soft',cursive;font-size:calc(11px * var(--tls));
line-height:1.2;letter-spacing:.02em;color:#7a7480;margin-top:calc(4px * var(--tls));
}
/* live running value ("NOW ×1.7") for treats that grow as they trigger */
.tl-now{
display:flex;align-items:baseline;gap:calc(5px * var(--tls));
margin-top:calc(5px * var(--tls));padding-top:calc(5px * var(--tls));
border-top:calc(2px * var(--tls)) dashed #ddd8e2;
font-family:'Lazydog',cursive;font-size:calc(15px * var(--tls));line-height:1.1;
}
.tl-now b{font-family:'Bobby Jones Soft',cursive;font-size:calc(10.5px * var(--tls));
letter-spacing:.08em;color:#7a7480;font-weight:normal;}
/* requirement + additional-effect chips, overhanging the pill */
.tl-tags{
position:relative;z-index:3;display:flex;flex-wrap:wrap;
justify-content:flex-end;align-items:flex-start;gap:calc(5px * var(--tls));
max-width:calc(258px * var(--tls));
margin:calc(-18px * var(--tls)) calc(-16px * var(--tls)) 0 auto;
}
.tl-tag{
padding:calc(4px * var(--tls)) calc(9px * var(--tls)) calc(5px * var(--tls));
background:#eeb84b;border:calc(2.5px * var(--tls)) solid #1b1a24;
border-radius:calc(10px * var(--tls));box-shadow:0 calc(4px * var(--tls)) 0 #1b1a24;
font-family:'Bobby Jones Soft',cursive;font-size:calc(11.5px * var(--tls));
line-height:1.2;letter-spacing:.02em;text-transform:uppercase;color:#1b1a24;
}
/* The two chips are not the same kind of thing, so they no longer look alike.
`.req` is a GATE — a condition the fit has to meet or the treat pays nothing;
it keeps the loud amber and gets a ⚠. `.note` is a mechanic footnote (a
REAPPEAR flip, a charge-up, a decay) — same chip, drained of colour, so the
eye lands on the requirement first. Order matters below: .bad's ✗ has the
same specificity as .req's ⚠ and has to come after it to win. */
.tl-tag.req::before{content:'⚠ ';}
.tl-tag.note{background:#efedf3;color:#57525f;text-transform:none;}
/* a requirement the board can't currently satisfy */
.tl-tag.bad{background:#e3695e;color:#fdfcff;}
.tl-tag.bad::before{content:'✗ ';}
/* × multiplies, + adds — the one colour rule the whole card runs on */
.tl-mul{color:#ee7420;}
.tl-add{color:#2f5ecb;}
.tl-tag .tl-mul{color:#8f3c02;}
.tl-tag .tl-add{color:#1e357a;}
.tl-tag.bad .tl-mul,.tl-tag.bad .tl-add{color:#fff4d8;}
.ps-stage .tc-dis{opacity:.92;}
/* A bought treat keeps its card on the shelf, stamped SOLD, instead of
vanishing — the shelf never reflows under the player's cursor mid-visit.
The card goes flat and grey so the two treats still for sale keep the eye. */
.ps-stage .tc-bought{background:#e8e5e8;}
.ps-stage .tc-bought:hover{transform:none;}
.ps-stage .tc-bought .tc-shape,
.ps-stage .tc-bought .tc-nm,
.ps-stage .tc-bought .tc-tags,
.ps-stage .tc-bought .tc-price{filter:grayscale(1);opacity:.42;}
.ps-stage .tc-stamp{position:absolute;left:50%;top:50%;z-index:3;pointer-events:none;
transform:translate(-50%,-50%) rotate(-11deg);padding:.1cqw 1.4cqw .35cqw;
background:rgba(252,250,250,.82);border:.3cqw solid #e3695e;border-radius:.8cqw;
box-shadow:0 0 0 .17cqw rgba(252,250,250,.95);