/* ═══════════════════════════════════════════════════════════════
   THE CAT MAGE - Mystical Wizard Portal Styles
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Arcane Color Palette - Gloomy Dark Blue */
    --mystic-purple: #0a1628;
    --deep-violet: #050d1a;
    --ethereal-blue: #1a2d4a;
    --golden-rune: #d4af37;
    --pale-gold: #f4e4bc;
    --moonlight: #c5d0e6;
    --crystal-cyan: #5b9bd5;
    --potion-green: #4ade80;
    --flame-orange: #fb923c;
    --shadow-black: #020508;
    --parchment: #f5f0e6;
    --blood-red: #dc2626;
    --midnight-blue: #0d1929;
    --storm-blue: #162238;
    
    /* Gradients */
    --bg-gradient: linear-gradient(180deg, var(--shadow-black) 0%, var(--deep-violet) 30%, var(--midnight-blue) 70%, var(--shadow-black) 100%);
    --card-gradient: linear-gradient(145deg, rgba(22, 34, 56, 0.7) 0%, rgba(10, 22, 40, 0.9) 100%);
    --gold-shimmer: linear-gradient(90deg, var(--golden-rune) 0%, var(--pale-gold) 50%, var(--golden-rune) 100%);
}

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

/* Video Background (Hero Only) */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.85) 90%,
        rgba(0, 0, 0, 1) 100%
    );
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--moonlight);
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Magical Floating Particles */
.magical-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--golden-rune);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--golden-rune), 0 0 20px var(--golden-rune);
    animation: float-up 8s infinite ease-in-out;
    opacity: 0;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.arcane-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: linear-gradient(180deg, var(--shadow-black) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--golden-rune);
    text-decoration: none;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.header-logo:hover {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}


.mystic-nav {
    display: flex;
    gap: 2rem;
}

