File size: 31,807 Bytes
4713899
64ecf6a
0b4d7ad
64ecf6a
4713899
 
 
a6856e0
4713899
 
7891b35
 
 
 
64ecf6a
 
 
 
74c32de
 
64ecf6a
 
 
74c32de
7891b35
64ecf6a
 
74c32de
 
 
7891b35
64ecf6a
 
74c32de
7891b35
 
64ecf6a
 
7891b35
 
 
64ecf6a
7891b35
74c32de
7891b35
64ecf6a
7891b35
 
 
64ecf6a
 
74c32de
 
7891b35
 
64ecf6a
 
74c32de
 
7891b35
64ecf6a
 
74c32de
 
7891b35
64ecf6a
 
74c32de
 
 
7891b35
64ecf6a
7891b35
74c32de
7891b35
 
 
64ecf6a
 
74c32de
 
64ecf6a
 
74c32de
 
 
64ecf6a
 
74c32de
 
 
64ecf6a
74c32de
 
 
 
64ecf6a
74c32de
 
 
64ecf6a
0b4d7ad
 
64ecf6a
0b4d7ad
64ecf6a
 
 
 
0b4d7ad
64ecf6a
4713899
 
 
 
 
 
 
 
 
 
64ecf6a
4713899
 
 
 
 
 
 
 
 
 
64ecf6a
4713899
 
 
 
 
 
 
64ecf6a
4713899
 
 
 
 
64ecf6a
a6856e0
 
 
 
e448469
64ecf6a
 
0b4d7ad
64ecf6a
78ceed6
 
 
 
 
 
 
ab92f8e
 
78ceed6
 
 
 
 
 
64ecf6a
 
78ceed6
 
64ecf6a
78ceed6
 
 
 
64ecf6a
78ceed6
 
 
c9c409c
78ceed6
 
64ecf6a
9b46e21
78ceed6
 
 
ab92f8e
78ceed6
 
64ecf6a
 
 
 
 
9b46e21
78ceed6
 
 
 
 
 
 
64ecf6a
78ceed6
 
 
 
64ecf6a
78ceed6
 
 
 
64ecf6a
9b46e21
64ecf6a
4c8b6d1
ab92f8e
78ceed6
32d2bbe
78ceed6
64ecf6a
78ceed6
 
 
64ecf6a
9b46e21
32d2bbe
4c8b6d1
3847a1f
 
4c8b6d1
70c7422
4c8b6d1
ab92f8e
70c7422
9b46e21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78ceed6
 
 
 
 
64ecf6a
ab92f8e
 
 
 
 
 
 
 
 
 
64ecf6a
6694aac
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64ecf6a
 
0b4d7ad
64ecf6a
 
11f2290
 
 
a1e8a39
 
 
 
 
 
 
 
 
 
64ecf6a
 
 
8b79beb
a1e8a39
 
 
 
 
 
 
64ecf6a
a1e8a39
 
 
 
 
660f34a
 
 
 
 
 
 
 
 
64ecf6a
 
 
 
 
660f34a
 
 
 
 
 
64ecf6a
660f34a
 
 
 
 
 
 
 
64ecf6a
 
0b4d7ad
64ecf6a
 
 
 
 
e448469
 
11f2290
 
 
e448469
0b4d7ad
e448469
 
 
 
 
 
 
 
 
64ecf6a
e448469
 
0b4d7ad
e448469
 
0b4d7ad
e448469
0b4d7ad
 
e448469
64ecf6a
e448469
 
 
0b4d7ad
e448469
64ecf6a
 
 
0b4d7ad
64ecf6a
0b4d7ad
 
64ecf6a
 
e448469
64ecf6a
63b90cd
 
64ecf6a
e448469
63b90cd
e448469
64ecf6a
63b90cd
 
 
 
 
 
64ecf6a
 
 
6114bef
51ee800
f782a75
 
 
 
0b4d7ad
e448469
0b4d7ad
64ecf6a
0b4d7ad
e448469
0b4d7ad
e448469
64ecf6a
0b4d7ad
bcd6797
 
 
 
 
 
 
 
 
64ecf6a
c82213f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0b4d7ad
e448469
0b4d7ad
64ecf6a
f4e37b8
 
64ecf6a
 
0b4d7ad
64ecf6a
0b4d7ad
64ecf6a
 
0b4d7ad
64ecf6a
0b4d7ad
 
64ecf6a
 
 
 
 
 
0b4d7ad
64ecf6a
0b4d7ad
 
64ecf6a
 
 
 
 
 
0b4d7ad
64ecf6a
0b4d7ad
64ecf6a
 
 
 
 
 
 
0b4d7ad
64ecf6a
 
 
 
 
 
 
 
 
 
 
 
 
 
