-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
716 lines (664 loc) · 36.7 KB
/
styles.css
File metadata and controls
716 lines (664 loc) · 36.7 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
/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
--bg: #100d0a;
--bg2: #140f0c;
--panel-l: rgba(18,13,10,0.96);
--panel-r: rgba(14,10,8,0.94);
--surface: rgba(255,255,255,0.032);
--surface-h: rgba(255,255,255,0.06);
--border: rgba(255,255,255,0.065);
--border-h: rgba(210,140,60,0.4);
--amber: #e8a043;
--amber-dim: #b5732a;
--amber-glow: rgba(232,160,67,0.15);
--gold: #f0c060;
--gold-soft: rgba(240,192,96,0.12);
--terra: #c06040;
--terra-dim: rgba(192,96,64,0.18);
--cream: #f5ede0;
--muted: rgba(245,237,224,0.4);
--faint: rgba(245,237,224,0.08);
--red: #d97070;
--purple: #c8a8f8;
--purple-dim: rgba(200,168,248,0.12);
--green: #6fcf7a;
--green-dim: rgba(111,207,122,0.12);
--ice: #80d8ff;
--ice-dim: rgba(128,216,255,0.12);
--r: 14px;
--r-sm: 9px;
--r-xs: 6px;
--font: 'Outfit', sans-serif;
--serif: 'Lora', Georgia, serif;
--mono: 'JetBrains Mono', monospace;
--nav-h: 60px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
height: 100%;
font-family: var(--font);
background: var(--bg);
color: var(--cream);
position: relative;
overflow: hidden;
touch-action: manipulation;
}
/* ── Grain overlay ─────────────────────────────────────────────────────────── */
.grain {
position: fixed; inset: 0;
pointer-events: none; z-index: 1;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
background-size: 200px 200px;
opacity: 0.03;
mix-blend-mode: overlay;
}
/* ── Ambient blobs ─────────────────────────────────────────────────────────── */
.amb-wrap { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.amb {
position: absolute; border-radius: 50%;
filter: blur(120px); opacity: 0.55;
}
.a1 { width:560px; height:560px; background:radial-gradient(circle,rgba(180,90,30,.2) 0%,transparent 70%); top:-160px; left:-100px; animation: dA 28s ease-in-out infinite alternate; }
.a2 { width:440px; height:440px; background:radial-gradient(circle,rgba(230,150,50,.12) 0%,transparent 70%); bottom:-100px; right:-60px; animation: dB 34s ease-in-out infinite alternate; }
.a3 { width:320px; height:320px; background:radial-gradient(circle,rgba(190,80,40,.1) 0%,transparent 70%); top:35%; left:28%; animation: dC 22s ease-in-out infinite alternate; }
.a4 { width:220px; height:220px; background:radial-gradient(circle,rgba(240,160,50,.08) 0%,transparent 70%); top:15%; right:18%; animation: dD 18s ease-in-out infinite alternate; }
@keyframes dA { to { transform: translate(70px,80px); } }
@keyframes dB { to { transform: translate(-55px,-65px); } }
@keyframes dC { to { transform: translate(-35px,40px); } }
@keyframes dD { to { transform: translate(25px,-30px); } }
/* ── Bakery Name Modal ──────────────────────────────────────────────────────── */
.bakery-name-box { max-width: 420px; }
.bakery-name-intro {
font-family: var(--serif); font-size: 15px; line-height: 1.7;
color: rgba(245,237,224,0.85); text-align: center; margin-bottom: 22px;
}
.bakery-name-hint { font-size: 12px; color: var(--amber); display: block; margin-top: 6px; }
.bakery-name-input-wrap { position: relative; margin-bottom: 22px; }
.bakery-name-input {
width: 100%; background: rgba(255,255,255,0.07);
border: 1px solid rgba(232,160,67,0.35); border-radius: var(--r-sm);
color: var(--cream); font-family: var(--serif); font-size: 18px; font-weight: 600;
padding: 13px 44px 13px 16px; outline: none; text-align: center;
transition: border-color .15s;
}
.bakery-name-input:focus { border-color: var(--amber); }
.bakery-name-input::placeholder { color: rgba(245,237,224,0.3); font-style: italic; font-weight: 400; font-size: 15px; }
.bakery-name-char {
position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
font-family: var(--mono); font-size: 10px; color: var(--muted);
}
/* ── Dev log modal ─────────────────────────────────────────────────────────── */
.modal-backdrop {
position: fixed; inset: 0; z-index: 9000;
background: rgba(10,7,5,0.88);
backdrop-filter: blur(8px);
display: flex; align-items: center; justify-content: center;
animation: fadeIn .3s ease;
padding: 16px;
}
.modal-backdrop.hidden { display: none; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.modal-box {
background: linear-gradient(160deg, #1e1410 0%, #160f0c 100%);
border: 1px solid rgba(232,160,67,0.28);
border-radius: 20px;
padding: 32px 32px 28px;
max-width: 500px; width: 100%;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(232,160,67,0.07);
animation: popIn .4s cubic-bezier(.2,.8,.3,1.2);
position: relative;
overflow-x: hidden;
}
.modal-box::before {
content: '';
position: absolute; top:0; left:0; right:0; height:2px;
background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
@keyframes popIn { from { transform: scale(.88) translateY(20px); opacity:0; } to { transform: scale(1) translateY(0); opacity:1; } }
.modal-cookie { font-size: 48px; text-align: center; margin-bottom: 10px; display: block; filter: drop-shadow(0 4px 20px rgba(232,160,67,.35)); }
.modal-badge { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--amber); text-align: center; margin-bottom: 16px; }
.modal-body { font-family: var(--serif); font-size: 15px; line-height: 1.75; color: rgba(245,237,224,0.85); text-align: left; margin-bottom: 28px; white-space: pre-wrap; }
.modal-close-btn {
display: block; width: 100%;
background: linear-gradient(135deg, var(--amber-dim), var(--amber));
border: none; border-radius: var(--r-sm);
color: #1a0e08; font-family: var(--font); font-size: 14px; font-weight: 700;
padding: 13px; cursor: pointer; letter-spacing: .5px;
transition: filter .15s, transform .1s;
touch-action: manipulation;
}
.modal-close-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.modal-close-btn:active { transform: scale(.97); }
/* ── Settings box ───────────────────────────────────────────────────────────── */
.settings-box { max-width: 460px; }
.settings-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.settings-icon { font-size: 26px; }
.settings-title { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--cream); }
.settings-body { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.setting-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
.setting-group-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.setting-row:last-child { margin-bottom: 0; }
.setting-label { font-size: 13px; color: var(--muted); }
.toggle-btn {
background: var(--amber-glow); border: 1px solid rgba(232,160,67,.35);
border-radius: 20px; color: var(--amber); font-family: var(--mono);
font-size: 11px; font-weight: 700; padding: 5px 14px; cursor: pointer;
letter-spacing: .5px; transition: all .15s; white-space: nowrap;
touch-action: manipulation;
}
.toggle-btn.off { background: var(--faint); border-color: var(--border); color: var(--muted); }
.toggle-btn:hover { filter: brightness(1.15); }
.toggle-btn.red-btn { background: rgba(217,112,112,.15); border-color: rgba(217,112,112,.35); color: var(--red); }
.toggle-btn.green-btn { background: var(--green-dim); border-color: rgba(111,207,122,.35); color: var(--green); }
.slider-wrap { display: flex; align-items: center; gap: 8px; }
.vol-slider { width: 120px; accent-color: var(--amber); cursor: pointer; }
.vol-val { font-family: var(--mono); font-size: 11px; color: var(--amber); min-width: 32px; text-align: right; }
.leaderboard-name-row { flex-direction: column; align-items: flex-start; gap: 8px; }
.name-input-wrap { display: flex; gap: 8px; width: 100%; }
.lb-name-input {
flex: 1; background: rgba(255,255,255,0.06); border: 1px solid var(--border);
border-radius: var(--r-xs); color: var(--cream); font-family: var(--font);
font-size: 13px; padding: 7px 10px; outline: none;
}
.lb-name-input:focus { border-color: var(--amber-dim); }
.lb-save-name-btn {
background: var(--amber-glow); border: 1px solid rgba(232,160,67,.35);
border-radius: var(--r-xs); color: var(--amber); font-family: var(--font);
font-size: 12px; font-weight: 700; padding: 7px 14px; cursor: pointer;
touch-action: manipulation;
}
/* ── Golden cookie ──────────────────────────────────────────────────────────── */
.golden-cookie {
position: fixed; z-index: 8000;
cursor: pointer;
animation: gcFloat 3s ease-in-out infinite;
filter: drop-shadow(0 0 20px rgba(255,210,60,.6));
user-select: none;
touch-action: manipulation;
text-align: center;
transition: transform .1s;
}
.golden-cookie:active { transform: scale(.85); }
.golden-cookie span { font-size: 52px; display: block; }
.golden-label {
font-family: var(--font); font-size: 10px; font-weight: 700;
color: var(--gold); letter-spacing: 1px; text-transform: uppercase;
text-shadow: 0 0 10px rgba(255,210,60,.8);
margin-top: -4px;
}
.golden-cookie.hidden { display: none; }
.golden-timer-ring {
position: absolute; inset: -4px;
border-radius: 50%; border: 2px solid rgba(255,210,60,.3);
animation: gcRing 15s linear forwards;
}
@keyframes gcFloat { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(-12px) rotate(3deg)} }
@keyframes gcRing { from{box-shadow:0 0 0 0 rgba(255,210,60,.4)} to{box-shadow:0 0 0 0 rgba(255,210,60,0)} }
/* ── Meteor cookie (new event) ──────────────────────────────────────────────── */
.meteor-cookie {
position: fixed; z-index: 8000;
cursor: pointer;
user-select: none; touch-action: manipulation; text-align: center;
animation: meteorFall 2s linear forwards;
filter: drop-shadow(0 0 18px rgba(255,160,60,.7));
}
.meteor-cookie span { font-size: 48px; display: block; }
.meteor-cookie .golden-label { color: var(--terra); text-shadow: 0 0 10px rgba(255,100,40,.8); }
.meteor-cookie.hidden { display: none; }
@keyframes meteorFall {
0% { transform: translateX(0) translateY(0) rotate(-20deg); opacity: 1; }
85% { opacity: 1; }
100% { transform: translateX(200px) translateY(600px) rotate(10deg); opacity: 0; }
}
/* ── Frenzy banner ──────────────────────────────────────────────────────────── */
.frenzy-banner {
position: fixed; top: 0; left: 0; right: 0; z-index: 8500;
background: linear-gradient(90deg, rgba(255,120,30,.95), rgba(230,60,20,.95));
color: white; padding: 10px 20px;
display: flex; align-items: center; gap: 10px;
font-weight: 700; font-size: 14px;
box-shadow: 0 4px 20px rgba(255,80,20,.4);
animation: frenzyIn .3s ease;
overflow: hidden;
}
.frenzy-banner.hidden { display: none; }
@keyframes frenzyIn { from{transform:translateY(-100%)} to{transform:translateY(0)} }
.frenzy-ico { font-size: 20px; }
.frenzy-text { flex: 1; }
.frenzy-progress {
position: absolute; bottom: 0; left: 0; height: 3px;
background: rgba(255,255,255,.5);
transition: width .1s linear;
}
/* ── Blizzard banner (new) ──────────────────────────────────────────────────── */
.blizzard-banner {
position: fixed; top: 0; left: 0; right: 0; z-index: 8490;
background: linear-gradient(90deg, rgba(30,100,200,.95), rgba(60,160,240,.95));
color: white; padding: 10px 20px;
display: flex; align-items: center; gap: 10px;
font-weight: 700; font-size: 14px;
box-shadow: 0 4px 20px rgba(60,140,255,.4);
animation: frenzyIn .3s ease;
overflow: hidden;
}
.blizzard-banner.hidden { display: none; }
/* ── Shell ─────────────────────────────────────────────────────────────────── */
.shell {
position: relative; z-index: 2;
display: grid;
grid-template-columns: 296px 1fr;
height: 100%;
}
/* ── Logo row ───────────────────────────────────────────────────────────────── */
.logo-row { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 10px; }
.logo { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--amber); letter-spacing: .3px; }
.logo span { color: var(--cream); font-weight: 400; }
.settings-btn {
background: none; border: none; cursor: pointer; font-size: 18px;
opacity: .6; transition: opacity .15s; padding: 4px;
touch-action: manipulation;
}
.settings-btn:hover { opacity: 1; }
/* ── Left panel ─────────────────────────────────────────────────────────────── */
.left-panel {
background: var(--panel-l);
backdrop-filter: blur(28px);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
align-items: center;
padding: 16px 14px 14px;
overflow-y: auto;
overflow-x: hidden;
height: 100%;
gap: 0;
-webkit-overflow-scrolling: touch;
}
.left-panel::-webkit-scrollbar { width: 3px; }
.left-panel::-webkit-scrollbar-thumb { background: var(--amber-glow); border-radius: 2px; }
/* ── Cookie ─────────────────────────────────────────────────────────────────── */
.cookie-stage {
position: relative;
width: 156px; height: 156px;
display: flex; align-items: center; justify-content: center;
margin-bottom: 6px;
flex-shrink: 0;
}
.c-orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(232,160,67,0.12); }
.o1 { width:136px; height:136px; animation: spin 20s linear infinite; }
.o2 { width:154px; height:154px; border-style: solid; border-color: rgba(192,96,64,0.07); animation: spin 36s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.c-halo {
position: absolute; width: 90px; height: 90px; border-radius: 50%;
background: radial-gradient(circle, rgba(232,160,67,.22) 0%, transparent 70%);
filter: blur(18px); pointer-events: none;
}
.cookie-btn {
font-size: 82px;
background: none; border: none; cursor: pointer; border-radius: 50%;
width: 130px; height: 130px;
display: flex; align-items: center; justify-content: center;
transition: transform .09s cubic-bezier(.2,.8,.3,1.5), filter .1s;
filter: drop-shadow(0 4px 22px rgba(232,160,67,.28));
user-select: none; -webkit-user-select: none;
position: relative; z-index: 2;
touch-action: manipulation;
-webkit-tap-highlight-color: transparent;
}
.cookie-btn:hover { transform: scale(1.07); filter: drop-shadow(0 6px 30px rgba(232,160,67,.48)); }
.cookie-btn:active { transform: scale(.85); filter: drop-shadow(0 2px 10px rgba(232,160,67,.18)); }
.cookie-btn.clicked { animation: cookieClick .12s ease; }
@keyframes cookieClick { 0%{transform:scale(1)} 40%{transform:scale(.82)} 100%{transform:scale(1)} }
/* ── Score ──────────────────────────────────────────────────────────────────── */
.score-block { text-align: center; margin-bottom: 4px; }
.score-num {
font-family: var(--serif);
font-size: clamp(1.7rem, 3.2vw, 2.4rem);
font-weight: 700;
color: var(--gold);
letter-spacing: -1px;
line-height: 1;
text-shadow: 0 0 36px rgba(240,192,96,.22);
font-feature-settings: "tnum";
}
.score-sub { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 2.5px; margin-top: 4px; }
/* ── Rate row ───────────────────────────────────────────────────────────────── */
.rate-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rate-cell { text-align: center; }
.rv { display: block; font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--amber); }
.rk { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }
.rate-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
/* ── Stats ──────────────────────────────────────────────────────────────────── */
.stat-row {
display: flex; gap: 0; width: 100%;
background: var(--surface); border: 1px solid var(--border);
border-radius: var(--r-sm); overflow: hidden; margin-bottom: 10px;
}
.stat-cell { flex: 1; padding: 7px 4px; text-align: center; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--border); }
.stat-cell:last-child { border-right: none; }
.sv { font-family: var(--mono); font-size: 11px; color: var(--amber); font-weight: 500; }
.sk { font-size: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
/* ── Buy quantity bar ───────────────────────────────────────────────────────── */
.qty-bar { width: 100%; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.qty-label { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .5px; flex-shrink: 0; }
.qty-btns { display: flex; gap: 4px; flex: 1; }
.qty-btn {
flex: 1; background: var(--surface); border: 1px solid var(--border);
border-radius: var(--r-xs); color: var(--muted); font-family: var(--mono);
font-size: 11px; font-weight: 500; padding: 6px 2px; cursor: pointer;
transition: all .14s; text-align: center;
touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.qty-btn:hover { border-color: var(--border-h); color: var(--amber); }
.qty-btn.active { background: var(--amber-glow); border-color: rgba(232,160,67,.4); color: var(--amber); font-weight: 700; }
.qty-btn.max { color: var(--gold); }
.qty-btn.max.active { background: var(--gold-soft); border-color: rgba(240,192,96,.4); color: var(--gold); }
/* ── Prestige ───────────────────────────────────────────────────────────────── */
.prestige-zone {
width: 100%; background: var(--purple-dim);
border: 1px solid rgba(200,168,248,.22); border-radius: var(--r);
padding: 12px 14px; margin-bottom: 8px; position: relative; overflow: hidden;
}
.prestige-zone.hidden { display: none; }
.pz-glow { position: absolute; top:-20px; left:-20px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, rgba(200,168,248,.15) 0%, transparent 70%); pointer-events: none; }
.pz-inner { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pz-star { font-size: 22px; flex-shrink: 0; }
.pz-title { font-size: 13px; font-weight: 700; color: var(--purple); }
.pz-sub { font-size: 11px; color: rgba(200,168,248,.65); margin-top: 2px; }
.pz-sub strong { color: var(--purple); }
.pz-btn {
width: 100%; background: rgba(200,168,248,.2); border: 1px solid rgba(200,168,248,.32);
border-radius: var(--r-xs); color: var(--purple); font-family: var(--font);
font-size: 12px; font-weight: 700; padding: 8px; cursor: pointer;
letter-spacing: .3px; transition: all .14s; touch-action: manipulation;
}
.pz-btn:hover { background: rgba(200,168,248,.3); }
.active-pres {
font-size: 10px; color: var(--purple); font-family: var(--mono);
background: var(--purple-dim); border: 1px solid rgba(200,168,248,.15);
border-radius: var(--r-xs); padding: 5px 8px; width: 100%; text-align: center;
margin-bottom: 6px;
}
.active-pres.hidden { display: none; }
/* ── Right panel ────────────────────────────────────────────────────────────── */
.right-panel {
background: var(--panel-r);
backdrop-filter: blur(24px);
display: flex; flex-direction: column;
height: 100%; overflow: hidden;
}
/* ── Tab nav ────────────────────────────────────────────────────────────────── */
.tab-nav {
display: flex; gap: 2px;
padding: 12px 16px 0;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.tab {
background: none; border: none; border-radius: var(--r-xs) var(--r-xs) 0 0;
color: var(--muted); font-family: var(--font); font-size: 12px; font-weight: 600;
padding: 8px 13px 10px; cursor: pointer; transition: all .15s;
border-bottom: 2px solid transparent; margin-bottom: -1px;
touch-action: manipulation; -webkit-tap-highlight-color: transparent;
white-space: nowrap;
}
.tab:hover { color: var(--cream); }
.tab.active { color: var(--amber); border-bottom-color: var(--amber); }
/* ── Pane ───────────────────────────────────────────────────────────────────── */
.pane { display: none; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pane.active { display: block; }
.pane::-webkit-scrollbar { width: 3px; }
.pane::-webkit-scrollbar-thumb { background: rgba(232,160,67,.12); border-radius: 2px; }
.pane-inner { padding: 20px 18px 32px; }
.pane-hd { margin-bottom: 18px; }
.pane-title { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--cream); margin-bottom: 4px; }
.pane-sub { font-size: 12px; color: var(--muted); }
/* ── Upgrades grid ──────────────────────────────────────────────────────────── */
.upg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.upg-card {
background: var(--surface); border: 1px solid var(--border);
border-radius: var(--r); padding: 14px;
cursor: pointer; transition: all .15s; text-align: left;
display: flex; flex-direction: column; gap: 4px;
touch-action: manipulation;
}
.upg-card:hover { background: var(--surface-h); border-color: var(--border-h); }
.upg-card.cant-afford { opacity: .52; }
.upg-icon { font-size: 22px; }
.upg-name { font-size: 13px; font-weight: 700; color: var(--cream); }
.upg-meta { font-size: 10px; color: var(--muted); font-family: var(--mono); }
.upg-cost { font-size: 11px; font-weight: 700; color: var(--amber); font-family: var(--mono); margin-top: 4px; }
/* ── Buildings list ─────────────────────────────────────────────────────────── */
.bld-list { display: flex; flex-direction: column; gap: 6px; }
.bld-card {
background: var(--surface); border: 1px solid var(--border);
border-radius: var(--r); padding: 12px 14px;
display: flex; align-items: center; gap: 12px;
cursor: pointer; transition: all .15s; text-align: left; width: 100%;
touch-action: manipulation;
}
.bld-card:hover { background: var(--surface-h); border-color: var(--border-h); }
.bld-card.cant-afford { opacity: .5; }
.bld-icon { font-size: 24px; flex-shrink: 0; width: 30px; }
.bld-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bld-name { font-size: 14px; font-weight: 700; color: var(--cream); }
.bld-meta { font-size: 10px; color: var(--muted); }
.bld-owned { font-size: 9px; color: var(--amber); font-family: var(--mono); font-weight: 600; }
.bld-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.bld-cost { font-size: 12px; font-weight: 700; color: var(--gold); font-family: var(--mono); }
.bld-qty-cost { font-size: 9px; color: var(--muted); font-family: var(--mono); }
/* ── Specials ───────────────────────────────────────────────────────────────── */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec-card {
background: var(--surface); border: 1px solid var(--border);
border-radius: var(--r); padding: 16px 14px;
display: flex; flex-direction: column; gap: 6px;
position: relative; overflow: hidden; transition: all .15s;
}
.spec-card:hover:not(.purchased) { background: var(--surface-h); border-color: var(--border-h); }
.spec-card.cant-afford { opacity: .5; }
.spec-card.purchased { opacity: .65; }
.spec-card.special-gold { border-color: rgba(240,192,96,.22); background: var(--gold-soft); }
.spec-card.special-glow { border-color: rgba(200,168,248,.18); background: var(--purple-dim); }
.spec-card.special-green { border-color: rgba(111,207,122,.2); background: var(--green-dim); }
.spec-icon { font-size: 26px; }
.spec-name { font-size: 13px; font-weight: 700; color: var(--cream); }
.spec-desc { font-size: 11px; color: var(--muted); line-height: 1.5; }
.spec-cost { font-size: 11px; font-weight: 700; color: var(--amber); font-family: var(--mono); margin-top: 4px; }
.spec-owned-badge {
position: absolute; top: 8px; right: 8px;
background: var(--green-dim); border: 1px solid rgba(111,207,122,.3);
border-radius: 4px; color: var(--green); font-size: 8px; font-weight: 700;
padding: 2px 6px; letter-spacing: 1px;
}
/* ── Achievements ───────────────────────────────────────────────────────────── */
.ach-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.ach-card {
background: var(--surface); border: 1px solid var(--border);
border-radius: var(--r-sm); padding: 12px 8px;
display: flex; flex-direction: column; align-items: center; gap: 5px;
opacity: .38; transition: all .2s;
}
.ach-card.unlocked { opacity: 1; border-color: rgba(232,160,67,.28); background: var(--amber-glow); }
.ach-ico { font-size: 20px; }
.ach-nm { font-size: 10px; font-weight: 600; color: var(--cream); text-align: center; line-height: 1.3; }
/* ── Leaderboard ────────────────────────────────────────────────────────────── */
.lb-controls { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.lb-btn {
background: var(--amber-glow); border: 1px solid rgba(232,160,67,.35);
border-radius: var(--r-sm); color: var(--amber); font-family: var(--font);
font-size: 12px; font-weight: 700; padding: 8px 14px; cursor: pointer;
transition: all .15s; touch-action: manipulation;
}
.lb-btn:hover { filter: brightness(1.15); }
.lb-btn.secondary { background: var(--surface); border-color: var(--border); color: var(--muted); }
.lb-loading { font-size: 13px; color: var(--muted); padding: 12px 0; }
.lb-loading.hidden { display: none; }
.lb-error { font-size: 12px; color: var(--red); padding: 8px 0; }
.lb-error.hidden { display: none; }
.lb-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.lb-entry {
background: var(--surface); border: 1px solid var(--border);
border-radius: var(--r-sm); padding: 12px 14px;
display: flex; align-items: center; gap: 12px;
transition: background .15s;
}
.lb-entry.is-me { border-color: rgba(232,160,67,.4); background: var(--amber-glow); }
.lb-rank {
font-family: var(--mono); font-size: 14px; font-weight: 700;
color: var(--muted); min-width: 28px; text-align: center;
}
.lb-rank.top1 { color: #FFD700; }
.lb-rank.top2 { color: #C0C0C0; }
.lb-rank.top3 { color: #CD7F32; }
.lb-medal { font-size: 18px; }
.lb-name-col { flex: 1; }
.lb-player-name { font-size: 14px; font-weight: 600; color: var(--cream); }
.lb-player-sub { font-size: 10px; color: var(--muted); font-family: var(--mono); margin-top: 2px; }
.lb-score-col { text-align: right; }
.lb-score-val { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--gold); }
.lb-score-lbl { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.lb-note { font-size: 11px; color: var(--muted); font-style: italic; }
.lb-empty { text-align: center; padding: 32px; color: var(--muted); font-style: italic; }
/* ── Patch notes ────────────────────────────────────────────────────────────── */
.patch-feed { display: flex; flex-direction: column; gap: 12px; }
.patch-entry { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--amber-dim); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 14px 18px; }
.patch-version { font-family: var(--mono); font-size: 12px; color: var(--amber); font-weight: 500; margin-bottom: 4px; }
.patch-date { font-size: 9px; color: var(--muted); font-family: var(--mono); margin-bottom: 8px; letter-spacing: .5px; }
.patch-body { font-family: var(--serif); font-size: 14px; color: rgba(245,237,224,.8); line-height: 1.7; white-space: pre-wrap; }
.patch-empty { font-size: 13px; color: var(--muted); font-style: italic; }
/* ── Float text ─────────────────────────────────────────────────────────────── */
.float-txt {
position: fixed; pointer-events: none;
font-family: var(--font); font-weight: 800; font-size: 16px;
color: var(--amber); text-shadow: 0 2px 10px rgba(0,0,0,.8);
animation: floatUp .9s ease-out forwards;
z-index: 9999; white-space: nowrap;
}
.float-txt.frenzy-float { color: #ff7020; font-size: 20px; }
.float-txt.golden-float { color: var(--gold); font-size: 22px; }
.float-txt.meteor-float { color: #ff8040; font-size: 20px; }
.float-txt.blizzard-float { color: var(--ice); font-size: 18px; }
@keyframes floatUp {
0% { transform: translateY(0) scale(1); opacity:1; }
60% { transform: translateY(-52px) scale(1.1); opacity:.85; }
100%{ transform: translateY(-92px) scale(.75); opacity:0; }
}
/* ── Toast ──────────────────────────────────────────────────────────────────── */
.toast {
position: fixed; top:16px; right:16px; z-index:99999;
background: rgba(20,14,10,.97); backdrop-filter: blur(28px);
border: 1px solid rgba(232,160,67,.3); border-radius: var(--r);
padding: 13px 16px 17px; display: flex; align-items: center; gap: 13px;
min-width: 235px; max-width: calc(100vw - 32px);
box-shadow: 0 14px 50px rgba(0,0,0,.65);
animation: toastIn .35s cubic-bezier(.2,.8,.3,1.2) forwards;
overflow: hidden;
}
.toast.hidden { display: none; }
.toast.hiding { animation: toastOut .25s ease-in forwards; }
@keyframes toastIn { from{transform:translateX(110%);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes toastOut { from{transform:translateX(0);opacity:1} to{transform:translateX(110%);opacity:0} }
.toast-ico { font-size: 24px; flex-shrink: 0; }
.toast-eyebrow { font-size: 9px; text-transform: uppercase; letter-spacing: 2px; color: var(--amber); margin-bottom: 3px; font-weight: 600; }
.toast-name { font-size: 14px; font-weight: 700; color: var(--cream); }
.toast-bar {
position: absolute; bottom:0; left:0; height: 2px;
background: linear-gradient(90deg, var(--amber-dim), var(--gold));
animation: tBar 2.8s linear forwards;
}
@keyframes tBar { from{width:100%} to{width:0} }
/* ── Mobile bottom nav ──────────────────────────────────────────────────────── */
.mobile-nav {
display: none;
position: fixed; bottom: 0; left: 0; right: 0;
background: rgba(14,10,8,.97);
backdrop-filter: blur(20px);
border-top: 1px solid var(--border);
z-index: 500;
height: var(--nav-h);
padding: 0;
gap: 0;
}
.mnav-btn {
flex: 1; background: none; border: none;
color: rgba(245,237,224,.4); cursor: pointer;
display: flex; flex-direction: column; align-items: center;
justify-content: center; gap: 2px;
padding: 6px 0;
touch-action: manipulation; -webkit-tap-highlight-color: transparent;
transition: color .15s;
font-family: var(--font);
}
.mnav-btn.active { color: var(--amber); }
.mnav-ico { font-size: 20px; line-height: 1; }
.mnav-lbl { font-size: 9px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
/* ── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: rgba(232,160,67,.16); border-radius: 2px; }
/* ══════════════════════════════════════════════════════════════════════════════
RESPONSIVE — Mobile first
══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
html, body { overflow: hidden; height: 100%; }
.mobile-nav { display: flex; }
.shell {
grid-template-columns: 1fr;
grid-template-rows: 1fr;
height: 100%;
position: relative;
}
.left-panel {
position: absolute; inset: 0;
border-right: none;
height: calc(100% - var(--nav-h));
padding: 14px 16px 14px;
overflow-y: auto;
display: none;
z-index: 10;
}
.left-panel.mobile-active { display: flex; }
.right-panel {
position: absolute; inset: 0;
height: calc(100% - var(--nav-h));
display: none;
z-index: 10;
}
.right-panel.mobile-active { display: flex; }
.left-panel { display: flex; }
.right-panel { display: none; }
.cookie-stage { width: 180px; height: 180px; }
.o1 { width: 160px; height: 160px; }
.o2 { width: 178px; height: 178px; }
.cookie-btn { font-size: 96px; width: 155px; height: 155px; }
.score-num { font-size: 2.4rem; }
.tab-nav { padding: 8px 12px 0; gap: 2px; }
.tab { padding: 7px 10px 8px; font-size: 11px; }
.tab-lbl { display: none; }
.pane-inner { padding: 16px 14px 24px; }
.pane-title { font-size: 20px; }
.upg-grid { grid-template-columns: 1fr 1fr; }
.ach-grid { grid-template-columns: repeat(2,1fr); }
.spec-grid { grid-template-columns: 1fr; }
.toast { top: auto; bottom: calc(var(--nav-h) + 10px); right: 10px; left: 10px; min-width: 0; }
.frenzy-banner { top: 0; }
.bld-card { padding: 10px 12px; gap: 10px; }
.bld-icon { font-size: 22px; width: 28px; }
.bld-name { font-size: 13px; }
}
@media (min-width: 769px) {
.mobile-nav { display: none !important; }
.left-panel { display: flex !important; }
.right-panel { display: flex !important; }
}
/* Very small phones */
@media (max-width: 380px) {
.cookie-stage { width: 160px; height: 160px; }
.cookie-btn { font-size: 84px; width: 138px; height: 138px; }
.score-num { font-size: 2rem; }
.upg-grid { grid-template-columns: 1fr; }
}