.nav-rune {
    font-family: 'Cinzel', serif;
    text-decoration: none;
    color: var(--pale-gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-rune::before {
    content: '✧';
    position: absolute;
    left: -8px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.nav-rune::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold-shimmer);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-rune:hover,
.nav-rune.active {
    color: var(--golden-rune);
    text-shadow: 0 0 15px var(--golden-rune);
}

.nav-rune:hover::before,
.nav-rune.active::before {
    opacity: 1;
    transform: scale(1);
}

.nav-rune:hover::after,
.nav-rune.active::after {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.hero-sanctum {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding-top: 80px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-buttons-secondary {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 6px;
    color: var(--moonlight);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: #fff;
}

/* X Button */
.x-btn {
    padding: 0.85rem 1.2rem;
}

.x-logo {
    width: 18px;
    height: 18px;
    fill: var(--moonlight);
    transition: all 0.3s ease;
}

.x-btn:hover .x-logo {
    fill: #fff;
}

/* Spell Button */
.spell-btn {
    background: rgba(212, 175, 55, 0.15);
}

.spell-btn:hover {
    background: rgba(212, 175, 55, 0.25);
    color: var(--golden-rune);
}

/* Book Button */
.book-icon {
    width: 14px;
    height: 14px;
    fill: var(--moonlight);
    transition: all 0.3s ease;
}

.book-btn:hover .book-icon {
    fill: #fff;
}

/* CA Text (not a button) */
.ca-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ca-text:hover {
    transform: scale(1.02);
}

.ca-label {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    color: rgba(212, 175, 55, 0.7);
    letter-spacing: 2px;
}

.ca-value {
    font-family: 'Crimson Text', serif;
    font-size: 0.85rem;
    color: var(--moonlight);
    opacity: 0.8;
    user-select: all;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ca-value:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.ca-hint {
    font-size: 0.65rem;
    color: rgba(197, 208, 230, 0.4);
    font-family: 'Crimson Text', serif;
    margin-top: 0.2rem;
}


.rune-symbol {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--golden-rune);
    transform: rotate(45deg);
    opacity: 0.7;
}

.rune-symbol.center {
    width: 16px;
    height: 16px;
    background: var(--golden-rune);
    opacity: 0.5;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.arcane-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    background: var(--gold-shimmer);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.mystical-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--crystal-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.magic-divider {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.magic-divider .rune {
    color: var(--golden-rune);
    font-size: 1.2rem;
    animation: twinkle 2s ease-in-out infinite;
}

.magic-divider .rune:nth-child(2) {
    animation-delay: 0.3s;
}

.magic-divider .rune:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.welcome-scroll {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--moonlight);
    opacity: 0.9;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--golden-rune);
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--crystal-cyan);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   PROPHECY SECTION
   ═══════════════════════════════════════════════════════════════ */

@keyframes text-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes text-fade-in {
    0% { 
        opacity: 0;
        transform: translateY(10px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}


/* ═══════════════════════════════════════════════════════════════
   SPELLS SECTION
   ═══════════════════════════════════════════════════════════════ */

.spells-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.spell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.spell-card {
    background: var(--card-gradient);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.spell-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--golden-rune), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.spell-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.4s ease;
}

.spell-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.4);
}

.spell-card:hover::before {
    transform: scaleX(1);
}

.spell-card:hover::after {
    box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.05);
}

.spell-card[data-element="fire"] { border-left: 3px solid rgba(251, 146, 60, 0.5); }
.spell-card[data-element="water"] { border-left: 3px solid rgba(91, 155, 213, 0.5); }
.spell-card[data-element="earth"] { border-left: 3px solid rgba(74, 222, 128, 0.5); }
.spell-card[data-element="air"] { border-left: 3px solid rgba(200, 210, 230, 0.5); }
.spell-card[data-element="arcane"] { border-left: 3px solid rgba(212, 175, 55, 0.5); }
.spell-card[data-element="shadow"] { border-left: 3px solid rgba(100, 80, 150, 0.5); }

.spell-card[data-element="fire"]:hover { 
    box-shadow: 0 15px 50px rgba(251, 146, 60, 0.2), 0 0 0 1px rgba(251, 146, 60, 0.3);
    border-left-color: rgba(251, 146, 60, 0.8);
}
.spell-card[data-element="water"]:hover { 
    box-shadow: 0 15px 50px rgba(91, 155, 213, 0.25), 0 0 0 1px rgba(91, 155, 213, 0.3);
    border-left-color: rgba(91, 155, 213, 0.8);
}
.spell-card[data-element="earth"]:hover { 
    box-shadow: 0 15px 50px rgba(74, 222, 128, 0.2), 0 0 0 1px rgba(74, 222, 128, 0.3);
    border-left-color: rgba(74, 222, 128, 0.8);
}
.spell-card[data-element="air"]:hover { 
    box-shadow: 0 15px 50px rgba(200, 210, 230, 0.15), 0 0 0 1px rgba(200, 210, 230, 0.3);
    border-left-color: rgba(200, 210, 230, 0.8);
}
.spell-card[data-element="arcane"]:hover { 
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.25), 0 0 0 1px rgba(212, 175, 55, 0.4);
    border-left-color: rgba(212, 175, 55, 0.8);
}
.spell-card[data-element="shadow"]:hover { 
    box-shadow: 0 15px 50px rgba(100, 80, 150, 0.3), 0 0 0 1px rgba(100, 80, 150, 0.4);
    border-left-color: rgba(100, 80, 150, 0.8);
}

.spell-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spell-icon::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.3;
}

