Spaces:
Sleeping

byte-vortex commited on
Commit
08ae43a
·
verified ·
1 Parent(s): 17cd7c5

Deploy Myco from CI

Browse files
Files changed (1) hide show
  1. ui/renderers.py +143 -53
ui/renderers.py CHANGED
@@ -581,67 +581,157 @@ def _mystery_goal_line(active_mystery, count):
581
 
582
  def game_intro_markdown() -> str:
583
  return """
584
- <div style="
585
- text-align:center;
586
- margin-bottom:1rem;
587
- padding:1.25rem;
588
- border-radius:18px;
589
- background:linear-gradient(
590
- 180deg,
591
- rgba(28,43,36,.95) 0%,
592
- rgba(17,28,22,.95) 100%
593
- );
594
- border:1px solid rgba(170,255,180,.15);
595
- box-shadow:0 8px 24px rgba(0,0,0,.25);
596
- ">
597
-
598
- <div style="font-size:3rem; margin-bottom:.25rem;">
599
- 🍄
600
  </div>
601
 
602
- <h2 style="
603
- margin:.2rem 0 .6rem 0;
604
- color:#eaffd7;
605
- letter-spacing:.04em;
606
- ">
607
- 🌲 Welcome to the Deep Forest 🌲
608
- </h2>
609
-
610
- <p style="
611
- color:#d4e8d0;
612
- max-width:700px;
613
- margin:0 auto;
614
- line-height:1.6;
615
- font-size:1rem;
616
- ">
617
- The moss glows softly beneath your feet as the forest breathes around you.
618
- Beside you hops <strong style="color:#ffd86b;">Myco</strong> — a curious little mushroom
619
- who remembers fragments of a forest that should no longer exist.
620
  </p>
621
 
622
- <p style="
623
- color:#b8d8b4;
624
- max-width:700px;
625
- margin:.8rem auto 0 auto;
626
- line-height:1.6;
627
- ">
628
- Every clearing hides a discovery. Some reveal forgotten memories.
629
- Some whisper clues. Some are dangerous.
630
- Myco wants to investigate <em>all of them</em>.
631
  </p>
632
 
633
- <div style="
634
- margin-top:1rem;
635
- padding:.75rem 1rem;
636
- border-radius:12px;
637
- background:rgba(255,255,255,.05);
638
- color:#fff6c2;
639
- font-style:italic;
640
- ">
641
- 💭 "I have a strange feeling about this place...
642
- Let's search the next clearing together."
643
  </div>
644
 
645
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
646
  """
647
 
 
581
 
582
  def game_intro_markdown() -> str:
