-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdnd-refactor.css
More file actions
709 lines (643 loc) · 15.2 KB
/
dnd-refactor.css
File metadata and controls
709 lines (643 loc) · 15.2 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
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');
:root {
--dnd-gold: #d4af37;
--dnd-gold-light: #f9e076;
--dnd-crimson: #4a0404;
--dnd-parchment: #fcfaf2;
--dnd-text: #2c1810;
--dnd-border: rgba(184, 134, 11, 0.4);
}
.dnd-theme-root {
background-color: #0c0a09;
color: var(--dnd-text);
min-height: screen;
font-family: 'Arvo', serif;
}
/* High Fidelity Procedural Parchment */
.dnd-parchment-container {
background-color: #fcfaf2;
background-image:
/* Layer 1: Water damage / Aged stains */
radial-gradient(
circle at 10% 10%,
rgba(139, 69, 19, 0.05) 0%,
transparent 30%
),
radial-gradient(
circle at 90% 80%,
rgba(139, 69, 19, 0.05) 0%,
transparent 30%
),
radial-gradient(
circle at 50% 50%,
rgba(139, 69, 19, 0.02) 0%,
transparent 60%
),
/* Layer 2: Paper Fibers (SVG Noise) */
url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.07'/%3E%3C/svg%3E"),
/* Layer 3: Crumpled paper effect (SVG Turbulence) */
url("data:image/svg+xml,%3Csvg viewBox='0 0 500 500' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='crumpleFilter'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.01' numOctaves='3' result='turb'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='turb' scale='10'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23crumpleFilter)' opacity='0.03'/%3E%3C/svg%3E"),
/* Layer 4: Vertical fiber lines */
repeating-linear-gradient(
90deg,
transparent,
transparent 40px,
rgba(0, 0, 0, 0.01) 40px,
rgba(0, 0, 0, 0.01) 41px
),
/* Layer 5: Main aged color gradient */
linear-gradient(135deg, #fcfaf2 0%, #f2ead3 50%, #e8dec0 100%);
border: 1px solid rgba(0, 0, 0, 0.2);
box-shadow:
0 40px 80px rgba(0, 0, 0, 0.7),
inset 0 0 120px rgba(139, 69, 19, 0.2);
position: relative;
overflow: hidden;
}
/* Deckle Edge Effect (SVG Border) */
.dnd-deckle-edge {
position: relative;
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cfilter id='jagged'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.15' numOctaves='2' result='turb'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='turb' scale='2'/%3E%3C/filter%3E%3Crect width='90' height='90' x='5' y='5' filter='url(%23jagged)'/%3E%3C/svg%3E");
mask-size: 100% 100%;
}
/* Ornate Border Accents - Higher Fidelity */
.dnd-ornate-corner {
position: absolute;
width: 100px;
height: 100px;
z-index: 10;
pointer-events: none;
}
.dnd-ornate-corner::before,
.dnd-ornate-corner::after {
content: '';
position: absolute;
background: linear-gradient(to right, var(--dnd-gold-light), var(--dnd-gold));
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.dnd-ornate-corner-tl {
top: 15px;
left: 15px;
}
.dnd-ornate-corner-tl::before {
width: 100%;
height: 3px;
top: 0;
left: 0;
border-radius: 3px;
}
.dnd-ornate-corner-tl::after {
width: 3px;
height: 100%;
top: 0;
left: 0;
border-radius: 3px;
}
.dnd-ornate-corner-tr {
top: 15px;
right: 15px;
}
.dnd-ornate-corner-tr::before {
width: 100%;
height: 3px;
top: 0;
right: 0;
border-radius: 3px;
}
.dnd-ornate-corner-tr::after {
width: 3px;
height: 100%;
top: 0;
right: 0;
border-radius: 3px;
}
.dnd-ornate-corner-bl {
bottom: 15px;
left: 15px;
}
.dnd-ornate-corner-bl::before {
width: 100%;
height: 3px;
bottom: 0;
left: 0;
border-radius: 3px;
}
.dnd-ornate-corner-bl::after {
width: 3px;
height: 100%;
bottom: 0;
left: 0;
border-radius: 3px;
}
.dnd-ornate-corner-br {
bottom: 15px;
right: 15px;
}
.dnd-ornate-corner-br::before {
width: 100%;
height: 3px;
bottom: 0;
right: 0;
border-radius: 3px;
}
.dnd-ornate-corner-br::after {
width: 3px;
height: 100%;
bottom: 0;
right: 0;
border-radius: 3px;
}
/* Mystical Divider */
.dnd-mystic-divider {
display: flex;
align-items: center;
justify-content: center;
gap: 1.5rem;
margin: 3rem 0;
opacity: 0.6;
}
.dnd-mystic-divider::before,
.dnd-mystic-divider::after {
content: '';
height: 2px;
flex-grow: 1;
background: radial-gradient(circle, var(--dnd-gold) 0%, transparent 100%);
}
/* Illuminated Letter Effect */
.dnd-drop-cap::first-letter {
font-family: 'Playfair Display', serif;
float: left;
font-size: 5.5rem;
line-height: 0.7;
font-weight: 900;
margin-right: 1rem;
margin-top: 0.8rem;
color: var(--dnd-crimson);
text-shadow: 4px 4px 0px var(--dnd-gold);
border: 3px double var(--dnd-gold);
padding: 0.75rem;
background: rgba(255, 255, 255, 0.6);
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
clip-path: polygon(
10% 0,
100% 0,
90% 100%,
0 100%
); /* Slightly irregular shape */
}
/* Section Header Styles */
.dnd-fantasy-header {
font-family: 'Playfair Display', serif;
font-style: italic;
font-weight: 900;
color: var(--dnd-gold);
text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.6);
text-transform: uppercase;
letter-spacing: -0.02em;
}
.dnd-gold-gradient-text {
background: linear-gradient(
to bottom,
var(--dnd-gold-light),
var(--dnd-gold),
#8b7325
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.dnd-nav-modern {
background: linear-gradient(
to bottom,
rgba(74, 4, 4, 0.99),
rgba(42, 10, 10, 0.95)
);
border-bottom: 4px double var(--dnd-gold);
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
backdrop-filter: blur(20px);
}
/* Interactive Fantasy Cards */
.dnd-fantasy-card {
background-color: #fcfaf2;
background-image:
url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E"),
linear-gradient(to bottom, #fcfaf2, #f2ead3);
transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
border: 1px solid rgba(0, 0, 0, 0.1);
}
.dnd-fantasy-card:hover {
transform: translateY(-15px) rotate(1deg);
box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9);
border-color: var(--dnd-gold);
}
.dnd-body-text {
font-family: 'Arvo', serif;
line-height: 2;
font-size: 1.2rem;
color: #2c1810;
text-shadow: 0.5px 0.5px 0px rgba(0, 0, 0, 0.05);
}
/* Wax Seal Style (Pure CSS) */
.dnd-wax-seal {
width: 70px;
height: 70px;
background: radial-gradient(circle at 30% 30%, #b50000, #4a0404);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow:
6px 6px 15px rgba(0, 0, 0, 0.7),
inset -3px -3px 15px rgba(0, 0, 0, 0.5);
border: 4px solid rgba(0, 0, 0, 0.4);
transform: rotate(-12deg);
position: relative;
transition: all 0.5s ease;
}
.dnd-wax-seal::after {
content: '';
position: absolute;
inset: 6px;
border: 2px dashed rgba(255, 255, 255, 0.1);
border-radius: 50%;
}
.dnd-wax-seal-inner {
color: rgba(212, 175, 55, 0.9);
font-family: 'Playfair Display', serif;
font-weight: 900;
font-size: 2.2rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}
/* Global Viewport Frame */
.dnd-viewport-frame {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 200;
border: 25px solid transparent;
border-image: linear-gradient(to bottom, #2c1810, #1a0f0a) 30 stretch;
box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}
.dnd-frame-accent {
position: absolute;
width: 100px;
height: 100px;
background: var(--dnd-gold);
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0 L100 0 L100 100 L0 100 Z M50 10 L90 50 L50 90 L10 50 Z'/%3E%3C/svg%3E");
mask-size: contain;
opacity: 0.8;
}
/* Reactive Arcane Runes */
.dnd-reactive-rune {
position: absolute;
font-family: 'MedievalSharp', cursive;
color: var(--dnd-gold);
pointer-events: none;
user-select: none;
transition: all 0.3s ease;
filter: blur(1px);
}
/* Arcane Pulse for Headers */
@keyframes arcane-glow {
0%,
100% {
text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}
50% {
text-shadow:
0 0 30px rgba(212, 175, 55, 0.6),
0 0 50px rgba(212, 175, 55, 0.2);
}
}
.dnd-header-pulse {
animation: arcane-glow 4s infinite ease-in-out;
}
/* Fire/Ambient Overlay - Intensified */
@keyframes ambient-flicker {
0%,
100% {
opacity: 0.1;
}
50% {
opacity: 0.2;
}
}
.dnd-fire-overlay {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 30;
background:
radial-gradient(circle at bottom, rgba(255, 69, 0, 0.15), transparent 70%),
linear-gradient(to top, rgba(255, 69, 0, 0.05), transparent 40%);
mix-blend-mode: screen;
animation: ambient-flicker 0.5s infinite;
}
/* Ornate Scroll Ornament Animation - Brighter */
@keyframes scroll-glow {
0%,
100% {
opacity: 0.4;
filter: blur(15px);
}
50% {
opacity: 0.8;
filter: blur(25px);
}
}
.dnd-scroll-accent {
animation: scroll-glow 4s infinite ease-in-out;
background: rgba(212, 175, 55, 0.15) !important;
}
/* Animated Parchment Shadow */
.dnd-parchment-glow {
box-shadow:
0 0 40px rgba(212, 175, 55, 0.1),
0 40px 80px rgba(0, 0, 0, 0.7);
}
/* Arcane Lightning Flash */
@keyframes dnd-lightning {
0%,
95%,
100% {
opacity: 0;
}
96% {
opacity: 0.2;
}
97% {
opacity: 0.05;
}
98% {
opacity: 0.4;
}
}
.dnd-lightning-overlay {
position: fixed;
inset: 0;
background: white;
pointer-events: none;
z-index: 50;
opacity: 0;
mix-blend-mode: overlay;
animation: dnd-lightning 7s infinite;
}
/* Secret Inscriptions - More visible */
.dnd-secret-text {
font-family: 'MedievalSharp', cursive;
color: var(--dnd-crimson);
opacity: 0.15;
filter: blur(1px);
transition: all 0.5s ease;
user-select: none;
font-weight: bold;
}
.dnd-parchment-container:hover .dnd-secret-text {
opacity: 0.4;
color: var(--dnd-gold);
filter: blur(0px);
text-shadow: 0 0 10px var(--dnd-gold);
}
/* Gold Coin / Loot Styling */
@keyframes loot-shine {
0% {
filter: brightness(1);
}
50% {
filter: brightness(1.5) drop-shadow(0 0 10px gold);
}
100% {
filter: brightness(1);
}
}
.dnd-loot-item {
cursor: pointer;
animation: loot-shine 2s infinite ease-in-out;
transition: all 0.3s ease;
}
.dnd-loot-item:hover {
transform: scale(1.5) rotate(15deg);
}
/* Silk Ribbon Style */
.dnd-ribbon {
position: absolute;
top: -10px;
right: 30px;
width: 30px;
height: 80px;
background: linear-gradient(to bottom, #8b0000, #4a0404);
box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.4);
z-index: 20;
clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
border-left: 1px solid rgba(255, 255, 255, 0.1);
}
/* Ink Splatter Procedural */
.dnd-ink-splatter {
position: absolute;
background: var(--dnd-crimson);
filter: blur(2px);
border-radius: 50%;
opacity: 0.05;
pointer-events: none;
}
/* Card Rune Glow */
.dnd-card-rune {
position: absolute;
font-family: 'MedievalSharp', cursive;
font-size: 3rem;
color: var(--dnd-crimson);
opacity: 0.02;
pointer-events: none;
transition: all 1s ease;
}
.dnd-fantasy-card:hover .dnd-card-rune {
opacity: 0.08;
color: var(--dnd-gold);
filter: blur(0px);
}
/* Arcane Scrollbar */
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
background: #0c0a09;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(to bottom, var(--dnd-gold), var(--dnd-crimson));
border: 3px solid #0c0a09;
border-radius: 10px;
}
/* Torchlight Glow */
.dnd-torchlight {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 40;
background: radial-gradient(
circle 300px at var(--mouse-x) var(--mouse-y),
rgba(255, 150, 50, 0.08),
transparent 80%
);
}
/* 5e Stat Block Style */
.dnd-stat-block {
background-color: #fdf1dc;
border: 2px solid #7a0303;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
padding: 1rem;
position: relative;
border-top: 10px solid #7a0303;
border-bottom: 10px solid #7a0303;
}
.dnd-stat-block-header {
font-family: 'Playfair Display', serif;
color: #7a0303;
font-size: 1.5rem;
font-weight: 900;
border-bottom: 2px solid #7a0303;
margin-bottom: 0.5rem;
padding-bottom: 0.25rem;
}
.dnd-stat-block-label {
color: #7a0303;
font-weight: bold;
font-family: 'Arvo', serif;
text-transform: uppercase;
font-size: 0.7rem;
}
/* D20 Animation */
@keyframes d20-roll {
0% {
transform: rotate(0deg) scale(1);
}
50% {
transform: rotate(180deg) scale(1.2);
}
100% {
transform: rotate(360deg) scale(1);
}
}
.dnd-dice-action {
animation: d20-roll 0.6s ease-out;
}
/* Paper Deckle Border (Procedural) */
.dnd-paper-edge {
filter: url(#paper-edge-filter);
}
/* Dust Motes Animation */
@keyframes dnd-dust {
0% {
transform: translateY(0) translateX(0);
opacity: 0;
}
20% {
opacity: 0.2;
}
80% {
opacity: 0.2;
}
100% {
transform: translateY(-100vh) translateX(20px);
opacity: 0;
}
}
.dnd-dust-particle {
position: fixed;
width: 2px;
height: 2px;
background: white;
border-radius: 50%;
pointer-events: none;
z-index: 5;
animation: dnd-dust linear infinite;
}
/* Magical Aura/Pulse */
@keyframes dnd-aura {
0% {
box-shadow: 0 0 0px rgba(212, 175, 55, 0);
}
50% {
box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}
100% {
box-shadow: 0 0 0px rgba(212, 175, 55, 0);
}
}
.dnd-magical-pulse {
animation: dnd-aura 3s infinite ease-in-out;
}
/* Floating Rune Style */
.dnd-floating-rune {
position: fixed;
font-family: 'MedievalSharp', cursive;
color: var(--dnd-gold);
opacity: 0.03;
pointer-events: none;
z-index: 1;
user-select: none;
filter: blur(1px);
}
/* Fire Particles / Embers */
@keyframes dnd-fire-rise {
0% {
transform: translateY(0) translateX(0) scale(1);
opacity: 0;
}
10% {
opacity: 1;
}
50% {
transform: translateY(-50vh) translateX(-30px) scale(1.2);
}
100% {
transform: translateY(-110vh) translateX(30px) scale(0.5);
opacity: 0;
}
}
@keyframes dnd-fire-flicker {
0%,
100% {
opacity: 0.8;
filter: brightness(1) blur(1px);
}
50% {
opacity: 1;
filter: brightness(1.5) blur(2px);
}
}
.dnd-fire-particle {
position: fixed;
bottom: -50px;
border-radius: 50%;
pointer-events: none;
z-index: 100;
opacity: 0;
animation:
dnd-fire-rise linear infinite,
dnd-fire-flicker 0.3s infinite;
}
/* Mobile Simplifications */
@media (max-width: 768px) {
.dnd-parchment-container {
background-image: linear-gradient(135deg, #fcfaf2 0%, #f2ead3 100%);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
inset: 0 0 40px rgba(139, 69, 19, 0.1);
}
.dnd-drop-cap::first-letter {
font-size: 3.5rem;
padding: 0.4rem;
margin-right: 0.5rem;
}
.dnd-fantasy-header {
font-size: 1.5rem;
}
.dnd-body-text {
font-size: 1rem;
line-height: 1.6;
}
.dnd-nav-modern {
border-bottom-width: 2px;
}
.dnd-viewport-frame {
display: none;
}
}