@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; } }