-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
737 lines (639 loc) · 15.5 KB
/
style.css
File metadata and controls
737 lines (639 loc) · 15.5 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
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
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
@import url('https://fonts.googleapis.com/css2?family=Spectral+SC:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
@font-face {
font-family: 'FonteTerror';
src: url('assets/fonts/murder.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Assinatura';
src: url('assets/fonts/Signatures.otf') format('opentype');
font-weight: normal;
font-style: normal;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html,
body {
width: 100%;
height: 100%;
font-family: "Spectral SC", serif;
background: #000;
color: #fff;
overflow: hidden;
}
/* Vídeo em full-bleed com leve tom carmim */
.bg-video {
position: fixed;
inset: 0;
width: 100vw;
height: 100vh;
object-fit: cover;
filter: brightness(0.50) contrast(1.05) saturate(1.05) hue-rotate(-6deg);
}
/* Vignette & Noise para atmosfera */
.fx-vignette {
position: fixed;
inset: 0;
pointer-events: none;
background: radial-gradient(ellipse at center,
rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .45) 75%, rgba(0, 0, 0, .85) 100%);
mix-blend-mode: multiply;
}
.fx-noise {
position: fixed;
inset: 0;
pointer-events: none;
opacity: .07;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
animation: noiseShift .75s steps(2) infinite;
}
@keyframes noiseShift {
to {
transform: translate3d(1px, -1px, 0);
}
}
/* Overlay central */
.overlay {
position: fixed;
inset: 0;
display: grid;
place-items: center;
padding: 24px;
}
.stack {
text-align: center;
}
.logo {
width: min(90vw, 360px);
max-width: 100%;
height: auto;
user-select: none;
-webkit-user-drag: none;
filter: drop-shadow(0 10px 40px rgba(255, 0, 0, .25));
margin: 0 auto 18px;
animation: fadeInDown .6s ease both;
}
/* Controles (só o iniciar) */
.controls {
display: flex;
gap: 12px;
flex-wrap: wrap;
justify-content: center;
margin: 10px 0 6px;
animation: fadeInUp .6s .12s ease both;
}
/* ---------- Botões com "líquido vermelho" (gradiente translúcido) ---------- */
.btn {
font-family: "Spectral SC", serif;
appearance: none;
border: 1px solid rgba(255, 0, 0, .35);
color: #fff;
padding: 12px 18px;
border-radius: 12px;
font-size: 35px;
letter-spacing: 5px;
cursor: pointer;
transition: transform .08s ease, border-color .2s ease, box-shadow .25s ease, filter .25s ease;
backdrop-filter: blur(8px);
position: relative;
isolation: isolate;
will-change: transform, filter;
}
.modal-actions .btn {
font-family: "Creepster", cursive;
appearance: none;
border: 1px solid rgba(255, 0, 0, .35);
color: #fff;
padding: 12px 18px;
border-radius: 12px;
font-size: 20px;
letter-spacing: 5px;
cursor: pointer;
transition: transform .08s ease, border-color .2s ease, box-shadow .25s ease, filter .25s ease;
backdrop-filter: blur(8px);
position: relative;
isolation: isolate;
will-change: transform, filter;
}
/* Base “sangue” com movimento (conic + radial) */
.btn::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
z-index: -1;
background:
radial-gradient(120% 140% at 10% 10%, rgba(255, 0, 0, .55), rgba(80, 0, 0, .35) 60%, transparent 70%),
radial-gradient(120% 200% at 90% 90%, rgba(180, 0, 0, .45), rgba(60, 0, 0, .35) 60%, transparent 70%),
conic-gradient(from 180deg at 50% 50%, rgba(255, 60, 60, .45), rgba(150, 0, 0, .35), rgba(255, 0, 0, .55), rgba(120, 0, 0, .35), rgba(255, 60, 60, .45));
filter: saturate(1.2) blur(.2px);
opacity: .92;
animation: bloodFlow 8s linear infinite;
background-size: 160% 160%, 160% 160%, 200% 200%;
background-position: 0% 0%, 100% 100%, 50% 50%;
}
@keyframes bloodFlow {
0% {
background-position: 0% 0%, 100% 100%, 50% 50%;
}
50% {
background-position: 100% 0%, 0% 100%, 55% 45%;
}
100% {
background-position: 0% 0%, 100% 100%, 50% 50%;
}
}
.btn:hover {
box-shadow: 0 10px 30px rgba(255, 0, 0, .25);
filter: brightness(1.05);
}
.btn:active {
transform: translateY(1px) scale(.99);
}
/* Variações */
.btn--blood {
border-color: rgba(255, 0, 0, .55);
}
.btn--blood-ghost {
border-color: rgba(255, 110, 110, .45);
}
.btn--blood-primary {
border-color: rgba(255, 40, 40, .65);
}
.btn--blood-primary::before {
background:
radial-gradient(120% 140% at 15% 15%, rgba(255, 0, 0, .62), rgba(80, 0, 0, .35) 60%, transparent 70%),
radial-gradient(120% 200% at 85% 85%, rgba(255, 60, 60, .55), rgba(60, 0, 0, .35) 60%, transparent 70%),
conic-gradient(from 90deg at 50% 50%, rgba(255, 70, 70, .6), rgba(170, 0, 0, .4), rgba(255, 0, 0, .65), rgba(120, 0, 0, .4), rgba(255, 70, 70, .6));
}
#skipBtn {
margin-top: 8px;
font-size: clamp(14px, 1.2vw, 16px);
letter-spacing: 2px;
}
/* Botão de fullscreen — fixo topo direito */
.floating-fullscreen {
font-size: 20px;
position: fixed;
top: 14px;
right: 14px;
z-index: 999;
padding: 10px 12px;
border-radius: 10px;
line-height: 1;
font-weight: 700;
}
/* Modal (popup de áudio) */
.modal-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, .65);
display: grid;
place-items: center;
z-index: 1000;
backdrop-filter: blur(2px);
}
.modal {
width: min(92vw, 420px);
background: rgba(20, 0, 0, .85);
border: 1px solid rgba(255, 0, 0, .35);
border-radius: 16px;
padding: 20px;
box-shadow: 0 20px 60px rgba(255, 0, 0, .15);
}
.modal-title {
font-family: "Creepster", cursive;
font-size: 28px;
margin-bottom: 6px;
letter-spacing: .5px;
}
.modal-text {
opacity: .85;
margin-bottom: 14px;
}
.modal-actions {
display: flex;
gap: 10px;
justify-content: flex-end;
font-size: 3px !important;
}
/* Acessibilidade de foco */
.btn:focus-visible {
outline: 2px dashed rgba(255, 0, 0, .75);
outline-offset: 3px;
}
/* Animações simples */
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-8px) scale(.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(8px) scale(.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
/* Responsividade */
@media (max-width: 480px) {
.btn {
width: auto;
}
.logo {
width: min(80vw, 320px);
}
}
[hidden] {
display: none !important;
}
/* ====== CENA / STORY ====== */
.scene {
position: fixed;
inset: 0;
display: grid;
grid-template-rows: 1fr auto;
padding: 24px;
z-index: 10;
/* acima do vídeo e efeitos */
}
.scene-inner {
display: grid;
grid-template-columns: 1fr 1.1fr;
/* personagem | história */
align-items: center;
/* antes estava "end" */
gap: clamp(12px, 3vw, 32px);
height: 100%;
}
/* Personagem sobe de baixo */
.character {
width: min(80vw, 590px);
border-radius: 20px;
/* ajuste o valor como quiser */
overflow: hidden;
/* garante que o vídeo respeite as bordas */
max-width: 100%;
align-self: end;
justify-self: start;
transform: translateY(120%);
opacity: 0;
filter: drop-shadow(0 18px 50px rgba(255, 0, 0, .22));
animation: charRise .9s ease-out forwards;
}
@keyframes charRise {
to {
transform: translateY(0);
opacity: 1;
}
}
/* Área rolável da história com máscara (fade no topo) */
.story-box {
justify-self: end;
width: min(60vw, 820px);
min-height: min(46vh, 440px);
/* +altura útil */
align-self: start;
/* sobe dentro do grid */
margin-top: 12vh;
/* distância do topo */
}
.story-scroll {
max-height: min(46vh, 440px);
/* acompanha sua .story-box */
overflow-y: auto;
padding-right: 8px;
/* “folga” para não colar na borda */
scroll-behavior: smooth;
/* rolagem suave */
}
/* Máscara suave no topo (suporte WebKit/Chromium/Firefox modernos) */
.story-box .story-scroll {
-webkit-mask-image: linear-gradient(to bottom,
rgba(0, 0, 0, 0) 0px,
rgba(0, 0, 0, .75) 18px,
#000 42px,
#000 calc(100% - 0px));
mask-image: linear-gradient(to bottom,
rgba(0, 0, 0, 0) 0px,
rgba(0, 0, 0, .75) 18px,
#000 42px,
#000 calc(100% - 0px));
}
/* Fallback visual: um véu no topo, caso a máscara não funcione */
.story-box::before {
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
height: 42px;
pointer-events: none;
background: linear-gradient(to bottom,
rgba(20, 0, 0, 0.00),
rgba(20, 0, 0, 0.82) 60%,
rgba(20, 0, 0, 0.92));
opacity: .0;
/* fica off quando a máscara existe */
}
/* Cursor piscando já existe; sem mudanças */
/* Botão continuar: leve entrada quando aparecer */
#continueBtn[hidden] {
display: none !important;
}
#continueBtn {
opacity: 0;
transform: translateY(6px);
transition: opacity .35s ease, transform .35s ease;
}
#continueBtn.is-visible {
opacity: 1;
transform: translateY(0);
}
@keyframes caretBlink {
50% {
opacity: 0;
}
}
.scene-actions {
display: grid;
place-items: center;
padding-top: 10px;
margin-top: -100px;
}
/* Responsivo */
@media (max-width: 880px) {
.scene-inner {
grid-template-columns: 1fr;
/* empilha */
align-items: end;
}
.character {
justify-self: center;
width: min(68vw, 520px);
}
.story-box {
justify-self: center;
width: min(92vw, 820px);
min-height: 36vh;
}
}
/* ===== QUIZ ===== */
.quiz {
position: fixed;
inset: 0;
display: grid;
place-items: center;
padding: 24px;
z-index: 12;
}
.quiz-inner {
width: min(92vw, 920px);
background: rgba(15, 0, 0, .65);
border: 1px solid rgba(255, 0, 0, .35);
border-radius: 18px;
padding: clamp(16px, 3vw, 28px);
box-shadow: 0 20px 60px rgba(255, 0, 0, .12);
backdrop-filter: blur(4px);
}
.quiz-title {
font-family: "Spectral SC", cursive;
font-size: clamp(6px, 3vw, 18px);
margin: 4px 0 16px;
letter-spacing: .5px;
text-align: center;
}
.quiz-options {
display: grid;
grid-template-columns: 1fr;
gap: 12px;
}
@media (min-width: 720px) {
.quiz-options {
grid-template-columns: 1fr 1fr;
}
}
.quiz-options .btn {
width: 100%;
text-align: center;
font-size: clamp(16px, 1.6vw, 18px);
letter-spacing: 1.5px;
}
/* ====== SUPORTE À PERGUNTA/RESPOSTAS EM IMAGEM ====== */
/* Imagem da PERGUNTA quando usada (questionImage) */
.quiz-image {
max-width: 100%;
height: auto;
margin: 0 auto 12px;
display: block;
border-radius: 12px;
box-shadow: 0 6px 22px rgba(255, 0, 0, 0.22);
border: 1px solid rgba(255, 0, 0, .28);
}
/* Botão de opção quando a alternativa é imagem */
.quiz-option {
padding: 10px;
/* imagem domina o botão */
}
/* Estrutura visual da alternativa em imagem */
.option-figure {
margin: 0;
display: grid;
gap: 8px;
place-items: center;
}
.option-image {
display: block;
width: 100%;
max-height: 220px;
/* evita estourar verticalmente */
object-fit: cover;
border-radius: 10px;
border: 1px solid rgba(255, 0, 0, .28);
box-shadow: 0 10px 26px rgba(255, 0, 0, .15);
transition: transform .15s ease, filter .2s ease;
}
.quiz-option:hover .option-image {
transform: scale(1.02);
filter: brightness(1.05);
}
.option-caption {
font-size: 0.92rem;
letter-spacing: .4px;
opacity: .92;
text-align: center;
}
/* ===== ACERTO: blackout + vídeo ===== */
.blackout {
position: fixed;
inset: 0;
background: #000;
display: grid;
place-items: center;
z-index: 9999;
}
.reward-video {
width: 100vw;
height: 100vh;
object-fit: cover;
}
/* ===== ERRO: flash rápido do centro ===== */
.wrong-flash {
position: fixed;
left: 50%;
top: 50%;
width: min(70vw, 680px);
/* um pouco maior que antes */
max-width: 95vw;
transform: translate(-50%, -50%) scale(.6) rotate(0deg);
opacity: 0;
z-index: 9998;
pointer-events: none;
filter: drop-shadow(0 18px 60px rgba(255, 0, 0, .45));
}
.wrong-flash.is-pop {
animation: flashJump 0.95s ease-out both;
}
@keyframes flashJump {
0% {
opacity: 0;
transform: translate(-50%, -50%) scale(.70) rotate(-3deg);
}
10% {
opacity: 1;
transform: translate(-50%, -50%) scale(1.65) rotate(3deg);
}
25% {
opacity: 1;
transform: translate(-50%, -50%) scale(1.40) rotate(-2deg);
}
55% {
opacity: .85;
transform: translate(-50%, -50%) scale(1.50) rotate(2deg);
}
100% {
opacity: 0;
transform: translate(-50%, -50%) scale(1.20) rotate(-1deg);
}
}
/* ===== APENAS BOTÕES DO OVERLAY PRINCIPAL ===== */
.controls .btn {
font-family: "Spectral SC", serif;
font-weight: 600;
border: 1px solid rgba(255, 0, 0, 0.45);
color: #fff;
padding: 10px 18px; /* 🔹 menor altura e largura */
border-radius: 10px;
font-size: clamp(14px, 2.2vw, 22px); /* 🔹 reduzido, mas ainda legível */
letter-spacing: 3px;
text-transform: uppercase;
cursor: pointer;
position: relative;
overflow: hidden;
background: rgba(40, 0, 0, 0.45);
backdrop-filter: blur(8px);
transition: all 0.25s ease;
box-shadow: 0 0 14px rgba(255, 0, 0, 0.12);
}
/* Sangue pulsante */
.controls .btn::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background: radial-gradient(circle at 30% 30%, rgba(255, 30, 30, 0.45), transparent 60%),
radial-gradient(circle at 70% 70%, rgba(100, 0, 0, 0.35), transparent 60%);
filter: blur(8px);
opacity: 0.45;
animation: btnBloodPulse 3s ease-in-out infinite alternate;
}
/* Reflexo no hover */
.controls .btn::after {
content: "";
position: absolute;
top: 0;
left: -60%;
width: 40%;
height: 100%;
background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
transform: skewX(-25deg);
transition: all 0.5s ease;
}
/* Hover */
.controls .btn:hover {
transform: translateY(-1px) scale(1.03);
box-shadow: 0 0 25px rgba(255, 0, 0, 0.3);
border-color: rgba(255, 60, 60, 0.65);
filter: brightness(1.1);
}
.controls .btn:hover::after {
left: 120%;
}
/* Clique */
.controls .btn:active {
transform: translateY(1px) scale(0.98);
filter: brightness(0.9);
}
/* Pulso */
@keyframes btnBloodPulse {
0% { opacity: 0.35; transform: scale(1); }
100% { opacity: 0.75; transform: scale(1.1); }
}
/* Botão principal “Iniciar” */
.controls .btn--blood-primary {
background: rgba(150, 0, 0, 0.4);
border-color: rgba(255, 70, 70, 0.65);
box-shadow: 0 0 25px rgba(255, 0, 0, 0.18);
}
.controls .btn--blood-primary:hover {
background: rgba(200, 0, 0, 0.5);
border-color: rgba(255, 90, 90, 0.85);
box-shadow: 0 0 35px rgba(255, 0, 0, 0.28);
}
/* Botão secundário “Modo Sobrevivência” */
.controls .btn--blood {
background: rgba(80, 0, 0, 0.4);
border-color: rgba(255, 0, 0, 0.4);
}
.controls .btn--blood:hover {
background: rgba(120, 0, 0, 0.5);
border-color: rgba(255, 60, 60, 0.7);
}
/* Responsividade: botões menores no mobile */
@media (max-width: 480px) {
.controls .btn {
font-size: 14px;
padding: 8px 14px;
letter-spacing: 2px;
}
}
#statusBar {
position: fixed !important;
top: 10px !important;
left: 50% !important;
transform: translateX(-50%) !important;
z-index: 99999 !important; /* 🔹 mais alto que o quiz */
background: rgba(20, 0, 0, 0.85);
border: 1px solid rgba(255, 0, 0, 0.45);
color: #fff;
padding: 8px 18px;
border-radius: 12px;
font-family: 'Spectral SC', serif;
font-size: clamp(14px, 2vw, 18px);
letter-spacing: 1px;
text-align: center;
box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
pointer-events: none; /* impede que clique interfira no jogo */
}