.fire-icon { color: #fb923c; }
.fire-icon::after {
    content: '';
    width: 20px;
    height: 28px;
    background: linear-gradient(to top, #fb923c, #fbbf24, transparent);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: flicker 0.5s infinite alternate;
}

.water-icon { color: #5b9bd5; }
.water-icon::after {
    content: '';
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, transparent 40%, #5b9bd5);
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
}

.earth-icon { color: #4ade80; }
.earth-icon::after {
    content: '';
    width: 24px;
    height: 30px;
    border: 3px solid #4ade80;
    border-radius: 50% 50% 0 0;
    border-bottom: none;
    position: relative;
}

.air-icon { color: #c8d2e6; }
.air-icon::after {
    content: '';
    width: 30px;
    height: 20px;
    border: 3px solid #c8d2e6;
    border-radius: 50%;
    border-bottom-color: transparent;
    border-left-color: transparent;
    transform: rotate(-30deg);
}

.arcane-icon { color: #d4af37; }
.arcane-icon::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid #d4af37;
    transform: rotate(45deg);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.shadow-icon { color: #6450a0; }
.shadow-icon::after {
    content: '';
    width: 28px;
    height: 28px;
    background: radial-gradient(circle, transparent 30%, #6450a0 70%, transparent 100%);
    border-radius: 50%;
}

.spell-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--golden-rune);
    margin-bottom: 0.3rem;
}

.spell-type {
    font-size: 0.85rem;
    color: var(--crystal-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.spell-desc {
    font-size: 1rem;
    color: var(--moonlight);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.spell-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.mana-cost {
    color: var(--crystal-cyan);
    font-size: 0.9rem;
}

.difficulty {
    color: var(--golden-rune);
    letter-spacing: 2px;
}


/* ═══════════════════════════════════════════════════════════════
   GRIMOIRE SECTION - 3D BOOK
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   HOW TO BUY SECTION
   ═══════════════════════════════════════════════════════════════ */

.howtobuy-section {
    padding: 6rem 2rem;
    background: #000000;
}

.howtobuy-section .section-title {
    background: linear-gradient(90deg, var(--golden-rune), var(--pale-gold), var(--golden-rune));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 4s linear infinite;
}

.howtobuy-section .section-desc {
    animation: text-fade-in 2s ease-out forwards;
    opacity: 0;
}

.buy-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 1000px) {
    .buy-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .buy-steps {
        grid-template-columns: 1fr;
    }
}

.buy-step {
    background: linear-gradient(180deg, rgba(15, 12, 8, 0.95) 0%, rgba(8, 6, 4, 0.98) 100%);
    padding: 2rem 1.5rem;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: step-fade-in 0.8s ease forwards;
}

.buy-step:nth-child(1) { animation-delay: 0.1s; }
.buy-step:nth-child(2) { animation-delay: 0.2s; }
.buy-step:nth-child(3) { animation-delay: 0.3s; }
.buy-step:nth-child(4) { animation-delay: 0.4s; }

@keyframes step-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.buy-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--golden-rune), rgba(212, 175, 55, 0.3));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.buy-step::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.buy-step:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(212, 175, 55, 0.08);
}

.buy-step:hover::before {
    transform: scaleX(1);
}

.buy-step:hover::after {
    opacity: 1;
}

.step-number {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.buy-step:hover .step-number {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.8) 0%, rgba(212, 175, 55, 0.3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.step-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--pale-gold);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.step-desc {
    font-family: 'Crimson Text', serif;
    font-size: 0.9rem;
    color: var(--moonlight);
    line-height: 1.7;
    opacity: 0.7;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.buy-step:hover .step-desc {
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════════
   GRIMOIRE SECTION - 3D BOOK
   ═══════════════════════════════════════════════════════════════ */

.grimoire-section {
    padding: 5rem 2rem;
    min-height: 80vh;
    background: #000000;
}

.grimoire-section .section-title {
    background: linear-gradient(90deg, var(--golden-rune), var(--pale-gold), var(--golden-rune));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 4s linear infinite;
}

.grimoire-section .section-desc {
    animation: text-fade-in 2s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.book-container {
    display: flex;
    justify-content: center;
    perspective: 2500px;
    margin-bottom: 2rem;
}

.ancient-book {
    position: relative;
    width: 340px;
    height: 480px;
    transform-style: preserve-3d;
    transform: rotateY(-25deg) rotateX(5deg);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ancient-book:hover {
    transform: rotateY(-15deg) rotateX(3deg);
}

.book-cover-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a1810 0%, #4a3020 50%, #2a1810 100%);
    border-radius: 3px 8px 8px 3px;
    transform: translateZ(-25px);
    box-shadow: -5px 5px 30px rgba(0, 0, 0, 0.6);
}

.book-pages-stack {
    position: absolute;
    right: 0;
    width: 25px;
    height: calc(100% - 10px);
    top: 5px;
    background: linear-gradient(90deg, 
        #d4c4a8 0%, #f5f0e6 10%, #d4c4a8 20%,
        #f5f0e6 30%, #d4c4a8 40%, #f5f0e6 50%,
        #d4c4a8 60%, #f5f0e6 70%, #d4c4a8 80%,
        #f5f0e6 90%, #d4c4a8 100%);
    transform: translateZ(-12px) translateX(5px);
    border-radius: 0 3px 3px 0;
}

.book-cover-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a2518 0%, #5a4030 30%, #4a3020 70%, #2a1810 100%);
    border-radius: 3px 8px 8px 3px;
    transform-origin: left center;
    transform: translateZ(1px);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 
        5px 5px 20px rgba(0, 0, 0, 0.4),
        inset -5px 0 15px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.2);
}

.book-cover-front.flipped {
    transform: rotateY(-160deg) translateZ(1px);
}

.cover-design {
    position: absolute;
    inset: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cover-border {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 2px;
}

.cover-border::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.cover-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--golden-rune);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
}

.cover-symbol {
    width: 80px;
    height: 80px;
    border: 3px solid var(--golden-rune);
    border-radius: 50%;
    position: relative;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.cover-symbol::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 40px;
    height: 40px;
    border: 2px solid var(--golden-rune);
}

.cover-symbol::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--golden-rune);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--golden-rune);
}

.cover-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: rgba(212, 175, 55, 0.8);
    letter-spacing: 3px;
}

.book-page-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: left center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-page-wrapper[data-page="1"] { z-index: 3; }
.book-page-wrapper[data-page="2"] { z-index: 2; }
.book-page-wrapper[data-page="3"] { z-index: 1; }

.book-page-wrapper.flipped {
    transform: rotateY(-160deg);
}

.book-page {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 2rem 2.5rem;
    backface-visibility: hidden;
    overflow: hidden;
}

.book-page.front {
    background: linear-gradient(to right, #e8e0d0 0%, var(--parchment) 10%, var(--parchment) 90%, #ddd5c5 100%);
    border-radius: 3px 8px 8px 3px;
    box-shadow: inset -3px 0 10px rgba(0, 0, 0, 0.1);
}

.book-page.back {
    background: linear-gradient(to left, #e8e0d0 0%, var(--parchment) 10%, var(--parchment) 90%, #ddd5c5 100%);
    border-radius: 3px 8px 8px 3px;
    transform: rotateY(180deg);
    box-shadow: inset 3px 0 10px rgba(0, 0, 0, 0.1);
}

.page-number {
    position: absolute;
    bottom: 1.5rem;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #8b7355;
}

.book-page.front .page-number { right: 2rem; }
.book-page.back .page-number { left: 2rem; }

.page-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #3a2518;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #c9a96e;
}

.page-content {
    color: #3a2a1a;
    font-size: 0.95rem;
    line-height: 1.8;
}

.page-content p {
    margin-bottom: 0.8rem;
    text-indent: 1.2rem;
}

.page-content em {
    color: #6b4423;
    font-style: italic;
}

.page-content strong {
    color: #4a3020;
    font-weight: 600;
}

.spell-text {
    text-align: center;
    font-style: italic;
    color: #6b4423;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 2px solid #c9a96e;
    border-right: 2px solid #c9a96e;
    line-height: 2;
}

.closing-signature {
    text-align: right;
    margin-top: 1.5rem;
    font-style: italic;
    color: #8b7355;
}

.virtue-list {
    list-style: none;
    color: #3a2a1a;
    padding: 0;
}

.virtue-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dotted rgba(201, 169, 110, 0.5);
    font-size: 0.9rem;
}

.virtue-list li:last-child {
    border-bottom: none;
}

.virtue-num {
    color: #6b4423;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin-right: 0.5rem;
}

.page-corner {
    position: absolute;
    bottom: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.05) 50%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.book-page.front .page-corner {
    right: 0;
    background: linear-gradient(315deg, #d4c4a8 50%, transparent 50%);
}

.book-page.back .page-corner {
    left: 0;
    background: linear-gradient(45deg, #d4c4a8 50%, transparent 50%);
}

.page-corner:hover {
    width: 50px;
    height: 50px;
}

.page-ornament {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a96e, transparent);
}

.page-ornament::before,
.page-ornament::after {
    content: '';
    position: absolute;
    top: -4px;
    width: 10px;
    height: 10px;
    border: 1px solid #c9a96e;
    transform: rotate(45deg);
}

.page-ornament::before { left: -15px; }
.page-ornament::after { right: -15px; }

.book-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.book-nav-btn {
    font-family: 'Cinzel', serif;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--pale-gold);
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.book-nav-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--golden-rune);
    color: var(--golden-rune);
}

.book-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-indicator {
    font-family: 'Cinzel', serif;
    color: var(--crystal-cyan);
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   SPELL CASTING MODAL
   ═══════════════════════════════════════════════════════════════ */

.spell-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.spell-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.spell-modal {
    position: relative;
    transform: scale(0.8) rotateX(20deg);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spell-modal-overlay.active .spell-modal {
    transform: scale(1) rotateX(0deg);
    opacity: 1;
}

.spell-modal-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 50px;
    height: 50px;
    background: #2a1810;
    border: 2px solid var(--golden-rune);
    border-radius: 50%;
    color: var(--golden-rune);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.spell-modal-close:hover {
    background: var(--golden-rune);
    color: #2a1810;
    transform: rotate(90deg);
}

/* Closed Book */
.spell-book-closed {
    display: flex;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.8));
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.spell-book-closed:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.closed-book-spine {
    width: 50px;
    height: 520px;
    background: linear-gradient(90deg, 
        #0d0705 0%, 
        #2a1810 15%, 
        #4a3020 40%,
        #5a3d28 50%, 
        #4a3020 60%,
        #2a1810 85%, 
        #0d0705 100%
    );
    border-radius: 8px 0 0 8px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
    position: relative;
}

.closed-book-spine::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    background: linear-gradient(180deg, 
        #8b5a2b 0%,
        var(--golden-rune) 10%, 
        #8b5a2b 25%, 
        transparent 40%,
        #8b5a2b 50%,
        transparent 60%,
        #8b5a2b 75%,
        var(--golden-rune) 90%,
        #8b5a2b 100%
    );
    opacity: 0.7;
    border-radius: 3px;
}

.closed-book-cover {
    width: 340px;
    height: 520px;
    background: linear-gradient(135deg, 
        #2a1810 0%, 
        #3d2817 20%, 
        #4a3020 50%, 
        #3d2817 80%, 
        #2a1810 100%
    );
    border-radius: 0 8px 8px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.5),
        inset -5px 0 20px rgba(0, 0, 0, 0.3);
}

.closed-book-cover::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 3px;
    pointer-events: none;
}

