@everymatrix/mini-games-hub 0.1.18 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/components/BackButton-BrfBWRIr.js +38 -0
  2. package/components/BackButton-DWyr6ELs.js +39 -0
  3. package/components/CoinFlip-CqHlL4t9.js +367 -0
  4. package/components/CoinFlip-zzM-FtUg.js +402 -0
  5. package/components/CoinRoyale-BJWVsEJj.cjs +759 -0
  6. package/components/CoinRoyale-BfaHdSQN.cjs +757 -0
  7. package/components/CoinRoyale-Bgl4Ea3N.js +1018 -0
  8. package/components/CoinRoyale-CuEAflkt.cjs +757 -0
  9. package/components/CoinRoyale-DKWXkm3P.js +1040 -0
  10. package/components/CoinRoyale-Y2G7RWga.js +1020 -0
  11. package/components/CoinRoyale-hmGqx4pF.cjs +759 -0
  12. package/components/CoinRoyale-t3opSEHv.js +1038 -0
  13. package/components/DrawResult-DXaJYat3.js +343 -0
  14. package/components/DrawResult-FwuHCP-y.js +373 -0
  15. package/components/GameCard-45tJnqY3.cjs +3 -0
  16. package/components/GameCard-C1IfKCWx.js +66 -0
  17. package/components/GameCard-CLXODhBl.js +63 -0
  18. package/components/GameCard-DZm1MFqf.cjs +3 -0
  19. package/components/GameHistory-9Xh7Sb6S.cjs +13 -0
  20. package/components/GameHistory-B6MiGA9Z.js +240 -0
  21. package/components/GameHistory-BmChILXB.js +241 -0
  22. package/components/GameHistory-DioZWMQ8.cjs +13 -0
  23. package/components/GamePlaceholder-2C54MJXM.js +87 -0
  24. package/components/GamePlaceholder-BPZQa2uj.cjs +18 -0
  25. package/components/GamePlaceholder-CXixYEW3.cjs +18 -0
  26. package/components/GamePlaceholder-zLYrDd0k.js +88 -0
  27. package/components/GameRules-DNete4N3.js +117 -0
  28. package/components/GameRules-DOPgbqxU.cjs +5 -0
  29. package/components/GameRules-DbfGxBGR.cjs +5 -0
  30. package/components/GameRules-lzdMrQZY.js +128 -0
  31. package/components/MiniGamesHub-9mWWh3N1.js +1111 -0
  32. package/components/MiniGamesHub-CQ1jWyWR.js +1111 -0
  33. package/components/MiniGamesHub-CWV1acJR.cjs +79 -0
  34. package/components/MiniGamesHub-CfeP3fA-.cjs +79 -0
  35. package/components/MiniGamesHub-ChMf3rL7.js +1141 -0
  36. package/components/MiniGamesHub-Cv7rxLAO.cjs +79 -0
  37. package/components/MiniGamesHub-D4fNnQ70.js +1141 -0
  38. package/components/MiniGamesHub-gVFlxi4x.cjs +79 -0
  39. package/components/MysteryChest-Bq1NBRQI.cjs +739 -0
  40. package/components/MysteryChest-BsUxRwj9.js +1248 -0
  41. package/components/MysteryChest-C1jSQFBT.cjs +741 -0
  42. package/components/MysteryChest-Cg48wdP6.cjs +741 -0
  43. package/components/MysteryChest-Cq77jWfV.cjs +739 -0
  44. package/components/MysteryChest-D5OWiZfM.js +1250 -0
  45. package/components/MysteryChest-DE2NS9aL.js +1299 -0
  46. package/components/MysteryChest-pWptmU6O.js +1297 -0
  47. package/components/WheelOfFortune-CriOHAfp.cjs +627 -0
  48. package/components/WheelOfFortune-D2AVLv8r.js +934 -0
  49. package/components/WheelOfFortune-Dsr3jMxy.cjs +627 -0
  50. package/components/WheelOfFortune-uTfPiHqd.js +950 -0
  51. package/components/WheelOfFortuneWheel-C91V0Bho.js +1741 -0
  52. package/components/WheelOfFortuneWheel-CDjrztMA.js +1812 -0
  53. package/components/countdown-Bn5Dj09X.js +157 -0
  54. package/components/utils-DT23SX1f.js +6007 -0
  55. package/es2015/mini-games-hub.cjs +1 -1
  56. package/es2015/mini-games-hub.js +1 -1
  57. package/esnext/mini-games-hub.cjs +1 -1
  58. package/esnext/mini-games-hub.js +1 -1
  59. package/package.json +1 -1
