Repository navigation
Expand file tree
/
Copy pathglobal.css
More file actions
257 lines (232 loc) · 6.54 KB
/
Copy pathglobal.css
File metadata and controls
257 lines (232 loc) · 6.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--background: 240 3.23% 6.08%;
--foreground: 0 0% 100%;
--card: 0 0% 11%;
--card-hover: 0 0% 13%;
--card-foreground: 0 0% 98%;
--popover: 0 0% 18.43%;
--popover-foreground: 0 0% 98%;
--primary: 0 0% 98%;
--primary-foreground: 240 5.9% 10%;
--secondary: 0, 0%, 19%;
--secondary-foreground: 0 0% 98%;
--muted: 240 3.7% 15.9%;
--muted-foreground: 0 0.02% 63.02%;
--accent: 0 0% 18.43%;
--accent-foreground: 0 0% 98%;
--destructive: 358.76 100% 69.84%;
--destructive-foreground: 0 0% 98%;
--border: 344.55 3.72% 39.49%;
--input: 0 0% 30%;
--ring: 240 4.9% 83.9%;
--brand: 109.04 81.56% 72.35%;
--brand-foreground: 109.2 87.72% 22.35%;
--points: 285 98% 80%;
--button-dark: 0 0% 19%;
--button-earning: 109 81% 72% / 0.2;
--button-secondary: 0 0% 23%;
--qr-background: 0 0% 27%;
--modal-background: 0 0% 19%;
--popup: 0 0% 6.27%;
--purple: 270 39% 44%;
--pale-purple: 249 68% 75%;
--rewards: 44 100% 66%;
--indigo: 255.2 78.12% 62.35%;
--warning: 44.14 100% 65.88%;
/* Referral friend-status accents (Figma "Referral program — all invite states") */
--referral-progress: 202.9 100% 71.18%;
--referral-success: 142.96 61.5% 63.33%;
/* #b39bff — brighter than --pale-purple (#a194eb), so it needs its own token */
--referral-unlocking: 254.4 100% 80.4%;
}
/* Override Tailwind's default system stack on web */
body {
/* On web, use the family name registered by Expo Font */
font-family:
MonaSans_400Regular,
ui-sans-serif,
system-ui,
-apple-system,
'Segoe UI',
Roboto,
Helvetica,
Arial,
sans-serif;
}
/* Fill the viewport and keep a dark background under any bounce/overscroll */
html,
body,
#root,
#__next {
height: 100%;
background-color: #000000;
overscroll-behavior-y: none;
overscroll-behavior-x: none;
color-scheme: dark;
}
/* React Native Web generates classes like .css-text-xxxxx for Text elements.
* Ensure they use Mona Sans regardless of the default system stack. */
/* React Native Web renders Text as span.css-xxxx. Force Mona on those. */
[class^='css-text'],
[class*=' css-text'],
[class^='css-'],
[class*=' css-'] {
font-family:
MonaSans_400Regular,
ui-sans-serif,
system-ui,
-apple-system,
'Segoe UI',
Roboto,
Helvetica,
Arial,
sans-serif !important;
}
/* Tailwind FontWeight overrides for Web to ensure correct font file usage */
.font-extralight {
font-family: MonaSans_200ExtraLight !important;
}
.font-light {
font-family: MonaSans_300Light !important;
}
.font-normal {
font-family: MonaSans_400Regular !important;
}
.font-medium {
font-family: MonaSans_500Medium !important;
}
.font-semibold {
font-family: MonaSans_600SemiBold !important;
}
.font-bold {
font-family: MonaSans_700Bold !important;
}
.font-extrabold {
font-family: MonaSans_800ExtraBold !important;
}
.font-black {
font-family: MonaSans_900Black !important;
}
}
.yield-box {
width: 100%;
}
/* The tier artwork uses a light face and a soft vertical tint on its live stats. */
.tier-benefits-stat {
background-image: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0.55));
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.tier-benefits-stat-core {
background-image: linear-gradient(to bottom, #d0f5c7, #81b276 50%, rgba(148, 242, 127, 0.55));
}
.tier-benefits-stat-ultra {
background-image: linear-gradient(
to bottom,
#ffffff,
rgba(207, 198, 145, 0.77) 50%,
rgba(175, 167, 121, 0.55)
);
}
@media (max-width: 768px) {
.yield-box {
width: 50%;
}
/* On mobile, prevent the browser body from scrolling.
* Scrolling should happen inside React Native Web scroll views instead,
* so the bottom tab bar stays fixed and pages like KYC can scroll
* independently without Safari dragging the whole document. */
html,
body,
#root,
#__next {
overflow: hidden;
}
/* Raise Intercom launcher by 80px on mobile */
.intercom-launcher {
bottom: 100px !important;
}
}
/* The page itself never scrolls — every screen scrolls inside a React Native Web view — but
* anything parked just outside the window still made it scrollable: on desktop the hidden toast
* waits 124px below the bottom edge. `overflow: hidden` only stops the user scrolling, not code,
* so when the Sumsub widget scrolled one of its fields into view, the whole app slid up over a
* black band. `clip` cannot be scrolled at all, and what it clips no longer extends the page.
* After the mobile block so it wins there too; `hidden` is the fallback where `clip` is unknown. */
#root,
#__next {
overflow: hidden;
overflow: clip;
}
/* Bounce animation for dialog on web */
@keyframes bounceInDown {
0% {
opacity: 0;
transform: translateY(25px);
}
60% {
opacity: 1;
transform: translateY(-5px);
}
80% {
transform: translateY(2px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.bounce-in-down {
animation: bounceInDown 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.rotating-wheel-image {
--landing-angle: 0deg;
--spin-turns: 6turn;
--spin-duration: 6s;
--wheel-start-angle: 0deg;
--wheel-cruise-angle: 0deg;
--wheel-end-angle: 0deg;
display: block;
transform: rotate(var(--wheel-start-angle, 0deg));
transform-origin: center center;
will-change: transform;
}
.rotating-wheel-image.is-spinning {
animation-name: rotating-wheel-spin;
animation-duration: var(--spin-duration, 6s);
animation-fill-mode: forwards;
}
@keyframes rotating-wheel-spin {
0% {
transform: rotate(var(--wheel-start-angle));
animation-timing-function: cubic-bezier(0.45, 0, 0.8, 0.45);
}
12% {
transform: rotate(calc(var(--wheel-start-angle) + 0.8turn));
animation-timing-function: linear;
}
55% {
transform: rotate(var(--wheel-cruise-angle));
animation-timing-function: cubic-bezier(0.12, 0.65, 0.18, 1);
}
84% {
transform: rotate(calc(var(--wheel-end-angle) - 18deg));
animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}
92% {
transform: rotate(calc(var(--wheel-end-angle) + 6deg));
animation-timing-function: ease-out;
}
97% {
transform: rotate(calc(var(--wheel-end-angle) - 2deg));
animation-timing-function: ease-in-out;
}
100% {
transform: rotate(var(--wheel-end-angle));
}
}