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
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
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
/* ── RESET & BASE ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;600;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%; height: 100%;
    overflow: hidden;
    background: #000;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
::-webkit-scrollbar { display: none; }

/* ── VIDEO CONTAINER ───────────────────────────────────────────── */
.video-container {
    position: relative;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#outputCanvas {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
}

/* ── CAMERA OVERLAY ────────────────────────────────────────────── */
.camera-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(10,0,30,0.97) 0%, rgba(0,0,0,0.99) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    max-width: 480px;
    gap: 16px;
}

.logo-glow {
    font-size: 64px;
    filter: drop-shadow(0 0 20px #ff14a3) drop-shadow(0 0 40px #00ffff);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { filter: drop-shadow(0 0 20px #ff14a3) drop-shadow(0 0 40px #00ffff); }
    50%       { filter: drop-shadow(0 0 40px #ff14a3) drop-shadow(0 0 70px #00ffff); }
}

.overlay-inner h1 {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 800;
    background: linear-gradient(90deg, #ff14a3, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.overlay-inner p {
    font-size: clamp(13px, 2.5vw, 16px);
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}

.hint {
    font-size: 11px !important;
    color: rgba(255,255,255,0.35) !important;
}

.primary-btn {
    padding: 14px 36px;
    background: linear-gradient(135deg, #ff14a3, #00ffff);
    border: none;
    border-radius: 40px;
    color: #000;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255,20,147,0.4), 0 0 60px rgba(0,255,255,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover  { transform: scale(1.05); box-shadow: 0 0 50px rgba(0,255,255,0.5); }
.primary-btn:active { transform: scale(0.97); }
.primary-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ── STATS PANELS ──────────────────────────────────────────────── */
.stats-panel-top,
.stats-panel-middle {
    position: absolute;
    left: 16px;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
    z-index: 10;
}

.stats-panel-top    { top: 20px; }
.stats-panel-middle { top: 140px; }

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.5);
}

.stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0,255,255,0.6);
    animation: glow 2.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 6px rgba(0,255,255,0.5); }
    50%       { text-shadow: 0 0 16px rgba(0,255,255,0.9); }
}

.gesture-text                { color: #00ffff; transition: color 0.2s; }
.gesture-text.gesture-pinch  { color: #ff1493 !important; text-shadow: 0 0 10px rgba(255,20,147,0.7) !important; }
.gesture-text.gesture-fist   { color: #ffa500 !important; text-shadow: 0 0 10px rgba(255,165,0,0.7) !important;  }
.gesture-text.gesture-open   { color: #00ffff !important; }

/* ── THEME SELECTOR (right side vertical) ──────────────────────── */
.theme-selector {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 8px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
}

.theme-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.theme-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    transform: translateX(-2px);
}

.theme-btn.active {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.45);
    color: #fff;
    box-shadow: 0 0 16px rgba(0,255,255,0.25);
}

.theme-icon { font-size: 14px; }

/* ── RESPONSIVE β€” TABLET ───────────────────────────────────────── */
@media (max-width: 768px) {
    .stats-panel-top, .stats-panel-middle {
        min-width: 140px;
        padding: 10px 14px;
    }
    .stats-panel-middle { top: 125px; }
    .stat-value  { font-size: 13px; }
    .theme-btn   { padding: 7px 10px; font-size: 10px; }
    .theme-selector { right: 10px; gap: 6px; }
}

/* ── RESPONSIVE β€” MOBILE ───────────────────────────────────────── */
@media (max-width: 480px) {
    .stats-panel-top, .stats-panel-middle {
        min-width: 120px;
        padding: 8px 12px;
        left: 8px;
        border-radius: 12px;
    }
    .stats-panel-top    { top: 10px; }
    .stats-panel-middle { top: 105px; }
    .stat-label  { font-size: 9px; }
    .stat-value  { font-size: 12px; }
    .theme-selector { right: 6px; padding: 8px 6px; gap: 5px; border-radius: 16px; }
    .theme-btn   { padding: 6px 8px; }
    .theme-name  { display: none; }
    .theme-icon  { font-size: 16px; }
}

/* ── LANDSCAPE MOBILE ADJUSTMENTS ──────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    .stats-panel-top    { top: 8px; }
    .stats-panel-middle { top: 90px; }
    .theme-selector { max-height: 96vh; gap: 4px; padding: 6px 5px; }
    .theme-btn { padding: 5px 7px; }
    .theme-name { display: none; }
}

/* ── MUTE BUTTON ───────────────────────────────────────────────── */
.mute-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
}

.mute-btn:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.mute-btn.active {
    background: rgba(0, 255, 255, 0.15);
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

@media (max-width: 480px) {
    .mute-btn {
        bottom: 12px;
        right: 12px;
        padding: 8px 14px;
        font-size: 11px;
    }
}

/* ── UI CONTROLS CONTAINER ──────────────────────────────────────── */
.controls-container {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    z-index: 100;
}

.control-btn {
    padding: 10px 18px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.control-btn:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.control-btn.active-audio {
    background: rgba(0, 255, 255, 0.15);
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.control-btn.active-pause {
    background: rgba(255, 165, 0, 0.15);
    border-color: #ffa500;
    color: #ffa500;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.3);
}

.control-btn.stop-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

/* Remove old absolute positioning for mute-btn since it's now in a container */
.mute-btn {
    position: static;
}

@media (max-width: 480px) {
    .controls-container {
        bottom: 12px;
        right: 12px;
        gap: 8px;
    }
    .control-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* ── RECORDING UI ───────────────────────────────────────────────── */
.status-pill {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 0, 0, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 0, 0, 0.4);
    border-radius: 30px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff0000;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    from { opacity: 1; }
    to { opacity: 0.3; }
}

#recordingStatusText {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.record-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
}

.record-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.record-btn.recording {
    background: rgba(255, 0, 0, 0.15);
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.record-btn.recording .record-icon {
    border-radius: 4px;
    background: #ff0000;
}

.record-icon {
    width: 16px;
    height: 16px;
    background: #ff0000;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px #ff0000;
}

@media (max-width: 480px) {
    .status-pill {
        top: 12px;
        padding: 6px 12px;
    }
    #recordingStatusText {
        font-size: 12px;
    }
    .record-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    .record-icon {
        width: 14px;
        height: 14px;
    }
}