* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background: radial-gradient(ellipse at center, #1A0033 0%, #0D001A 100%);
    color: #E1BEE7;
    line-height: 1.7;
    min-height: 100vh;
}

/* Header */
.primary-header {
    background: linear-gradient(135deg, #4A148C 0%, #6A1B9A 100%);
    border-bottom: 2px solid #9C27B0;
    box-shadow: 0 4px 20px rgba(156, 39, 176, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-bar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-title {
    font-family: 'Cinzel', serif;
    font-size: 1.9rem;
    font-weight: 900;
    color: #E1BEE7;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(156, 39, 176, 0.8);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.toggle-bar {
    width: 28px;
    height: 3px;
    background: #E1BEE7;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-list a {
    color: #E1BEE7;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    position: relative;
}

.nav-list a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #CE93D8;
    transition: width 0.3s;
}

.nav-list a:hover {
    color: #CE93D8;
}

.nav-list a:hover::before {
    width: 100%;
}

/* Age Modal */
.age-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.age-modal.hidden {
    display: none;
}

.age-modal-box {
    background: linear-gradient(135deg, #4A148C 0%, #6A1B9A 100%);
    border: 3px solid #9C27B0;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 60px rgba(156, 39, 176, 0.7);
}

.age-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.age-modal-box h2 {
    font-family: 'Cinzel', serif;
    color: #E1BEE7;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.age-modal-box p {
    color: #CE93D8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.age-prompt {
    font-weight: 700;
    font-size: 1.2rem !important;
    margin-top: 1.5rem !important;
}

.age-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.age-accept, .age-reject {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Raleway', sans-serif;
}

.age-accept {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
}

.age-accept:hover {
    background: linear-gradient(135deg, #AB47BC 0%, #8E24AA 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.5);
}

.age-reject {
    background: rgba(255, 255, 255, 0.1);
    color: #E1BEE7;
}

.age-reject:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero */
.mystical-hero {
    padding: 6rem 2rem;
    position: relative;
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.3) 0%, rgba(106, 27, 154, 0.2) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><circle cx="200" cy="150" r="100" fill="rgba(156,39,176,0.1)"/><circle cx="900" cy="600" r="150" fill="rgba(156,39,176,0.08)"/><circle cx="1000" cy="200" r="80" fill="rgba(156,39,176,0.12)"/></svg>');
    pointer-events: none;
}

.hero-box {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.mystical-badge {
    display: inline-block;
    background: rgba(156, 39, 176, 0.3);
    border: 2px solid #9C27B0;
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    font-weight: 700;
    color: #CE93D8;
    margin-bottom: 2rem;
}

.mystical-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.8rem;
    color: #E1BEE7;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(156, 39, 176, 0.8);
}

.hero-tagline {
    font-size: 1.4rem;
    color: #CE93D8;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.feature-chip {
    background: rgba(156, 39, 176, 0.2);
    border: 2px solid #7B1FA2;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    color: #E1BEE7;
    font-weight: 600;
}

.mystical-cta {
    display: inline-block;
    padding: 1.3rem 3rem;
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 8px 30px rgba(156, 39, 176, 0.5);
    transition: all 0.3s;
}

.mystical-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(156, 39, 176, 0.7);
}

/* Content Sections */
.content-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.heading-accent {
    display: block;
    color: #9C27B0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.section-heading h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    color: #E1BEE7;
    margin-bottom: 1rem;
}

/* Introduction */
.introduction {
    padding: 5rem 2rem;
    background: rgba(74, 20, 140, 0.1);
}

.intro-text p {
    font-size: 1.15rem;
    color: #CE93D8;
    margin-bottom: 1.8rem;
    line-height: 1.9;
}

/* Core Principles */
.core-principles {
    padding: 5rem 2rem;
}

.principles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.principle-card {
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid;
    transition: all 0.3s;
}

.purple-card {
    background: rgba(156, 39, 176, 0.15);
    border-color: #9C27B0;
}

.indigo-card {
    background: rgba(103, 58, 183, 0.15);
    border-color: #673AB7;
}

.violet-card {
    background: rgba(142, 36, 170, 0.15);
    border-color: #8E24AA;
}

.principle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(156, 39, 176, 0.4);
}

.principle-symbol {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.principle-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: #E1BEE7;
    margin-bottom: 1rem;
}

.principle-card p {
    color: #CE93D8;
    line-height: 1.8;
}

/* Featured Game */
.featured-game {
    padding: 5rem 2rem;
    background: rgba(74, 20, 140, 0.1);
}

.game-description {
    text-align: center;
    font-size: 1.2rem;
    color: #CE93D8;
    margin-bottom: 3rem;
}

.game-display {
    background: rgba(0, 0, 0, 0.3);
    border: 3px solid #9C27B0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 40px rgba(156, 39, 176, 0.3);
}

.game-viewport {
    width: 100%;
    height: 650px;
    border: none;
}

.game-guidance {
    background: rgba(156, 39, 176, 0.1);
    border: 2px solid #7B1FA2;
    padding: 2.5rem;
    border-radius: 15px;
}

.game-guidance h3 {
    font-family: 'Cinzel', serif;
    color: #E1BEE7;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.game-guidance p {
    color: #CE93D8;
    margin-bottom: 1.3rem;
    line-height: 1.8;
}

.game-expand {
    display: inline-block;
    margin-top: 1rem;
    color: #AB47BC;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.game-expand:hover {
    color: #CE93D8;
    transform: translateX(5px);
}

/* Advantages */
.mystryxon-advantages {
    padding: 5rem 2rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.advantage-tile {
    background: rgba(156, 39, 176, 0.1);
    border: 2px solid #7B1FA2;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
}

.advantage-tile:hover {
    background: rgba(156, 39, 176, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.3);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.advantage-tile h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #E1BEE7;
    margin-bottom: 1rem;
}

.advantage-tile p {
    color: #CE93D8;
    line-height: 1.7;
}

/* Mindful Gaming */
.mindful-gaming {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.08) 100%);
    border-top: 3px solid rgba(255, 193, 7, 0.3);
    border-bottom: 3px solid rgba(255, 193, 7, 0.3);
}

