File size: 4,410 Bytes
0b2de52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Loot Spin Bonanza</title>
  <link rel="stylesheet" href="style.css">
  <script src="https://cdn.tailwindcss.com"></script>
  <script src="https://unpkg.com/feather-icons"></script>
  <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            primary: '#ff8c00',
            secondary: '#ffcc66',
            dark: '#050505',
            light: '#f7f7f7',
            dim: '#a7a7a7',
            green: '#00c878',
            blue: '#50a0ff',
            purple: '#a050ff',
            gold: '#ffcc66'
          }
        }
      }
    }
  </script>
</head>
<body class="min-h-screen flex items-center justify-center p-6 bg-gradient-to-b from-primary/10 to-dark">
  <div class="w-full max-w-4xl rounded-3xl p-8 bg-gradient-to-br from-white/5 to-dark/95 backdrop-blur-lg shadow-xl shadow-primary/20 border border-white/10">
    <!-- Header -->
    <header class="flex items-center justify-between mb-8">
      <div class="flex items-center gap-2">
        <i data-feather="gift" class="text-primary"></i>
        <h1 class="text-2xl font-bold text-light">Loot Spin Bonanza</h1>
      </div>
      <div class="flex items-center gap-2 text-dim">
        <i data-feather="user" class="w-5 h-5"></i>
        <span>Player</span>
      </div>
    </header>

    <!-- Loot Box Section -->
    <section class="mb-8">
      <h2 class="text-xs uppercase tracking-widest text-dim mb-2">Loot Box Spin</h2>
      <div class="relative py-6 px-4 rounded-2xl bg-gradient-to-b from-dark/95 to-dark shadow-inner shadow-black/50 border border-white/5 overflow-hidden">
        <div id="lootSelectionWindow" class="absolute top-6 left-1/2 -translate-x-1/2 w-24 h-32 rounded-xl border-2 border-primary shadow-lg shadow-primary/50 z-10 pointer-events-none"></div>
        <div id="lootWrapper" class="overflow-hidden px-12">
          <div id="lootTrack" class="flex gap-4">
            <!-- Loot boxes will be inserted here by JavaScript -->
          </div>
        </div>
      </div>
    </section>

    <!-- Multiplier Section -->
    <section class="mb-8">
      <h2 class="text-xs uppercase tracking-widest text-dim mb-2">Multiplier</h2>
      <div class="relative py-6 px-4 rounded-2xl bg-gradient-to-b from-dark/95 to-dark shadow-inner shadow-black/50 border border-white/5 overflow-hidden">
        <div id="multiSelectionWindow" class="absolute top-6 left-1/2 -translate-x-1/2 w-24 h-14 rounded-full border-2 border-primary shadow-lg shadow-primary/50 z-10 pointer-events-none"></div>
        <div id="multiWrapper" class="overflow-hidden px-12">
          <div id="multiTrack" class="flex gap-4">
            <!-- Multiplier pills will be inserted here by JavaScript -->
          </div>
        </div>
      </div>
    </section>

    <!-- Spin Button -->
    <div class="flex justify-center">
      <button id="spinBtn" class="px-12 py-4 rounded-full bg-gradient-to-b from-primary to-primary-dark text-dark font-bold uppercase tracking-wider shadow-lg shadow-primary/30 hover:shadow-primary/40 transition-all duration-200 hover:scale-105 active:scale-95">
        Spin Now
      </button>
    </div>
  </div>

  <!-- Result Popup -->
  <div id="popupBackdrop" class="fixed inset-0 bg-black/80 flex items-center justify-center hidden z-50">
    <div class="w-80 max-w-full rounded-2xl p-6 bg-gradient-to-br from-dark/95 to-dark/90 backdrop-blur-lg border border-primary/30 shadow-2xl shadow-primary/30 text-center">
      <h3 class="text-xs uppercase tracking-widest text-dim mb-2">Result</h3>
      <div id="popupTotal" class="text-4xl font-bold text-secondary mb-4">0 SC</div>
      <div id="popupBase" class="text-sm text-dim mb-1">Base: 0 SC</div>
      <div id="popupMulti" class="text-sm text-dim mb-6">Multiplier: ×1</div>
      <button id="popupClose" class="px-6 py-2 rounded-full bg-gradient-to-b from-primary to-primary-dark text-dark font-medium text-sm uppercase tracking-wider shadow-md shadow-primary/20">
        Collect
      </button>
    </div>
  </div>

  <script src="script.js"></script>
  <script>
    feather.replace();
  </script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>