.closed-book-cover::after {
    content: '';
    position: absolute;
    inset: 30px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 2px;
    pointer-events: none;
}

.cover-ornament {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
}

.ornament-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid var(--golden-rune);
    border-radius: 50%;
    opacity: 0.6;
}

.ornament-diamond {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 50px;
    height: 50px;
    border: 2px solid var(--golden-rune);
    opacity: 0.6;
}

.ornament-diamond::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: var(--golden-rune);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--golden-rune);
}

.closed-book-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--golden-rune);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.closed-book-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: rgba(212, 175, 55, 0.7);
    letter-spacing: 3px;
    margin-bottom: 3rem;
}

.open-book-btn {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--golden-rune);
    color: var(--golden-rune);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.open-book-btn:hover {
    background: var(--golden-rune);
    color: #2a1810;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

/* The Spellbook */
.spell-book {
    display: flex;
    perspective: 2000px;
    transform-style: preserve-3d;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.8));
}

.spell-book-spine {
    width: 50px;
    height: 520px;
    background: linear-gradient(90deg, 
        #0d0705 0%, 
        #2a1810 15%, 
        #4a3020 40%,
        #5a3d28 50%, 
        #4a3020 60%,
        #2a1810 85%, 
        #0d0705 100%
    );
    border-radius: 8px 0 0 8px;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.9),
        inset 5px 0 15px rgba(212, 175, 55, 0.1);
    position: relative;
}

