react-native-monflowts 0.5.1 → 0.5.3

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 (269) hide show
  1. package/README.md +37 -3
  2. package/android/build.gradle +1 -0
  3. package/android/src/main/java/com/monflowts/MonflowtsLottieView.kt +12 -4
  4. package/android/src/main/java/com/monflowts/MonflowtsNavigationModule.kt +43 -0
  5. package/android/src/main/java/com/monflowts/MonflowtsPackage.kt +10 -1
  6. package/android/src/main/java/com/monflowts/MonflowtsStackView.kt +456 -0
  7. package/android/src/main/java/com/monflowts/MonflowtsStackViewManager.kt +70 -0
  8. package/android/src/main/java/com/monflowts/MonflowtsWebView.kt +35 -11
  9. package/android/src/main/java/com/monflowts/MonflowtsWebViewManager.kt +10 -0
  10. package/ios/MonflowtsNavigationBridge.m +10 -0
  11. package/ios/MonflowtsNavigationModule.swift +28 -0
  12. package/ios/MonflowtsStackBridge.m +17 -0
  13. package/ios/MonflowtsStackUIView.swift +409 -0
  14. package/ios/MonflowtsStackViewManager.swift +14 -0
  15. package/ios/MonflowtsWebBridge.m +1 -0
  16. package/ios/MonflowtsWebUIView.swift +21 -0
  17. package/lib/module/HubContent.js +259 -219
  18. package/lib/module/HubContent.js.map +1 -1
  19. package/lib/module/MonflowtsHub.js +42 -3
  20. package/lib/module/MonflowtsHub.js.map +1 -1
  21. package/lib/module/NativeWebView.js.map +1 -1
  22. package/lib/module/api/mutations.js +4 -0
  23. package/lib/module/api/mutations.js.map +1 -1
  24. package/lib/module/api/queries.js +9 -3
  25. package/lib/module/api/queries.js.map +1 -1
  26. package/lib/module/components/AbandonPolicyNotice.js +7 -6
  27. package/lib/module/components/AbandonPolicyNotice.js.map +1 -1
  28. package/lib/module/components/CoinFlyOverlay.js +27 -20
  29. package/lib/module/components/CoinFlyOverlay.js.map +1 -1
  30. package/lib/module/components/GameRulesModal.js +13 -11
  31. package/lib/module/components/GameRulesModal.js.map +1 -1
  32. package/lib/module/components/HypeCallout.js +5 -5
  33. package/lib/module/components/HypeCallout.js.map +1 -1
  34. package/lib/module/components/InsufficientFundsOverlay.js +4 -3
  35. package/lib/module/components/InsufficientFundsOverlay.js.map +1 -1
  36. package/lib/module/components/JackpotNearMiss.js +4 -3
  37. package/lib/module/components/JackpotNearMiss.js.map +1 -1
  38. package/lib/module/components/JackpotTeaser.js +10 -9
  39. package/lib/module/components/JackpotTeaser.js.map +1 -1
  40. package/lib/module/components/MonflowtsButton.js +7 -4
  41. package/lib/module/components/MonflowtsButton.js.map +1 -1
  42. package/lib/module/components/QuitConfirmModal.js +8 -7
  43. package/lib/module/components/QuitConfirmModal.js.map +1 -1
  44. package/lib/module/components/SessionTimer.js +3 -2
  45. package/lib/module/components/SessionTimer.js.map +1 -1
  46. package/lib/module/components/ShopArtView.js +105 -0
  47. package/lib/module/components/ShopArtView.js.map +1 -0
  48. package/lib/module/components/SideDemoTab.js +22 -4
  49. package/lib/module/components/SideDemoTab.js.map +1 -1
  50. package/lib/module/components/StakeInput.js +7 -6
  51. package/lib/module/components/StakeInput.js.map +1 -1
  52. package/lib/module/content.js.map +1 -1
  53. package/lib/module/hooks/useAvailableGames.js +7 -2
  54. package/lib/module/hooks/useAvailableGames.js.map +1 -1
  55. package/lib/module/hooks/useLeaderboard.js.map +1 -1
  56. package/lib/module/hooks/usePlayGame.js +11 -5
  57. package/lib/module/hooks/usePlayGame.js.map +1 -1
  58. package/lib/module/hooks/useRaffleDrawState.js +4 -1
  59. package/lib/module/hooks/useRaffleDrawState.js.map +1 -1
  60. package/lib/module/index.js +15 -0
  61. package/lib/module/index.js.map +1 -1
  62. package/lib/module/navigation/NativeStackView.js +5 -0
  63. package/lib/module/navigation/NativeStackView.js.map +1 -0
  64. package/lib/module/navigation/Navigator.js +250 -0
  65. package/lib/module/navigation/Navigator.js.map +1 -0
  66. package/lib/module/navigation/engine.js +466 -0
  67. package/lib/module/navigation/engine.js.map +1 -0
  68. package/lib/module/navigation/hooks.js +29 -0
  69. package/lib/module/navigation/hooks.js.map +1 -0
  70. package/lib/module/navigation/index.js +7 -0
  71. package/lib/module/navigation/index.js.map +1 -0
  72. package/lib/module/navigation/routes.js +111 -0
  73. package/lib/module/navigation/routes.js.map +1 -0
  74. package/lib/module/theme.js +13 -13
  75. package/lib/module/theme.js.map +1 -1
  76. package/lib/module/utils/scale.js +35 -0
  77. package/lib/module/utils/scale.js.map +1 -0
  78. package/lib/module/views/DepositSelect.js +8 -7
  79. package/lib/module/views/DepositSelect.js.map +1 -1
  80. package/lib/module/views/DiceBattle.js +589 -218
  81. package/lib/module/views/DiceBattle.js.map +1 -1
  82. package/lib/module/views/DiceLobby.js +113 -74
  83. package/lib/module/views/DiceLobby.js.map +1 -1
  84. package/lib/module/views/FortuneWheel.js +417 -271
  85. package/lib/module/views/FortuneWheel.js.map +1 -1
  86. package/lib/module/views/Freefall.js +149 -90
  87. package/lib/module/views/Freefall.js.map +1 -1
  88. package/lib/module/views/History.js +10 -9
  89. package/lib/module/views/History.js.map +1 -1
  90. package/lib/module/views/Home.js +1058 -401
  91. package/lib/module/views/Home.js.map +1 -1
  92. package/lib/module/views/Jetstream.js +47 -23
  93. package/lib/module/views/Jetstream.js.map +1 -1
  94. package/lib/module/views/Leaderboard.js +112 -103
  95. package/lib/module/views/Leaderboard.js.map +1 -1
  96. package/lib/module/views/MillionaireHunter.js +752 -578
  97. package/lib/module/views/MillionaireHunter.js.map +1 -1
  98. package/lib/module/views/Minefield.js +41 -19
  99. package/lib/module/views/Minefield.js.map +1 -1
  100. package/lib/module/views/PaymentWebView.js +7 -6
  101. package/lib/module/views/PaymentWebView.js.map +1 -1
  102. package/lib/module/views/PlayerCard.js +5 -4
  103. package/lib/module/views/PlayerCard.js.map +1 -1
  104. package/lib/module/views/Profile.js +11 -10
  105. package/lib/module/views/Profile.js.map +1 -1
  106. package/lib/module/views/RaffleDraw.js +37 -27
  107. package/lib/module/views/RaffleDraw.js.map +1 -1
  108. package/lib/module/views/RevealWin.js +161 -34
  109. package/lib/module/views/RevealWin.js.map +1 -1
  110. package/lib/module/views/Splash.js +3 -2
  111. package/lib/module/views/Splash.js.map +1 -1
  112. package/lib/module/views/Success.js +6 -3
  113. package/lib/module/views/Success.js.map +1 -1
  114. package/lib/module/views/TicketShop.js +1067 -236
  115. package/lib/module/views/TicketShop.js.map +1 -1
  116. package/lib/module/views/TriviaLobby.js +57 -31
  117. package/lib/module/views/TriviaLobby.js.map +1 -1
  118. package/lib/module/views/TriviaMaster.js +28 -23
  119. package/lib/module/views/TriviaMaster.js.map +1 -1
  120. package/lib/module/views/Wallet.js +18 -17
  121. package/lib/module/views/Wallet.js.map +1 -1
  122. package/lib/module/views/WithdrawFlow.js +6 -5
  123. package/lib/module/views/WithdrawFlow.js.map +1 -1
  124. package/lib/module/views/dice3d/DiceTable3D.js +131 -0
  125. package/lib/module/views/dice3d/DiceTable3D.js.map +1 -0
  126. package/lib/module/views/dice3d/diceScene.js +873 -0
  127. package/lib/module/views/dice3d/diceScene.js.map +1 -0
  128. package/lib/module/views/dice3d/diceSim.js +300 -0
  129. package/lib/module/views/dice3d/diceSim.js.map +1 -0
  130. package/lib/module/views/diceDuel.js +35 -0
  131. package/lib/module/views/diceDuel.js.map +1 -0
  132. package/lib/module/views/freefallDrop.js +66 -0
  133. package/lib/module/views/freefallDrop.js.map +1 -0
  134. package/lib/module/views/homeLayout.js +47 -0
  135. package/lib/module/views/homeLayout.js.map +1 -0
  136. package/lib/module/views/launchFeatured.js +43 -0
  137. package/lib/module/views/launchFeatured.js.map +1 -0
  138. package/lib/module/views/leaderboardPhase.js +52 -0
  139. package/lib/module/views/leaderboardPhase.js.map +1 -0
  140. package/lib/module/views/lobbyKit.js +224 -0
  141. package/lib/module/views/lobbyKit.js.map +1 -0
  142. package/lib/module/views/raffleContent.js +11 -0
  143. package/lib/module/views/raffleContent.js.map +1 -0
  144. package/lib/module/views/rafflePhase.js +15 -0
  145. package/lib/module/views/rafflePhase.js.map +1 -0
  146. package/lib/module/views/revealWinHelpers.js +19 -0
  147. package/lib/module/views/revealWinHelpers.js.map +1 -1
  148. package/lib/module/views/shopArtMotion.js +25 -0
  149. package/lib/module/views/shopArtMotion.js.map +1 -0
  150. package/lib/module/views/ticketBundlePresets.js +15 -12
  151. package/lib/module/views/ticketBundlePresets.js.map +1 -1
  152. package/lib/module/views/ticketShopArt.js +391 -0
  153. package/lib/module/views/ticketShopArt.js.map +1 -0
  154. package/lib/module/views/treasureHunt.js +81 -0
  155. package/lib/module/views/treasureHunt.js.map +1 -0
  156. package/lib/module/views/wheelLayout.js +47 -0
  157. package/lib/module/views/wheelLayout.js.map +1 -0
  158. package/lib/typescript/src/HubContent.d.ts.map +1 -1
  159. package/lib/typescript/src/MonflowtsHub.d.ts.map +1 -1
  160. package/lib/typescript/src/NativeWebView.d.ts +1 -0
  161. package/lib/typescript/src/NativeWebView.d.ts.map +1 -1
  162. package/lib/typescript/src/api/gameTypes.d.ts +18 -2
  163. package/lib/typescript/src/api/gameTypes.d.ts.map +1 -1
  164. package/lib/typescript/src/api/mutations.d.ts.map +1 -1
  165. package/lib/typescript/src/api/queries.d.ts.map +1 -1
  166. package/lib/typescript/src/api/sdkTypes.d.ts +3 -0
  167. package/lib/typescript/src/api/sdkTypes.d.ts.map +1 -1
  168. package/lib/typescript/src/components/AbandonPolicyNotice.d.ts.map +1 -1
  169. package/lib/typescript/src/components/CoinFlyOverlay.d.ts.map +1 -1
  170. package/lib/typescript/src/components/GameRulesModal.d.ts +1 -0
  171. package/lib/typescript/src/components/GameRulesModal.d.ts.map +1 -1
  172. package/lib/typescript/src/components/HypeCallout.d.ts.map +1 -1
  173. package/lib/typescript/src/components/InsufficientFundsOverlay.d.ts.map +1 -1
  174. package/lib/typescript/src/components/JackpotNearMiss.d.ts.map +1 -1
  175. package/lib/typescript/src/components/JackpotTeaser.d.ts.map +1 -1
  176. package/lib/typescript/src/components/MonflowtsButton.d.ts.map +1 -1
  177. package/lib/typescript/src/components/QuitConfirmModal.d.ts.map +1 -1
  178. package/lib/typescript/src/components/SessionTimer.d.ts.map +1 -1
  179. package/lib/typescript/src/components/ShopArtView.d.ts +11 -0
  180. package/lib/typescript/src/components/ShopArtView.d.ts.map +1 -0
  181. package/lib/typescript/src/components/SideDemoTab.d.ts +1 -0
  182. package/lib/typescript/src/components/SideDemoTab.d.ts.map +1 -1
  183. package/lib/typescript/src/components/StakeInput.d.ts.map +1 -1
  184. package/lib/typescript/src/content.d.ts +1 -0
  185. package/lib/typescript/src/content.d.ts.map +1 -1
  186. package/lib/typescript/src/hooks/useAvailableGames.d.ts +3 -0
  187. package/lib/typescript/src/hooks/useAvailableGames.d.ts.map +1 -1
  188. package/lib/typescript/src/hooks/useLeaderboard.d.ts +4 -0
  189. package/lib/typescript/src/hooks/useLeaderboard.d.ts.map +1 -1
  190. package/lib/typescript/src/hooks/usePlayGame.d.ts +1 -1
  191. package/lib/typescript/src/hooks/usePlayGame.d.ts.map +1 -1
  192. package/lib/typescript/src/hooks/useRaffleDrawState.d.ts.map +1 -1
  193. package/lib/typescript/src/index.d.ts +16 -0
  194. package/lib/typescript/src/index.d.ts.map +1 -1
  195. package/lib/typescript/src/navigation/NativeStackView.d.ts +41 -0
  196. package/lib/typescript/src/navigation/NativeStackView.d.ts.map +1 -0
  197. package/lib/typescript/src/navigation/Navigator.d.ts +13 -0
  198. package/lib/typescript/src/navigation/Navigator.d.ts.map +1 -0
  199. package/lib/typescript/src/navigation/engine.d.ts +69 -0
  200. package/lib/typescript/src/navigation/engine.d.ts.map +1 -0
  201. package/lib/typescript/src/navigation/hooks.d.ts +6 -0
  202. package/lib/typescript/src/navigation/hooks.d.ts.map +1 -0
  203. package/lib/typescript/src/navigation/index.d.ts +7 -0
  204. package/lib/typescript/src/navigation/index.d.ts.map +1 -0
  205. package/lib/typescript/src/navigation/routes.d.ts +80 -0
  206. package/lib/typescript/src/navigation/routes.d.ts.map +1 -0
  207. package/lib/typescript/src/theme.d.ts +3 -3
  208. package/lib/typescript/src/types.d.ts +0 -9
  209. package/lib/typescript/src/types.d.ts.map +1 -1
  210. package/lib/typescript/src/utils/scale.d.ts +12 -0
  211. package/lib/typescript/src/utils/scale.d.ts.map +1 -0
  212. package/lib/typescript/src/views/DiceBattle.d.ts.map +1 -1
  213. package/lib/typescript/src/views/DiceLobby.d.ts.map +1 -1
  214. package/lib/typescript/src/views/FortuneWheel.d.ts.map +1 -1
  215. package/lib/typescript/src/views/Freefall.d.ts.map +1 -1
  216. package/lib/typescript/src/views/History.d.ts.map +1 -1
  217. package/lib/typescript/src/views/Home.d.ts +2 -2
  218. package/lib/typescript/src/views/Home.d.ts.map +1 -1
  219. package/lib/typescript/src/views/Jetstream.d.ts.map +1 -1
  220. package/lib/typescript/src/views/Leaderboard.d.ts.map +1 -1
  221. package/lib/typescript/src/views/MillionaireHunter.d.ts.map +1 -1
  222. package/lib/typescript/src/views/Minefield.d.ts.map +1 -1
  223. package/lib/typescript/src/views/PlayerCard.d.ts.map +1 -1
  224. package/lib/typescript/src/views/Profile.d.ts.map +1 -1
  225. package/lib/typescript/src/views/RaffleDraw.d.ts +2 -1
  226. package/lib/typescript/src/views/RaffleDraw.d.ts.map +1 -1
  227. package/lib/typescript/src/views/RevealWin.d.ts.map +1 -1
  228. package/lib/typescript/src/views/Splash.d.ts.map +1 -1
  229. package/lib/typescript/src/views/Success.d.ts.map +1 -1
  230. package/lib/typescript/src/views/TicketShop.d.ts +1 -0
  231. package/lib/typescript/src/views/TicketShop.d.ts.map +1 -1
  232. package/lib/typescript/src/views/TriviaLobby.d.ts.map +1 -1
  233. package/lib/typescript/src/views/TriviaMaster.d.ts.map +1 -1
  234. package/lib/typescript/src/views/Wallet.d.ts.map +1 -1
  235. package/lib/typescript/src/views/dice3d/DiceTable3D.d.ts +41 -0
  236. package/lib/typescript/src/views/dice3d/DiceTable3D.d.ts.map +1 -0
  237. package/lib/typescript/src/views/dice3d/diceScene.d.ts +2 -0
  238. package/lib/typescript/src/views/dice3d/diceScene.d.ts.map +1 -0
  239. package/lib/typescript/src/views/dice3d/diceSim.d.ts +2 -0
  240. package/lib/typescript/src/views/dice3d/diceSim.d.ts.map +1 -0
  241. package/lib/typescript/src/views/diceDuel.d.ts +15 -0
  242. package/lib/typescript/src/views/diceDuel.d.ts.map +1 -0
  243. package/lib/typescript/src/views/freefallDrop.d.ts +19 -0
  244. package/lib/typescript/src/views/freefallDrop.d.ts.map +1 -0
  245. package/lib/typescript/src/views/homeLayout.d.ts +15 -0
  246. package/lib/typescript/src/views/homeLayout.d.ts.map +1 -0
  247. package/lib/typescript/src/views/launchFeatured.d.ts +2 -0
  248. package/lib/typescript/src/views/launchFeatured.d.ts.map +1 -0
  249. package/lib/typescript/src/views/leaderboardPhase.d.ts +6 -0
  250. package/lib/typescript/src/views/leaderboardPhase.d.ts.map +1 -0
  251. package/lib/typescript/src/views/lobbyKit.d.ts +45 -0
  252. package/lib/typescript/src/views/lobbyKit.d.ts.map +1 -0
  253. package/lib/typescript/src/views/raffleContent.d.ts +3 -0
  254. package/lib/typescript/src/views/raffleContent.d.ts.map +1 -0
  255. package/lib/typescript/src/views/rafflePhase.d.ts +9 -0
  256. package/lib/typescript/src/views/rafflePhase.d.ts.map +1 -0
  257. package/lib/typescript/src/views/revealWinHelpers.d.ts +9 -0
  258. package/lib/typescript/src/views/revealWinHelpers.d.ts.map +1 -1
  259. package/lib/typescript/src/views/shopArtMotion.d.ts +13 -0
  260. package/lib/typescript/src/views/shopArtMotion.d.ts.map +1 -0
  261. package/lib/typescript/src/views/ticketBundlePresets.d.ts +3 -17
  262. package/lib/typescript/src/views/ticketBundlePresets.d.ts.map +1 -1
  263. package/lib/typescript/src/views/ticketShopArt.d.ts +27 -0
  264. package/lib/typescript/src/views/ticketShopArt.d.ts.map +1 -0
  265. package/lib/typescript/src/views/treasureHunt.d.ts +29 -0
  266. package/lib/typescript/src/views/treasureHunt.d.ts.map +1 -0
  267. package/lib/typescript/src/views/wheelLayout.d.ts +30 -0
  268. package/lib/typescript/src/views/wheelLayout.d.ts.map +1 -0
  269. package/package.json +1 -1
