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

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.75;
    color: #e6e6e6;
    background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 50%, #8e24aa 100%);
    min-height: 100vh;
}

.main-header {
    background: rgba(26, 5, 45, 0.95);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    border-bottom: 2px solid rgba(186, 104, 200, 0.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-symbol {
    font-size: 2.5rem;
}

.brand-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ba68c8;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-anchor {
    color: #d1c4e9;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-anchor::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ba68c8, #ce93d8);
    transition: width 0.3s ease;
}

.nav-anchor:hover,
.nav-anchor.active {
    color: #ba68c8;
}

.nav-anchor:hover::before,
.nav-anchor.active::before {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.toggle-line {
    width: 28px;
    height: 3px;
    background: #ba68c8;
    border-radius: 3px;
    transition: 0.3s;
}

.grand-banner {
    background: linear-gradient(135deg, rgba(26, 5, 45, 0.9), rgba(74, 20, 140, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%234a148c" width="1200" height="600"/></svg>');
    padding: 6rem 2rem;
    text-align: center;
    margin: 2rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.banner-content h2 {
    font-size: 3.8rem;
    color: #ba68c8;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(186, 104, 200, 0.5);
}

.tagline {
    font-size: 1.3rem;
    color: #d1c4e9;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    line-height: 1.9;
}

.spell-button {
    display: inline-block;
    padding: 1.3rem 3.5rem;
    background: linear-gradient(135deg, #ba68c8 0%, #8e24aa 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 30px rgba(186, 104, 200, 0.4);
    border: 2px solid rgba(206, 147, 216, 0.5);
}

.spell-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(186, 104, 200, 0.6);
    background: linear-gradient(135deg, #ce93d8 0%, #ba68c8 100%);
}

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

.proclamation {
    background: rgba(26, 5, 45, 0.9);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid;
    transition: transform 0.3s ease;
}

.proclamation:hover {
    transform: translateY(-8px);
}

.proclamation-gold {
    border-color: #ffd700;
}

.proclamation-purple {
    border-color: #ba68c8;
}

.proclamation-crimson {
    border-color: #e91e63;
}

.proclamation-symbol {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
}

.proclamation h3 {
    font-size: 1.6rem;
    color: #ba68c8;
    margin-bottom: 1rem;
    font-weight: 700;
}

.proclamation p {
    color: #d1c4e9;
    line-height: 1.8;
}

.mystic-intro {
    margin: 2rem;
}

.intro-wrapper {
    background: rgba(26, 5, 45, 0.9);
    padding: 5rem 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.intro-wrapper h2 {
    font-size: 3rem;
    color: #ba68c8;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(186, 104, 200, 0.5);
}

.intro-text {
    font-size: 1.15rem;
    color: #d1c4e9;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 2rem;
    line-height: 1.9;
}

.virtue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.virtue-box {
    background: rgba(74, 20, 140, 0.6);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(186, 104, 200, 0.3);
    transition: transform 0.3s ease;
}

.virtue-box:hover {
    transform: translateY(-5px);
    border-color: #ba68c8;
}

.virtue-emblem {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.virtue-box h3 {
    font-size: 1.4rem;
    color: #ce93d8;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.virtue-box p {
    color: #d1c4e9;
    line-height: 1.8;
}

.enchanted-game {
    margin: 2rem;
}

.game-section-wrapper {
    background: rgba(26, 5, 45, 0.9);
    padding: 5rem 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.game-section-wrapper h2 {
    font-size: 3rem;
    color: #ba68c8;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(186, 104, 200, 0.5);
}

.game-intro {
    text-align: center;
    font-size: 1.15rem;
    color: #d1c4e9;
    margin-bottom: 3rem;
}

.game-portal {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    border: 3px solid rgba(186, 104, 200, 0.3);
}

.game-canvas {
    width: 100%;
    height: 650px;
    border: none;
    display: block;
}

.game-warning {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #d1c4e9;
}

.journey-guide {
    margin: 2rem;
}

.guide-wrapper {
    background: rgba(26, 5, 45, 0.9);
    padding: 5rem 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.guide-wrapper h2 {
    font-size: 3rem;
    color: #ba68c8;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(186, 104, 200, 0.5);
}

.pathway {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.waypoint {
    text-align: center;
}

.waypoint-marker {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.marker-one {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
}

.marker-two {
    background: linear-gradient(135deg, #ba68c8 0%, #8e24aa 100%);
}

.marker-three {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
}

.waypoint h3 {
    font-size: 1.6rem;
    color: #ce93d8;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.waypoint p {
    color: #d1c4e9;
    line-height: 1.8;
}

.realm-footer {
    background: rgba(26, 5, 45, 0.95);
    padding: 4rem 2rem 1.5rem;
    margin: 2rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-top: 3px solid rgba(186, 104, 200, 0.3);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-block h4 {
    color: #ba68c8;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-block p {
    color: #d1c4e9;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #d1c4e9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ba68c8;
}

.footer-seal {
    border-top: 1px solid rgba(186, 104, 200, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: #9575cd;
}

.age-portal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.age-portal.hidden {
    display: none;
}

.portal-card {
    background: rgba(26, 5, 45, 0.98);
    padding: 4rem;
    border-radius: 25px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9);
    border: 3px solid #ba68c8;
}

.portal-symbol {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.portal-card h2 {
    font-size: 2.5rem;
    color: #ba68c8;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(186, 104, 200, 0.5);
}

.portal-card p {
    color: #d1c4e9;
    margin-bottom: 2.5rem;
    line-height: 1.9;
    font-size: 1.05rem;
}

.portal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.portal-button {
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portal-button.accept {
    background: linear-gradient(135deg, #ba68c8 0%, #8e24aa 100%);
    color: #fff;
    border: 2px solid rgba(206, 147, 216, 0.5);
}

.portal-button.accept:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(186, 104, 200, 0.5);
}

.portal-button.decline {
    background: #424242;
    color: #fff;
}

.portal-button.decline:hover {
    background: #212121;
}

.scroll-header {
    background: rgba(26, 5, 45, 0.9);
    padding: 4rem 2rem;
    margin: 2rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.scroll-header-content h2 {
    font-size: 3.5rem;
    color: #ba68c8;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(186, 104, 200, 0.5);
}

.scroll-date {
    color: #d1c4e9;
    font-size: 1.15rem;
}

.scroll-body {
    margin: 2rem;
}

.scroll-container {
    background: rgba(26, 5, 45, 0.9);
    padding: 4rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.sacred-text h3 {
    font-size: 2rem;
    color: #ba68c8;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.sacred-text h3:first-child {
    margin-top: 0;
}

.sacred-text p,
.sacred-text li {
    color: #d1c4e9;
    line-height: 1.9;
}

.sacred-text ul {
    margin: 1rem 0 1rem 2rem;
}

.sacred-text li {
    margin-bottom: 0.7rem;
}

.sacred-text a {
    color: #ce93d8;
    text-decoration: none;
}

.sacred-text a:hover {
    text-decoration: underline;
}

.play-banner {
    background: rgba(26, 5, 45, 0.9);
    padding: 4rem 2rem;
    margin: 2rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.play-banner-content h2 {
    font-size: 3.5rem;
    color: #ba68c8;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(186, 104, 200, 0.5);
}

.play-banner-content p {
    font-size: 1.2rem;
    color: #d1c4e9;
}

.play-realm {
    margin: 2rem;
}

.play-realm-wrapper {
    background: rgba(26, 5, 45, 0.9);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.game-portal-large {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    border: 3px solid rgba(186, 104, 200, 0.3);
}

.game-canvas-large {
    width: 100%;
    height: 750px;
    border: none;
    display: block;
}

.play-guidance {
    margin: 2rem;
}

.guidance-wrapper {
    background: rgba(26, 5, 45, 0.9);
    padding: 5rem 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.guidance-wrapper h2 {
    font-size: 3rem;
    color: #ba68c8;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(186, 104, 200, 0.5);
}

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

.guidance-card {
    background: rgba(74, 20, 140, 0.6);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(186, 104, 200, 0.3);
}

.guidance-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.guidance-card h3 {
    font-size: 1.4rem;
    color: #ce93d8;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.guidance-card p {
    color: #d1c4e9;
    line-height: 1.8;
}

.play-caution {
    margin: 2rem;
}

.caution-panel {
    background: rgba(255, 215, 0, 0.15);
    border-left: 5px solid #ffd700;
    padding: 2.5rem;
    border-radius: 20px;
}

.caution-panel h3 {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 1rem;
    font-weight: 700;
}

.caution-panel p {
    color: #d1c4e9;
    line-height: 1.9;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 5, 45, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
        border-radius: 0 0 15px 15px;
    }
    
    .primary-nav.active {
        display: flex;
    }
    
    .nav-anchor {
        padding: 1rem;
        border-bottom: 1px solid rgba(186, 104, 200, 0.2);
    }
    
    .banner-content h2 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .game-canvas {
        height: 450px;
    }
    
    .game-canvas-large {
        height: 550px;
    }
    
    .intro-wrapper,
    .game-section-wrapper,
    .guide-wrapper,
    .guidance-wrapper,
    .scroll-container {
        padding: 3rem 1.5rem;
    }
}