.spell-book-spine::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    background: linear-gradient(180deg, 
        #8b5a2b 0%,
        var(--golden-rune) 10%, 
        #8b5a2b 25%, 
        transparent 40%,
        #8b5a2b 50%,
        transparent 60%,
        #8b5a2b 75%,
        var(--golden-rune) 90%,
        #8b5a2b 100%
    );
    opacity: 0.7;
    border-radius: 3px;
}

.spell-book-spine::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid var(--golden-rune);
    border-radius: 50%;
    opacity: 0.5;
}

.spell-book-cover-left,
.spell-book-cover-right {
    width: 25px;
    height: 520px;
    background: linear-gradient(90deg, #1a0f08, #2a1810, #3d2817);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7);
    position: relative;
}

.spell-book-cover-left {
    border-radius: 3px 0 0 3px;
}

.spell-book-cover-left::after,
.spell-book-cover-right::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(212, 175, 55, 0.3) 20%,
        rgba(212, 175, 55, 0.5) 50%,
        rgba(212, 175, 55, 0.3) 80%,
        transparent 100%
    );
}

.spell-book-cover-left::after {
    right: 5px;
}

.spell-book-cover-right::before {
    left: 5px;
}

.spell-book-cover-right {
    border-radius: 0 3px 3px 0;
}