@@ -1,114 +1,408 @@
1
1
  "use strict";
2
2
 
3
- import React, { useState } from 'react';
4
- import { View, Text, ScrollView, Image, StyleSheet } from 'react-native';
5
- import { COLORS, IMAGES } from "../constants.js";
3
+ import React, { useEffect, useMemo, useRef, useState } from 'react';
4
+ import { Image, Platform, ScrollView, StyleSheet, Text, View } from 'react-native';
5
+ import { scaleFont, scaledStyles } from "../utils/scale.js";
6
+ import { useFocusEffect, useIsFocused } from "../navigation/hooks.js";
7
+ import { IMAGES } from "../constants.js";
6
8
  import SvgIcon from "../Icons.js";
7
9
  import MonflowtsPressable from "../components/MonflowtsPressable.js";
8
10
  import MonflowtsLottieView from "../NativeLottieView.js";
9
11
  import { lottie } from "../assets/remote.js";
10
12
  import { animationContent, gameContent, randomMessageKey } from "../content.js";
13
+ import { useQuery } from '@apollo/client/react';
11
14
  import { useAvailableGames } from "../hooks/useAvailableGames.js";
15
+ import { GET_ACTIVE_LEADERBOARD_RAFFLE } from "../api/queries.js";
12
16
  import { useAuthStore } from "../stores/authStore.js";