0b4d7ad
64ecf6a
 
 
 
 
 
c82213f
 
 
 
64ecf6a
 
 
 
 
 
 
 
0b4d7ad
 
 
 
 
64ecf6a
 
 
 
 
 
0b4d7ad
 
64ecf6a
 
0b4d7ad
 
 
 
 
 
 
 
64ecf6a
 
0b4d7ad
 
64ecf6a
 
 
 
 
 
0b4d7ad
 
 
 
64ecf6a
 
0b4d7ad
 
 
 
 
64ecf6a
 
0b4d7ad
 
 
64ecf6a
 
0b4d7ad
 
64ecf6a
 
 
 
0b4d7ad
64ecf6a
 
0b4d7ad
64ecf6a
 
 
0b4d7ad
64ecf6a
 
 
 
0b4d7ad
64ecf6a
 
 
 
 
 
0b4d7ad
64ecf6a
 
 
0b4d7ad
 
64ecf6a
 
 
 
0b4d7ad
64ecf6a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0b4d7ad
 
bcd6797
 
 
 
 
 
 
 
 
 
 
 
64ecf6a
bcd6797
 
 
 
 
 
 
 
64ecf6a
bcd6797
 
 
 
 
c82213f
 
 
 
 
 
 
 
64ecf6a
 
 
 
 
 
 
 
 
 
0b4d7ad
e448469
64ecf6a
 
 
 
e448469
64ecf6a
0b4d7ad
 
 
 
 
64ecf6a
 
 
 
e448469
64ecf6a
 
 
 
 
 
 
 
 
 
e448469
64ecf6a
0b4d7ad
 
64ecf6a
 
 
0b4d7ad
64ecf6a
 
4713899
 
7891b35
74c32de
4713899
a6856e0
 
64ecf6a
 
74c32de
7891b35
64ecf6a
4268765
 
 
 
7891b35
4268765
 
64ecf6a
 
 
 
74c32de
7891b35
64ecf6a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4268765
 
 
 
 
7891b35
4268765
 
 
 
c82213f
 
 
 
 
 
c4dec19
c82213f
 
 
 
 
 
 
 
 
 
64ecf6a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0b4d7ad
64ecf6a
a6856e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
866a20d
64ecf6a
 
 
 
 
 
 
 
2623604
64ecf6a
 
 
3a9fe73
364f8ae
b1849c1
 
 
 
 
 
 
 
2dc6617
 
0321726
 
 
 
c8b7b66
0321726
 
f6a893a
 
 
 
cff87d7
 
f6a893a
 
cff87d7
c8b7b66
 
0321726
 
 
f6a893a
 
0321726
 