.spell-book-page-stack-left,
.spell-book-page-stack-right {
    width: 12px;
    height: 500px;
    margin-top: 10px;
    background: repeating-linear-gradient(
        90deg,
        #c9b896 0px,
        #f5f0e6 1px,
        #d4c4a8 2px,
        #e8dcc8 3px,
        #c9b896 4px
    );
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.spell-book-pages {
    display: flex;
    background: linear-gradient(180deg, #f8f4eb, #f5f0e6, #ebe5d8);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        inset 0 0 60px rgba(139, 115, 85, 0.15);
    border-top: 3px solid #d4c4a8;
    border-bottom: 3px solid #c9b896;
}

.spell-page {
    width: 340px;
    height: 520px;
    padding: 35px;
    position: relative;
    overflow: hidden;
}

.spell-page.left-page {
    background: 
        linear-gradient(to right, 
            rgba(0, 0, 0, 0.08) 0%, 
            transparent 3%
        ),
        linear-gradient(to right, 
            #e0d4c0 0%, 
            #f0e8d8 3%, 
            #f8f4eb 50%,
            #f5f0e6 100%
        );
    border-right: 1px solid rgba(139, 115, 85, 0.4);
    box-shadow: 
        inset -20px 0 30px -15px rgba(0, 0, 0, 0.12),
        inset 0 0 100px rgba(139, 115, 85, 0.08);
}

.spell-page.right-page {
    background: 
        linear-gradient(to left, 
            rgba(0, 0, 0, 0.05) 0%, 
            transparent 3%
        ),
        linear-gradient(to left, 
            #e8dcc8 0%, 
            #f5f0e6 3%, 
            #f8f4eb 50%,
            #f5f0e6 100%
        );
    box-shadow: 
        inset 20px 0 30px -15px rgba(0, 0, 0, 0.08),
        inset 0 0 100px rgba(139, 115, 85, 0.05);
}

/* Page aging effects */
.spell-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(139, 90, 43, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 90, 43, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 90%, rgba(139, 90, 43, 0.12) 0%, transparent 30%);
    pointer-events: none;
}

.spell-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.page-header {
    text-align: center;
    margin-bottom: 20px;
}

.spell-page-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #3a2518;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.page-decoration-line {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #8b5a2b 20%, 
        #c9a96e 50%, 
        #8b5a2b 80%, 
        transparent 100%
    );
    margin: 0 auto;
    width: 80%;
}

.ink-splatter {
    position: absolute;
    bottom: 30px;
    right: 20px;
    width: 60px;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(20, 10, 5, 0.1) 0%, transparent 70%);
    transform: rotate(-15deg);
    pointer-events: none;
}

/* Writing Area */
.spell-writing-area {
    position: relative;
    height: 280px;
    margin-bottom: 12px;
}

.spell-textarea {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    resize: none;
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #1a0f08;
    line-height: 2;
    padding: 0;
    background-image: repeating-linear-gradient(
        transparent,
        transparent 31px,
        rgba(139, 90, 43, 0.2) 31px,
        rgba(139, 90, 43, 0.2) 32px
    );
    background-size: 100% 32px;
}

.spell-textarea:focus {
    outline: none;
}

.spell-textarea::placeholder {
    color: rgba(58, 37, 24, 0.4);
    font-style: italic;
}

/* Cast Spells Container */
.cast-spells-container {
    height: 380px;
    overflow-y: auto;
    padding-right: 10px;
}

.cast-spells-container::-webkit-scrollbar {
    width: 6px;
}

.cast-spells-container::-webkit-scrollbar-track {
    background: rgba(139, 90, 43, 0.1);
    border-radius: 3px;
}

.cast-spells-container::-webkit-scrollbar-thumb {
    background: rgba(139, 90, 43, 0.3);
    border-radius: 3px;
}

.no-spells-text {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    color: rgba(58, 37, 24, 0.4);
    text-align: center;
    margin-top: 50px;
}

.cast-spells-container.has-spells .no-spells-text {
    display: none;
}