13
17
  import { t, formatNumber } from "../i18n.js";
14
18
  import { useResponsive } from "../hooks/useResponsive.js";
15
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
- const PAGE_PADDING = 16;
17
- const CARD_GAP = 16;
18
- const GameCard = ({
19
- title,
20
- tag,
21
- tagColor,
22
- jackpotLabel,
23
- jackpotValue,
24
- lottieJson,
25
- btnColor,
26
- onPress,
19
+ import { LOBBY_COMPACT_MAX_WIDTH, LOBBY_WIDE_MIN_WIDTH, drawCountdown, lobbyCardWidth, lobbyColumns, rotateToFront, tipLines } from "./homeLayout.js";
20
+ import { useLaunchFeatured } from "./launchFeatured.js";
21
+ import { LOBBY, Notch, Perforation, Sunburst, useNow, useReducedMotion } from "./lobbyKit.js";
22
+ import { rafflePeriod } from "./leaderboardPhase.js";
23
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
24
+ const HERO_GAME = 'RAFFLE_DRAW';
25
+ const TIP_ROTATE_MS = 6000;
26
+ const LOBBY_REFRESH_MS = 60000;
27
+ const PLUS_PATH = 'M12 5v14M5 12h14';
28
+ const ARROW_PATH = 'M5 12h14M13 6l6 6-6 6';
29
+ const CHEVRON_PATH = 'M9 6l6 6-6 6';
30
+ const GAME_CODE_SCREEN = {
31
+ RAFFLE_DRAW: 'RAFFLE_DRAW',
32
+ SPIN_WHEEL: 'FORTUNE_WHEEL',
33
+ MILLIONAIRE_HUNTER: 'MILLIONAIRE_HUNTER',
34
+ FAST_FINGER: 'TRIVIA_LOBBY',
35
+ DICE_ROLL: 'DICE_LOBBY',
36
+ REVEAL_WIN: 'REVEAL_WIN',
37
+ PLINKO: 'FREEFALL',
38
+ MINES: 'MINEFIELD',
39
+ CRASH: 'JETSTREAM'
40
+ };
41
+ function cardData(game, cardLotties) {
42
+ const display = game.uiConfig?.display;
43
+ const card = gameContent(game.gameCode).card;
44
+ if (!display && !card) return null;
45
+ const lottieKey = cardLotties[display?.lottieId || card?.lottieId || ''];
46
+ const rules = game.gameplayRules;
47
+ const topKobo = rules?.jackpotAmountKobo || rules?.maxWinKobo || 0;
48
+ const stakeKobo = rules?.stakeOptions?.[0] ?? game.playCost?.fixedAmountKobo ?? null;
49
+ return {
50
+ game,
51
+ name: game.gameCode === HERO_GAME && game.name || t(`games.${game.gameCode}.name`),
52
+ tag: game.gameCode === HERO_GAME && game.tagLine || t(`games.${game.gameCode}.tag`),
53
+ band: display?.bandColor || card?.bandColor || LOBBY.fallbackBand,
54
+ lottieJson: lottieKey ? lottie(lottieKey) : '',
55
+ prizeLabel: t(card?.prizeLabel ?? 'home.topPrize'),
56
+ prize: topKobo ? formatNumber(topKobo / 100) : '—',
57
+ minStake: stakeKobo ? Math.round(stakeKobo / 100) : null
58
+ };
59
+ }
60
+ const SHRINK_WORDS = Platform.OS === 'ios' ? {
61
+ adjustsFontSizeToFit: true,
62
+ minimumFontScale: 0.7
63
+ } : {};
64
+ const Tag = ({
65
+ label,
66
+ large,
27
67
  style
28
- }) => /*#__PURE__*/_jsxs(MonflowtsPressable, {
29
- style: [styles.gameCard, style],
30
- activeOpacity: 0.9,
31
- onPress: onPress,
32
- children: [/*#__PURE__*/_jsxs(View, {
33
- style: styles.gameCardHeader,
68
+ }) => /*#__PURE__*/_jsx(View, {
69
+ style: [styles.tag, large && styles.tagLarge, style],
70
+ children: /*#__PURE__*/_jsx(Text, {
71
+ style: [styles.tagText, large && styles.tagTextLarge],
72
+ numberOfLines: 1,
73
+ ...SHRINK_WORDS,
74
+ children: label
75
+ })
76
+ });
77
+ const PillButton = ({
78
+ label,
79
+ icon,
80
+ light,
81
+ stretch
82
+ }) => /*#__PURE__*/_jsxs(View, {
83
+ style: [styles.pillButton, light ? styles.pillButtonLight : styles.pillButtonGold, stretch && styles.pillButtonStretch],
84
+ children: [/*#__PURE__*/_jsx(Text, {
85
+ style: [styles.pillButtonText, {
86
+ color: light ? LOBBY.bg : LOBBY.goldInk
87
+ }],
88
+ children: label
89
+ }), icon ? /*#__PURE__*/_jsx(SvgIcon, {
90
+ name: "",
91
+ d: icon,
92
+ stroked: true,
93
+ size: 18,
94
+ strokeWidth: 2.8,
95
+ color: light ? LOBBY.bg : LOBBY.goldInk
96
+ }) : null]
97
+ });
98
+ const BANNER_ROTATE_MS = 6000;
99
+ const CTA_KEY = {
100
+ RAFFLE_DRAW: 'home.getTickets',
101
+ SPIN_WHEEL: 'home.spinNow'
102
+ };
103
+ function bannerHeight(wide, compact) {
104
+ return wide ? 272 : compact ? 212 : 224;
105
+ }
106
+ const DrawChip = ({
107
+ drawDate
108
+ }) => {
109
+ const now = useNow(30000);
110
+ const left = drawCountdown(drawDate, now);
111
+ if (!left) return null;
112
+ const value = left.days !== '00' ? `${left.days}d ${left.hours}h` : `${left.hours}h ${left.minutes}m`;
113
+ return /*#__PURE__*/_jsx(View, {
114
+ style: styles.drawChip,
115
+ children: /*#__PURE__*/_jsx(Text, {
116
+ style: styles.drawChipText,
117
+ numberOfLines: 1,
118
+ children: `${t('home.drawIn')} ${value}`
119
+ })
120
+ });
121
+ };
122
+ const FeaturedBanner = ({
123
+ data,
124
+ width,
125
+ height,
126
+ wide,
127
+ live,
128
+ active,
129
+ onPress
130
+ }) => {
131
+ const artWidth = Math.round(width * (wide ? 0.36 : 0.4));
132
+ const lottieSize = Math.min(artWidth - 12, height - 36);
133
+ const sunburst = Math.round(Math.max(artWidth, height) * 2);
134
+ const drawDate = data.game.gameplayRules?.drawDate;
135
+ const prizeSize = fittedNumberSize(data.prize, width - artWidth - (wide ? 52 : 34), wide ? 56 : 32);
136
+ return /*#__PURE__*/_jsxs(MonflowtsPressable, {
137
+ style: [styles.banner, {
138
+ width,
139
+ height,
140
+ backgroundColor: data.band
141
+ }],
142
+ onPress: onPress,
143
+ activeOpacity: 0.94,
144
+ accessibilityRole: "button",
145
+ accessibilityLabel: `${data.name}, ${data.prizeLabel} ${data.prize}`,
34
146
  children: [/*#__PURE__*/_jsxs(View, {
35
- children: [/*#__PURE__*/_jsx(View, {
36
- style: [styles.tag, {
37
- backgroundColor: tagColor + '33',
38
- borderColor: tagColor + '4D'
39
- }],
40
- children: /*#__PURE__*/_jsx(Text, {
41
- style: [styles.tagText, {
42
- color: tagColor
147
+ style: [styles.bannerBody, wide && styles.bannerBodyWide],
148
+ children: [/*#__PURE__*/_jsxs(View, {
149
+ style: styles.bannerHeading,
150
+ children: [/*#__PURE__*/_jsx(Tag, {
151
+ label: data.tag
152
+ }), /*#__PURE__*/_jsx(Text, {
153
+ style: [styles.bannerTitle, wide && styles.bannerTitleWide],
154
+ numberOfLines: 1,
155
+ adjustsFontSizeToFit: true,
156
+ minimumFontScale: 0.7,
157
+ children: data.name
158
+ })]
159
+ }), /*#__PURE__*/_jsxs(View, {
160
+ style: styles.bannerPrizeBox,
161
+ children: [/*#__PURE__*/_jsx(Text, {
162
+ style: styles.bannerPrizeLabel,
163
+ children: data.prizeLabel
164
+ }), /*#__PURE__*/_jsx(Text, {
165
+ style: [styles.bannerPrize, {
166
+ fontSize: prizeSize,
167
+ lineHeight: Math.round(prizeSize * 1.2)
43
168
  }],
44
- children: tag
45
- })
46
- }), /*#__PURE__*/_jsx(Text, {
47
- style: styles.gameTitle,
48
- children: title
169
+ numberOfLines: 1,
170
+ children: data.prize
171
+ })]
172
+ }), /*#__PURE__*/_jsx(PillButton, {
173
+ label: t(CTA_KEY[data.game.gameCode] ?? 'home.playNow'),
174
+ icon: ARROW_PATH
49
175
  })]
50
176
  }), /*#__PURE__*/_jsxs(View, {
51
- style: styles.jackpotArea,
52
- children: [/*#__PURE__*/_jsx(Text, {
53
- style: styles.jackpotLabel,
54
- children: jackpotLabel
55
- }), /*#__PURE__*/_jsx(Text, {
56
- style: styles.jackpotValue,
57
- children: jackpotValue
58
- })]
177
+ style: [styles.bannerArt, {
178
+ width: artWidth
179
+ }],
180
+ children: [/*#__PURE__*/_jsx(View, {
181
+ style: [StyleSheet.absoluteFill, {
182
+ backgroundColor: LOBBY.shade
183
+ }]
184
+ }), live ? /*#__PURE__*/_jsxs(_Fragment, {
185
+ children: [/*#__PURE__*/_jsx(Sunburst, {
186
+ size: sunburst,
187
+ style: {
188
+ left: (artWidth - sunburst) / 2,
189
+ top: (height - sunburst) / 2
190
+ }
191
+ }), data.lottieJson ? /*#__PURE__*/_jsx(MonflowtsLottieView, {
192
+ sourceJson: data.lottieJson,
193
+ playing: active,
194
+ loop: true,
195
+ speed: 1,
196
+ style: {
197
+ width: lottieSize,
198
+ height: lottieSize
199
+ }
200
+ }) : null]
201
+ }) : null, drawDate ? /*#__PURE__*/_jsx(DrawChip, {
202
+ drawDate: drawDate
203
+ }) : null]
204
+ }), /*#__PURE__*/_jsx(Perforation, {
205
+ vertical: true,
206
+ style: {
207
+ position: 'absolute',
208
+ right: artWidth - 3,
209
+ top: 20,
210
+ bottom: 20,
211
+ width: 6
212
+ }
213
+ }), /*#__PURE__*/_jsx(Notch, {
214
+ size: 24,
215
+ style: {
216
+ right: artWidth - 12,
217
+ top: -12
218
+ }
219
+ }), /*#__PURE__*/_jsx(Notch, {
220
+ size: 24,
221
+ style: {
222
+ right: artWidth - 12,
223
+ bottom: -12
224
+ }
59
225
  })]
60
- }), /*#__PURE__*/_jsx(View, {
61
- style: styles.gameImageArea,
62
- children: /*#__PURE__*/_jsx(MonflowtsLottieView, {
63
- sourceJson: lottieJson,
64
- autoPlay: true,
65
- loop: true,
66
- speed: 1,
67
- style: styles.gameLottie
68
- })
69
- }), /*#__PURE__*/_jsxs(View, {
70
- style: styles.gameCardFooter,
71
- children: [/*#__PURE__*/_jsxs(View, {
226
+ });
227
+ };
228
+ const FeaturedCarousel = ({
229
+ cards,
230
+ width,
231
+ gap,
232
+ wide,
233
+ compact,
234
+ focused,
235
+ onOpen
236
+ }) => {
237
+ const scrollRef = useRef(null);
238
+ const [index, setIndex] = useState(0);
239
+ const [dragging, setDragging] = useState(false);
240
+ const reduced = useReducedMotion();
241
+ const step = width + gap;
242
+ const height = bannerHeight(wide, compact);
243
+ const lead = cards[0]?.game.id;
244
+ const show = (i, animated) => {
245
+ setIndex(i);
246
+ scrollRef.current?.scrollTo({
247
+ x: i * step,
248
+ animated
249
+ });
250
+ };
251
+ useEffect(() => {
252
+ show(0, false);
253
+ }, [lead, cards.length, step]);
254
+ useEffect(() => {
255
+ if (reduced !== false || !focused || dragging || cards.length < 2) return;
256
+ const id = setTimeout(() => show((index + 1) % cards.length, true), BANNER_ROTATE_MS);
257
+ return () => clearTimeout(id);
258
+ }, [index, reduced, focused, dragging, cards.length, step]);
259
+ const settle = x => {
260
+ setDragging(false);
261
+ setIndex(Math.max(0, Math.min(cards.length - 1, Math.round(x / step))));
262
+ };
263
+ return /*#__PURE__*/_jsxs(View, {
264
+ style: styles.carousel,
265
+ children: [/*#__PURE__*/_jsx(ScrollView, {
266
+ ref: scrollRef,
267
+ horizontal: true,
268
+ showsHorizontalScrollIndicator: false,
269
+ snapToInterval: step,
270
+ decelerationRate: "fast",
271
+ disableIntervalMomentum: true,
72
272
  style: {
73
- flexDirection: 'row',
74
- alignItems: 'center'
273
+ width,
274
+ height,
275
+ overflow: 'visible'
75
276
  },
76
- children: [/*#__PURE__*/_jsx(SvgIcon, {
77
- name: "lightning",
78
- size: 14,
79
- color: tagColor
80
- }), /*#__PURE__*/_jsx(Text, {
81
- style: [styles.footerTag, {
82
- color: tagColor,
83
- marginLeft: 4
84
- }],
85
- children: t('home.limitedTime')
86
- })]
87
- }), /*#__PURE__*/_jsxs(View, {
88
- style: [styles.enterButton, {
89
- backgroundColor: btnColor
277
+ contentContainerStyle: {
278
+ gap
279
+ },
280
+ onScrollBeginDrag: () => setDragging(true),
281
+ onMomentumScrollEnd: e => settle(e.nativeEvent.contentOffset.x),
282
+ children: cards.map((c, i) => /*#__PURE__*/_jsx(FeaturedBanner, {
283
+ data: c,
284
+ width: width,
285
+ height: height,
286
+ wide: wide,
287
+ live: Math.abs(i - index) <= 1,
288
+ active: i === index,
289
+ onPress: () => onOpen(c.game)
290
+ }, c.game.id))
291
+ }), cards.length > 1 ? /*#__PURE__*/_jsx(View, {
292
+ style: styles.bannerDots,
293
+ children: cards.map((c, i) => /*#__PURE__*/_jsx(MonflowtsPressable, {
294
+ style: styles.bannerDotTap,
295
+ onPress: () => show(i, true),
296
+ accessibilityRole: "button",
297
+ accessibilityLabel: `${c.name}, ${t('home.bannerPosition', {
298
+ current: i + 1,
299
+ total: cards.length
300
+ })}`,
301
+ children: /*#__PURE__*/_jsx(View, {
302
+ style: [styles.bannerDot, i === index && styles.bannerDotActive]
303
+ })
304
+ }, c.game.id))
305
+ }) : null]
306
+ });
307
+ };
308
+ function fittedNumberSize(text, room, max) {
309
+ return Math.min(max, Math.floor(room / Math.max(4, text.length * 0.64)));
310
+ }
311
+ const GameCard = ({
312
+ data,
313
+ width,
314
+ onPress
315
+ }) => {
316
+ const prizeSize = fittedNumberSize(data.prize, width - 26, 28);
317
+ return /*#__PURE__*/_jsxs(MonflowtsPressable, {
318
+ style: [styles.card, {
319
+ width
320
+ }],
321
+ onPress: onPress,
322
+ activeOpacity: 0.92,
323
+ accessibilityRole: "button",
324
+ accessibilityLabel: t('home.playGame', {
325
+ name: data.name
326
+ }),
327
+ children: [/*#__PURE__*/_jsxs(View, {
328
+ style: [styles.cardBand, {
329
+ backgroundColor: data.band
90
330
  }],
91
- children: [/*#__PURE__*/_jsx(SvgIcon, {
92
- name: "play",
93
- size: 11,
94
- color: "#ffffff"
95
- }), /*#__PURE__*/_jsx(Text, {
96
- style: styles.enterButtonText,
97
- children: t('home.enter')
331
+ children: [/*#__PURE__*/_jsx(Tag, {
332
+ label: data.tag,
333
+ style: styles.cardTag
334
+ }), data.lottieJson ? /*#__PURE__*/_jsx(MonflowtsLottieView, {
335
+ sourceJson: data.lottieJson,
336
+ autoPlay: true,
337
+ loop: true,
338
+ speed: 1,
339
+ style: styles.cardLottie
340
+ }) : null]
341
+ }), /*#__PURE__*/_jsxs(View, {
342
+ style: styles.cardBody,
343
+ children: [/*#__PURE__*/_jsx(Text, {
344
+ style: styles.cardTitle,
345
+ numberOfLines: 2,
346
+ children: data.name
347
+ }), /*#__PURE__*/_jsxs(View, {
348
+ style: styles.cardPrize,
349
+ children: [/*#__PURE__*/_jsx(Text, {
350
+ style: styles.cardPrizeLabel,
351
+ children: data.prizeLabel
352
+ }), /*#__PURE__*/_jsx(Text, {
353
+ style: [styles.cardPrizeValue, {
354
+ fontSize: prizeSize,
355
+ lineHeight: Math.round(prizeSize * 1.15)
356
+ }],
357
+ numberOfLines: 1,
358
+ children: data.prize
359
+ })]
360
+ }), /*#__PURE__*/_jsxs(View, {
361
+ style: styles.cardFooter,
362
+ children: [data.minStake ? /*#__PURE__*/_jsxs(View, {
363
+ style: styles.cardStake,
364
+ children: [/*#__PURE__*/_jsx(SvgIcon, {
365
+ name: "diamond",
366
+ size: 12,
367
+ color: LOBBY.subtle
368
+ }), /*#__PURE__*/_jsx(Text, {
369
+ style: styles.cardStakeText,
370
+ numberOfLines: 1,
371
+ children: t('home.fromStake', {
372
+ amount: formatNumber(data.minStake)
373
+ })
374
+ })]
375
+ }) : /*#__PURE__*/_jsx(View, {}), /*#__PURE__*/_jsx(View, {
376
+ style: styles.playButton,
377
+ children: /*#__PURE__*/_jsx(SvgIcon, {
378
+ name: "play",
379
+ size: 18,
380
+ color: LOBBY.bg
381
+ })
382
+ })]
98
383
  })]
384
+ }), /*#__PURE__*/_jsx(Perforation, {
385
+ style: {
386
+ position: 'absolute',
387
+ left: 18,
388
+ right: 18,
389
+ top: 147,
390
+ height: 6
391
+ }
392
+ }), /*#__PURE__*/_jsx(Notch, {
393
+ size: 24,
394
+ style: {
395
+ left: -12,
396
+ top: 138
397
+ }
398
+ }), /*#__PURE__*/_jsx(Notch, {
399
+ size: 24,
400
+ style: {
401
+ right: -12,
402
+ top: 138
403
+ }
99
404
  })]
100
- })]
101
- });
102
- const GAME_CODE_SCREEN = {
103
- RAFFLE_DRAW: 'RAFFLE_DRAW',
104
- SPIN_WHEEL: 'FORTUNE_WHEEL',
105
- MILLIONAIRE_HUNTER: 'MILLIONAIRE_HUNTER',
106
- FAST_FINGER: 'TRIVIA_LOBBY',
107
- DICE_ROLL: 'DICE_LOBBY',
108
- REVEAL_WIN: 'REVEAL_WIN',
109
- PLINKO: 'FREEFALL',
110
- MINES: 'MINEFIELD',
111
- CRASH: 'JETSTREAM'
405
+ });
112
406
  };
113
407
  const Home = ({
114
408
  onNavigate,
@@ -118,434 +412,797 @@ const Home = ({
118
412
  onExit
119
413
  }) => {
120
414
  const [tipKey] = useState(() => randomMessageKey('home.tip'));
415
+ const tips = useMemo(() => tipLines(t(tipKey)), [tipKey]);
416
+ const [tipIndex, setTipIndex] = useState(0);
121
417
  const player = useAuthStore(s => s.player);
122
418
  const {
123
- isLoadingGames
419
+ isLoadingGames,
420
+ refetch: refetchGames,
421
+ startPolling,
422
+ stopPolling
124
423
  } = useAvailableGames();
125
- const cardLotties = animationContent().cardLotties ?? {};
424
+ const raffleQ = useQuery(GET_ACTIVE_LEADERBOARD_RAFFLE, {
425
+ fetchPolicy: 'cache-and-network'
426
+ });
427
+ const activeRaffle = raffleQ.data?.getActiveLeaderboardRaffle ?? null;
428
+ const lobbyShownBefore = useRef(false);
429
+ const focused = useIsFocused();
430
+ useFocusEffect(() => {
431
+ if (lobbyShownBefore.current) {
432
+ refetchGames().catch(() => {});
433
+ raffleQ.refetch().catch(() => {});
434
+ }
435
+ lobbyShownBefore.current = true;
436
+ startPolling(LOBBY_REFRESH_MS);
437
+ raffleQ.startPolling(LOBBY_REFRESH_MS);
438
+ return () => {
439
+ stopPolling();
440
+ raffleQ.stopPolling();
441
+ };
442
+ });
443
+ const [nameRoom, setNameRoom] = useState(0);
444
+ const [greetingWidth, setGreetingWidth] = useState(0);
445
+ const [nameWidth, setNameWidth] = useState(0);
446
+ const greeting = t('home.welcomeBack');
447
+ const firstName = player?.firstName?.trim() || player?.displayName?.trim().split(/\s+/)[0] || t('home.playerFallback');
126
448
  const {
127
- width,
128
- isWide,
129
- gameColumns
449
+ width: windowWidth
130
450
  } = useResponsive();
131
- const cardStyle = gameColumns > 1 ? {
132
- width: Math.floor((width - PAGE_PADDING * 2 - CARD_GAP * (gameColumns - 1)) / gameColumns)
133
- } : undefined;
134
- const handleGamePress = game => {
135
- if (onGameSelect) {
136
- onGameSelect(game.gameCode);
137
- } else {
451
+ const [boxWidth, setBoxWidth] = useState(0);
452
+ const width = boxWidth || windowWidth;
453
+ const wide = width >= LOBBY_WIDE_MIN_WIDTH;
454
+ const compact = width < LOBBY_COMPACT_MAX_WIDTH;
455
+ const pagePadding = wide ? 32 : compact ? 16 : 20;
456
+ const gap = wide ? 16 : 12;
457
+ const columns = lobbyColumns(width);
458
+ const cardWidth = lobbyCardWidth(width - pagePadding * 2, columns, gap);
459
+ const nameMax = scaleFont(wide ? 24 : 19);
460
+ const nameSize = nameRoom > 0 && nameWidth > 0 ? Math.max(13, Math.min(nameMax, Math.floor(nameMax * nameRoom / nameWidth))) : nameMax;
461
+ useEffect(() => {
462
+ if (tips.length < 2) return;
463
+ const id = setInterval(() => setTipIndex(i => (i + 1) % tips.length), TIP_ROTATE_MS);
464
+ return () => clearInterval(id);
465
+ }, [tips.length]);
466
+ const cards = useMemo(() => {
467
+ const lotties = animationContent().cardLotties ?? {};
468
+ return (availableGames ?? []).map(g => cardData(g, lotties)).filter(c => c !== null);
469
+ }, [availableGames]);
470
+ const codes = useMemo(() => cards.map(c => c.game.gameCode), [cards]);
471
+ const featuredCode = useLaunchFeatured(codes);
472
+ const bannerCards = useMemo(() => featuredCode ? rotateToFront(cards, cards.findIndex(c => c.game.gameCode === featuredCode)) : [], [cards, featuredCode]);
473
+ const open = game => {
474
+ if (onGameSelect) onGameSelect(game.gameCode);else {
138
475
  const screen = GAME_CODE_SCREEN[game.gameCode];
139
476
  if (screen) onNavigate(screen);
140
477
  }
141
478
  };
142
- const leaderboardTile = /*#__PURE__*/_jsxs(MonflowtsPressable, {
143
- style: [styles.leaderboardTile, isWide && styles.sideBySide],
144
- activeOpacity: 0.85,
479
+ const onLayout = e => {
480
+ const w = Math.round(e.nativeEvent.layout.width);
481
+ setBoxWidth(prev => prev === w ? prev : w);
482
+ };
483
+ const period = rafflePeriod(activeRaffle?.schedule?.recurrence);
484
+ const leaderboard = activeRaffle ? /*#__PURE__*/_jsxs(MonflowtsPressable, {
485
+ style: [styles.tile, wide ? styles.tileFlex : styles.tileLeaderboard],
145
486
  onPress: () => onNavigate('LEADERBOARD'),
146
- children: [/*#__PURE__*/_jsx(SvgIcon, {
147
- name: "trophy",
148
- size: 26,
149
- color: COLORS.gold,
150
- style: styles.leaderboardTileIcon
487
+ activeOpacity: 0.85,
488
+ accessibilityRole: "button",
489
+ children: [/*#__PURE__*/_jsx(View, {
490
+ style: [styles.tileIcon, {
491
+ backgroundColor: LOBBY.leaderTint
492
+ }],
493
+ children: /*#__PURE__*/_jsx(SvgIcon, {
494
+ name: "trophy",
495
+ size: 26,
496
+ color: LOBBY.gold
497
+ })
151
498
  }), /*#__PURE__*/_jsxs(View, {
152
- style: styles.leaderboardTileText,
499
+ style: styles.tileText,
153
500
  children: [/*#__PURE__*/_jsx(Text, {
154
- style: styles.leaderboardTileTitle,
155
- children: t('home.weeklyLeaderboard')
501
+ style: styles.tileTitle,
502
+ numberOfLines: 1,
503
+ ...SHRINK_WORDS,
504
+ children: t(`leaderboard.title.${period}`)
156
505
  }), /*#__PURE__*/_jsx(Text, {
157
- style: styles.leaderboardTileSub,
158
- children: t('home.weeklyLeaderboardSub')
506
+ style: styles.tileSub,
507
+ numberOfLines: 2,
508
+ children: t(`leaderboard.tileSub.${period}`)
509
+ })]
510
+ }), /*#__PURE__*/_jsx(SvgIcon, {
511
+ name: "",
512
+ d: CHEVRON_PATH,
513
+ stroked: true,
514
+ size: 20,
515
+ strokeWidth: 2.2,
516
+ color: LOBBY.muted
517
+ })]
518
+ }) : null;
519
+ const oracle = /*#__PURE__*/_jsxs(MonflowtsPressable, {
520
+ style: [styles.tile, wide ? styles.tileFlex : styles.tileOracle],
521
+ onPress: () => setTipIndex(i => (i + 1) % Math.max(1, tips.length)),
522
+ activeOpacity: 0.85,
523
+ accessibilityLabel: `${t('home.oracleTip')}: ${tips[tipIndex] ?? ''}`,
524
+ children: [/*#__PURE__*/_jsx(View, {
525
+ style: [styles.tileIcon, {
526
+ backgroundColor: LOBBY.oracleTint
527
+ }],
528
+ children: /*#__PURE__*/_jsx(Image, {
529
+ source: IMAGES.ORACLE,
530
+ style: styles.oracleImage,
531
+ resizeMode: "contain"
532
+ })
533
+ }), /*#__PURE__*/_jsxs(View, {
534
+ style: styles.tileText,
535
+ children: [/*#__PURE__*/_jsxs(View, {
536
+ style: styles.oracleHead,
537
+ children: [/*#__PURE__*/_jsx(Text, {
538
+ style: styles.oracleLabel,
539
+ children: t('home.oracleTip')
540
+ }), /*#__PURE__*/_jsx(View, {
541
+ style: styles.pager,
542
+ children: tips.map((_, i) => /*#__PURE__*/_jsx(View, {
543
+ style: [styles.pagerDot, i === tipIndex && styles.pagerDotActive]
544
+ }, i))
545
+ })]
546
+ }), /*#__PURE__*/_jsx(Text, {
547
+ style: styles.oracleText,
548
+ numberOfLines: 2,
549
+ children: tips[tipIndex] ?? ''
159
550
  })]
160
- }), /*#__PURE__*/_jsx(Text, {
161
- style: styles.leaderboardTileChevron,
162
- children: "\u203A"
163
551
  })]
164
552
  });
165
553
  return /*#__PURE__*/_jsxs(View, {
166
554
  style: styles.container,
167
- children: [/*#__PURE__*/_jsxs(View, {
168
- style: styles.header,
169
- children: [/*#__PURE__*/_jsxs(MonflowtsPressable, {
170
- style: styles.headerLeft,
171
- onPress: () => onNavigate('PROFILE'),
172
- children: [/*#__PURE__*/_jsx(View, {
173
- style: styles.avatarContainer,
174
- children: /*#__PURE__*/_jsx(Image, {
175
- source: IMAGES.AVATAR,
176
- style: styles.avatar
177
- })
178
- }), /*#__PURE__*/_jsxs(View, {
555
+ onLayout: onLayout,
556
+ children: [/*#__PURE__*/_jsxs(ScrollView, {
557
+ contentContainerStyle: [styles.content, {
558
+ paddingHorizontal: pagePadding,
559
+ paddingTop: wide ? 56 : 60,
560
+ gap: wide ? 20 : 16
561
+ }],
562
+ showsVerticalScrollIndicator: false,
563
+ children: [/*#__PURE__*/_jsxs(View, {
564
+ style: [styles.header, wide && styles.headerWide, compact && styles.headerCompact],
565
+ children: [/*#__PURE__*/_jsxs(View, {
566
+ pointerEvents: "none",
567
+ style: styles.measure,
179
568
  children: [/*#__PURE__*/_jsx(Text, {
180
- style: styles.welcomeText,
181
- children: t('home.welcomeBack')
569
+ style: [styles.welcome, wide && styles.welcomeWide],
570
+ onLayout: e => setGreetingWidth(Math.ceil(e.nativeEvent.layout.width)),
571
+ children: greeting
182
572
  }), /*#__PURE__*/_jsx(Text, {
183
- style: styles.playerName,
184
- children: player?.firstName ?? player?.displayName ?? t('home.playerFallback')
573
+ style: [styles.playerName, {
574
+ fontSize: nameMax
575
+ }],
576
+ onLayout: e => setNameWidth(Math.ceil(e.nativeEvent.layout.width)),
577
+ children: firstName
185
578
  })]
186
- })]
187
- }), /*#__PURE__*/_jsxs(View, {
188
- style: styles.headerRight,
189
- children: [onExit && /*#__PURE__*/_jsx(MonflowtsPressable, {
190
- style: styles.closeBtn,
191
- onPress: onExit,
192
- activeOpacity: 0.7,
193
- children: /*#__PURE__*/_jsx(SvgIcon, {
194
- name: "door",
195
- size: 16,
196
- color: COLORS.slateLight
197
- })
198
579
  }), /*#__PURE__*/_jsxs(MonflowtsPressable, {
199
- style: styles.balancePill,
200
- onPress: () => onNavigate('WALLET'),
201
- children: [/*#__PURE__*/_jsx(View, {
202
- style: styles.diamondIcon,
203
- children: /*#__PURE__*/_jsx(SvgIcon, {
204
- name: "diamond",
205
- size: 16,
206
- color: COLORS.gold
207
- })
208
- }), /*#__PURE__*/_jsx(Text, {
209
- style: styles.balanceText,
210
- children: formatNumber(balance)
211
- })]
212
- })]
213
- })]
214
- }), /*#__PURE__*/_jsxs(ScrollView, {
215
- style: styles.scrollArea,
216
- contentContainerStyle: {
217
- paddingBottom: 120
218
- },
219
- children: [/*#__PURE__*/_jsxs(View, {
220
- style: isWide ? styles.wideRow : undefined,
221
- children: [/*#__PURE__*/_jsxs(View, {
222
- style: [styles.oracleCard, isWide && styles.sideBySide],
580
+ style: [styles.headerLeft, compact && styles.headerLeftCompact],
581
+ onPress: () => onNavigate('PROFILE'),
582
+ accessibilityRole: "button",
223
583
  children: [/*#__PURE__*/_jsx(Image, {
224
- source: IMAGES.ORACLE,
225
- style: styles.oracleImage,
226
- resizeMode: "contain"
584
+ source: IMAGES.AVATAR,
585
+ style: [styles.avatar, wide && styles.avatarWide, compact && styles.avatarCompact]
227
586
  }), /*#__PURE__*/_jsxs(View, {
228
- style: styles.oracleContent,
229
- children: [/*#__PURE__*/_jsx(Text, {
230
- style: styles.oracleLabel,
231
- children: t('home.oracleTip')
232
- }), /*#__PURE__*/_jsx(Text, {
233
- style: styles.oracleText,
234
- children: t(tipKey)
587
+ style: styles.headerNames,
588
+ onLayout: e => setNameRoom(Math.floor(e.nativeEvent.layout.width)),
589
+ children: [greetingWidth === 0 || nameRoom === 0 || greetingWidth <= nameRoom ? /*#__PURE__*/_jsx(Text, {
590
+ style: [styles.welcome, wide && styles.welcomeWide],
591
+ numberOfLines: 1,
592
+ children: greeting
593
+ }) : null, /*#__PURE__*/_jsx(Text, {
594
+ style: [styles.playerName, {
595
+ fontSize: nameSize,
596
+ lineHeight: Math.round(nameSize * 1.2)
597
+ }],
598
+ numberOfLines: 1,
599
+ children: firstName
235
600
  })]
236
601
  })]
237
- }), isWide && leaderboardTile]
238
- }), /*#__PURE__*/_jsx(View, {
239
- style: styles.sectionHeader,
240
- children: /*#__PURE__*/_jsxs(Text, {
241
- style: styles.sectionTitle,
242
- children: [t('home.featured'), " ", /*#__PURE__*/_jsx(Text, {
243
- style: {
244
- color: COLORS.primary
245
- },
246
- children: t('home.games')
602
+ }), /*#__PURE__*/_jsxs(View, {
603
+ style: [styles.headerRight, compact && styles.headerRightCompact],
604
+ children: [onExit ? /*#__PURE__*/_jsx(MonflowtsPressable, {
605
+ style: [styles.exitButton, compact && styles.roundCompact],
606
+ onPress: onExit,
607
+ activeOpacity: 0.7,
608
+ accessibilityRole: "button",
609
+ hitSlop: compact ? 6 : 2,
610
+ children: /*#__PURE__*/_jsx(SvgIcon, {
611
+ name: "door",
612
+ size: 18,
613
+ color: LOBBY.muted
614
+ })
615
+ }) : null, /*#__PURE__*/_jsxs(View, {
616
+ style: [styles.balancePill, compact && styles.balancePillCompact],
617
+ children: [/*#__PURE__*/_jsxs(MonflowtsPressable, {
618
+ style: [styles.balanceTap, compact && styles.balanceTapCompact],
619
+ onPress: () => onNavigate('WALLET'),
620
+ accessibilityRole: "button",
621
+ children: [/*#__PURE__*/_jsx(View, {
622
+ style: [styles.coin, compact && styles.coinCompact],
623
+ children: /*#__PURE__*/_jsx(SvgIcon, {
624
+ name: "diamond",
625
+ size: compact ? 12 : 15,
626
+ color: LOBBY.goldInk
627
+ })
628
+ }), /*#__PURE__*/_jsx(Text, {
629
+ style: [styles.balanceText, wide && styles.balanceTextWide],
630
+ numberOfLines: 1,
631
+ children: formatNumber(balance)
632
+ })]
633
+ }), /*#__PURE__*/_jsxs(MonflowtsPressable, {
634
+ style: [styles.topUp, wide ? styles.topUpWide : styles.topUpRound, compact && styles.roundCompact],
635
+ onPress: () => onNavigate('DEPOSIT_SELECT'),
636
+ accessibilityRole: "button",
637
+ accessibilityLabel: t('home.topUp'),
638
+ hitSlop: compact ? 6 : 2,
639
+ children: [/*#__PURE__*/_jsx(SvgIcon, {
640
+ name: "",
641
+ d: PLUS_PATH,
642
+ stroked: true,
643
+ size: wide ? 18 : compact ? 18 : 20,
644
+ strokeWidth: 2.8,
645
+ color: LOBBY.goldInk
646
+ }), wide ? /*#__PURE__*/_jsx(Text, {
647
+ style: styles.topUpText,
648
+ children: t('home.topUp')
649
+ }) : null]
650
+ })]
247
651
  })]
248
- })
249
- }), !isWide && leaderboardTile, /*#__PURE__*/_jsx(View, {
250
- style: gameColumns > 1 ? styles.gameGrid : undefined,
251
- children: availableGames && availableGames.length > 0 ? availableGames.map(game => {
252
- const display = game.uiConfig?.display;
253
- const card = gameContent(game.gameCode).card;
254
- if (!display && !card) return null;
255
- const tag = t(`games.${game.gameCode}.tag`);
256
- const tagColor = display?.tagColor || card?.tagColor || COLORS.primary;
257
- const btnColor = display?.btnColor || card?.btnColor || COLORS.primary;
258
- const lottieKey = cardLotties[display?.lottieId || card?.lottieId || ''];
259
- const lottieJson = lottieKey ? lottie(lottieKey) : '';
260
- const topPrize = game.gameplayRules?.jackpotAmountKobo ? formatNumber(game.gameplayRules.jackpotAmountKobo / 100) : game.gameplayRules?.maxWinKobo ? formatNumber(game.gameplayRules.maxWinKobo / 100) : '—';
261
- return /*#__PURE__*/_jsx(GameCard, {
262
- title: t(`games.${game.gameCode}.name`),
263
- tag: tag,
264
- tagColor: tagColor,
265
- jackpotLabel: t(card?.prizeLabel ?? 'home.topPrize'),
266
- jackpotValue: topPrize,
267
- lottieJson: lottieJson,
268
- btnColor: btnColor,
269
- onPress: () => handleGamePress(game),
270
- style: cardStyle
271
- }, game.id);
272
- }) : !isLoadingGames && /*#__PURE__*/_jsx(Text, {
273
- style: styles.emptyText,
274
- children: t('home.noGames')
275
- })
276
- })]
652
+ })]
653
+ }), bannerCards.length > 0 ? /*#__PURE__*/_jsx(FeaturedCarousel, {
654
+ cards: bannerCards,
655
+ width: width - pagePadding * 2,
656
+ gap: gap,
657
+ wide: wide,
658
+ compact: compact,
659
+ focused: focused,
660
+ onOpen: open
661
+ }) : cards.length > 0 ? /*#__PURE__*/_jsx(View, {
662
+ style: {
663
+ height: bannerHeight(wide, compact)
664
+ }
665
+ }) : null, wide ? /*#__PURE__*/_jsxs(View, {
666
+ style: styles.tileRow,
667
+ children: [leaderboard, oracle]
668
+ }) : leaderboard, /*#__PURE__*/_jsx(Text, {
669
+ style: [styles.sectionTitle, wide && styles.sectionTitleWide],
670
+ children: t('home.allGames')
671
+ }), cards.length > 0 ? /*#__PURE__*/_jsx(View, {
672
+ style: [styles.grid, {
673
+ gap
674
+ }],
675
+ children: cards.map(c => /*#__PURE__*/_jsx(GameCard, {
676
+ data: c,
677
+ width: cardWidth,
678
+ onPress: () => open(c.game)
679
+ }, c.game.id))
680
+ }) : !isLoadingGames && cards.length === 0 ? /*#__PURE__*/_jsx(Text, {
681
+ style: styles.emptyText,
682
+ children: t('home.noGames')
683
+ }) : null, wide ? null : oracle]
684
+ }), /*#__PURE__*/_jsx(View, {
685
+ pointerEvents: "none",
686
+ style: styles.statusBackdrop
277
687
  })]
278
688
  });
279
689
  };
280
- const styles = StyleSheet.create({
690
+ const DISPLAY_NUMBER = {
691
+ fontWeight: '900',
692
+ letterSpacing: -1,
693
+ fontVariant: ['tabular-nums']
694
+ };
695
+ const styles = scaledStyles({
281
696
  container: {
282
697
  flex: 1,
283
- backgroundColor: COLORS.backgroundDark
698
+ backgroundColor: LOBBY.bg
699
+ },
700
+ content: {
701
+ paddingBottom: 140
702
+ },
703
+ statusBackdrop: {
704
+ position: 'absolute',
705
+ top: 0,
706
+ left: 0,
707
+ right: 0,
708
+ height: 50,
709
+ backgroundColor: 'rgba(12, 11, 18, 0.94)'
284
710
  },
285
711
  header: {
712
+ height: 56,
286
713
  flexDirection: 'row',
287
- justifyContent: 'space-between',
288
714
  alignItems: 'center',
289
- paddingHorizontal: 20,
290
- paddingTop: 50,
291
- paddingBottom: 12,
292
- backgroundColor: 'rgba(5, 11, 24, 0.8)',
293
- borderBottomWidth: 1,
294
- borderBottomColor: COLORS.white05
715
+ justifyContent: 'space-between',
716
+ gap: 10
295
717
  },
296
- headerLeft: {
297
- flexDirection: 'row',
298
- alignItems: 'center',
299
- gap: 12,
300
- flex: 1
718
+ headerCompact: {
719
+ gap: 8
301
720
  },
302
- headerRight: {
721
+ headerLeft: {
722
+ flex: 1,
303
723
  flexDirection: 'row',
304
724
  alignItems: 'center',
305
725
  gap: 10
306
726
  },
307
- closeBtn: {
308
- width: 36,
309
- height: 36,
310
- borderRadius: 18,
311
- backgroundColor: 'rgba(30, 41, 59, 0.5)',
312
- borderWidth: 1,
313
- borderColor: 'rgba(71, 85, 105, 0.4)',
314
- alignItems: 'center',
315
- justifyContent: 'center'
727
+ headerLeftCompact: {
728
+ gap: 8
316
729
  },
317
- avatarContainer: {
730
+ avatar: {
318
731
  width: 44,
319
732
  height: 44,
320
733
  borderRadius: 22,
321
734
  borderWidth: 2,
322
- borderColor: COLORS.slateDarker,
323
- overflow: 'hidden',
324
- backgroundColor: '#1e293b'
735
+ borderColor: LOBBY.border,
736
+ backgroundColor: LOBBY.surface
325
737
  },
326
- avatar: {
327
- width: '100%',
328
- height: '100%'
738
+ avatarWide: {
739
+ width: 52,
740
+ height: 52,
741
+ borderRadius: 26
329
742
  },
330
- welcomeText: {
331
- fontSize: 10,
332
- fontWeight: '600',
333
- color: COLORS.slateLight,
334
- letterSpacing: 1
743
+ avatarCompact: {
744
+ width: 36,
745
+ height: 36,
746
+ borderRadius: 18
747
+ },
748
+ roundCompact: {
749
+ width: 36,
750
+ height: 36,
751
+ borderRadius: 18
752
+ },
753
+ headerRightCompact: {
754
+ gap: 6
755
+ },
756
+ balancePillCompact: {
757
+ gap: 4,
758
+ paddingLeft: 6
759
+ },
760
+ balanceTapCompact: {
761
+ gap: 5,
762
+ minHeight: 36
763
+ },
764
+ coinCompact: {
765
+ width: 22,
766
+ height: 22,
767
+ borderRadius: 11
768
+ },
769
+ headerNames: {
770
+ flex: 1,
771
+ gap: 2
772
+ },
773
+ measure: {
774
+ position: 'absolute',
775
+ left: 0,
776
+ top: 0,
777
+ opacity: 0,
778
+ alignItems: 'flex-start'
779
+ },
780
+ welcome: {
781
+ fontSize: 11,
782
+ lineHeight: 14,
783
+ fontWeight: '500',
784
+ color: LOBBY.muted
785
+ },
786
+ welcomeWide: {
787
+ fontSize: 13,
788
+ lineHeight: 16
789
+ },
790
+ headerWide: {
791
+ gap: 12
335
792
  },
336
793
  playerName: {
337
- fontSize: 16,
338
794
  fontWeight: '800',
339
- color: '#ffffff'
795
+ color: LOBBY.text,
796
+ letterSpacing: -0.2
340
797
  },
341
- balancePill: {
798
+ headerRight: {
342
799
  flexDirection: 'row',
343
800
  alignItems: 'center',
344
- backgroundColor: 'rgba(30, 41, 59, 0.5)',
801
+ gap: 8
802
+ },
803
+ exitButton: {
804
+ width: 40,
805
+ height: 40,
345
806
  borderRadius: 20,
346
- paddingRight: 14,
347
- paddingLeft: 4,
348
- paddingVertical: 4,
807
+ alignItems: 'center',
808
+ justifyContent: 'center',
809
+ backgroundColor: LOBBY.surface,
349
810
  borderWidth: 1,
350
- borderColor: 'rgba(71, 85, 105, 0.5)'
811
+ borderColor: LOBBY.border
351
812
  },
352
- diamondIcon: {
353
- width: 30,
354
- height: 30,
355
- borderRadius: 15,
356
- backgroundColor: '#eab308',
813
+ balancePill: {
814
+ flexDirection: 'row',
357
815
  alignItems: 'center',
358
- justifyContent: 'center',
359
- marginRight: 8
816
+ gap: 4,
817
+ padding: 3,
818
+ paddingLeft: 8,
819
+ borderRadius: 999,
820
+ backgroundColor: LOBBY.surface,
821
+ borderWidth: 1,
822
+ borderColor: LOBBY.border
360
823
  },
361
- diamondEmoji: {
362
- fontSize: 14
824
+ balanceTap: {
825
+ flexDirection: 'row',
826
+ alignItems: 'center',
827
+ gap: 8,
828
+ minHeight: 44,
829
+ paddingRight: 4
830
+ },
831
+ coin: {
832
+ width: 26,
833
+ height: 26,
834
+ borderRadius: 13,
835
+ backgroundColor: LOBBY.gold,
836
+ alignItems: 'center',
837
+ justifyContent: 'center'
363
838
  },
364
839
  balanceText: {
365
- color: COLORS.gold,
366
- fontWeight: '700',
367
- fontSize: 16
840
+ fontSize: 17,
841
+ fontWeight: '800',
842
+ color: LOBBY.text,
843
+ fontVariant: ['tabular-nums']
368
844
  },
369
- scrollArea: {
370
- flex: 1,
371
- paddingHorizontal: PAGE_PADDING,
372
- paddingTop: 16
845
+ balanceTextWide: {
846
+ fontSize: 22
373
847
  },
374
- wideRow: {
848
+ topUp: {
849
+ height: 44,
850
+ borderRadius: 999,
851
+ backgroundColor: LOBBY.gold,
375
852
  flexDirection: 'row',
376
- gap: CARD_GAP,
377
- marginBottom: 20
853
+ alignItems: 'center',
854
+ justifyContent: 'center',
855
+ borderBottomWidth: 3,
856
+ borderBottomColor: 'rgba(51, 27, 0, 0.22)'
378
857
  },
379
- sideBySide: {
380
- flex: 1,
381
- marginBottom: 0
858
+ topUpRound: {
859
+ width: 40,
860
+ height: 40
382
861
  },
383
- gameGrid: {
384
- flexDirection: 'row',
385
- flexWrap: 'wrap',
386
- columnGap: CARD_GAP
862
+ topUpWide: {
863
+ paddingLeft: 14,
864
+ paddingRight: 18,
865
+ gap: 6
387
866
  },
388
- oracleCard: {
867
+ topUpText: {
868
+ fontSize: 15,
869
+ fontWeight: '800',
870
+ color: LOBBY.goldInk
871
+ },
872
+ tag: {
873
+ alignSelf: 'flex-start',
874
+ height: 22,
875
+ paddingHorizontal: 9,
876
+ borderRadius: 999,
877
+ justifyContent: 'center',
878
+ backgroundColor: LOBBY.chip,
879
+ maxWidth: '100%'
880
+ },
881
+ tagLarge: {
882
+ height: 26,
883
+ paddingHorizontal: 11
884
+ },
885
+ tagText: {
886
+ fontSize: 10,
887
+ fontWeight: '700',
888
+ letterSpacing: 1.2,
889
+ textTransform: 'uppercase',
890
+ color: '#FFFFFF'
891
+ },
892
+ tagTextLarge: {
893
+ fontSize: 11,
894
+ letterSpacing: 1.3
895
+ },
896
+ pillButton: {
897
+ height: 56,
898
+ borderRadius: 999,
899
+ paddingHorizontal: 26,
389
900
  flexDirection: 'row',
390
- backgroundColor: 'rgba(127, 19, 236, 0.05)',
391
- borderWidth: 1,
392
- borderColor: 'rgba(127, 19, 236, 0.2)',
393
- borderRadius: 16,
394
- padding: 16,
395
901
  alignItems: 'center',
396
- gap: 14,
397
- marginBottom: 20
902
+ justifyContent: 'center',
903
+ gap: 10,
904
+ borderBottomWidth: 4
398
905
  },
399
- oracleImage: {
400
- width: 50,
401
- height: 50
906
+ pillButtonGold: {
907
+ backgroundColor: LOBBY.gold,
908
+ borderBottomColor: 'rgba(51, 27, 0, 0.22)'
402
909
  },
403
- oracleContent: {
404
- flex: 1
910
+ pillButtonLight: {
911
+ backgroundColor: LOBBY.text,
912
+ borderBottomColor: 'rgba(12, 11, 18, 0.16)',
913
+ height: 44,
914
+ paddingHorizontal: 20,
915
+ borderBottomWidth: 3,
916
+ alignSelf: 'flex-start'
405
917
  },
406
- oracleLabel: {
407
- fontSize: 9,
408
- fontWeight: '900',
409
- color: COLORS.primary,
410
- letterSpacing: 3,
411
- marginBottom: 4
918
+ pillButtonStretch: {
919
+ alignSelf: 'stretch'
412
920
  },
413
- oracleText: {
414
- fontSize: 12,
415
- color: COLORS.slateLight,
416
- fontStyle: 'italic',
417
- lineHeight: 18
921
+ pillButtonText: {
922
+ fontSize: 16,
923
+ fontWeight: '800'
418
924
  },
419
- sectionHeader: {
925
+ tile: {
420
926
  flexDirection: 'row',
421
- justifyContent: 'space-between',
422
927
  alignItems: 'center',
423
- marginBottom: 16
928
+ gap: 14,
929
+ paddingLeft: 16,
930
+ paddingRight: 14,
931
+ borderRadius: 24,
932
+ backgroundColor: LOBBY.surface,
933
+ borderWidth: 1,
934
+ borderColor: LOBBY.border
424
935
  },
425
- sectionTitle: {
426
- fontSize: 24,
427
- fontWeight: '800',
428
- color: '#ffffff'
936
+ carousel: {
937
+ gap: 4
429
938
  },
430
- gameCard: {
431
- backgroundColor: 'rgba(15, 23, 42, 0.6)',
432
- borderWidth: 1,
433
- borderColor: COLORS.white10,
434
- borderRadius: 16,
939
+ banner: {
940
+ borderRadius: 28,
435
941
  overflow: 'hidden',
436
- marginBottom: 16
942
+ flexDirection: 'row'
437
943
  },
438
- gameCardHeader: {
439
- flexDirection: 'row',
944
+ bannerBody: {
945
+ flex: 1,
946
+ paddingVertical: 18,
947
+ paddingLeft: 20,
948
+ paddingRight: 14,
440
949
  justifyContent: 'space-between',
950
+ alignItems: 'flex-start'
951
+ },
952
+ bannerBodyWide: {
953
+ paddingVertical: 26,
954
+ paddingLeft: 32,
955
+ paddingRight: 20
956
+ },
957
+ bannerHeading: {
958
+ gap: 8,
441
959
  alignItems: 'flex-start',
442
- padding: 16
960
+ alignSelf: 'stretch'
443
961
  },
444
- tag: {
445
- paddingHorizontal: 10,
446
- paddingVertical: 3,
447
- borderRadius: 20,
448
- borderWidth: 1,
449
- marginBottom: 6,
450
- alignSelf: 'flex-start'
962
+ bannerTitle: {
963
+ fontSize: 24,
964
+ lineHeight: 28,
965
+ fontWeight: '800',
966
+ color: LOBBY.text,
967
+ letterSpacing: -0.5
451
968
  },
452
- tagText: {
453
- fontSize: 9,
969
+ bannerTitleWide: {
970
+ fontSize: 34,
971
+ lineHeight: 38,
972
+ letterSpacing: -0.6
973
+ },
974
+ bannerPrizeBox: {
975
+ alignSelf: 'stretch',
976
+ flexShrink: 0
977
+ },
978
+ bannerPrizeLabel: {
979
+ fontSize: 11,
454
980
  fontWeight: '700',
455
- letterSpacing: 1,
456
- textTransform: 'uppercase'
981
+ letterSpacing: 1.3,
982
+ textTransform: 'uppercase',
983
+ color: LOBBY.onBand
457
984
  },
458
- gameTitle: {
459
- fontSize: 20,
460
- fontWeight: '800',
461
- color: '#ffffff',
462
- textTransform: 'uppercase'
985
+ bannerPrize: {
986
+ ...DISPLAY_NUMBER,
987
+ color: LOBBY.gold
463
988
  },
464
- jackpotArea: {
465
- alignItems: 'flex-end'
989
+ bannerArt: {
990
+ alignItems: 'center',
991
+ justifyContent: 'center',
992
+ overflow: 'hidden'
466
993
  },
467
- jackpotLabel: {
468
- fontSize: 10,
469
- color: COLORS.slateDark,
470
- textTransform: 'uppercase'
994
+ drawChip: {
995
+ position: 'absolute',
996
+ bottom: 12,
997
+ alignSelf: 'center',
998
+ paddingHorizontal: 10,
999
+ paddingVertical: 5,
1000
+ borderRadius: 999,
1001
+ backgroundColor: LOBBY.chip
471
1002
  },
472
- jackpotValue: {
473
- fontSize: 20,
1003
+ drawChipText: {
1004
+ fontSize: 11,
474
1005
  fontWeight: '700',
475
- color: COLORS.gold
1006
+ color: LOBBY.text,
1007
+ fontVariant: ['tabular-nums']
1008
+ },
1009
+ bannerDots: {
1010
+ flexDirection: 'row',
1011
+ justifyContent: 'center',
1012
+ alignItems: 'center'
1013
+ },
1014
+ bannerDotTap: {
1015
+ paddingVertical: 8,
1016
+ paddingHorizontal: 3
476
1017
  },
477
- gameImageArea: {
478
- height: 180,
1018
+ bannerDot: {
1019
+ width: 6,
1020
+ height: 6,
1021
+ borderRadius: 3,
1022
+ backgroundColor: LOBBY.dot
1023
+ },
1024
+ bannerDotActive: {
1025
+ width: 18,
1026
+ backgroundColor: LOBBY.gold
1027
+ },
1028
+ tileRow: {
1029
+ flexDirection: 'row',
1030
+ gap: 16,
1031
+ height: 96
1032
+ },
1033
+ tileFlex: {
1034
+ flex: 1,
1035
+ minHeight: 0
1036
+ },
1037
+ tileLeaderboard: {
1038
+ height: 80
1039
+ },
1040
+ tileOracle: {
1041
+ height: 84
1042
+ },
1043
+ tileIcon: {
1044
+ width: 48,
1045
+ height: 48,
1046
+ borderRadius: 24,
479
1047
  alignItems: 'center',
480
1048
  justifyContent: 'center'
481
1049
  },
482
- gameLottie: {
483
- width: 170,
484
- height: 170
1050
+ tileText: {
1051
+ flex: 1,
1052
+ gap: 3
1053
+ },
1054
+ tileTitle: {
1055
+ fontSize: 17,
1056
+ lineHeight: 20,
1057
+ fontWeight: '700',
1058
+ color: LOBBY.text
1059
+ },
1060
+ tileSub: {
1061
+ fontSize: 13,
1062
+ lineHeight: 17,
1063
+ color: LOBBY.muted
1064
+ },
1065
+ oracleImage: {
1066
+ width: 34,
1067
+ height: 34
485
1068
  },
486
- gameCardFooter: {
1069
+ oracleHead: {
487
1070
  flexDirection: 'row',
488
- justifyContent: 'space-between',
489
1071
  alignItems: 'center',
490
- padding: 14,
491
- backgroundColor: 'rgba(0,0,0,0.4)',
492
- borderTopWidth: 1,
493
- borderTopColor: COLORS.white05
1072
+ justifyContent: 'space-between',
1073
+ gap: 8
494
1074
  },
495
- footerTag: {
496
- fontSize: 12,
497
- fontWeight: '600'
1075
+ oracleLabel: {
1076
+ fontSize: 11,
1077
+ fontWeight: '700',
1078
+ letterSpacing: 1.3,
1079
+ textTransform: 'uppercase',
1080
+ color: LOBBY.oracleLabel,
1081
+ flexShrink: 1
498
1082
  },
499
- enterButton: {
1083
+ pager: {
500
1084
  flexDirection: 'row',
501
1085
  alignItems: 'center',
502
- gap: 5,
503
- paddingHorizontal: 20,
504
- paddingVertical: 10,
505
- borderRadius: 12
1086
+ gap: 4
506
1087
  },
507
- enterButtonText: {
508
- color: '#ffffff',
509
- fontSize: 13,
510
- fontWeight: '700'
1088
+ pagerDot: {
1089
+ width: 6,
1090
+ height: 6,
1091
+ borderRadius: 3,
1092
+ backgroundColor: LOBBY.dot
1093
+ },
1094
+ pagerDotActive: {
1095
+ width: 14,
1096
+ backgroundColor: LOBBY.text
511
1097
  },
512
- leaderboardTile: {
1098
+ oracleText: {
1099
+ fontSize: 14,
1100
+ lineHeight: 19,
1101
+ fontWeight: '600',
1102
+ color: LOBBY.text
1103
+ },
1104
+ sectionTitle: {
1105
+ marginTop: 12,
1106
+ fontSize: 24,
1107
+ lineHeight: 30,
1108
+ fontWeight: '800',
1109
+ color: LOBBY.text,
1110
+ letterSpacing: -0.5
1111
+ },
1112
+ sectionTitleWide: {
1113
+ fontSize: 28,
1114
+ lineHeight: 34
1115
+ },
1116
+ grid: {
513
1117
  flexDirection: 'row',
1118
+ flexWrap: 'wrap'
1119
+ },
1120
+ card: {
1121
+ height: 320,
1122
+ borderRadius: 24,
1123
+ overflow: 'hidden',
1124
+ backgroundColor: LOBBY.surface
1125
+ },
1126
+ cardBand: {
1127
+ height: 150,
1128
+ paddingTop: 28,
514
1129
  alignItems: 'center',
515
- backgroundColor: 'rgba(15, 23, 42, 0.6)',
516
- borderWidth: 1,
517
- borderColor: COLORS.white10,
518
- borderRadius: 16,
519
- paddingHorizontal: 16,
520
- paddingVertical: 14,
521
- marginBottom: 16
1130
+ justifyContent: 'center'
1131
+ },
1132
+ cardTag: {
1133
+ position: 'absolute',
1134
+ top: 12,
1135
+ left: 12,
1136
+ maxWidth: '86%'
1137
+ },
1138
+ cardLottie: {
1139
+ width: 112,
1140
+ height: 112
1141
+ },
1142
+ cardBody: {
1143
+ flex: 1,
1144
+ paddingTop: 16,
1145
+ paddingRight: 12,
1146
+ paddingBottom: 12,
1147
+ paddingLeft: 14,
1148
+ justifyContent: 'space-between'
522
1149
  },
523
- leaderboardTileIcon: {
1150
+ cardTitle: {
1151
+ minHeight: 42,
1152
+ fontSize: 19,
1153
+ lineHeight: 21,
1154
+ fontWeight: '700',
1155
+ color: LOBBY.text,
1156
+ letterSpacing: -0.2
1157
+ },
1158
+ cardPrize: {
1159
+ gap: 2
1160
+ },
1161
+ cardPrizeLabel: {
1162
+ fontSize: 11,
1163
+ fontWeight: '700',
1164
+ letterSpacing: 1.3,
1165
+ textTransform: 'uppercase',
1166
+ color: LOBBY.subtle
1167
+ },
1168
+ cardPrizeValue: {
1169
+ ...DISPLAY_NUMBER,
524
1170
  fontSize: 28,
525
- marginRight: 12
1171
+ lineHeight: 30,
1172
+ color: LOBBY.gold
526
1173
  },
527
- leaderboardTileText: {
528
- flex: 1
1174
+ cardFooter: {
1175
+ flexDirection: 'row',
1176
+ alignItems: 'center',
1177
+ justifyContent: 'space-between',
1178
+ gap: 8
529
1179
  },
530
- leaderboardTileTitle: {
531
- fontSize: 16,
532
- fontWeight: '800',
533
- color: '#ffffff',
534
- textTransform: 'uppercase'
1180
+ cardStake: {
1181
+ flexDirection: 'row',
1182
+ alignItems: 'center',
1183
+ gap: 5,
1184
+ flexShrink: 1
535
1185
  },
536
- leaderboardTileSub: {
1186
+ cardStakeText: {
537
1187
  fontSize: 12,
538
- color: COLORS.slateLight,
539
- marginTop: 2
1188
+ fontWeight: '500',
1189
+ color: LOBBY.subtle,
1190
+ fontVariant: ['tabular-nums'],
1191
+ flexShrink: 1
540
1192
  },
541
- leaderboardTileChevron: {
542
- fontSize: 24,
543
- color: COLORS.slateLight,
544
- fontWeight: '300'
1193
+ playButton: {
1194
+ width: 44,
1195
+ height: 44,
1196
+ borderRadius: 22,
1197
+ alignItems: 'center',
1198
+ justifyContent: 'center',
1199
+ backgroundColor: LOBBY.text,
1200
+ borderBottomWidth: 3,
1201
+ borderBottomColor: 'rgba(12, 11, 18, 0.16)'
545
1202
  },
546
1203
  emptyText: {
547
1204
  fontSize: 14,
548
- color: COLORS.slateLight,
1205
+ color: LOBBY.muted,
549
1206
  textAlign: 'center',
550
1207
  paddingVertical: 32
551
1208
  }