0effa09
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
APP_CSS = """
/* ══════════════════════════════════════════════════════════════════════════
   1. CORE GRADIO UTILITIES, COLOR OVERRIDES & WHITE-FLASH SUPPRESSION
   ══════════════════════════════════════════════════════════════════════════ */
.gradio-container {
    background:
        radial-gradient(circle at top left, rgba(255, 244, 190, 0.55), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(133, 214, 159, 0.22), transparent 28rem),
        linear-gradient(135deg, #10281f 0%, #214732 48%, #f6e7c8 100%);
}

.gradio-container,
.gradio-container .prose,
.gradio-container .markdown,
.gradio-container label,
.gradio-container .tabitem,
.gradio-container .form,
.gradio-container .block {
    color: #173d2a !important;
}

.gradio-container h1, .gradio-container h2, .gradio-container h3, .gradio-container h4,
.gradio-container p, .gradio-container li, .gradio-container span, .gradio-container strong {
    color: inherit;
}

.gradio-container input, .gradio-container textarea, .gradio-container select {
    color: #10281f !important;
    background: #fffdf4 !important;
    border-color: rgba(23, 61, 42, 0.32) !important;
}

.gradio-container input::placeholder, .gradio-container textarea::placeholder {
    color: #526a5c !important;
    opacity: 1;
}

.gradio-container input:focus, .gradio-container textarea:focus, .gradio-container select:focus {
    border-color: #2f7d55;
    box-shadow: 0 0 0 3px rgba(47, 125, 85, 0.22);
}

.gradio-container button {
    color: #173d2a !important;
}

.gradio-container button:hover:not(:disabled) {
    filter: brightness(0.96);
}

.gradio-container button:disabled, .gradio-container button[disabled] {
    color: #526a5c !important;
    background: rgba(231, 235, 225, 0.88) !important;
    opacity: 1;
}

.gradio-container button.primary, .gradio-container button[variant="primary"] {
    color: #fffdf4 !important;
    background: #17633f !important;
}

.gradio-container [role="dialog"], .gradio-container .modal, .gradio-container .toast, .gradio-container .tooltip {
    color: #10281f !important;
    background: #fffdf4 !important;
}

.gradio-container [role="alert"], .gradio-container .error {
    color: #7f1d1d !important;
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
}

.gradio-container .tabitem {
    background: rgba(255, 250, 235, 0.92) !important;
    border-radius: 0 0 22px 22px;
    padding: 0.8rem;
}

.gradio-container .chatbot, .gradio-container .message, .gradio-container .bubble-wrap {
    color: #10281f !important;
}

.gradio-container .tab-nav button, .gradio-container [role="tab"] {
    color: #173d2a !important;
    background: rgba(255, 250, 235, 0.9) !important;
}

.gradio-container .tab-nav button.selected, .gradio-container [role="tab"][aria-selected="true"] {
    color: #fffdf4 !important;
    background: #17633f !important;
}

.gradio-container a {
    color: #0f5f3d !important;
    font-weight: 700;
}

.gradio-container a:hover {
    color: #093d28 !important;
}

/* Suppress Gradio processing artifacts and system white flashes */
.generating .forest-scene, .pending .forest-scene { opacity: .88 !important; }
.progress-level, .progress-level-inner { display: none !important; }
div.gradio-html { background: transparent !important; }
.wrap.default.pending, .wrap.default.generating { background: transparent !important; }


/* ══════════════════════════════════════════════════════════════════════════
   2. PRESENTATION HERO HEADER BANNER
   ══════════════════════════════════════════════════════════════════════════ */
.myco-hero {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: 28px;
    background: rgba(255, 250, 231, 0.88);
    border: 1px solid rgba(64, 96, 70, 0.24);
    box-shadow: 0 20px 60px rgba(15, 40, 26, 0.22);
}

.myco-mascot {
    display: grid;
    place-items: center;
    width: 6rem;
    height: 6rem;
    border-radius: 999px;
    font-size: 4rem;
    background: linear-gradient(145deg, #fff8d9, #f5b7a7);
    box-shadow: inset 0 -10px 24px rgba(121, 62, 35, 0.16);
}

.eyebrow {
    margin: 0;
    color: #2f6f4f;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.myco-hero h1 {
    margin: 0.1rem 0;
    font-size: 3rem;
    color: #173d2a;
}

.myco-hero p:last-child {
    margin-bottom: 0;
    color: #31533f;
}


/* ══════════════════════════════════════════════════════════════════════════
   3. HOME PAGE VISUAL POSTCARD & CELESTIAL BACKGROUNDS
   ══════════════════════════════════════════════════════════════════════════ */
.home-forest-postcard {
    position: relative;
    overflow: hidden;
    margin: 1rem 0;
    padding: 1.25rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 18%, rgba(190, 205, 255, 0.38), transparent 9rem),
        radial-gradient(circle at 50% 76%, rgba(255, 235, 176, 0.3), transparent 10rem),
        linear-gradient(180deg, #121f4f 0%, #163a46 38%, #245c3c 70%, #523b20 100%);
    border: 1px solid rgba(255, 244, 190, 0.34);
    box-shadow: 0 18px 48px rgba(8, 30, 20, 0.24);
    color: #fff9d7 !important;
    text-align: center;
}

.home-forest-postcard span, .home-forest-postcard p {
    color: #fff9d7 !important;
}

.home-sky {
    position: relative;
    min-height: 4.7rem;
}

.home-milky-way {
    display: inline-block;
    font-size: clamp(3rem, 9vw, 5.5rem);
    animation: myco-drift 14s ease-in-out infinite;
    filter: drop-shadow(0 0 18px rgba(201, 218, 255, 0.46));
}

/* Star Configurations */
.home-star {
    position: absolute;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    animation: myco-twinkle 2.8s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(255, 251, 198, 0.75));
}

.home-star.star-one { left: 18%; top: 0.8rem; }
.home-star.star-two { right: 19%; top: 1.9rem; animation-delay: 0.8s; }
.home-star.star-three { left: 50%; top: 3.4rem; animation-delay: 1.4s; }

/* Forest Floor Base */
.home-forest-floor {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(0.3rem, 2vw, 1rem);
    min-height: 7rem;
}

.home-tree {
    font-size: clamp(3rem, 8vw, 5.6rem);
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
}

.home-grass {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 0.25rem;
}

/* Mushroom Configurations */
.home-myco, .home-brown-mushroom {
    font-size: clamp(3.4rem, 8vw, 6rem);
    animation: myco-breathe 3.2s ease-in-out infinite;
    filter: drop-shadow(0 14px 22px rgba(255, 225, 140, 0.22));
    animation-delay: 0.55s;
}

.home-myco {
    filter: drop-shadow(0 14px 24px rgba(255, 92, 92, 0.32));
}

/* Moon Configuration */
.home-moon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    animation: moon-glow 6s ease-in-out infinite; 
    filter: drop-shadow(0 0 12px rgba(255, 251, 198, 0.75));
}

/* Smooth floating movement for the Milky Way */
@keyframes myco-drift {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(6px, -12px);
    }
}

/* Shimmering scaling and opacity effect for the stars */
@keyframes myco-twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Organic breathing pulse for the mushrooms */
@keyframes myco-breathe {
    0%, 100% {
        transform: scaleY(1) scaleX(1);
    }
    50% {
        transform: scaleY(1.06) scaleX(1.02);
    }
}

/* Gentle swaying and pulsing glow for the moon */
@keyframes moon-glow {
    0%, 100% {
        transform: rotate(-3deg);
        filter: drop-shadow(0 0 12px rgba(255, 251, 198, 0.75));
    }
    50% {
        transform: rotate(3deg) translateY(-2px);
        filter: drop-shadow(0 0 22px rgba(255, 251, 198, 0.95));
    }
}

.home-forest-postcard p {
    max-width: 42rem;
    margin: 0.9rem auto 0;
    font-weight: 800;
}

.home-whisper {
    display: inline-block;
    margin-top: 0.65rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(255, 249, 215, 0.28);
    border-radius: 999px;
    background: rgba(255, 249, 215, 0.12);
    color: #fff9d7 !important;
    font-weight: 900;
}

.home-myco-wrapper, .home-brown-wrapper { position:relative; display:inline-block; }
    .home-spore {
      position:absolute; left:50%; top:20%; width:4px; height:4px;
      background:#a8ffb2; border-radius:50%; filter:blur(0.5px);
      box-shadow:0 0 6px #52ff6b,0 0 10px #fff;
      opacity:0; pointer-events:none;
      animation:floatHomeSpore var(--duration) ease-out infinite;
      animation-delay:var(--delay);
    }
    @keyframes floatHomeSpore {
      0%   { transform:translate(0,0) scale(1); opacity:0; }
      15%  { opacity:1; }
      80%  { opacity:0.7; }
      100% { transform:translate(var(--x),var(--y)) scale(0.2); opacity:0; }
    }

/* ══════════════════════════════════════════════════════════════════════════
   4. INTERACTIVE GAME DISPLAY WRAPPERS & SHELLS
   ══════════════════════════════════════════════════════════════════════════ */
#game-shell, #game-shell * {
    backface-visibility: hidden;
}

#game-shell {
    padding: 1rem;
    border: 1px solid rgba(255, 244, 190, 0.28);
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 244, 190, 0.13), transparent 18rem),
        linear-gradient(180deg, rgba(8, 26, 19, 0.92), rgba(20, 49, 35, 0.82));
    box-shadow: 0 24px 70px rgba(4, 18, 12, 0.3);
}

#game-shell .generating, #game-shell .generating * { opacity: 1 !important; }
#game-shell .generating::before, #game-shell .generating::after { display: none !important; }
#game-shell button { font-weight: 900 !important; }

#near-monitor-controls {
    margin: 0.55rem 0;
    padding: 0.7rem;
    border: 1px solid rgba(255, 244, 190, 0.26);
    border-radius: 20px;
    background: rgba(13, 38, 28, 0.52);
}

#near-monitor-controls button {
    min-height: 3rem;
    font-size: 1.05rem !important;
}

.play-hook {
    margin-bottom: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(255, 244, 190, 0.32);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(18, 54, 38, 0.96), rgba(39, 92, 61, 0.92));
    color: #f9ffe9 !important;
    box-shadow: 0 16px 42px rgba(8, 30, 20, 0.2);
}

.play-hook h2, .play-hook p, .play-hook span { color: #f9ffe9 !important; }
.play-hook h2 { margin: 0.15rem 0 0.55rem; font-size: 1.8rem; }
.play-hook .eyebrow { color: #d8ffc5 !important; }

.hook-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.hook-steps span {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
    padding: 0.45rem 0.7rem;
}


/* ══════════════════════════════════════════════════════════════════════════
   5. FOREST SCENE BASEBOARD STYLING
   ══════════════════════════════════════════════════════════════════════════ */
.forest-scene, .forest-scene * {
    color: #f9ffe9 !important;
}

.forest-scene {
    position: relative;
    isolation: isolate;
    transform: translateZ(0);
    transition: box-shadow 120ms ease, filter 120ms ease;
    overflow: hidden;
    min-height: 20rem; /* Preserves maximum vertical clearance */
    padding: 1rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 72%, rgba(255, 239, 173, 0.26), transparent 8rem),
        radial-gradient(circle at 18% 24%, rgba(134, 225, 153, 0.22), transparent 10rem),
        linear-gradient(180deg, #123626 0%, #245c3c 54%, #523b20 100%);
    border: 1px solid rgba(225, 255, 209, 0.25);
    box-shadow: 0 18px 48px rgba(8, 30, 20, 0.26);
}

.scene-stage {
    position: relative;
    height: 13rem; /* Preserves original stage boundaries */
    margin: 0.75rem 0;
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(transparent 62%, rgba(106, 79, 33, 0.55) 63%),
        radial-gradient(ellipse at bottom, rgba(190, 255, 180, 0.24), transparent 60%);
}

.scene-stage span {
    position: absolute;
    line-height: 1;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}


/* ══════════════════════════════════════════════════════════════════════════
   6. SPRITE PLACEMENT, ENVIRONMENT ASSETS & MOTION CHANNELS
   ══════════════════════════════════════════════════════════════════════════ */
.tree-left   { left: 6%;  bottom: 18%; font-size: 5rem;   filter: drop-shadow(0 8px 12px rgba(0,0,0,.28)); }
.tree-right  { right: 7%; bottom: 20%; font-size: 4.75rem; filter: drop-shadow(0 8px 12px rgba(0,0,0,.28)); }
.wood-log    { right: 20%; bottom: 18%; font-size: 2.25rem; }

.grass-one {
    left: 27%; bottom: 16%; font-size: 2.5rem;
    animation: grassSway 4s ease-in-out infinite;
    transform-origin: bottom center;
    filter: drop-shadow(0 0 6px rgba(120, 255, 120, 0.25));
}

.grass-two {
    right: 30%; bottom: 18%; font-size: 2.25rem;
    animation: grassSway 5s ease-in-out infinite;
    animation-delay: -2s;
    transform-origin: bottom center;
    filter: drop-shadow(0 0 6px rgba(120, 255, 120, 0.25));
}

.sparkle-one { left: 35%; top: 20%; font-size: 1.8rem; animation: twinkle 1.8s ease-in-out infinite; }
.sparkle-two { right: 34%; top: 26%; font-size: 1.6rem; animation: twinkle 2.2s ease-in-out infinite reverse; }

.fallen-leaf {
    left: 50%; bottom: 10%; font-size: 2.5rem;
    transform-origin: bottom center;
    filter: drop-shadow(0 0 6px rgba(120, 255, 120, 0.25));
}

/* Myco player animation and transition parameters */
.myco-player {
    font-size: 4rem; 
    z-index: 2;
    transition: left .32s cubic-bezier(.34,1.56,.64,1), bottom .32s cubic-bezier(.34,1.56,.64,1);
    animation: myco-bob 2.4s ease-in-out infinite;
    filter: drop-shadow(0 6px 14px rgba(255,92,92,.28));
}

/* Precise Map Matrix Layout Node Overrides */
.pos-0-0 .myco-player { left: 16%; bottom: 64%; }
.pos-1-0 .myco-player { left: 42%; bottom: 64%; }
.pos-2-0 .myco-player { left: 68%; bottom: 64%; }
.pos-0-1 .myco-player { left: 16%; bottom: 38%; }
.pos-1-1 .myco-player { left: 42%; bottom: 38%; }
.pos-2-1 .myco-player { left: 68%; bottom: 38%; }
.pos-0-2 .myco-player { left: 16%; bottom: 15%; }
.pos-1-2 .myco-player { left: 42%; bottom: 15%; }
.pos-2-2 .myco-player { left: 68%; bottom: 15%; }

/* Roaming mushroom sprites */
.roam-sprite {
    font-size: 2.2rem;
    z-index: 2;
    transition: opacity .3s;
    animation: roam-bob 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
}

.roam-0-0 { left: 10%; bottom: 58%; } 
.roam-1-0 { left: 37%; bottom: 58%; } 
.roam-2-0 { left: 63%; bottom: 58%; }
.roam-0-1 { left: 10%; bottom: 32%; } 
.roam-1-1 { left: 37%; bottom: 32%; } 
.roam-2-1 { left: 63%; bottom: 32%; }
.roam-0-2 { left: 10%; bottom: 9%;  }  
.roam-1-2 { left: 37%; bottom: 9%;  }  
.roam-2-2 { left: 63%; bottom: 9%;  }

.roam-poison { 
    animation: roam-bob 2s ease-in-out infinite, poison-pulse 1.2s ease-in-out infinite; 
}

/* Mushroom Target Object */
.mushroom-sprite {
    right: 37%; bottom: 24%; font-size: 3.4rem; z-index: 2;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
}


/* ══════════════════════════════════════════════════════════════════════════
   7. DETAILED GAME RUNTIME STATE SELECTIONS & ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════ */
/* STATE: Waiting Loop */
.state-waiting .mushroom-sprite { opacity: 0; }

/* STATE: Discovered Sequence */
.state-discovered .mushroom-sprite {
    animation: shroom-popup 0.7s cubic-bezier(.34,1.56,.64,1) both,
               discovery-pop 1.6s ease-out both;
}
.state-discovered .myco-player {
    animation: myco-bob 2.4s ease-in-out infinite,
               myco-run-in 0.6s cubic-bezier(.34,1.56,.64,1) both;
}

/* STATE: Picked / Gathered Sequence */
.state-picked .mushroom-sprite {
    animation: shroom-catch 0.55s cubic-bezier(.34,1.56,.64,1) both,
               myco-pick-pop 700ms ease both;
}
.state-picked .myco-player {
    animation: myco-bob 2.4s ease-in-out infinite,
               myco-catch-jump 0.55s ease both;
}

/* STATE: Hazard Danger Encounter */
.state-danger .mushroom-sprite {
    animation: shroom-popup 0.7s cubic-bezier(.34,1.56,.64,1) both,
               poison-pulse 1.2s ease-in-out infinite 0.7s;
}
.state-danger .myco-player {
    animation: myco-bob 2.4s ease-in-out infinite,
               myco-recoil 0.5s ease both;
}

/* STATE: Defeat / Session End */
.state-game-over,
.state-game-over .forest-scene {
    animation: screen-shake .45s ease both;
    background:
        radial-gradient(circle at 50% 72%, rgba(255, 62, 91, 0.35), transparent 8rem),
        linear-gradient(180deg, #3b0a0a 0%, #6b1a1a 54%, #2a0a0a 100%) !important;
}
.state-game-over .mushroom-sprite {
    animation: shroom-explode .6s ease both;
}
.state-game-over .myco-player {
    animation: myco-fall .6s ease both;
}

/* Global Rendering Keyframes Registry */
@keyframes grassSway {
    0%, 100% { transform: rotate(-3deg) translateY(0px); }
    25% { transform: rotate(2deg) translateY(-2px); }
    50% { transform: rotate(4deg) translateY(-4px); }
    75% { transform: rotate(-2deg) translateY(-2px); }
}
@keyframes roam-bob { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-0.3rem); } 
}
@keyframes myco-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.45rem); }
}
@keyframes twinkle {
    0%, 100% { opacity: 0.35; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.15); }
}
@keyframes shroom-popup {
    0%   { opacity:0; transform:translateY(3rem) scale(.2); }
    60%  { opacity:1; transform:translateY(-.4rem) scale(1.18); }
    100% { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes discovery-pop {
    0% { opacity: 0; transform: scale(0.25) translateY(1rem); }
    70% { opacity: 1; transform: scale(1.12) translateY(-0.25rem); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes myco-run-in {
    0%   { transform:translateX(-3rem) scaleX(-1); }
    100% { transform:translateX(0) scaleX(1); }
}
@keyframes shroom-catch {
    0%   { opacity:1; transform:translateY(0) scale(1); }
    40%  { opacity:1; transform:translateY(-2.5rem) scale(1.3) rotate(15deg); }
    100% { opacity:0; transform:translateY(-5rem) scale(.2) rotate(40deg); }
}
@keyframes myco-pick-pop {
    0% { transform: translate(-50%, -50%) scale(1); }
    45% { transform: translate(-50%, -78%) scale(1.28); }
    100% { transform: translate(-50%, -50%) scale(1); }
}
@keyframes myco-catch-jump {
    0%,100%{ transform:translateY(0); }
    40%    { transform:translateY(-1.4rem) scale(1.1); }
}
@keyframes poison-pulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 62, 91, 0.6)); }
    50% { filter: drop-shadow(0 0 28px rgba(255, 62, 91, 1)); }
}
@keyframes myco-recoil {
    0%  { transform:translateX(0); }
    30% { transform:translateX(-1.2rem); }
    60% { transform:translateX(.4rem); }
    100%{ transform:translateX(0); }
}
@keyframes screen-shake {
    0%,100%{ transform:translateX(0); }
    20%    { transform:translateX(-8px); }
    40%    { transform:translateX(8px); }
    60%    { transform:translateX(-5px); }
    80%    { transform:translateX(5px); }
}
@keyframes shroom-explode {
    0%  { transform:scale(1) rotate(0); opacity:1; }
    50% { transform:scale(1.8) rotate(20deg); opacity:.8; }
    100%{ transform:scale(0) rotate(90deg); opacity:0; }
}
@keyframes myco-fall {
    0%  { transform:rotate(0) translateY(0); opacity:1; }
    100%{ transform:rotate(-90deg) translateY(2rem); opacity:.4; }
}


/* ══════════════════════════════════════════════════════════════════════════
   8. TARGET LOOT RARITY CONDITION MATCHERS & FILTERS
   ══════════════════════════════════════════════════════════════════════════ */
.rarity-common .mushroom-sprite {
    filter: drop-shadow(0 0 8px rgba(255,255,255,.15));
}

.rarity-rare .mushroom-sprite {
    filter: drop-shadow(0 0 18px #6dd5ff) drop-shadow(0 0 18px rgba(138,220,255,.9));
    text-shadow: 0 0 24px rgba(193, 247, 255, 0.9);
}

.rarity-legendary .mushroom-sprite {
    filter: drop-shadow(0 0 30px gold) drop-shadow(0 0 28px rgba(255,215,0,1));
    text-shadow: 0 0 24px rgba(193, 247, 255, 0.9);
    animation: legendary-pulse 1.5s ease-in-out infinite;
}

.state-danger .mushroom-sprite,
.state-game-over .mushroom-sprite {
    filter: drop-shadow(0 0 24px crimson) drop-shadow(0 0 18px rgba(255,62,91,.9)) !important;
}

@keyframes legendary-pulse {
    0%,100%{ filter:drop-shadow(0 0 18px rgba(255,215,0,.7)); transform:scale(1); }
    50%    { filter:drop-shadow(0 0 36px rgba(255,215,0,1)); transform:scale(1.1); }
}


/* ══════════════════════════════════════════════════════════════════════════
   9. NAVIGATION HEAD-UP PANEL, MINI-MAP BOARD & CAPTIONS
   ══════════════════════════════════════════════════════════════════════════ */
.scene-hud, .scene-caption {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    background: rgba(13, 38, 28, 0.68);
    backdrop-filter: blur(6px);
}

.scene-hud {
    flex-wrap: wrap;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
}

.scene-caption { border-radius: 18px; }
.scene-caption span { color: #d9f4d4; }

.forest-map {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin: 0.5rem auto 0.75rem;
    max-width: 10rem;
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(13, 38, 28, 0.58);
}

.map-tile {
    display: grid;
    min-height: 1.8rem;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 900;
}

.map-tile.active {
    background: rgba(255, 224, 138, 0.92);
    color: #3d2c00 !important;
}

.map-tile.has-mush { 
    background: rgba(100, 200, 100, 0.25); 
}

.map-tile.has-poison { 
    background: rgba(200, 60, 60, 0.25); 
}

.score-burst {
    margin: 0.75rem auto 0;
    max-width: 520px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 224, 112, 0.18);
    border: 1px solid rgba(255, 244, 190, 0.36);
    color: #fff7d6;
    font-weight: 900;
    text-align: center;
    animation: score-pop .56s ease both, myco-score-pop 560ms ease both;
}

.state-game-over .score-burst {
    background: rgba(130, 0, 30, 0.45);
    border-color: rgba(255, 120, 140, 0.55);
}

@keyframes score-pop {
    0%{transform:scale(.92);opacity:0;}
    45%{transform:scale(1.06);opacity:1;}
    100%{transform:scale(1);opacity:1;}
}
@keyframes myco-score-pop {
    0% { transform: scale(0.92); opacity: 0; }
    45% { transform: scale(1.04); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.story-moment {
    margin: 0.85rem auto 0;
    max-width: 760px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 234, 166, 0.3);
    border-radius: 18px;
    background: rgba(25, 18, 45, 0.72);
    color: #fff7d6;
    box-shadow: 0 0 24px rgba(165, 111, 255, 0.22);
}

.story-moment strong, .story-moment span { display: block; }
.story-moment span { margin-top: 0.25rem; color: #f6e7b2; }


/* ══════════════════════════════════════════════════════════════════════════
   10. QUEST TRACKER MODULES, ECO-MAP CRADLES & BRAND IMAGES
   ══════════════════════════════════════════════════════════════════════════ */
#discovery-card, #mycodex, #progress-panel, #quest-log {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 250, 235, 0.94);
    color: #173d2a !important;
    border: 1px solid rgba(72, 108, 75, 0.18);
    box-shadow: 0 12px 28px rgba(16, 40, 31, 0.12);
}

#discovery-card *, #mycodex *, #progress-panel *, #quest-log * {
    color: #173d2a !important;
}

.world-map-panel {
    border-radius: 28px;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(21, 67, 49, 0.96), rgba(44, 94, 72, 0.92));
    color: #f7ffe8 !important;
    box-shadow: 0 22px 60px rgba(14, 38, 29, 0.22);
}

.world-map-header h2 { margin: 0.1rem 0 0.35rem; font-size: 2rem; }
.world-map-header p { margin: 0.2rem 0; color: #f7ffe8 !important; }
.world-map-panel h2, .world-map-panel h3, .world-map-panel p, .world-map-panel span, .world-map-panel strong {
    color: #f7ffe8 !important;
}
.world-map-panel .eyebrow { color: #d8ffc5 !important; }

.achievement-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1rem 0; }
.achievement { border-radius: 999px; padding: 0.45rem 0.75rem; font-size: 0.9rem; font-weight: 800; }
.achievement.earned { background: rgba(255, 224, 138, 0.95); color: #3d2c00 !important; }
.achievement.pending { background: rgba(255, 255, 255, 0.12); color: #d4efcf !important; }

.map-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.map-card { border-radius: 22px; padding: 1rem; border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.1); }
.map-card.unlocked { background: rgba(236, 255, 217, 0.18); border-color: rgba(214, 255, 177, 0.4); }
.map-card.locked { background: rgba(17, 44, 34, 0.72); filter: saturate(0.9); }
.map-card-top { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; }
.map-card-top span { font-size: 0.82rem; font-weight: 800; }
.map-card p { margin-bottom: 0; color: #f7ffe8 !important; }
.map-card strong, .map-card span { color: #fffdf4 !important; }

#ai-status {
    border: 1px solid rgba(74, 222, 128, 0.28);
    border-radius: 18px;
    background: rgba(236, 253, 245, 0.72);
    color: #17402f !important;
    font-weight: 800;
    padding: 0.65rem 0.9rem;
}

.ai-tick-badge { 
    display: inline-block; 
    padding: 0.15rem 0.55rem; 
    border-radius: 999px; 
    background: rgba(80, 220, 120, 0.22); 
    border: 1px solid rgba(80, 220, 120, 0.4); 
    color: #0abf4b;
    font-size: 0.72rem; 
    font-weight: 800; 
    animation: ai-pulse 2s ease-in-out infinite; 
}

@keyframes ai-pulse { 
    0%, 100% { opacity: 0.6; } 
    50% { opacity: 1; } 
}

.myco-image, .myco-image-2 {
    background: #0b1d12 !important; 
    border: 2px solid #4ade80 !important; 
    padding: 16px !important; 
    width: 80% !important;
    max-width: 80% !important; 
    margin: 20px auto !important; 
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.myco-image { border-radius: 12px !important; }
.myco-image-2 { border-radius: 6px !important; padding: 8px !important; }


/* ══════════════════════════════════════════════════════════════════════════
   11. VIEWPORT BREAKPOINT RESPONSIVENESS
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
    .myco-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .myco-mascot {
        width: 4.5rem;
        height: 4.5rem;
        font-size: 3rem;
    }

    .myco-hero h1 {
        font-size: 2.25rem;
    }

    .forest-start-btn button {
        border-radius: 24px !important;
        padding: 16px 32px !important;
        background: linear-gradient(135deg, #2d5a27, #4caf50) !important;
        border: 2px solid #8bc34a !important;
        box-shadow: 0 4px 16px rgba(76, 175, 80, 0.35);
        transition: all 0.2s ease;
    }

    .forest-start-btn button:hover {
        transform: translateY(-2px);
    }
}

#myco-live-log textarea {
    font-family: monospace !important;
    font-size: 0.8rem !important;
    background: rgba(10, 20, 15, 0.95) !important;
    color: #90ffb8 !important;
    border: 1px solid rgba(80, 220, 120, 0.3) !important;
    border-radius: 12px !important;
}

/* Magic Mushroom */
#narrative-card {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10; /* Forces text to sit on top of the HTML animation */
    max-width: 320px;
    
    /* FIX: Changed from #ffffff to a dark, high-contrast forest green */
    color: #123321; 
    
    /* Lighter, pastel glassmorphism green background */
    background: linear-gradient(
        135deg, 
        rgba(230, 247, 237, 0.6), 
        rgba(168, 230, 194, 0.4)
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(110, 200, 145, 0.5); /* Clearer light green border */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* Soft shadow */
}

"""