* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --mystic-purple: #6b2d93;
    --deep-purple: #4a1f63;
    --gold: #d4af37;
    --light-gold: #f0e68c;
    --parchment: #f4f1e8;
    --text-dark: #2c1810;
    --text-dim: #5d4e37;
    --border: #b8a27d;
}

body {
    font-family: 'Merriweather', serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--parchment);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

.parchment-narrow {
    max-width: 850px;
}

/* Age Gate */
.gate-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(75, 31, 99, 0.95), rgba(107, 45, 147, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.gate-overlay.hidden {
    display: none;
}

.gate-box {
    background: var(--parchment);
    border: 4px solid var(--gold);
    border-radius: 8px;
    padding: 50px 45px;
    max-width: 520px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gate-icon {
    font-size: 4.5em;
    margin-bottom: 20px;
}

.gate-box h2 {
    font-family: 'Spectral', serif;
    font-size: 2.3em;
    font-weight: 800;
    color: var(--mystic-purple);
    margin-bottom: 25px;
}

.gate-box p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
}

.gate-note {
    color: var(--text-dim);
    font-size: 1em;
    font-style: italic;
}

.gate-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.gate-buttons button {
    flex: 1;
    padding: 16px 25px;
    font-family: 'Spectral', serif;
    font-size: 1.05em;
    font-weight: 600;
    border: 2px solid var(--gold);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.gate-enter {
    background: var(--mystic-purple);
    color: var(--parchment);
}

.gate-enter:hover {
    background: var(--deep-purple);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(107, 45, 147, 0.4);
}

.gate-leave {
    background: transparent;
    color: var(--text-dark);
}

.gate-leave:hover {
    background: rgba(107, 45, 147, 0.1);
}

/* Header */
.page-header {
    background: linear-gradient(135deg, var(--mystic-purple), var(--deep-purple));
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    font-size: 2.2em;
}

.brand-text {
    font-family: 'Spectral', serif;
    font-size: 2em;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-list a {
    color: var(--parchment);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.05em;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--light-gold);
}

/* Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-line {
    width: 30px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Intro Banner */
.intro-banner {
    background: linear-gradient(to bottom, rgba(107, 45, 147, 0.1), transparent);
    padding: 90px 0;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}

.intro-banner h1 {
    font-family: 'Spectral', serif;
    font-size: 4em;
    font-weight: 800;
    color: var(--mystic-purple);
    margin-bottom: 25px;
}

.intro-lead {
    font-size: 1.3em;
    max-width: 850px;
    margin: 0 auto 40px;
    line-height: 1.8;
    color: var(--text-dark);
}

.arcane-seals {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background: white;
    border: 2px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.seal-symbol {
    font-size: 2.5em;
}

.seal-label {
    font-family: 'Spectral', serif;
    font-weight: 600;
    font-size: 1.05em;
    color: var(--mystic-purple);
}

/* Game Chamber */
.game-chamber {
    padding: 80px 0;
    background: white;
}

.game-chamber h2 {
    font-family: 'Spectral', serif;
    font-size: 2.8em;
    font-weight: 800;
    color: var(--mystic-purple);
    text-align: center;
    margin-bottom: 20px;
}

.chamber-intro {
    text-align: center;
    font-size: 1.15em;
    max-width: 750px;
    margin: 0 auto 40px;
    color: var(--text-dim);
}

.game-box {
    border: 3px solid var(--gold);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(107, 45, 147, 0.2);
}

.game-portal {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

/* Virtues Section */
.virtues {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--parchment), rgba(244, 241, 232, 0.5));
}

.virtues h2 {
    font-family: 'Spectral', serif;
    font-size: 2.8em;
    font-weight: 800;
    color: var(--mystic-purple);
    text-align: center;
    margin-bottom: 60px;
}

.virtue-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.virtue-card {
    background: white;
    padding: 40px 30px;
    border: 2px solid var(--border);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.virtue-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(107, 45, 147, 0.15);
    transform: translateY(-5px);
}

.virtue-symbol {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.virtue-card h3 {
    font-family: 'Spectral', serif;
    font-size: 1.7em;
    font-weight: 700;
    color: var(--mystic-purple);
    margin-bottom: 15px;
}

.virtue-card p {
    line-height: 1.8;
    color: var(--text-dark);
}

/* Chronicle Section */
.chronicle {
    padding: 80px 0;
    background: white;
}

.chronicle-scroll {
    max-width: 850px;
    margin: 0 auto;
    padding: 50px;
    background: var(--parchment);
    border: 3px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.chronicle-scroll h2 {
    font-family: 'Spectral', serif;
    font-size: 2.5em;
    font-weight: 800;
    color: var(--mystic-purple);
    margin-bottom: 30px;
    text-align: center;
}

.chronicle-scroll p {
    font-size: 1.15em;
    line-height: 1.9;
    margin-bottom: 25px;
    text-align: justify;
}

/* Play Page */
.play-intro {
    background: linear-gradient(to bottom, rgba(107, 45, 147, 0.1), transparent);
    padding: 80px 0;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}

.play-intro h1 {
    font-family: 'Spectral', serif;
    font-size: 3.5em;
    font-weight: 800;
    color: var(--mystic-purple);
    margin-bottom: 15px;
}

.play-area {
    padding: 80px 0;
    background: white;
}

.spell-book {
    background: var(--parchment);
    border: 3px solid var(--gold);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 40px;
}

.spell-book h2 {
    font-family: 'Spectral', serif;
    font-size: 2.3em;
    font-weight: 700;
    color: var(--mystic-purple);
    margin-bottom: 30px;
    text-align: center;
}

.instruction-scroll {
    margin-bottom: 30px;
}

.scroll-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.scroll-rune {
    font-family: 'Spectral', serif;
    font-size: 2em;
    font-weight: 700;
    color: var(--gold);
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.scroll-item p {
    flex: 1;
    font-size: 1.05em;
    line-height: 1.6;
}

.spell-warning {
    background: #fff8dc;
    border: 2px solid var(--gold);
    padding: 20px;
    border-radius: 6px;
}

/* Parchment (Legal Pages) */
.parchment {
    padding: 80px 0;
    background: white;
}

.parchment h1 {
    font-family: 'Spectral', serif;
    font-size: 3.5em;
    font-weight: 800;
    color: var(--mystic-purple);
    margin-bottom: 15px;
}

.parchment-date {
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 40px;
}

.parchment h2 {
    font-family: 'Spectral', serif;
    font-size: 2em;
    font-weight: 700;
    color: var(--mystic-purple);
    margin-top: 40px;
    margin-bottom: 15px;
}

.parchment p,
.parchment li {
    font-size: 1.05em;
    line-height: 1.9;
    margin-bottom: 18px;
}

.parchment ul {
    margin-left: 35px;
    margin-bottom: 25px;
}

.warning-scroll {
    background: #fff0f0;
    border: 3px solid #dc3545;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

.warning-scroll h2 {
    color: #dc3545;
    margin-top: 0;
}

/* Footer */
.page-footer {
    background: linear-gradient(135deg, var(--mystic-purple), var(--deep-purple));
    color: var(--parchment);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-family: 'Spectral', serif;
    font-size: 1.6em;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: var(--parchment);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: var(--light-gold);
}

.footer-seal {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: rgba(244, 241, 232, 0.8);
}

/* Mobile */
@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 260px;
        height: calc(100vh - 80px);
        background: var(--deep-purple);
        flex-direction: column;
        padding: 35px 25px;
        gap: 25px;
        transition: right 0.3s;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4);
    }

    .nav-list.active {
        right: 0;
    }

    .intro-banner h1 {
        font-size: 2.5em;
    }

    .intro-lead {
        font-size: 1.15em;
    }

    .arcane-seals {
        flex-direction: column;
        align-items: center;
    }

    .game-chamber h2,
    .virtues h2 {
        font-size: 2.2em;
    }

    .game-portal {
        height: 400px;
    }

    .virtue-cards {
        grid-template-columns: 1fr;
    }

    .chronicle-scroll {
        padding: 30px 25px;
    }

    .gate-box {
        margin: 20px;
        padding: 35px 25px;
    }

    .gate-buttons {
        flex-direction: column;
    }
}
