@import url('https://fonts.googleapis.com/css2?family=Philosopher:wght@400;700&family=Nunito:wght@300;400;600;700&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --forest: #14532d;
    --moss: #166534;
    --amber: #d97706;
    --gold-leaf: #fbbf24;
    --parchment: #fef3c7;
    --stone: #44403c;
    --cream: #fffbeb;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--parchment);
    color: var(--stone);
    line-height: 1.8;
}

.mytho-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--forest);
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.header-frame {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mytho-brand {
    font-family: 'Philosopher', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--gold-leaf);
    text-decoration: none;
    letter-spacing: 2px;
}

.menu-toggle {
    display: none;
    background: var(--amber);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
}

.mytho-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.mytho-nav a {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--parchment);
    text-decoration: none;
    transition: color 0.3s;
}

.mytho-nav a:hover {
    color: var(--gold-leaf);
}

.scroll-content {
    padding-top: 70px;
}

.legend-intro {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 2rem;
    background: 
        linear-gradient(180deg, var(--forest) 0%, var(--moss) 50%, var(--forest) 100%);
}

.legend-intro h1 {
    font-family: 'Philosopher', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold-leaf);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.legend-intro .tale {
    font-family: 'Philosopher', serif;
    font-size: 1.4rem;
    color: var(--parchment);
    font-style: italic;
    margin-bottom: 2rem;
}

.intro-scroll {
    max-width: 700px;
    font-size: 1.1rem;
    color: rgba(254, 243, 199, 0.9);
    margin-bottom: 3rem;
}

.legend-seals {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.seal {
    background: rgba(254, 243, 199, 0.15);
    border: 2px solid var(--gold-leaf);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold-leaf);
}

.chapter {
    max-width: 1300px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.chapter-title {
    font-family: 'Philosopher', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--forest);
    margin-bottom: 3rem;
}

.chapter-title span {
    color: var(--amber);
}

.artifact-frame {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border: 4px solid var(--forest);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(20, 83, 45, 0.2);
    background: var(--forest);
}

.artifact-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.relic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
}

.relic-card {
    background: var(--cream);
    border: 2px solid var(--moss);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.relic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(20, 83, 45, 0.15);
}

.relic-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.relic-card h3 {
    font-family: 'Philosopher', serif;
    font-size: 1.4rem;
    color: var(--forest);
    margin-bottom: 1rem;
}

.relic-card p {
    color: var(--stone);
    font-size: 0.95rem;
}

.scroll-panel {
    background: var(--cream);
    border-left: 5px solid var(--amber);
    border-radius: 0 15px 15px 0;
    padding: 2.5rem;
    margin: 2rem 0;
}

.scroll-panel h2 {
    font-family: 'Philosopher', serif;
    font-size: 1.7rem;
    color: var(--forest);
    margin-bottom: 1.5rem;
}

.scroll-panel p {
    color: var(--stone);
    margin-bottom: 1rem;
}

.scroll-panel ul {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--stone);
}

.scroll-panel li {
    margin-bottom: 0.5rem;
}

.mytho-footer {
    background: var(--forest);
    padding: 3rem 2rem;
    text-align: center;
}

.realm-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.realm-links a {
    color: var(--gold-leaf);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.realm-links a:hover {
    color: var(--parchment);
}

.footer-lore {
    color: var(--parchment);
    font-size: 0.85rem;
    opacity: 0.8;
}

.gate-veil {
    position: fixed;
    inset: 0;
    background: rgba(20, 83, 45, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gate-scroll {
    background: var(--parchment);
    border: 3px solid var(--gold-leaf);
    border-radius: 20px;
    padding: 3.5rem;
    text-align: center;
    max-width: 500px;
    margin: 1rem;
}

.gate-scroll h2 {
    font-family: 'Philosopher', serif;
    font-size: 1.8rem;
    color: var(--forest);
    margin-bottom: 1rem;
}

.gate-scroll p {
    color: var(--stone);
    margin-bottom: 2.5rem;
}

.gate-choices {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.gate-btn {
    font-family: 'Nunito', sans-serif;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.gate-btn.enter {
    background: var(--forest);
    color: var(--gold-leaf);
    border: none;
}

.gate-btn.leave {
    background: transparent;
    border: 2px solid var(--stone);
    color: var(--stone);
}

.gate-btn:hover {
    transform: scale(1.05);
}

.sealed {
    display: none !important;
}

.page-banner {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--forest), var(--moss));
}

.page-banner h1 {
    font-family: 'Philosopher', serif;
    font-size: 3rem;
    color: var(--gold-leaf);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.chronicle-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--cream);
}

.chronicle-content h2 {
    font-family: 'Philosopher', serif;
    color: var(--forest);
    margin: 2.5rem 0 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--amber);
    padding-bottom: 0.5rem;
}

.chronicle-content p {
    color: var(--stone);
    margin-bottom: 1rem;
    line-height: 1.9;
}

.guide-note {
    background: rgba(217, 119, 6, 0.15);
    border-left: 4px solid var(--amber);
    border-radius: 0 10px 10px 0;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.guide-note strong {
    color: var(--forest);
}

@media (max-width: 1024px) {
    .relic-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .mytho-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--forest);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        display: none;
        border-bottom: 2px solid var(--gold-leaf);
    }

    .mytho-nav.active {
        display: flex;
    }

    .mytho-nav li {
        padding: 1rem;
        border-bottom: 1px solid rgba(254, 243, 199, 0.2);
    }

    .legend-intro h1 {
        font-size: 2.5rem;
    }

    .legend-intro .tale {
        font-size: 1.1rem;
    }

    .legend-seals {
        flex-direction: column;
        align-items: center;
    }

    .gate-choices {
        flex-direction: column;
    }

    .gate-btn {
        width: 100%;
    }
}
