File size: 7,078 Bytes
a7b6b46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c0f8abf
 
a7b6b46
 
 
 
 
 
 
 
c0f8abf
 
 
 
 
 
 
 
a7b6b46
 
 
 
 
c0f8abf
a7b6b46
 
c0f8abf
a7b6b46
 
3c368c6
a7b6b46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3c368c6
a7b6b46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c0f8abf
a7b6b46
 
 
c0f8abf
a7b6b46
c0f8abf
a7b6b46
 
 
c0f8abf
a7b6b46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c0f8abf
 
a7b6b46
 
 
c0f8abf
a7b6b46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3c47257
a7b6b46
 
3c47257
 
 
 
c0f8abf
3c47257
 
 
 
 
c0f8abf
 
 
 
 
 
a7b6b46
 
3c47257
 
 
 
 
 
 
a7b6b46
 
3c47257
a7b6b46
c0f8abf
 
 
 
 
3c47257
 
 
 
 
 
 
 
c0f8abf
 
 
 
a7b6b46
 
 
 
3c47257
 
 
 
 
 
 
 
 
 
a7b6b46
 
 
 
 
 
 
 
 
 
 
c0f8abf
a7b6b46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Base styles */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  /* Support safe areas for notch/home indicator */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

body {
  font-family: 'Cinzel', serif;
  background-color: #1a1a2e;
  color: #f5f5dc;
  min-height: 100vh;
  min-height: 100dvh;
  /* Fullscreen mobile */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

#root {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Landscape lock overlay - shows in portrait mode on mobile */
.landscape-required {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
}

@media screen and (max-width: 900px) and (orientation: portrait) {
  .landscape-required {
    display: flex !important;
  }
  
  .game-content {
    display: none !important;
  }
}

/* Card styles */
.card {
  @apply relative rounded-lg overflow-hidden cursor-pointer transition-all duration-200;
  aspect-ratio: 2/3;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card:hover {
  @apply scale-105;
  z-index: 10;
}

.card.selected {
  @apply ring-4 ring-egyptian-gold scale-110;
  z-index: 20;
}

.card.disabled {
  @apply opacity-50 cursor-not-allowed;
}

.card.disabled:hover {
  transform: none;
}

.card-image {
  @apply w-full h-full object-cover;
}

.card-overlay {
  @apply absolute inset-0 bg-gradient-to-t from-black/70 via-transparent to-transparent;
}

.card-name {
  @apply absolute bottom-0 left-0 right-0 p-2 text-center;
}

.card-name-en {
  @apply text-xs font-semibold text-papyrus;
}

.card-name-ar {
  @apply text-sm font-bold text-egyptian-gold;
  direction: rtl;
}

/* Half card indicator */
.half-indicator {
  @apply absolute top-1 right-1 bg-egyptian-gold text-black text-xs font-bold px-1 rounded;
}

/* Mummy card danger */
.card.mummy {
  @apply animate-pulse-danger;
}

/* Button styles */
.btn {
  @apply px-6 py-3 rounded-lg font-semibold transition-all duration-200;
  @apply disabled:opacity-50 disabled:cursor-not-allowed;
}

.btn-primary {
  @apply bg-egyptian-gold text-nile-blue hover:bg-yellow-500;
  @apply active:scale-95;
}

.btn-danger {
  @apply bg-mummy-red text-white hover:bg-red-700;
  @apply active:scale-95;
}

.btn-secondary {
  @apply bg-nile-blue text-papyrus border-2 border-egyptian-gold;
  @apply hover:bg-egyptian-gold hover:text-nile-blue;
  @apply active:scale-95;
}

/* Modal styles */
.modal-overlay {
  @apply fixed inset-0 bg-black/70 flex items-center justify-center z-50;
  @apply backdrop-blur-sm;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.modal-content {
  @apply bg-gradient-to-br from-nile-blue to-gray-900 rounded-xl p-3 md:p-6;
  @apply border-2 border-egyptian-gold shadow-2xl;
  @apply max-w-lg w-full mx-2 md:mx-4 max-h-[85vh] overflow-y-auto;
}

.modal-title {
  @apply text-base md:text-xl font-bold text-egyptian-gold mb-2 md:mb-4 text-center;
}

/* Toast/Notification styles */
.toast {
  @apply fixed top-4 left-1/2 transform -translate-x-1/2 z-50;
  @apply px-6 py-3 rounded-lg font-semibold shadow-lg;
  @apply animate-bounce;
}

.toast-info {
  @apply bg-nile-blue text-papyrus border border-egyptian-gold;
}

.toast-success {
  @apply bg-green-700 text-white;
}

.toast-warning {
  @apply bg-yellow-600 text-black;
}

.toast-danger {
  @apply bg-mummy-red text-white;
}

/* Player avatar */
.player-avatar {
  @apply rounded-full bg-egyptian-gold flex items-center justify-center flex-shrink-0;
  @apply text-nile-blue font-bold;
}

.player-avatar.current-turn {
  @apply ring-2 md:ring-4 ring-green-500 animate-pulse;
}

.player-avatar.eliminated {
  @apply opacity-50 grayscale;
}

/* Deck pile */
.deck-pile {
  @apply relative cursor-pointer;
}

.deck-pile::after {
  @apply absolute -bottom-1 -right-1 bg-egyptian-gold text-nile-blue;
  @apply text-xs font-bold px-2 py-1 rounded;
  content: attr(data-count);
}

/* Game board */
.game-board {
  @apply flex flex-col justify-between;
  background-size: cover;
  background-position: center;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  padding: 2px;
  padding-top: max(2px, env(safe-area-inset-top));
  padding-bottom: max(2px, env(safe-area-inset-bottom));
  padding-left: max(2px, env(safe-area-inset-left));
  padding-right: max(2px, env(safe-area-inset-right));
}

@media (min-width: 768px) {
  .game-board {
    padding: 16px;
  }
}

/* Mobile landscape specific */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .game-board {
    padding: 2px 4px;
  }
}

/* Hand area */
.hand-area {
  @apply flex justify-center items-end gap-0;
  max-width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px;
  max-height: 70px;
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .hand-area {
    max-height: 55px;
  }
}

.hand-area::-webkit-scrollbar {
  display: none;
}

.hand-area .card {
  @apply flex-shrink-0;
  width: 40px;
  max-width: 50px;
  margin: 0 -3px;
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .hand-area .card {
    width: 35px;
    max-width: 45px;
  }
}

@media (min-width: 768px) {
  .hand-area {
    @apply gap-2 p-4;
    overflow-x: auto;
  }
  
  .hand-area .card {
    width: 100px;
    max-width: 120px;
    margin: 0;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #d4a843;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e5b854;
}

/* King Ra countdown */
.king-ra-timer {
  @apply w-full h-2 bg-gray-700 rounded-full overflow-hidden mt-2;
}

.king-ra-timer-bar {
  @apply h-full bg-gradient-to-r from-egyptian-gold to-mummy-red;
  transition: width 0.1s linear;
}

/* Input styles */
input[type="text"], input[type="number"] {
  @apply w-full px-4 py-2 rounded-lg bg-nile-blue/50 border border-egyptian-gold;
  @apply text-papyrus placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-egyptian-gold;
}

/* Room code display */
.room-code {
  @apply bg-nile-blue px-4 py-2 rounded-lg text-2xl font-bold tracking-widest;
  @apply border-2 border-egyptian-gold text-egyptian-gold;
}