@@ -0,0 +1,1250 @@
1
+ import { d as Yt, c as Tt, a as Bt, p as W, o as Et, i as z, g as Ue, m as N, s as L, j as C, r as V, e as d, f as b, n as he, b as ze, k as Pt, h as St, l as Ye, u as Lt } from "./WheelOfFortuneWheel-C91V0Bho.js";
2
+ import { G as Rt, aM as x, aC as Ce, W as jt, a0 as e, au as o, aO as i, ah as Y, L as Mt, aY as q, aT as c, aP as It, aQ as Dt, aG as J, aR as Gt, aW as p, b5 as Kt, aU as Xt, aV as Ot, aN as re, b0 as Ft } from "./utils-DT23SX1f.js";
3
+ import { j as $t } from "./constants-Q_kcdbM6.js";
4
+ import { c as At } from "./countdown-Bn5Dj09X.js";
5
+ import { c as Ht, f as Ut } from "./remaining-times-DiYnfuZB.js";
6
+ import { D as Zt } from "./DrawResult-DXaJYat3.js";
7
+ import { G as Wt } from "./GameHistory-B6MiGA9Z.js";
8
+ import { G as Nt } from "./GameRules-DNete4N3.js";
9
+ import { B as Vt } from "./BackButton-BrfBWRIr.js";
10
+ import { b as qt } from "./mystery-chest-bg-CGT-JTBW.js";
11
+ import { c as Jt } from "./mystery-chest-locked-CIxpYU3v.js";
12
+ import { c as Qt } from "./mystery-chest-empty-D7bbrCHH.js";
13
+ import { c as en } from "./mystery-chest-win-D1NYItcd.js";
14
+ import { k as Ze } from "./key-D1g9LqMU.js";
15
+ var tn = b('<span class="mystery-chest__particle svelte-1af7gxu"></span>'), nn = b('<div class="mystery-chest__scene-glow svelte-1af7gxu"></div> <!>', 1), an = b('<button role="tab" type="button"> </button>'), rn = b('<span class="mystery-chest__rays svelte-1af7gxu" aria-hidden="true"></span> <span class="mystery-chest__shockwave svelte-1af7gxu" aria-hidden="true"></span> <span class="mystery-chest__opening-glow svelte-1af7gxu" aria-hidden="true"></span>', 1), sn = Ye('<path class="mystery-chest__keyhole-solid svelte-1af7gxu"></path>'), on = Ye('<path class="mystery-chest__keyhole-dots svelte-1af7gxu"></path><path class="mystery-chest__keyhole-light svelte-1af7gxu" pathLength="100"></path>', 1), ln = Ye('<svg viewBox="0 0 100 150" aria-hidden="true"><path class="mystery-chest__keyhole-fill svelte-1af7gxu"></path><!></svg>'), cn = b('<span class="mystery-chest__lock-flash svelte-1af7gxu"></span>'), pn = b('<div><img class="mystery-chest__key-img svelte-1af7gxu" alt="" draggable="false"/></div>'), mn = b('<img alt="" aria-hidden="true" draggable="false"/>'), dn = b('<div class="mystery-chest__badge svelte-1af7gxu"><p class="mystery-chest__badge-title svelte-1af7gxu"> </p> <p class="mystery-chest__badge-body svelte-1af7gxu"> </p> <button class="mystery-chest__badge-close svelte-1af7gxu" type="button"> </button></div>'), yn = b('<div class="mystery-chest__badge svelte-1af7gxu"><p class="mystery-chest__badge-title svelte-1af7gxu"> </p> <p class="mystery-chest__badge-countdown svelte-1af7gxu"> </p></div>'), fn = b('<span class="mystery-chest__flips-loader svelte-1af7gxu"></span>'), gn = b('<p class="mystery-chest__hint svelte-1af7gxu"> </p> <p class="mystery-chest__flips svelte-1af7gxu"> <span class="mystery-chest__flips-count svelte-1af7gxu"><svg class="mystery-chest__flips-icon svelte-1af7gxu" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M10 6H10.0067M10 10C12.2091 10 14 8.20914 14 6C14 3.79086 12.2091 2 10 2C7.79086 2 6 3.79086 6 6C6 6.18245 6.01222 6.36205 6.03587 6.53802C6.07478 6.82745 6.09424 6.97217 6.08114 7.06373C6.0675 7.1591 6.05013 7.2105 6.00313 7.2946C5.958 7.37533 5.87847 7.45486 5.71942 7.61391L2.31242 11.0209C2.19712 11.1362 2.13947 11.1939 2.09824 11.2611C2.06169 11.3208 2.03475 11.3858 2.01842 11.4538C2 11.5306 2 11.6121 2 11.7752V12.9333C2 13.3067 2 13.4934 2.07266 13.636C2.13658 13.7614 2.23856 13.8634 2.36401 13.9273C2.50661 14 2.6933 14 3.06667 14H4.22484C4.3879 14 4.46943 14 4.54615 13.9816C4.61418 13.9652 4.67921 13.9383 4.73886 13.9018C4.80613 13.8605 4.86378 13.8029 4.97909 13.6876L8.38609 10.2806C8.54514 10.1215 8.62467 10.042 8.7054 9.99687C8.7895 9.94987 8.8409 9.9325 8.93627 9.91886C9.02783 9.90576 9.17255 9.92522 9.46198 9.96413C9.63795 9.98778 9.81755 10 10 10Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" class="svelte-1af7gxu"></path></svg> <!></span></p>', 1), hn = b('<div class="mystery-chest__play svelte-1af7gxu"><div><!> <img class="mystery-chest__chest-img svelte-1af7gxu" alt="" draggable="false"/> <!> <!></div> <!> <!> <!></div> <!> <button class="mystery-chest__cta svelte-1af7gxu" type="button"> </button>', 1), un = b('<div><div class="mystery-chest__scene svelte-1af7gxu" aria-hidden="true"><img class="mystery-chest__scene-img svelte-1af7gxu" alt="" draggable="false"/> <div class="mystery-chest__scene-tint svelte-1af7gxu"></div> <!></div> <!> <div class="mystery-chest__heading svelte-1af7gxu"><h3 class="mystery-chest__title svelte-1af7gxu"> </h3> <p class="mystery-chest__subtitle svelte-1af7gxu"> </p></div> <div class="mystery-chest__tabs svelte-1af7gxu" role="tablist"><div class="mystery-chest__tab-indicator svelte-1af7gxu"></div> <!></div> <!></div>');
16
+ const xn = {
17
+ hash: "svelte-1af7gxu",
18
+ code: `@keyframes svelte-1af7gxu-game-bob {
19
+ 0%, 100% {
20
+ transform: translateY(0);
21
+ }
22
+ 50% {
23
+ transform: translateY(-10px);
24
+ }
25
+ }
26
+ @keyframes svelte-1af7gxu-game-bg-drift {
27
+ 0%, 100% {
28
+ transform: scale(1.06) translate(0, 0);
29
+ }
30
+ 50% {
31
+ transform: scale(1.12) translate(-1.5%, -1%);
32
+ }
33
+ }
34
+ @keyframes svelte-1af7gxu-game-cta-glow {
35
+ 0%, 100% {
36
+ transform: scale(1);
37
+ filter: brightness(1);
38
+ box-shadow: 0 9px 13px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 204, 0, 0.48), 0 0 38px rgba(255, 183, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
39
+ }
40
+ 50% {
41
+ transform: scale(1.065);
42
+ filter: brightness(1.08);
43
+ box-shadow: 0 12px 18px rgba(0, 0, 0, 0.34), 0 0 24px rgba(255, 204, 0, 0.62), 0 0 44px rgba(255, 183, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.46);
44
+ }
45
+ }
46
+ @keyframes svelte-1af7gxu-mc-loader-spin {
47
+ to {
48
+ transform: rotate(360deg);
49
+ }
50
+ }
51
+ @keyframes svelte-1af7gxu-mc-float-up {
52
+ 0% {
53
+ transform: translateY(0);
54
+ opacity: 0;
55
+ }
56
+ 15% {
57
+ opacity: 1;
58
+ }
59
+ 100% {
60
+ transform: translateY(-420px);
61
+ opacity: 0;
62
+ }
63
+ }
64
+ @keyframes svelte-1af7gxu-mc-dot-march {
65
+ to {
66
+ stroke-dashoffset: -9;
67
+ }
68
+ }
69
+ @keyframes svelte-1af7gxu-mc-light-run {
70
+ to {
71
+ stroke-dashoffset: -100;
72
+ }
73
+ }
74
+ @keyframes svelte-1af7gxu-mc-key-halo-pulse {
75
+ 0%, 100% {
76
+ border-color: rgba(255, 236, 150, 0.55);
77
+ box-shadow: 0 0 12px rgba(255, 204, 0, 0.25), inset 0 0 8px rgba(255, 204, 0, 0.15);
78
+ }
79
+ 50% {
80
+ border-color: rgba(255, 236, 150, 0.95);
81
+ box-shadow: 0 0 24px rgba(255, 204, 0, 0.55), inset 0 0 14px rgba(255, 204, 0, 0.3);
82
+ }
83
+ }
84
+ @keyframes svelte-1af7gxu-mc-lock-jolt {
85
+ 0% {
86
+ transform: translateY(0) rotate(0);
87
+ }
88
+ 20% {
89
+ transform: translateY(2px) rotate(-1.5deg);
90
+ }
91
+ 45% {
92
+ transform: translateY(-3px) rotate(1.2deg);
93
+ }
94
+ 70% {
95
+ transform: translateY(1px) rotate(-0.5deg);
96
+ }
97
+ 100% {
98
+ transform: translateY(0) rotate(0);
99
+ }
100
+ }
101
+ @keyframes svelte-1af7gxu-mc-lock-flash {
102
+ 0% {
103
+ opacity: 0;
104
+ transform: translate(-50%, -50%) scale(0.3);
105
+ }
106
+ 35% {
107
+ opacity: 1;
108
+ }
109
+ 100% {
110
+ opacity: 0;
111
+ transform: translate(-50%, -50%) scale(1.8);
112
+ }
113
+ }
114
+ @keyframes svelte-1af7gxu-mc-ray-spin {
115
+ from {
116
+ transform: translate(-50%, -50%) rotate(0deg);
117
+ }
118
+ to {
119
+ transform: translate(-50%, -50%) rotate(360deg);
120
+ }
121
+ }
122
+ @keyframes svelte-1af7gxu-mc-ray-in {
123
+ 0% {
124
+ opacity: 0;
125
+ }
126
+ 60% {
127
+ opacity: 0.9;
128
+ }
129
+ 100% {
130
+ opacity: 0.75;
131
+ }
132
+ }
133
+ @keyframes svelte-1af7gxu-mc-shockwave {
134
+ 0% {
135
+ transform: translate(-50%, -50%) scale(0.2);
136
+ opacity: 0.8;
137
+ }
138
+ 100% {
139
+ transform: translate(-50%, -50%) scale(2.6);
140
+ opacity: 0;
141
+ }
142
+ }
143
+ @keyframes svelte-1af7gxu-mc-opening-glow {
144
+ 0%, 100% {
145
+ transform: translate(-50%, -50%) scale(1);
146
+ opacity: 0.55;
147
+ }
148
+ 50% {
149
+ transform: translate(-50%, -50%) scale(1.08);
150
+ opacity: 0.9;
151
+ }
152
+ }
153
+ @keyframes svelte-1af7gxu-mc-chest-shake {
154
+ 0%, 100% {
155
+ transform: translate(0, 0) rotate(0deg);
156
+ }
157
+ 20% {
158
+ transform: translate(-5px, 1px) rotate(-2.5deg);
159
+ }
160
+ 40% {
161
+ transform: translate(5px, -1px) rotate(2.5deg);
162
+ }
163
+ 60% {
164
+ transform: translate(-4px, 2px) rotate(-2deg);
165
+ }
166
+ 80% {
167
+ transform: translate(4px, -2px) rotate(2deg);
168
+ }
169
+ }
170
+ @keyframes svelte-1af7gxu-mc-chest-burst {
171
+ 0% {
172
+ transform: scale(1);
173
+ }
174
+ 40% {
175
+ transform: scale(0.92) translateY(6px);
176
+ }
177
+ 70% {
178
+ transform: scale(1.12) translateY(-14px);
179
+ }
180
+ 100% {
181
+ transform: scale(1) translateY(0);
182
+ }
183
+ }
184
+ @keyframes svelte-1af7gxu-mc-dust-puff {
185
+ 0% {
186
+ transform: translate(0, 0) scale(0.4);
187
+ opacity: 0;
188
+ }
189
+ 30% {
190
+ opacity: 0.6;
191
+ }
192
+ 100% {
193
+ transform: translate(var(--dust-dx, 0), var(--dust-dy, -80px)) scale(1.6);
194
+ opacity: 0;
195
+ }
196
+ } .mystery-chest {--yellow: var(--color-text-brand, #ffd400);--white: var(--color-text-default, #f4f8ff);--ease: cubic-bezier(0.22, 0.61, 0.32, 1);--mc-bob: 5000ms;--mc-stage-h: max(820px, min(100dvh, 900px));--mc-bg-w: calc(var(--mc-stage-h) * 1.013);container-type:inline-size;position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;width:100%;margin:0 auto;gap:clamp(6px, 2vw, 12px);padding-bottom:clamp(20px, 15vw, 50px);min-height:calc(var(--game-stage-size, clamp(276px, 100vw, 430px)) + 400px);flex-shrink:0;overflow:hidden;color:var(--white);background:transparent;} .mystery-chest *,
197
+ .mystery-chest *::before,
198
+ .mystery-chest *::after {box-sizing:border-box;} .mystery-chest.mystery-chest--plain .mystery-chest__scene {opacity:0;transition:none;} .mystery-chest.mystery-chest--plain .mystery-chest__scene-img,
199
+ .mystery-chest.mystery-chest--plain .mystery-chest__particle {animation-play-state:paused;} .mystery-chest.mystery-chest--result .mystery-chest__heading,
200
+ .mystery-chest.mystery-chest--result .mystery-chest__tabs {display:none;} .mystery-chest.mystery-chest--busy .game-back-button,
201
+ .mystery-chest.mystery-chest--busy .mystery-chest__tabs,
202
+ .mystery-chest.mystery-chest--busy .mystery-chest__cta {pointer-events:none;} .mystery-chest.mystery-chest--opening .game-back-button,
203
+ .mystery-chest.mystery-chest--opening .mystery-chest__heading,
204
+ .mystery-chest.mystery-chest--opening .mystery-chest__tabs,
205
+ .mystery-chest.mystery-chest--opening .mystery-chest__hint,
206
+ .mystery-chest.mystery-chest--opening .mystery-chest__flips,
207
+ .mystery-chest.mystery-chest--opening .mystery-chest__cta,
208
+ .mystery-chest.mystery-chest--opening .mystery-chest__key {opacity:0;filter:blur(4px);pointer-events:none;transition:opacity 0.4s ease, filter 0.4s ease;} .mystery-chest.mystery-chest--opening .mystery-chest__scene-img {opacity:0.25;transition:opacity 0.4s ease;} .mystery-chest.mystery-chest--opening .mystery-chest__scene-glow,
209
+ .mystery-chest.mystery-chest--opening .mystery-chest__particle {opacity:0;transition:opacity 0.4s ease;} .mystery-chest__scene {position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;transition:opacity 1s ease;-webkit-mask-image:linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);mask-image:linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);} .mystery-chest__scene-img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 68%;} .mystery-chest:not(.mystery-chest--result, .mystery-chest--lite) .mystery-chest__scene-img {
210
+ animation: svelte-1af7gxu-game-bg-drift 26s ease-in-out infinite;} .mystery-chest__scene-tint {position:absolute;inset:0;background:color-mix(in srgb, var(--color-primary-6, #301200) 55%, transparent);} .mystery-chest__scene-glow {position:absolute;inset:0;background:radial-gradient(120% 70% at 50% 38%, rgba(79, 169, 255, 0.28) 0%, rgba(2, 38, 82, 0) 55%), radial-gradient(140% 90% at 50% 110%, rgba(1, 12, 30, 0.9) 0%, rgba(1, 12, 30, 0) 60%);} .mystery-chest__particle {position:absolute;bottom:96px;border-radius:50%;background:#ffe680;box-shadow:0 0 8px 2px rgba(255, 204, 0, 0.7);opacity:0;
211
+ animation: svelte-1af7gxu-mc-float-up linear infinite;}
212
+ @container (min-width: 600px) { .mystery-chest__scene {left:50%;right:auto;width:min(var(--mc-bg-w), 100cqw);transform:translateX(-50%);-webkit-mask-image:linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);mask-image:linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);}
213
+ } .mystery-chest__heading {position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;gap:6px;} .mystery-chest__title {margin:0;text-align:center;font-size:clamp(20px, 5.5vw, 28px);font-weight:900;line-height:1.05;color:var(--yellow);text-shadow:0 3px 14px rgba(0, 0, 0, 0.35);} .mystery-chest--no-back .mystery-chest__title {padding-top:16px;} .mystery-chest__subtitle {margin:0 0 clamp(10px, 3vw, 16px);text-align:center;font-size:clamp(11px, 3vw, 14px);font-weight:500;line-height:1.25;color:var(--white);opacity:0.92;} .mystery-chest__tabs {position:relative;z-index:2;display:flex;justify-content:center;width:90%;max-width:700px;margin-bottom:12px;padding:6px;border-radius:50px;background:var(--color-tabs, rgba(255, 255, 255, 0.1));box-shadow:inset 0 0 0 1px var(--color-border-subtle, rgba(255, 255, 255, 0.08)), inset 0 2px 6px rgba(0, 0, 0, 0.25);height:46px;} .mystery-chest__tab-indicator {position:absolute;top:6px;bottom:6px;left:6px;width:calc((100% - 12px) / 3);border-radius:50px;background:var(--color-tabs-selected, linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12)));box-shadow:0 2px 8px rgba(0, 0, 0, 0.25);transition:transform 0.32s var(--ease);pointer-events:none;} .mystery-chest__tab {position:relative;z-index:1;width:100%;padding:5px;border:none;border-radius:50px;background:transparent;color:var(--white);cursor:pointer;opacity:0.75;transition:opacity 0.15s ease, transform 0.1s ease;font-size:16px;} .mystery-chest__tab--active {opacity:1;} .mystery-chest__tab:active {transform:scale(0.95);} .mystery-chest__play {position:relative;z-index:3;display:flex;flex-direction:column;align-items:center;width:var(--game-stage-size, clamp(276px, 100vw, 430px));} .mystery-chest__chest {position:relative;width:min(260px, 100%);
214
+ animation: svelte-1af7gxu-game-bob var(--mc-bob) ease-in-out infinite;will-change:transform;}
215
+ @media (min-width: 768px) { .mystery-chest__chest {width:360px;}
216
+ } .mystery-chest__chest--still {
217
+ animation: none;} .mystery-chest__chest--locked {
218
+ animation: none;} .mystery-chest__chest--locked .mystery-chest__chest-img {filter:blur(3px) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));opacity:0.75;pointer-events:none;} .mystery-chest__chest--filling {
219
+ animation: svelte-1af7gxu-mc-lock-jolt 0.5s ease-out both;} .mystery-chest__chest--opening {
220
+ animation: none;} .mystery-chest__chest--opening .mystery-chest__chest-img {
221
+ animation: svelte-1af7gxu-mc-chest-shake 0.5s ease-in-out 0.4s 2, svelte-1af7gxu-mc-chest-burst 0.7s ease-out 1.4s forwards;} .mystery-chest__chest--opening .mystery-chest__keyhole {opacity:0;transition:opacity 0.2s ease;} .mystery-chest__rays {position:absolute;top:50%;left:50%;z-index:0;width:clamp(380px, 110vw, 620px);aspect-ratio:1;border-radius:50%;pointer-events:none;transform:translate(-50%, -50%);background:conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0deg, rgba(255, 236, 150, 0.55) 12deg, rgba(255, 255, 255, 0) 24deg, rgba(255, 236, 150, 0.55) 36deg, rgba(255, 255, 255, 0) 48deg, rgba(255, 236, 150, 0.55) 60deg, rgba(255, 255, 255, 0) 72deg, rgba(255, 236, 150, 0.55) 84deg, rgba(255, 255, 255, 0) 96deg, rgba(255, 236, 150, 0.55) 108deg, rgba(255, 255, 255, 0) 120deg);-webkit-mask-image:radial-gradient(circle, transparent 22%, black 30%, transparent 72%);mask-image:radial-gradient(circle, transparent 22%, black 30%, transparent 72%);
222
+ animation: svelte-1af7gxu-mc-ray-spin 6s linear infinite, svelte-1af7gxu-mc-ray-in 0.8s ease-out both;} .mystery-chest__shockwave {position:absolute;top:50%;left:50%;z-index:1;width:280px;height:280px;border-radius:50%;border:2px solid #ffe680;pointer-events:none;transform:translate(-50%, -50%) scale(0.2);opacity:0;
223
+ animation: svelte-1af7gxu-mc-shockwave 1.1s ease-out 0.9s forwards;} .mystery-chest__opening-glow {position:absolute;top:50%;left:50%;z-index:1;width:320px;height:320px;border-radius:50%;pointer-events:none;transform:translate(-50%, -50%);background:radial-gradient(circle, rgba(255, 236, 150, 0.55), transparent 65%);filter:blur(10px);
224
+ animation: svelte-1af7gxu-mc-opening-glow 0.8s ease-in-out infinite;} .mystery-chest__chest--opening .mystery-chest__chest-img {position:relative;z-index:2;} .mystery-chest__chest-img {display:block;width:100%;height:auto;user-select:none;filter:drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));} .mystery-chest__keyhole {position:absolute;height:auto;overflow:visible;transform:translate(-55%, -50%);scale:0.9;filter:drop-shadow(0 0 5px rgba(0, 0, 0, 0.6));transition:scale 0.2s var(--ease), filter 0.2s var(--ease);pointer-events:none;} .mystery-chest__keyhole--active {scale:0.95;filter:drop-shadow(0 0 5px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 14px rgba(255, 204, 0, 0.95));} .mystery-chest__keyhole--active .mystery-chest__keyhole-dots {stroke:#ffcc00;} .mystery-chest__keyhole-fill {fill:rgba(1, 12, 30, 0.5);} .mystery-chest__keyhole-dots {fill:none;stroke:rgba(255, 255, 255, 0.9);stroke-width:3;stroke-dasharray:1 8;stroke-linecap:round;
225
+ animation: svelte-1af7gxu-mc-dot-march 1.4s linear infinite;} .mystery-chest__keyhole-light {fill:none;stroke:#fff2b0;stroke-width:4;stroke-linecap:round;stroke-dasharray:10 90;opacity:0.95;filter:drop-shadow(0 0 6px rgba(255, 204, 0, 0.95));
226
+ animation: svelte-1af7gxu-mc-light-run 1.8s linear infinite;} .mystery-chest__keyhole--filling {scale:1;filter:drop-shadow(0 0 10px rgba(255, 204, 0, 0.95));} .mystery-chest__keyhole-solid {fill:none;stroke:#ffcc00;stroke-width:4;stroke-linejoin:round;filter:drop-shadow(0 0 6px rgba(255, 204, 0, 0.95));} .mystery-chest__lock-flash {position:absolute;width:90px;height:90px;border-radius:50%;pointer-events:none;transform:translate(-50%, -50%);background:radial-gradient(circle, rgba(255, 236, 150, 0.9), rgba(255, 204, 0, 0.3) 45%, transparent 70%);
227
+ animation: svelte-1af7gxu-mc-lock-flash 0.7s ease-out both;} .mystery-chest__key {position:relative;z-index:3;width:92px;touch-action:none;user-select:none;cursor:grab;transition:transform 0.2s var(--ease);} .mystery-chest__key::before {content:"";position:absolute;top:50%;left:50%;width:160px;height:60px;border-radius:50%;background:linear-gradient(-45deg, rgba(255, 255, 255, 0.9), rgba(79, 169, 255, 0.6));filter:blur(32px);transform:translate(-50%, -50%);pointer-events:none;z-index:-1;} .mystery-chest__key--dragging::before {opacity:0;} .mystery-chest__key--dragging {cursor:grabbing;transition:none;} .mystery-chest__key-img {display:block;width:100%;height:auto;pointer-events:none;filter:drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
228
+ animation: svelte-1af7gxu-game-bob var(--mc-bob) ease-in-out calc(var(--mc-bob) / -2) infinite;will-change:transform;} .mystery-chest__key--dragging .mystery-chest__key-img {animation-play-state:paused;} .mystery-chest__key--hidden {visibility:hidden;} .mystery-chest__key-fly {position:fixed;top:0;left:0;z-index:50;width:92px;pointer-events:none;filter:drop-shadow(0 8px 12px rgba(0, 0, 0, 0.6));will-change:transform, left, top;} .mystery-chest__key-fly--flying {transition:left 0.55s cubic-bezier(0.3, 0.7, 0.3, 1), top 0.55s cubic-bezier(0.3, 0.7, 0.3, 1), transform 0.55s ease-out;} .mystery-chest__key-fly--inserting {transition:left 0.3s ease-in, top 0.3s ease-in, transform 0.3s ease-in;} .mystery-chest__key-fly--fading {opacity:0;transition:opacity 0.3s ease-out;} .mystery-chest--lite {--mc-bob: 3200ms;} .mystery-chest__hint {position:relative;z-index:2;margin:0;font-size:clamp(11px, 3vw, 13px);color:var(--white);opacity:0.85;} .mystery-chest__flips {position:relative;z-index:2;display:flex;align-items:center;gap:8px;margin:0;font-size:clamp(12px, 3.4vw, 14px);font-weight:400;color:var(--white);} .mystery-chest__flips-count {display:flex;align-items:center;gap:6px;font-size:clamp(14px, 4vw, 16px);font-weight:900;color:var(--yellow);} .mystery-chest__flips-icon {width:16px;height:16px;color:#ffcc00;flex-shrink:0;} .mystery-chest__cta {position:relative;z-index:2;min-width:clamp(161px, 46vw, 216px);min-height:clamp(43px, 11vw, 52px);border:none;border-radius:999px;font:inherit;font-size:clamp(15px, 4.2vw, 20px);font-weight:900;color:var(--color-text-button-primary, #0a2140);background:linear-gradient(180deg, color-mix(in srgb, var(--color-button-primary, #ffd400) 70%, white) 0%, var(--color-button-primary, #ffd400) 55%, var(--color-button-primary-hover, #e0b400) 100%);box-shadow:0 9px 13px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 204, 0, 0.48), 0 0 38px rgba(255, 183, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);cursor:pointer;
229
+ animation: svelte-1af7gxu-game-cta-glow 1800ms ease-in-out infinite;transform-origin:50% 50%;transition:transform 0.15s ease, filter 0.15s ease;} .mystery-chest__cta:active {transform:translateY(2px) scale(0.98);animation-play-state:paused;} .mystery-chest__cta:disabled {
230
+ animation: none;filter:grayscale(0.5) brightness(0.75);box-shadow:none;cursor:default;} .mystery-chest__flips-loader {display:inline-block;width:14px;height:14px;border:2px solid transparent;border-top-color:currentColor;border-right-color:currentColor;border-radius:50%;
231
+ animation: svelte-1af7gxu-mc-loader-spin 600ms linear infinite;} .draw-result-dust {position:absolute;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:center;z-index:0;} .draw-result-dust__puff {position:absolute;border-radius:50%;background:#cdbfae;filter:blur(2px);opacity:0;
232
+ animation: svelte-1af7gxu-mc-dust-puff 2s ease-out infinite;} .mystery-chest .draw-result-stack .draw-result-image-wrap {position:relative;isolation:isolate;width:min(260px, 100%);max-width:none;}
233
+ @media (min-width: 768px) { .mystery-chest .draw-result-stack .draw-result-image-wrap {width:360px;}
234
+ } .draw-result-image-wrap::before {content:"";position:absolute;top:50%;left:50%;z-index:-1;width:230px;height:230px;border-radius:50%;background:linear-gradient(-45deg, rgba(255, 255, 255, 0.9), rgba(79, 169, 255, 0.6));filter:blur(42px);transform:translate(-50%, -50%);pointer-events:none;} .draw-result-stack .draw-result-image-wrap img {display:block;width:100%;max-width:none;
235
+ animation: svelte-1af7gxu-game-bob var(--mc-bob) ease-in-out infinite;will-change:transform;} .mystery-chest .draw-result-stack {transform:none;} .mystery-chest .draw-result-panel {place-items:start center;} .mystery-chest__badge {position:absolute;top:60%;left:50%;transform:translate(-50%, -50%);z-index:8;width:58%;padding:10px 12px;border-radius:10px;text-align:center;background:rgba(4, 18, 43, 0.86);border:1px solid rgba(255, 255, 255, 0.14);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);} .mystery-chest__badge-title {margin:0;color:#ffffff;font-size:12px;font-weight:700;letter-spacing:0.2px;} .mystery-chest__badge-body {margin:0;color:var(--color-text-subtle, rgba(244, 248, 255, 0.75));font-size:10px;line-height:1.45;} .mystery-chest__badge-countdown {margin:0;color:var(--color-text-subtle, rgba(244, 248, 255, 0.75));font-size:clamp(13px, 3.8vw, 18px);font-variant-numeric:tabular-nums;} .mystery-chest__badge-close {margin-top:8px;padding:4px 14px;border-radius:6px;border:1px solid rgba(255, 255, 255, 0.22);background:rgba(255, 255, 255, 0.12);color:#ffffff;font-size:11px;font-weight:600;cursor:pointer;transition:background 150ms ease;} .mystery-chest__badge-close:hover {background:rgba(255, 255, 255, 0.2);}
236
+ @media (max-width: 767px) { .mystery-chest__tabs {width:100%;margin:0 auto;} .mystery-chest__tab {font-size:12px;}
237
+ }
238
+ @keyframes svelte-1af7gxu-stageFloat {
239
+ 0%, 100% {
240
+ transform: translate3d(0, 0, 0) rotate(-0.12deg) scale(1);
241
+ }
242
+ 42% {
243
+ transform: translate3d(0, -4px, 0) rotate(0.16deg) scale(1.002);
244
+ }
245
+ 72% {
246
+ transform: translate3d(0, 2px, 0) rotate(-0.04deg) scale(0.999);
247
+ }
248
+ }
249
+ @keyframes svelte-1af7gxu-stageGlow {
250
+ 0%, 100% {
251
+ opacity: 0.46;
252
+ transform: scale(0.94);
253
+ filter: blur(27px);
254
+ }
255
+ 50% {
256
+ opacity: 0.68;
257
+ transform: scale(1.02);
258
+ filter: blur(31px);
259
+ }
260
+ }
261
+ @keyframes svelte-1af7gxu-glowOrbit {
262
+ 0%, 100% {
263
+ opacity: 0.13;
264
+ transform: scale(0.88) rotate(-8deg);
265
+ }
266
+ 50% {
267
+ opacity: 0.24;
268
+ transform: scale(0.95) rotate(5deg);
269
+ }
270
+ }
271
+ @keyframes svelte-1af7gxu-frameGlowBreath {
272
+ 0%, 100% {
273
+ opacity: 0.58;
274
+ transform: scale(0.94);
275
+ filter: blur(30px);
276
+ }
277
+ 48% {
278
+ opacity: 0.82;
279
+ transform: scale(1.03);
280
+ filter: blur(34px);
281
+ }
282
+ }
283
+ @keyframes svelte-1af7gxu-wheelDrop {
284
+ 0% {
285
+ transform: translateY(-60vh) scale(0.961) rotate(-9deg);
286
+ opacity: 0;
287
+ }
288
+ 70% {
289
+ transform: translateY(-20px) scale(1.012) rotate(2deg);
290
+ opacity: 1;
291
+ }
292
+ 86% {
293
+ transform: translateY(0px) scale(0.997) rotate(-0.6deg);
294
+ }
295
+ 100% {
296
+ transform: translateY(0) scale(1) rotate(0);
297
+ opacity: 1;
298
+ }
299
+ }
300
+ @keyframes svelte-1af7gxu-spinGlowPop {
301
+ 0% {
302
+ opacity: 0.56;
303
+ transform: scale(0.96);
304
+ filter: blur(25px);
305
+ }
306
+ 32% {
307
+ opacity: 0.92;
308
+ transform: scale(1.08);
309
+ filter: blur(31px);
310
+ }
311
+ 100% {
312
+ opacity: 0.58;
313
+ transform: scale(0.98);
314
+ filter: blur(27px);
315
+ }
316
+ }
317
+ @keyframes svelte-1af7gxu-glowPulse {
318
+ 0%, 100% {
319
+ opacity: 0.72;
320
+ transform: scale(0.95);
321
+ }
322
+ 50% {
323
+ opacity: 1;
324
+ transform: scale(1.12);
325
+ }
326
+ }
327
+ @keyframes svelte-1af7gxu-glowRing {
328
+ 0%, 100% {
329
+ opacity: 0.42;
330
+ transform: scale(0.92);
331
+ }
332
+ 50% {
333
+ opacity: 0.88;
334
+ transform: scale(1.18);
335
+ }
336
+ }
337
+ @keyframes svelte-1af7gxu-centerButtonSpinBreath {
338
+ 0%, 100% {
339
+ transform: scale(1);
340
+ filter: drop-shadow(0 9px 13px rgba(0, 0, 0, 0.34)) brightness(1);
341
+ }
342
+ 45% {
343
+ transform: scale(1.032);
344
+ filter: drop-shadow(0 11px 18px rgba(0, 0, 0, 0.36)) brightness(1.07);
345
+ }
346
+ }
347
+ @keyframes svelte-1af7gxu-middleButtonIdleZoomGlow {
348
+ 0%, 100% {
349
+ transform: scale(1);
350
+ filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.34)) drop-shadow(0 0 10px rgba(255, 212, 46, 0.22)) brightness(1);
351
+ }
352
+ 50% {
353
+ transform: scale(1.045);
354
+ filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.36)) drop-shadow(0 0 18px rgba(255, 212, 46, 0.42)) brightness(1.08);
355
+ }
356
+ }
357
+ @keyframes svelte-1af7gxu-middleButtonPress {
358
+ 0% {
359
+ transform: scale(1);
360
+ filter: drop-shadow(0 9px 13px rgba(0, 0, 0, 0.34)) brightness(1);
361
+ }
362
+ 28% {
363
+ transform: scale(0.91);
364
+ filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.36)) brightness(0.98);
365
+ }
366
+ 68% {
367
+ transform: scale(1.045);
368
+ filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.36)) brightness(1.08);
369
+ }
370
+ 100% {
371
+ transform: scale(1);
372
+ filter: drop-shadow(0 9px 13px rgba(0, 0, 0, 0.34)) brightness(1);
373
+ }
374
+ }
375
+ @keyframes svelte-1af7gxu-prizeStageGlow {
376
+ 0% {
377
+ opacity: 0.54;
378
+ transform: scale(0.96);
379
+ filter: blur(26px);
380
+ }
381
+ 22% {
382
+ opacity: 0.94;
383
+ transform: scale(1.06);
384
+ filter: blur(20px);
385
+ }
386
+ 100% {
387
+ opacity: 0.54;
388
+ transform: scale(0.96);
389
+ filter: blur(26px);
390
+ }
391
+ }
392
+ @keyframes svelte-1af7gxu-prizeFillGlow {
393
+ 0% {
394
+ opacity: 0;
395
+ transform: scale(0.982);
396
+ }
397
+ 8% {
398
+ opacity: 0.94;
399
+ transform: scale(1.008);
400
+ }
401
+ 24% {
402
+ opacity: 0.62;
403
+ transform: scale(0.997);
404
+ }
405
+ 42% {
406
+ opacity: 0.8;
407
+ transform: scale(1.006);
408
+ }
409
+ 60% {
410
+ opacity: 0.55;
411
+ transform: scale(0.999);
412
+ }
413
+ 78% {
414
+ opacity: 0.72;
415
+ transform: scale(1.004);
416
+ }
417
+ 100% {
418
+ opacity: 0;
419
+ transform: scale(0.99);
420
+ }
421
+ }
422
+ @keyframes svelte-1af7gxu-prizeEdgePulse {
423
+ 0% {
424
+ opacity: 0;
425
+ stroke-width: 0.035;
426
+ }
427
+ 8% {
428
+ opacity: 1;
429
+ stroke-width: 0.025;
430
+ }
431
+ 24% {
432
+ opacity: 0.88;
433
+ stroke-width: 0.035;
434
+ }
435
+ 42% {
436
+ opacity: 1;
437
+ stroke-width: 0.025;
438
+ }
439
+ 60% {
440
+ opacity: 0.85;
441
+ stroke-width: 0.035;
442
+ }
443
+ 78% {
444
+ opacity: 1;
445
+ stroke-width: 0.025;
446
+ }
447
+ 100% {
448
+ opacity: 0.85;
449
+ stroke-width: 0.035;
450
+ }
451
+ }
452
+ @keyframes svelte-1af7gxu-prizeDashDance {
453
+ 0% {
454
+ opacity: 0;
455
+ stroke-dashoffset: 12;
456
+ }
457
+ 10% {
458
+ opacity: 0.94;
459
+ }
460
+ 48% {
461
+ opacity: 0.78;
462
+ }
463
+ 82% {
464
+ opacity: 0.66;
465
+ }
466
+ 100% {
467
+ opacity: 0;
468
+ stroke-dashoffset: -26;
469
+ }
470
+ }
471
+ @keyframes svelte-1af7gxu-prizeSheenSweep {
472
+ 0% {
473
+ opacity: 0;
474
+ transform: translateX(-7px) scale(0.98);
475
+ }
476
+ 12% {
477
+ opacity: 0.58;
478
+ transform: translateX(-1px) scale(1.01);
479
+ }
480
+ 36% {
481
+ opacity: 0.22;
482
+ transform: translateX(3px) scale(1);
483
+ }
484
+ 62% {
485
+ opacity: 0.42;
486
+ transform: translateX(1px) scale(1.008);
487
+ }
488
+ 100% {
489
+ opacity: 0;
490
+ transform: translateX(8px) scale(0.99);
491
+ }
492
+ }
493
+ @keyframes svelte-1af7gxu-superPrizeStageGlow {
494
+ 0% {
495
+ transform: scale(0.96);
496
+ opacity: 0.2;
497
+ filter: blur(8px);
498
+ }
499
+ 45% {
500
+ transform: scale(1.13);
501
+ opacity: 0.86;
502
+ filter: blur(13px);
503
+ }
504
+ 100% {
505
+ transform: scale(1.03);
506
+ opacity: 0.45;
507
+ filter: blur(10px);
508
+ }
509
+ }
510
+ @keyframes svelte-1af7gxu-superPrizeFillGlow {
511
+ 0% {
512
+ opacity: 0.2;
513
+ transform: scale(0.96);
514
+ }
515
+ 32% {
516
+ opacity: 1;
517
+ transform: scale(1.045);
518
+ }
519
+ 66% {
520
+ opacity: 0.72;
521
+ transform: scale(1.015);
522
+ }
523
+ 100% {
524
+ opacity: 0.58;
525
+ transform: scale(1);
526
+ }
527
+ }
528
+ @keyframes svelte-1af7gxu-superPrizeSheenSweep {
529
+ 0% {
530
+ opacity: 0;
531
+ transform: scale(0.88) rotate(-5deg);
532
+ }
533
+ 34% {
534
+ opacity: 0.95;
535
+ transform: scale(1.08) rotate(2deg);
536
+ }
537
+ 100% {
538
+ opacity: 0.2;
539
+ transform: scale(1.16) rotate(7deg);
540
+ }
541
+ }
542
+ @keyframes svelte-1af7gxu-superPrizeEdgePulse {
543
+ 0% {
544
+ opacity: 0.4;
545
+ transform: scale(0.97);
546
+ }
547
+ 38% {
548
+ opacity: 1;
549
+ transform: scale(1.055);
550
+ }
551
+ 70% {
552
+ opacity: 0.86;
553
+ transform: scale(1.018);
554
+ }
555
+ 100% {
556
+ opacity: 0.72;
557
+ transform: scale(1);
558
+ }
559
+ }
560
+ @keyframes svelte-1af7gxu-superPrizeDashDance {
561
+ 0% {
562
+ opacity: 0;
563
+ stroke-dashoffset: 20;
564
+ transform: scale(0.95);
565
+ }
566
+ 18% {
567
+ opacity: 1;
568
+ }
569
+ 100% {
570
+ opacity: 0.76;
571
+ stroke-dashoffset: -42;
572
+ transform: scale(1.04);
573
+ }
574
+ }
575
+ @keyframes svelte-1af7gxu-buttonBreath {
576
+ 0%, 100% {
577
+ transform: scale(1);
578
+ }
579
+ 50% {
580
+ transform: scale(1.035);
581
+ }
582
+ }
583
+ @keyframes svelte-1af7gxu-buttonAura {
584
+ 0%, 100% {
585
+ filter: brightness(1) saturate(1);
586
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -1px 0 rgba(83, 0, 18, 0.22), 0 4px 0 #710014, 0 13px 20px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 226, 135, 0.1);
587
+ }
588
+ 50% {
589
+ filter: brightness(1.035) saturate(1.04);
590
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(83, 0, 18, 0.18), 0 4px 0 #710014, 0 15px 24px rgba(0, 0, 0, 0.24), 0 0 18px rgba(255, 183, 36, 0.13);
591
+ }
592
+ }
593
+ @keyframes svelte-1af7gxu-buttonSheen {
594
+ 0%, 58%, 100% {
595
+ transform: translateX(-120%);
596
+ opacity: 0.22;
597
+ }
598
+ 72% {
599
+ transform: translateX(120%);
600
+ opacity: 0.42;
601
+ }
602
+ }
603
+ @keyframes svelte-1af7gxu-buttonPop {
604
+ 0% {
605
+ transform: translateY(2px) scale(0.985);
606
+ }
607
+ 48% {
608
+ transform: translateY(-2px) scale(1.018);
609
+ }
610
+ 100% {
611
+ transform: translateY(0) scale(1);
612
+ }
613
+ }
614
+ @keyframes svelte-1af7gxu-confettiFirework {
615
+ 0% {
616
+ opacity: 0;
617
+ transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
618
+ }
619
+ 9% {
620
+ opacity: 1;
621
+ transform: translate(calc(-50% + var(--tx) * 0.42), calc(-50% + var(--ty) * 0.42)) scale(1.18) rotate(calc(var(--rot) + var(--spin) * 0.24));
622
+ }
623
+ 28% {
624
+ opacity: 0.98;
625
+ transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1) rotate(calc(var(--rot) + var(--spin) * 0.56));
626
+ }
627
+ 72% {
628
+ opacity: 0.78;
629
+ transform: translate(calc(-50% + var(--tx) * 1.08), calc(-50% + var(--ty) + var(--fall) * 0.62)) scale(0.88) rotate(calc(var(--rot) + var(--spin) * 0.86));
630
+ }
631
+ 100% {
632
+ opacity: 0;
633
+ transform: translate(calc(-50% + var(--tx) * 1.14), calc(-50% + var(--ty) + var(--fall))) scale(0.62) rotate(calc(var(--rot) + var(--spin)));
634
+ }
635
+ }
636
+ @keyframes svelte-1af7gxu-swipeHandAcross {
637
+ 0%, 100% {
638
+ transform: translateX(-70px) rotate(-22deg);
639
+ opacity: 0.65;
640
+ }
641
+ 50% {
642
+ transform: translateX(70px) rotate(22deg);
643
+ opacity: 0.65;
644
+ }
645
+ 25%, 75% {
646
+ opacity: 1;
647
+ }
648
+ }
649
+ @keyframes svelte-1af7gxu-wofSpinnerFadeIn {
650
+ to {
651
+ opacity: 1;
652
+ }
653
+ }
654
+ @keyframes svelte-1af7gxu-wofSpinnerRotate {
655
+ to {
656
+ transform: rotate(360deg);
657
+ }
658
+ }
659
+ @keyframes svelte-1af7gxu-titleSparkle {
660
+ 0% {
661
+ opacity: 0;
662
+ transform: scale(0.2) rotate(0deg);
663
+ }
664
+ 40% {
665
+ opacity: 1;
666
+ transform: scale(1.4) rotate(35deg);
667
+ }
668
+ 100% {
669
+ opacity: 0;
670
+ transform: scale(0.6) translateY(-20px) rotate(75deg);
671
+ }
672
+ }
673
+ @keyframes svelte-1af7gxu-drawResultPop {
674
+ 0% {
675
+ opacity: 0;
676
+ transform: scale(0.92) translateY(8px);
677
+ }
678
+ 62% {
679
+ opacity: 1;
680
+ transform: scale(1.016) translateY(-2px);
681
+ }
682
+ 100% {
683
+ opacity: 1;
684
+ transform: scale(1) translateY(0);
685
+ }
686
+ }
687
+ @keyframes svelte-1af7gxu-successElementIn {
688
+ 0% {
689
+ opacity: 0;
690
+ transform: translate3d(0, 18px, 0) scale(0.98);
691
+ filter: blur(3px);
692
+ }
693
+ 70% {
694
+ opacity: 1;
695
+ transform: translate3d(0, -2px, 0) scale(1.01);
696
+ filter: blur(0);
697
+ }
698
+ 100% {
699
+ opacity: 1;
700
+ transform: translate3d(0, 0, 0) scale(1);
701
+ filter: blur(0);
702
+ }
703
+ }
704
+ @keyframes svelte-1af7gxu-successConfettiFall {
705
+ 0% {
706
+ opacity: 0;
707
+ transform: translate3d(-50%, -18px, 0) rotate(var(--rot)) scale(0.62);
708
+ }
709
+ 9% {
710
+ opacity: 1;
711
+ }
712
+ 46% {
713
+ opacity: 0.96;
714
+ transform: translate3d(calc(-50% + var(--tx) * 0.55), 48vh, 0) rotate(calc(var(--rot) + var(--spin) * 0.52)) scale(1);
715
+ }
716
+ 100% {
717
+ opacity: 0;
718
+ transform: translate3d(calc(-50% + var(--tx)), 108vh, 0) rotate(calc(var(--rot) + var(--spin))) scale(0.86);
719
+ }
720
+ }
721
+ @keyframes svelte-1af7gxu-prizeCoinFloatZoom {
722
+ 0%, 100% {
723
+ transform: translate3d(0, 0, 0) scale(1);
724
+ }
725
+ 50% {
726
+ transform: translate3d(0, -8px, 0) scale(1.065);
727
+ }
728
+ }
729
+ @media (prefers-reduced-motion: reduce) { .wheel-wrapper,
730
+ .wheel-wrapper::before,
731
+ .wheel-wrapper::after,
732
+ .drop-wrap,
733
+ .wheel-disc,
734
+ .center-button,
735
+ .button-glow,
736
+ .spin-button {
737
+ animation: none !important;}
738
+ } .draw-result-panel {flex:1;z-index:20;display:grid;place-items:center;padding:20px;text-align:center;overflow:hidden;width:100%;background:transparent;
739
+ animation: svelte-1af7gxu-drawResultPop 420ms cubic-bezier(0.16, 0.92, 0.22, 1.04) both;} .draw-result-confetti-layer {position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;} .success-confetti-piece {--x: 50%;--tx: 0px;--rot: 0deg;--spin: 360deg;--hue: #ffd23e;--w: 8px;--h: 12px;--d: 1800ms;position:absolute;left:var(--x);top:-24px;width:var(--w);height:var(--h);border-radius:3px;background:var(--hue);filter:drop-shadow(0 0 5px rgba(255, 218, 74, 0.24));transform-origin:center;
740
+ animation: svelte-1af7gxu-successConfettiFall var(--d) cubic-bezier(0.16, 0.68, 0.2, 1) forwards;} .success-confetti-piece.is-diamond {border-radius:2px;transform:rotate(45deg);} .success-confetti-piece.is-ribbon {border-radius:8px 2px;} .draw-result-stack {width:100%;display:grid;justify-items:center;position:relative;z-index:2;transform:translateY(clamp(16px, 5vw, 30px));} .draw-result-stack img {width:60%;max-width:300px;} .draw-result-stack img.lose {filter:saturate(0%);} .draw-result-stack .draw-result-image-wrap {width:70%;max-width:350px;} .draw-result-stack .draw-result-image-wrap img {width:100%;max-width:none;} .coin {width:clamp(140px, 38vw, 196px);height:clamp(142px, 38.5vw, 198px);display:grid;place-items:center;border-radius:0;opacity:0;transform:translate3d(0, 18px, 0) scale(0.98);will-change:opacity, transform;
741
+ animation: svelte-1af7gxu-successElementIn 620ms cubic-bezier(0.16, 0.92, 0.22, 1) 90ms both;} .coin svg,
742
+ .coin img {width:100%;height:100%;object-fit:contain;transform-origin:50% 54%;
743
+ animation: svelte-1af7gxu-prizeCoinFloatZoom 1800ms ease-in-out infinite;} .draw-result-title {position:relative;margin:clamp(18px, 5vw, 26px) 0 clamp(14px, 4vw, 20px);color:var(--color-text-brand, #ffcc00);font-size:clamp(26px, 7.5vw, 36px);line-height:1.05;font-weight:900;opacity:0;transform:translate3d(0, 18px, 0) scale(0.98);
744
+ animation: svelte-1af7gxu-successElementIn 560ms cubic-bezier(0.16, 0.92, 0.22, 1) 250ms both;} .draw-result-sparkle {position:absolute;color:var(--color-text-brand, #ffcc00);filter:drop-shadow(0 0 5px rgba(255, 204, 0, 0.9));opacity:0;pointer-events:none;
745
+ animation: svelte-1af7gxu-titleSparkle 900ms ease-out forwards;} .draw-result-description {margin:0;color:var(--color-text-default, #ffffff);font-size:clamp(14px, 3.8vw, 17px);line-height:1.55;opacity:0;transform:translate3d(0, 18px, 0) scale(0.98);
746
+ animation: svelte-1af7gxu-successElementIn 560ms cubic-bezier(0.16, 0.92, 0.22, 1) 390ms both;} .draw-result-description span {font-size:clamp(15px, 4.1vw, 19px);font-weight:900;} .draw-result-error-image {max-width:170px;} .draw-result-description--error {margin:0 20px;} .draw-result-actions {display:grid;justify-items:center;gap:12px;margin-top:clamp(16px, 4.5vw, 26px);opacity:0;transform:translate3d(0, 18px, 0) scale(0.98);
747
+ animation: svelte-1af7gxu-successElementIn 560ms cubic-bezier(0.16, 0.92, 0.22, 1) 560ms both;} .button-spinner {position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px;width:18px;height:18px;border:2px solid transparent;border-top-color:currentColor;border-right-color:currentColor;border-radius:50%;
748
+ animation: svelte-1af7gxu-wofSpinnerRotate 600ms linear infinite;} .primary-cta {position:relative;min-width:clamp(148px, 42vw, 210px);min-height:clamp(42px, 10.5vw, 50px);border:none;border-radius:999px;color:var(--color-text-button-primary, #261d00);background:linear-gradient(180deg, var(--color-button-primary, #ffd91c) 0%, var(--color-button-primary-hover, #ffbf00) 100%);box-shadow:0 9px 13px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);font:inherit;font-size:clamp(15px, 4vw, 19px);font-weight:900;cursor:pointer;padding:0 20px;transition:transform 160ms ease, filter 160ms ease;} .primary-cta:hover {filter:brightness(1.06);transform:translateY(-1px);} .primary-cta:active {transform:translateY(2px) scale(0.98);} .secondary-cta {position:relative;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-subtle, rgba(238, 246, 255, 0.8196078431));font:inherit;font-size:clamp(13px, 3.4vw, 15px);font-weight:750;cursor:pointer;border:1px solid var(--color-text-subtle, rgba(238, 246, 255, 0.8196078431));border-radius:999px;padding:10px 20px;} .confirm-modal-content {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:10;width:70%;height:85%;max-height:500px;padding:10px 12px;background:rgba(8, 4, 0, 0.95);backdrop-filter:blur(16px);border:1px solid rgba(255, 255, 255, 0.1);border-radius:10px;text-align:center;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;} .confirm-modal-title {color:#ffffff;font-size:26px;font-weight:700;letter-spacing:0.2px;margin:0 0 4px;} .confirm-modal-body {color:rgba(255, 255, 255, 0.6509803922);font-size:14px;line-height:1.45;margin:0 0 10px;} .confirm-modal-actions {display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;} .confirm-modal-actions button {width:fit-content;}
749
+ @media (prefers-reduced-motion: reduce) { .coin,
750
+ .draw-result-title,
751
+ .draw-result-description,
752
+ .draw-result-actions {opacity:1;transform:none;filter:none;} .coin svg,
753
+ .coin img {
754
+ animation: none;} .success-confetti-piece {
755
+ animation: none;}
756
+ } .game-back-button {position:relative;z-index:2;display:flex;align-items:center;justify-content:start;gap:10px;width:100%;max-width:700px;height:52px;flex-shrink:0;margin:0 auto;padding:10px;line-height:20px;border-radius:6px;background:transparent;border:none;color:var(--white);cursor:pointer;font-size:16px;} .game-back-button--hidden {display:none;} .game-back-button__icon {width:25px;height:25px;padding:7px;border-radius:50%;background:var(--color-overlay-neutral-2, rgba(255, 255, 255, 0.14));box-sizing:border-box;transition:transform 0.12s ease;} .game-back-button:active .game-back-button__icon {transform:scale(0.92);} .game-back-button__label {margin:0;}
757
+ @media (max-width: 767px) { .game-back-button {display:grid;grid-template-columns:40px 1fr 40px;align-items:center;gap:0;align-self:stretch;width:auto;height:44px;margin:12px 2px;padding:4px 8px;font-size:16px;line-height:24px;background-color:var(--color-bg-surface-level-3, var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843)));} .game-back-button__icon {justify-self:start;width:24px;height:24px;margin-left:6px;padding:4px;background:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));} .game-back-button__label {overflow:hidden;font-weight:500;text-align:center;text-overflow:ellipsis;white-space:nowrap;}
758
+ }`
759
+ };
760
+ function vn(Te, D) {
761
+ Rt(D, !0), Bt(Te, xn);
762
+ const _ = () => It(Dt, "$_", We), [We, Ne] = Gt(), g = W(D, "program", 7, null), G = W(D, "endpoint", 7, null), K = W(D, "session", 7, null), ue = W(D, "language", 7, "en"), se = W(D, "showBackButton", 7, !0), Q = W(D, "liteMode", 7, !1), O = ["history", "play", "rules"], T = { x: 0.38, y: 0.61, width: 0.22, ratio: 1.5 }, Ve = [
763
+ { left: 17.34, size: 7.02, duration: 8.3, delay: 0.82 },
764
+ { left: 17.65, size: 7.04, duration: 5.23, delay: 0.87 },
765
+ { left: 22.05, size: 6.06, duration: 8.1, delay: 4.14 },
766
+ { left: 32.98, size: 3.94, duration: 8.5, delay: 5.97 },
767
+ { left: 33.48, size: 4.65, duration: 5.54, delay: 2.22 },
768
+ { left: 86.92, size: 5.49, duration: 6.98, delay: 5.13 },
769
+ { left: 69.3, size: 4.59, duration: 9.94, delay: 4.69 },
770
+ { left: 59.41, size: 6.79, duration: 7.18, delay: 2.33 },
771
+ { left: 88.73, size: 4.55, duration: 8.69, delay: 2.98 },
772
+ { left: 83.45, size: 6.33, duration: 9.85, delay: 4.96 },
773
+ { left: 38.41, size: 6.88, duration: 8.47, delay: 2.86 },
774
+ { left: 68.36, size: 5.33, duration: 5.15, delay: 2.17 },
775
+ { left: 87.64, size: 4.64, duration: 5.11, delay: 5.7 },
776
+ { left: 34.09, size: 7.96, duration: 8.16, delay: 2.01 }
777
+ ], oe = "M50 18 C33 18 20 31 20 48 C20 60 27 69 37 73 L29 128 C28 133 32 137 37 137 L63 137 C68 137 72 133 71 128 L63 73 C73 69 80 60 80 48 C80 31 67 18 50 18 Z";
778
+ let j = x(Ce(O[1])), F = x(null), $ = x(!1), ee = x(!1), ie = x(!1), y = x("drag"), B = x(null);
779
+ const Be = q(() => !!G() && !!g() && (g()?.remainingTimes ?? 0) > 0), te = q(() => !!g() && (g()?.remainingTimes ?? 0) <= 0), xe = q(() => e(Be) && !e($) && !e(ee) && !e(ie)), A = (t) => new Promise((n) => setTimeout(n, t));
780
+ let ne = x(Ce({}));
781
+ jt(() => {
782
+ if (e(te))
783
+ return At({
784
+ getTarget: () => g()?.next?.startTime,
785
+ onTick: (t) => o(ne, t, !0),
786
+ // Hub refetches programs and re-targets activeGame to the live one.
787
+ onElapsed: () => window.postMessage({ type: "PrizeGameCountdownElapsed" }, window.location.href)
788
+ });
789
+ });
790
+ const qe = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), Je = (t) => {
791
+ t === e(j) || e($) || o(j, t, !0);
792
+ }, Qe = async (t) => {
793
+ const n = new URL(`${G()}/v1/wof/draw/${g()?.id}`), a = new Headers();
794
+ return K() && a.append("X-SessionId", K()), a.append("Content-Type", "application/json"), (await fetch(n, {
795
+ method: "PUT",
796
+ headers: a,
797
+ cache: "no-store",
798
+ body: JSON.stringify({ action: 1, guid: t })
799
+ })).json();
800
+ }, et = () => {
801
+ if (e(le)) {
802
+ const n = e(le).getBoundingClientRect();
803
+ return { x: n.left + n.width / 2, y: n.top + n.height / 2 };
804
+ }
805
+ if (!e(H)) return null;
806
+ const t = e(H).getBoundingClientRect();
807
+ return {
808
+ x: t.left + t.width * T.x,
809
+ y: t.top + t.height * T.y
810
+ };
811
+ }, Ee = () => {
812
+ o(y, "drag"), o(B, null);
813
+ }, tt = async (t, n) => {
814
+ const a = et();
815
+ a && (o(y, "flying"), o(B, { x: t, y: n, scale: 1, rot: 0 }, !0), await A(30), o(B, { x: a.x - 80, y: a.y, scale: 1, rot: 0 }, !0), await A(570), o(y, "inserting"), o(B, { x: a.x, y: a.y - 15, scale: 1, rot: 0 }, !0), await A(350), o(y, "fading"), await A(300), o(y, "filling"), o(B, null), await A(700));
816
+ }, nt = async () => {
817
+ o(y, "opening"), o(B, null), await A(2400);
818
+ }, Pe = async (t, n) => {
819
+ if (!e(xe)) return;
820
+ if (o($, !0), o(ee, !1), t === void 0 || n === void 0) {
821
+ const f = e(ae)?.getBoundingClientRect();
822
+ t = f ? f.left + f.width / 2 : window.innerWidth / 2, n = f ? f.top + f.height / 2 : window.innerHeight / 2;
823
+ }
824
+ let a = !1;
825
+ const m = setTimeout(
826
+ () => {
827
+ a || (a = !0, o(ee, !0), o($, !1), Ee());
828
+ },
829
+ $t
830
+ ), h = Xt(), w = Qe(h).catch((f) => (console.log(f), null));
831
+ await tt(t, n), await nt();
832
+ const Z = await w;
833
+ if (!a) {
834
+ if (a = !0, clearTimeout(m), Z) {
835
+ const f = Ot(Z, "draw");
836
+ o(
837
+ F,
838
+ {
839
+ ...f,
840
+ guid: h,
841
+ lotteryProgramID: f.lotteryProgramID ?? g()?.id
842
+ },
843
+ !0
844
+ );
845
+ }
846
+ o($, !1), Ee();
847
+ }
848
+ }, at = () => o(ee, !1);
849
+ let H = x(void 0), ae = x(void 0), le = x(void 0), U = x(!1), ce = x(Ce({ x: 0, y: 0 })), pe = x(!1), ve = { x: 0, y: 0 }, be = { x: 0, y: 0 };
850
+ const rt = () => {
851
+ if (!e(H) || !e(ae)) return !1;
852
+ const t = e(H).getBoundingClientRect(), n = e(ae).getBoundingClientRect(), a = t.width * T.width, m = a * T.ratio, h = t.left + t.width * T.x - a / 2, w = t.top + t.height * T.y - m / 2;
853
+ return n.left < h + a && n.right > h && n.top < w + m && n.bottom > w;
854
+ }, st = (t) => {
855
+ !e(xe) || e(U) || (o(U, !0), ve = { x: t.clientX, y: t.clientY }, be = { x: t.clientX, y: t.clientY });
856
+ }, Se = (t) => {
857
+ e(U) && (o(ce, { x: t.clientX - ve.x, y: t.clientY - ve.y }, !0), be = { x: t.clientX, y: t.clientY }, o(pe, rt(), !0));
858
+ }, Le = (t) => {
859
+ if (!e(U)) return;
860
+ const n = t && e(pe), a = be;
861
+ o(U, !1), o(pe, !1), o(ce, { x: 0, y: 0 }, !0), n && Pe(a.x, a.y);
862
+ }, Re = () => Le(!0), je = () => Le(!1), Me = () => Ut({
863
+ endpoint: G(),
864
+ session: K(),
865
+ program: Kt(g())
866
+ }).finally(() => {
867
+ o(ie, !1);
868
+ }), Ie = Ht({
869
+ onReset: () => o(F, null),
870
+ onSkipFetch: () => o(ie, !0),
871
+ refetch: Me
872
+ });
873
+ Et(() => (window.addEventListener("message", Ie), window.addEventListener("pointermove", Se), window.addEventListener("pointerup", Re), window.addEventListener("pointercancel", je), () => {
874
+ window.removeEventListener("message", Ie), window.removeEventListener("pointermove", Se), window.removeEventListener("pointerup", Re), window.removeEventListener("pointercancel", je);
875
+ }));
876
+ var ot = {
877
+ get program() {
878
+ return g();
879
+ },
880
+ set program(t = null) {
881
+ g(t), J();
882
+ },
883
+ get endpoint() {
884
+ return G();
885
+ },
886
+ set endpoint(t = null) {
887
+ G(t), J();
888
+ },
889
+ get session() {
890
+ return K();
891
+ },
892
+ set session(t = null) {
893
+ K(t), J();
894
+ },
895
+ get language() {
896
+ return ue();
897
+ },
898
+ set language(t = "en") {
899
+ ue(t), J();
900
+ },
901
+ get showBackButton() {
902
+ return se();
903
+ },
904
+ set showBackButton(t = !0) {
905
+ se(t), J();
906
+ },
907
+ get liteMode() {
908
+ return Q();
909
+ },
910
+ set liteMode(t = !1) {
911
+ Q(t), J();
912
+ }
913
+ }, me = un();
914
+ let De;
915
+ var _e = c(me), Ge = c(_e), it = i(Ge, 4);
916
+ {
917
+ var lt = (t) => {
918
+ var n = nn(), a = i(re(n), 2);
919
+ {
920
+ var m = (h) => {
921
+ var w = Pt(), Z = re(w);
922
+ Ue(Z, 17, () => Ve, St, (f, M) => {
923
+ var ye = tn();
924
+ let fe;
925
+ Y(() => fe = V(ye, "", fe, {
926
+ left: `${e(M).left ?? ""}%`,
927
+ width: `${e(M).size ?? ""}px`,
928
+ height: `${e(M).size ?? ""}px`,
929
+ "animation-duration": `${e(M).duration ?? ""}s`,
930
+ "animation-delay": `${e(M).delay ?? ""}s`
931
+ })), d(f, ye);
932
+ }), d(h, w);
933
+ };
934
+ z(a, (h) => {
935
+ Q() || h(m);
936
+ });
937
+ }
938
+ d(t, n);
939
+ };
940
+ z(it, (t) => {
941
+ e(F) || t(lt);
942
+ });
943
+ }
944
+ p(_e);
945
+ var Ke = i(_e, 2);
946
+ {
947
+ let t = q(() => !se());
948
+ Vt(Ke, {
949
+ onClick: qe,
950
+ get hidden() {
951
+ return e(t);
952
+ }
953
+ });
954
+ }
955
+ var we = i(Ke, 2), ke = c(we), ct = c(ke, !0);
956
+ p(ke);
957
+ var Xe = i(ke, 2), pt = c(Xe, !0);
958
+ p(Xe), p(we);
959
+ var de = i(we, 2), Oe = c(de);
960
+ let Fe;
961
+ var mt = i(Oe, 2);
962
+ Ue(mt, 16, () => O, (t) => t, (t, n) => {
963
+ var a = an();
964
+ let m;
965
+ var h = c(a, !0);
966
+ p(a), Y(
967
+ (w) => {
968
+ m = N(a, 1, "mystery-chest__tab svelte-1af7gxu", null, m, { "mystery-chest__tab--active": e(j) === n }), L(a, "aria-selected", e(j) === n), C(h, w);
969
+ },
970
+ [() => _()(n)]
971
+ ), he("click", a, () => Je(n)), d(t, a);
972
+ }), p(de);
973
+ var dt = i(de, 2);
974
+ {
975
+ var yt = (t) => {
976
+ {
977
+ let n = q(() => ({ noPrize: Qt, win: en }));
978
+ Zt(t, {
979
+ get result() {
980
+ return e(F);
981
+ },
982
+ get endpoint() {
983
+ return G();
984
+ },
985
+ get session() {
986
+ return K();
987
+ },
988
+ get liteMode() {
989
+ return Q();
990
+ },
991
+ get images() {
992
+ return e(n);
993
+ },
994
+ noPrizeDust: !0,
995
+ onFetchRemainingTimes: Me
996
+ });
997
+ }
998
+ }, ft = (t) => {
999
+ var n = hn(), a = re(n), m = c(a);
1000
+ let h;
1001
+ var w = c(m);
1002
+ {
1003
+ var Z = (s) => {
1004
+ var r = rn();
1005
+ Ft(4), d(s, r);
1006
+ };
1007
+ z(w, (s) => {
1008
+ e(y) === "opening" && s(Z);
1009
+ });
1010
+ }
1011
+ var f = i(w, 2), M = i(f, 2);
1012
+ {
1013
+ var ye = (s) => {
1014
+ var r = ln();
1015
+ let l, E;
1016
+ var u = c(r);
1017
+ L(u, "d", oe);
1018
+ var P = i(u);
1019
+ {
1020
+ var S = (k) => {
1021
+ var R = sn();
1022
+ L(R, "d", oe), d(k, R);
1023
+ }, X = (k) => {
1024
+ var R = on(), v = re(R);
1025
+ L(v, "d", oe);
1026
+ var I = i(v);
1027
+ L(I, "d", oe), d(k, R);
1028
+ };
1029
+ z(P, (k) => {
1030
+ e(y) === "filling" ? k(S) : k(X, -1);
1031
+ });
1032
+ }
1033
+ p(r), ze(r, (k) => o(le, k), () => e(le)), Y(() => {
1034
+ l = N(r, 0, "mystery-chest__keyhole svelte-1af7gxu", null, l, {
1035
+ "mystery-chest__keyhole--active": e(pe),
1036
+ "mystery-chest__keyhole--filling": e(y) === "filling"
1037
+ }), E = V(r, "", E, {
1038
+ left: `${T.x * 100}%`,
1039
+ top: `${T.y * 100}%`,
1040
+ width: `${T.width * 100}%`
1041
+ });
1042
+ }), d(s, r);
1043
+ };
1044
+ z(M, (s) => {
1045
+ e(te) || s(ye);
1046
+ });
1047
+ }
1048
+ var fe = i(M, 2);
1049
+ {
1050
+ var xt = (s) => {
1051
+ var r = cn();
1052
+ let l;
1053
+ Y(() => l = V(r, "", l, { left: `${T.x * 100}%`, top: `${T.y * 100}%` })), d(s, r);
1054
+ };
1055
+ z(fe, (s) => {
1056
+ e(y) === "filling" && s(xt);
1057
+ });
1058
+ }
1059
+ p(m), ze(m, (s) => o(H, s), () => e(H));
1060
+ var $e = i(m, 2);
1061
+ {
1062
+ var vt = (s) => {
1063
+ var r = pn();
1064
+ let l, E;
1065
+ var u = c(r);
1066
+ p(r), ze(r, (P) => o(ae, P), () => e(ae)), Y(() => {
1067
+ l = N(r, 1, "mystery-chest__key svelte-1af7gxu", null, l, {
1068
+ "mystery-chest__key--dragging": e(U),
1069
+ "mystery-chest__key--hidden": e(y) !== "drag"
1070
+ }), E = V(r, "", E, {
1071
+ transform: `translate3d(${e(ce).x ?? ""}px, ${e(ce).y ?? ""}px, 0)`
1072
+ }), L(u, "src", Ze);
1073
+ }), he("pointerdown", r, st), d(s, r);
1074
+ };
1075
+ z($e, (s) => {
1076
+ e(te) || s(vt);
1077
+ });
1078
+ }
1079
+ var Ae = i($e, 2);
1080
+ {
1081
+ var bt = (s) => {
1082
+ var r = mn();
1083
+ let l;
1084
+ Y(() => {
1085
+ N(r, 1, `mystery-chest__key-fly mystery-chest__key-fly--${e(y) ?? ""}`, "svelte-1af7gxu"), L(r, "src", Ze), l = V(r, "", l, {
1086
+ left: `${e(B).x ?? ""}px`,
1087
+ top: `${e(B).y ?? ""}px`,
1088
+ transform: `translate(-50%, -50%) rotate(${e(B).rot ?? ""}deg) scale(${e(B).scale ?? ""})`
1089
+ });
1090
+ }), d(s, r);
1091
+ };
1092
+ z(Ae, (s) => {
1093
+ e(B) && s(bt);
1094
+ });
1095
+ }
1096
+ var _t = i(Ae, 2);
1097
+ {
1098
+ var wt = (s) => {
1099
+ var r = dn(), l = c(r), E = c(l, !0);
1100
+ p(l);
1101
+ var u = i(l, 2), P = c(u, !0);
1102
+ p(u);
1103
+ var S = i(u, 2), X = c(S, !0);
1104
+ p(S), p(r), Y(
1105
+ (k, R, v) => {
1106
+ C(E, k), C(P, R), C(X, v);
1107
+ },
1108
+ [
1109
+ () => _()("timeoutTitle"),
1110
+ () => _()("timeoutDescription"),
1111
+ () => _()("close")
1112
+ ]
1113
+ ), he("click", S, at), d(s, r);
1114
+ }, kt = (s) => {
1115
+ var r = yn(), l = c(r), E = c(l, !0);
1116
+ p(l);
1117
+ var u = i(l, 2), P = c(u, !0);
1118
+ p(u), p(r), Y(
1119
+ (S, X) => {
1120
+ C(E, S), C(P, X);
1121
+ },
1122
+ [
1123
+ () => _()("nextAvailable"),
1124
+ () => _()("countdown", {
1125
+ values: {
1126
+ days: e(ne).days,
1127
+ hours: e(ne).hours,
1128
+ minutes: e(ne).minutes,
1129
+ seconds: e(ne).seconds
1130
+ }
1131
+ })
1132
+ ]
1133
+ ), d(s, r);
1134
+ };
1135
+ z(_t, (s) => {
1136
+ e(ee) ? s(wt) : e(te) && s(kt, 1);
1137
+ });
1138
+ }
1139
+ p(a);
1140
+ var He = i(a, 2);
1141
+ {
1142
+ var zt = (s) => {
1143
+ var r = gn(), l = re(r), E = c(l, !0);
1144
+ p(l);
1145
+ var u = i(l, 2), P = c(u), S = i(P), X = i(c(S), 2);
1146
+ {
1147
+ var k = (v) => {
1148
+ var I = fn();
1149
+ d(v, I);
1150
+ }, R = (v) => {
1151
+ var I = Lt();
1152
+ Y(() => C(I, g()?.current?.remainingTimes ?? g()?.remainingTimes)), d(v, I);
1153
+ };
1154
+ z(X, (v) => {
1155
+ e(ie) ? v(k) : v(R, -1);
1156
+ });
1157
+ }
1158
+ p(S), p(u), Y(
1159
+ (v, I) => {
1160
+ C(E, v), C(P, `${I ?? ""} `);
1161
+ },
1162
+ [() => _()("dragKeyToKeyhole"), () => _()("remainingKeys")]
1163
+ ), d(s, r);
1164
+ };
1165
+ z(He, (s) => {
1166
+ e(Be) && s(zt);
1167
+ });
1168
+ }
1169
+ var ge = i(He, 2), Ct = c(ge, !0);
1170
+ p(ge), Y(
1171
+ (s) => {
1172
+ h = N(m, 1, "mystery-chest__chest svelte-1af7gxu", null, h, {
1173
+ "mystery-chest__chest--still": e(y) === "flying" || e(y) === "inserting",
1174
+ "mystery-chest__chest--filling": e(y) === "filling",
1175
+ "mystery-chest__chest--opening": e(y) === "opening",
1176
+ "mystery-chest__chest--locked": e(te)
1177
+ }), L(f, "src", Jt), ge.disabled = !e(xe), C(Ct, s);
1178
+ },
1179
+ [() => _()("openChest")]
1180
+ ), he("click", ge, () => Pe()), d(t, n);
1181
+ }, gt = (t) => {
1182
+ {
1183
+ let n = q(() => g()?.id);
1184
+ Wt(t, {
1185
+ get programId() {
1186
+ return e(n);
1187
+ },
1188
+ get endpoint() {
1189
+ return G();
1190
+ },
1191
+ get session() {
1192
+ return K();
1193
+ }
1194
+ });
1195
+ }
1196
+ }, ht = (t) => {
1197
+ Nt(t, {
1198
+ get program() {
1199
+ return g();
1200
+ },
1201
+ get language() {
1202
+ return ue();
1203
+ }
1204
+ });
1205
+ };
1206
+ z(dt, (t) => {
1207
+ e(F) ? t(yt) : e(j) === O[1] ? t(ft, 1) : e(j) === O[0] ? t(gt, 2) : t(ht, -1);
1208
+ });
1209
+ }
1210
+ p(me), Y(
1211
+ (t, n, a, m) => {
1212
+ De = N(me, 1, "mystery-chest svelte-1af7gxu", null, De, {
1213
+ "mystery-chest--lite": Q(),
1214
+ "mystery-chest--result": !!e(F),
1215
+ "mystery-chest--plain": e(j) !== O[1],
1216
+ "mystery-chest--busy": e($),
1217
+ "mystery-chest--opening": e(y) === "opening",
1218
+ "mystery-chest--no-back": !se()
1219
+ }), L(Ge, "src", qt), C(ct, t), C(pt, n), L(de, "aria-label", a), Fe = V(Oe, "", Fe, m);
1220
+ },
1221
+ [
1222
+ () => _()("mysteryChestTitle"),
1223
+ () => _()("wofSubtitle"),
1224
+ () => _()("mysteryChestTitle"),
1225
+ () => ({
1226
+ transform: `translateX(${O.indexOf(e(j)) * 100}%)`
1227
+ })
1228
+ ]
1229
+ ), d(Te, me);
1230
+ var ut = Mt(ot);
1231
+ return Ne(), ut;
1232
+ }
1233
+ Yt(["click", "pointerdown"]);
1234
+ Tt(
1235
+ vn,
1236
+ {
1237
+ program: {},
1238
+ endpoint: {},
1239
+ session: {},
1240
+ language: {},
1241
+ showBackButton: {},
1242
+ liteMode: {}
1243
+ },
1244
+ [],
1245
+ [],
1246
+ { mode: "open" }
1247
+ );
1248
+ export {
1249
+ vn as M
1250
+ };