.cast-spell-entry {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    color: #3a2518;
    padding: 12px 0;
    border-bottom: 1px solid rgba(139, 90, 43, 0.15);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-10px);
    animation: spell-appear 0.5s ease forwards;
    position: relative;
    padding-left: 20px;
}

.cast-spell-entry::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border: 1px solid #8b5a2b;
    border-radius: 50%;
    opacity: 0.5;
}

.cast-spell-entry:last-child {
    border-bottom: none;
}

@keyframes spell-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cast-spell-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2a1810 0%, #4a3020 100%);
    border: 2px solid #8b5a2b;
    color: var(--pale-gold);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cast-spell-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: left 0.5s ease;
}

.cast-spell-btn:hover {
    background: linear-gradient(135deg, #3d2817 0%, #5a3d25 100%);
    border-color: var(--golden-rune);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.cast-spell-btn:hover::before {
    left: 100%;
}

.spell-page .page-number {
    position: absolute;
    bottom: 15px;
    right: 25px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: #8b7355;
}

/* Spell Warning Seal */
.spell-warning-seal {
    margin-top: 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.08) 0%, rgba(139, 90, 43, 0.03) 100%);
    border: 1px solid rgba(139, 90, 43, 0.2);
    border-radius: 3px;
    position: relative;
}

.seal-icon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: #f5f0e6;
    border: 1px solid rgba(139, 90, 43, 0.4);
    border-radius: 50%;
}

.seal-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 10px;
    height: 10px;
    border: 1px solid #8b5a2b;
}

.seal-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #8b5a2b;
    border-radius: 50%;
}

.seal-text {
    font-family: 'Crimson Text', serif;
    font-size: 0.75rem;
    font-style: italic;
    color: #6b4423;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    padding-top: 5px;
}

/* Spell Cast Animation */
@keyframes spell-cast {
    0% { 
        box-shadow: 0 0 0 rgba(212, 175, 55, 0);
    }
    50% { 
        box-shadow: 0 0 100px rgba(212, 175, 55, 0.8), 
                    0 0 200px rgba(212, 175, 55, 0.4);
    }
    100% { 
        box-shadow: 0 0 0 rgba(212, 175, 55, 0);
    }
}

.spell-book.casting {
    animation: spell-cast 1.5s ease-out;
}

/* Responsive */
@media (max-width: 800px) {
    .spell-book {
        transform: scale(0.7);
    }
    
    .spell-modal-close {
        top: -60px;
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 500px) {
    .spell-book {
        transform: scale(0.5);
    }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.arcane-footer {
    text-align: center;
    padding: 3rem 2rem;
    background: #000000;
    margin-top: 0;
}

.footer-runes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-rune {
    width: 10px;
    height: 10px;
    border: 1px solid var(--golden-rune);
    transform: rotate(45deg);
    opacity: 0.6;
    animation: twinkle 2s ease-in-out infinite;
}

.footer-rune.center {
    width: 14px;
    height: 14px;
    background: rgba(212, 175, 55, 0.3);
}

.footer-rune:nth-child(2) { animation-delay: 0.2s; }
.footer-rune:nth-child(3) { animation-delay: 0.4s; }
.footer-rune:nth-child(4) { animation-delay: 0.6s; }
.footer-rune:nth-child(5) { animation-delay: 0.8s; }

.footer-text {
    font-family: 'Cinzel', serif;
    color: var(--pale-gold);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-blessing {
    color: var(--crystal-cyan);
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */


@media (max-width: 768px) {
    .arcane-header {
        padding: 0.8rem 1rem;
    }
    
    .crystal-orb {
        display: none;
    }
    
    .mystic-nav {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-rune {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .arcane-title {
        font-size: 2.5rem;
    }
    
    .mystical-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .crystal-ball {
        width: 180px;
        height: 180px;
    }
    
    .ancient-book {
        flex-direction: column;
        transform: none;
    }
    
    .book-page {
        width: 100%;
        max-width: 350px;
        min-height: auto;
        padding: 2rem;
    }
    
    .book-spine {
        width: 100%;
        height: 15px;
    }
    
    .left-page {
        border-radius: 5px 5px 0 0;
    }
    
    .right-page {
        border-radius: 0 0 5px 5px;
    }
    
}

@media (max-width: 480px) {
    .spell-grid {
        grid-template-columns: 1fr;
    }
}