583
  return """
584
+ <div class="myco-hero-banner">
585
+
586
+ <div class="floating-spores">
587
+ <span>✨</span>
588
+ <span>✦</span>
589
+ <span>✨</span>
590
+ <span>✧</span>
591
+ <span>✨</span>
 
 
 
 
 
 
 
 
592
  </div>
593
 
594
+ <div class="myco-avatar">🍄</div>
595
+
596
+ <h1>🌲 The Deep Forest 🌲</h1>
597
+
598
+ <p class="intro">
599
+ The moss glows softly beneath your feet as the forest breathes around you.
600
+ Beside you hops <strong>Myco</strong> — a curious little mushroom who remembers
601
+ fragments of a forest that should no longer exist.
 
 
 
 
 
 
 
 
 
 
602
  </p>
603
 
604
+ <p class="story">
605
+ Every clearing hides a discovery. Some reveal forgotten memories.
606
+ Some whisper clues. Some are dangerous.
 
 
 
 
 
 
607
  </p>
608
 
609
+ <div class="highlight-line">
610
+ 🍄 Myco wants to investigate <span>EVERY SINGLE ONE</span>.
611
+ </div>
612
+
613
+ <div class="myco-thought">
614
+ 💭 “I know this forest... but I don't remember why.”
 
 
 
 
615
  </div>
616
 
617
  </div>
618
+
619
+ <style>
620
+ .myco-hero-banner{
621
+ position:relative;
622
+ overflow:hidden;
623
+ text-align:center;
624
+ padding:2rem;
625
+ margin-bottom:1rem;
626
+ border-radius:24px;
627
+
628
+ background:
629
+ radial-gradient(circle at 20% 20%, rgba(255,240,160,.18), transparent 30%),
630
+ radial-gradient(circle at 80% 30%, rgba(120,255,180,.15), transparent 35%),
631
+ linear-gradient(
632
+ 135deg,
633
+ #0f2027 0%,
634
+ #203a43 35%,
635
+ #2c5530 70%,
636
+ #0f2027 100%
637
+ );
638
+
639
+ border:1px solid rgba(255,255,255,.12);
640
+
641
+ box-shadow:
642
+ 0 0 30px rgba(0,0,0,.35),
643
+ inset 0 0 60px rgba(255,255,255,.03);
644
+ }
645
+
646
+ .myco-avatar{
647
+ font-size:4.5rem;
648
+ animation:bounce 2.2s ease-in-out infinite;
649
+ filter:drop-shadow(0 0 18px rgba(255,210,100,.7));
650
+ }
651
+
652
+ .myco-hero-banner h1{
653
+ color:#f8ffd7 !important;
654
+ margin:.4rem 0 .8rem;
655
+ font-size:2.2rem;
656
+ text-shadow:0 0 16px rgba(255,255,180,.3);
657
+ }
658
+
659
+ .intro,
660
+ .story{
661
+ color:#eef9e6 !important;
662
+ max-width:800px;
663
+ margin:auto;
664
+ line-height:1.7;
665
+ font-size:1.05rem;
666
+ }
667
+
668
+ .highlight-line{
669
+ margin:1.2rem auto;
670
+ padding:.9rem 1.2rem;
671
+ max-width:700px;
672
+ border-radius:999px;
673
+
674
+ background:linear-gradient(
675
+ 90deg,
676
+ rgba(255,210,80,.18),
677
+ rgba(255,255,255,.06),
678
+ rgba(255,210,80,.18)
679
+ );
680
+
681
+ color:#ffffff !important;
682
+ font-weight:700;
683
+ font-size:1.05rem;
684
+ }
685
+
686
+ .highlight-line span{
687
+ color:#ffd54f !important;
688
+ font-weight:900;
689
+ letter-spacing:.08em;
690
+ text-shadow:0 0 12px rgba(255,215,0,.7);
691
+ }
692
+
693
+ .myco-thought{
694
+ margin-top:1rem;
695
+ color:#fff6c2 !important;
696
+ font-style:italic;
697
+ animation:pulse 3s ease-in-out infinite;
698
+ }
699
+
700
+ .floating-spores span{
701
+ position:absolute;
702
+ font-size:1.2rem;
703
+ animation:float 6s linear infinite;
704
+ }
705
+
706
+ .floating-spores span:nth-child(1){left:10%;top:15%;}
707
+ .floating-spores span:nth-child(2){left:25%;top:60%;animation-delay:1s;}
708
+ .floating-spores span:nth-child(3){left:50%;top:10%;animation-delay:2s;}
709
+ .floating-spores span:nth-child(4){left:75%;top:55%;animation-delay:3s;}
710
+ .floating-spores span:nth-child(5){left:90%;top:20%;animation-delay:4s;}
711
+
712
+ @keyframes bounce{
713
+ 0%,100%{transform:translateY(0);}
714
+ 50%{transform:translateY(-10px);}
715
+ }
716
+
717
+ @keyframes pulse{
718
+ 0%,100%{opacity:.75;}
719
+ 50%{opacity:1;}
720
+ }
721
+
722
+ @keyframes float{
723
+ 0%{
724
+ transform:translateY(15px);
725
+ opacity:.2;
726
+ }
727
+ 50%{
728
+ opacity:1;
729
+ }
730
+ 100%{
731
+ transform:translateY(-20px);
732
+ opacity:.2;
733
+ }
734
+ }
735
+ </style>
736
  """
737