@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lora:wght@400;500;600&display=swap');

:root {
    --mystic-purple: #6b4c9a;
    --deep-violet: #2d1b4e;
    --gold-accent: #ffd700;
    --parchment: #f4ebe0;
    --shadow-black: #1a1423;
    --sage: #7d9a6f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', serif;
    background: var(--parchment);
    color: var(--shadow-black);
    line-height: 1.8;
}

.top-bar {
    background: linear-gradient(to bottom, var(--deep-violet), var(--shadow-black));
    padding: 18px 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rune-logo {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-accent);
    text-decoration: none;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.rune-nav {
    display: flex;
    gap: 35px;
    list-style: none;
}

.rune-nav a {
    font-family: 'Cinzel', serif;
    color: var(--parchment);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.rune-nav a:hover {
    color: var(--gold-accent);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gold-accent);
    margin: 5px 0;
}

.mystical-hero {
    background: linear-gradient(135deg, var(--deep-violet) 0%, var(--mystic-purple) 50%, var(--shadow-black) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 25px;
    position: relative;
}

.mystical-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffd700' fill-opacity='0.05'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.hero-inner h1 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    line-height: 1.2;
}

.hero-inner p {
    font-size: 1.3rem;
    color: var(--parchment);
    margin-bottom: 45px;
    font-weight: 400;
}

.scroll-btn {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--gold-accent);
    color: var(--gold-accent);
    padding: 18px 55px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 3px;
    transition: all 0.4s;
}

.scroll-btn:hover {
    background: var(--gold-accent);
    color: var(--shadow-black);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.rune-notices {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.rune-notice {
    text-align: center;
    color: var(--parchment);
}

.rune-notice .glyph {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.rune-notice span {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.portal-section {
    padding: 100px 25px;
    background: var(--parchment);
}

.portal-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--deep-violet);
    margin-bottom: 50px;
}

.portal-frame {
    max-width: 1050px;
    margin: 0 auto;
    background: var(--deep-violet);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(45, 27, 78, 0.3);
}

.portal-frame iframe {
    width: 100%;
    height: 580px;
    border: none;
    border-radius: 12px;
    display: block;
}

.wisdom-section {
    padding: 100px 25px;
    background: linear-gradient(to bottom, var(--parchment), #e8dfd4);
}

.wisdom-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.wisdom-card {
    background: white;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--mystic-purple);
}

.wisdom-card .symbol {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.wisdom-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--deep-violet);
    margin-bottom: 15px;
}

.wisdom-card p {
    color: #555;
    font-size: 1rem;
}

.scroll-page {
    padding: 120px 25px 100px;
    min-height: 100vh;
    background: var(--parchment);
}

.scroll-content {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.scroll-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    color: var(--deep-violet);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--mystic-purple);
}

.scroll-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--mystic-purple);
    margin: 40px 0 20px;
}

.scroll-content p {
    margin-bottom: 18px;
    color: #444;
}

.scroll-content ul {
    margin: 15px 0 25px 25px;
    color: #444;
}

.scroll-content li {
    margin-bottom: 12px;
}

.realm-footer {
    background: var(--deep-violet);
    padding: 60px 25px;
    color: var(--parchment);
}

.footer-center {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 35px;
}

.footer-links a {
    font-family: 'Cinzel', serif;
    color: var(--gold-accent);
    text-decoration: none;
    margin: 0 18px;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.guardian-links {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.guardian-links p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.guardian-links a {
    color: var(--sage);
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.85rem;
}

.realm-copy {
    margin-top: 30px;
    font-size: 0.8rem;
    opacity: 0.6;
}

.gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 20, 35, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.gate-box {
    background: linear-gradient(145deg, var(--deep-violet), var(--mystic-purple));
    padding: 60px 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 480px;
    margin: 20px;
    border: 2px solid var(--gold-accent);
}

.gate-box h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold-accent);
    margin-bottom: 20px;
}

.gate-box p {
    color: var(--parchment);
    margin-bottom: 35px;
    line-height: 1.8;
}

.gate-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.gate-btn {
    font-family: 'Cinzel', serif;
    padding: 15px 35px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
}

.gate-btn.enter {
    background: var(--gold-accent);
    color: var(--shadow-black);
}

.gate-btn.leave {
    background: transparent;
    border: 2px solid var(--parchment);
    color: var(--parchment);
}

.gate-btn:hover {
    transform: scale(1.05);
}

.denied-gate h2 {
    color: #ff6b6b;
}

@media (max-width: 992px) {
    .wisdom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .rune-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--shadow-black);
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        gap: 20px;
        transform: translateY(-200%);
        transition: transform 0.3s;
    }
    
    .rune-nav.shown {
        transform: translateY(0);
    }
    
    .hero-inner h1 {
        font-size: 2.5rem;
    }
    
    .rune-notices {
        flex-direction: column;
        gap: 30px;
    }
    
    .portal-frame iframe {
        height: 380px;
    }
    
    .scroll-content {
        padding: 40px 25px;
    }
    
    .gate-buttons {
        flex-direction: column;
    }
}