.mindful-panel h2 {
    font-family: 'Cinzel', serif;
    color: #FFD54F;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.mindful-panel p {
    color: #E1BEE7;
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1.3rem;
}

/* Footer */
.primary-footer {
    background: linear-gradient(135deg, #311B92 0%, #4A148C 100%);
    border-top: 2px solid #9C27B0;
    padding: 3rem 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-family: 'Cinzel', serif;
    color: #CE93D8;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.footer-column p, .footer-column ul {
    color: #E1BEE7;
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.7rem;
}

.footer-column a {
    color: #E1BEE7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #CE93D8;
}

.footer-notice {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(156, 39, 176, 0.3);
    color: #BA68C8;
}

/* Play Page */
.play-main {
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

.play-content {
    max-width: 1600px;
    margin: 0 auto;
}

.play-title-area {
    text-align: center;
    margin-bottom: 3rem;
}

.play-title-area h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    color: #E1BEE7;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(156, 39, 176, 0.8);
}

.play-title-area p {
    font-size: 1.3rem;
    color: #CE93D8;
}

.play-game-area {
    background: rgba(0, 0, 0, 0.3);
    border: 3px solid #9C27B0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(156, 39, 176, 0.3);
}

.full-game-frame {
    width: 100%;
    height: 750px;
    border: none;
}

.play-guide {
    background: rgba(156, 39, 176, 0.1);
    border: 2px solid #7B1FA2;
    padding: 3rem;
    border-radius: 15px;
}

.play-guide h2 {
    font-family: 'Cinzel', serif;
    color: #E1BEE7;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.guide-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.guide-section h3 {
    color: #CE93D8;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.guide-section p {
    color: #E1BEE7;
    line-height: 1.8;
}

/* Legal Pages */
.legal-main {
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

.legal-box {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(74, 20, 140, 0.2);
    border: 2px solid #9C27B0;
    padding: 3rem;
    border-radius: 20px;
}

.legal-box h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #E1BEE7;
    margin-bottom: 0.5rem;
}

.date-stamp {
    color: #BA68C8;
    font-style: italic;
    margin-bottom: 3rem;
}

.legal-article {
    margin-bottom: 2.5rem;
}

.legal-article h2 {
    font-family: 'Cinzel', serif;
    color: #CE93D8;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.legal-article h3 {
    color: #AB47BC;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.legal-article p {
    color: #E1BEE7;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.legal-article ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-article ul li {
    color: #CE93D8;
    margin-bottom: 0.7rem;
    line-height: 1.8;
}

.warning-notice {
    background: rgba(244, 67, 54, 0.15);
    border: 3px solid rgba(244, 67, 54, 0.5);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 3rem;
}

.notice-symbol {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.warning-notice h2 {
    color: #EF5350;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.final-warning {
    background: rgba(255, 193, 7, 0.15);
    border: 3px solid rgba(255, 193, 7, 0.4);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 3rem;
}

.final-warning h3 {
    color: #FFD54F;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        left: -100%;
        top: 75px;
        flex-direction: column;
        background: #4A148C;
        width: 100%;
        padding: 2rem;
        transition: left 0.3s ease;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        padding: 1rem 0;
        text-align: center;
    }

    .mystical-hero h1, .play-title-area h1 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .principles-container, .advantages-grid, .guide-sections {
        grid-template-columns: 1fr;
    }

    .game-viewport, .full-game-frame {
        height: 500px;
    }

    .legal-box, .play-guide {
        padding: 1.5rem;
    }

    .legal-box h1 {
        font-size: 2rem;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .age-modal-box {
        margin: 1rem;
        padding: 2rem;
    }

    .age-actions {
        flex-direction: column;
    }
}
