* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #e8e4f3;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
}

/* Age Overlay */
.age-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 41, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.age-overlay.hidden {
    display: none;
}

.age-box {
    max-width: 600px;
    padding: 20px;
}

.mystical-border {
    background: linear-gradient(135deg, rgba(48, 43, 99, 0.8) 0%, rgba(36, 36, 62, 0.8) 100%);
    padding: 50px;
    border-radius: 15px;
    border: 3px solid;
    border-image: linear-gradient(135deg, #a78bfa 0%, #c084fc 50%, #e879f9 100%) 1;
    text-align: center;
    box-shadow: 0 0 50px rgba(167, 139, 250, 0.5);
}

.mystical-border h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #c084fc;
    text-shadow: 0 0 20px rgba(192, 132, 252, 0.7);
}

.mystical-border p {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: #e8e4f3;
}

.age-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 35px;
}

.btn-enter, .btn-leave {
    padding: 16px 40px;
    font-size: 1.05rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    border: 2px solid;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-enter {
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    border-color: #c084fc;
    color: #0f0c29;
}

.btn-enter:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(192, 132, 252, 0.6);
}

.btn-leave {
    background: transparent;
    border-color: #ef4444;
    color: #ef4444;
}

.btn-leave:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-3px);
}

/* Site Wrapper */
.site-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(48, 43, 99, 0.6);
    backdrop-filter: blur(10px);
    border-right: 2px solid rgba(167, 139, 250, 0.3);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: left 0.3s ease;
}

.logo-area {
    padding: 40px 30px;
    border-bottom: 2px solid rgba(167, 139, 250, 0.3);
}

.mystical-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #c084fc;
    text-align: center;
    text-shadow: 0 0 15px rgba(192, 132, 252, 0.7);
}

.side-nav {
    padding: 30px 0;
}

.nav-link {
    display: block;
    padding: 15px 30px;
    color: #e8e4f3;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(167, 139, 250, 0.1);
    border-left-color: #c084fc;
    color: #c084fc;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: rgba(48, 43, 99, 0.9);
    border: 2px solid #c084fc;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.sidebar-toggle span {
    width: 25px;
    height: 3px;
    background: #c084fc;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    width: calc(100% - 280px);
}

/* Banner Section */
.banner-section {
    position: relative;
    padding: 120px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(232, 121, 249, 0.1) 100%);
    border-bottom: 2px solid rgba(167, 139, 250, 0.3);
    overflow: hidden;
}

.mystical-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.1) 0%, transparent 70%);
}

.banner-section h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #c084fc;
    text-shadow: 0 0 30px rgba(192, 132, 252, 0.7);
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.4rem;
    color: #ddd6fe;
    position: relative;
    z-index: 1;
}

/* Section Inner */
.section-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Intro Section */
.intro-section {
    padding: 100px 0;
}

.intro-section h2 {
    font-size: 3rem;
    color: #c084fc;
    text-align: center;
    margin-bottom: 40px;
}

.intro-section p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 25px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Pillars Section */
.pillars-section {
    padding: 100px 0;
    background: rgba(48, 43, 99, 0.2);
}

.pillars-section h2 {
    font-size: 3rem;
    color: #c084fc;
    text-align: center;
    margin-bottom: 60px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.pillar {
    padding: 45px 35px;
    border-radius: 12px;
    border: 2px solid;
    transition: transform 0.3s;
}

.pillar:hover {
    transform: translateY(-8px);
}

.pillar-first {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(192, 132, 252, 0.1) 100%);
    border-color: #a78bfa;
}

.pillar-second {
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.1) 0%, rgba(232, 121, 249, 0.1) 100%);
    border-color: #c084fc;
}

.pillar-third {
    background: linear-gradient(135deg, rgba(232, 121, 249, 0.1) 0%, rgba(251, 113, 133, 0.1) 100%);
    border-color: #e879f9;
}

.pillar-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.pillar h3 {
    font-size: 1.7rem;
    color: #c084fc;
    margin-bottom: 20px;
    text-align: center;
}

.pillar p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Game Realm */
.game-realm {
    padding: 100px 0;
}

.game-realm h2 {
    font-size: 3rem;
    color: #c084fc;
    text-align: center;
    margin-bottom: 20px;
}

.game-intro {
    font-size: 1.2rem;
    text-align: center;
    color: #ddd6fe;
    margin-bottom: 50px;
}

.game-frame-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 25px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid;
    border-image: linear-gradient(135deg, #a78bfa 0%, #c084fc 50%, #e879f9 100%) 1;
    box-shadow: 0 10px 50px rgba(192, 132, 252, 0.4);
}

.mystical-game-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.game-note {
    text-align: center;
    font-size: 1.1rem;
    color: #ddd6fe;
}

/* Essence Section */
.essence-section {
    padding: 100px 0;
    background: rgba(48, 43, 99, 0.2);
}

.essence-section h2 {
    font-size: 3rem;
    color: #c084fc;
    text-align: center;
    margin-bottom: 60px;
}

.essence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.essence-card {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.05) 0%, rgba(192, 132, 252, 0.05) 100%);
    padding: 40px 30px;
    border-radius: 12px;
    border: 2px solid rgba(167, 139, 250, 0.2);
    text-align: center;
    transition: all 0.3s;
}

.essence-card:hover {
    border-color: #c084fc;
    box-shadow: 0 5px 30px rgba(192, 132, 252, 0.3);
}

.essence-symbol {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.essence-card h3 {
    font-size: 1.5rem;
    color: #c084fc;
    margin-bottom: 15px;
}

.essence-card p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Wisdom Section */
.wisdom-section {
    padding: 100px 0;
}

.wisdom-scroll {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(232, 121, 249, 0.1) 100%);
    padding: 50px;
    border-radius: 12px;
    border: 2px solid #c084fc;
    max-width: 1100px;
    margin: 0 auto;
}

.wisdom-scroll h2 {
    font-size: 2.5rem;
    color: #c084fc;
    margin-bottom: 30px;
    text-align: center;
}

.wisdom-scroll p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

/* Page Banner */
.page-banner {
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(48, 43, 99, 0.6) 0%, rgba(36, 36, 62, 0.6) 100%);
    border-bottom: 2px solid rgba(167, 139, 250, 0.3);
}

.page-banner h1 {
    font-size: 3.5rem;
    color: #c084fc;
    margin-bottom: 15px;
}

.page-banner p {
    font-size: 1.2rem;
    color: #ddd6fe;
}

.date-text {
    font-size: 1rem;
    color: #a78bfa;
}

/* Full Game Section */
.full-game-section {
    padding: 0;
}

.game-chamber {
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border-top: 3px solid;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #a78bfa 0%, #c084fc 50%, #e879f9 100%) 1;
}

.full-game-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Guidance Section */
.guidance-section {
    padding: 100px 0;
}

.guidance-section h2 {
    font-size: 3rem;
    color: #c084fc;
    text-align: center;
    margin-bottom: 60px;
}

.guidance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.guidance-box {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.05) 0%, rgba(192, 132, 252, 0.05) 100%);
    padding: 40px 30px;
    border-radius: 12px;
    border: 2px solid rgba(167, 139, 250, 0.2);
    text-align: center;
}

.guidance-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.guidance-box h3 {
    font-size: 1.5rem;
    color: #c084fc;
    margin-bottom: 15px;
}

.guidance-box p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Reminder Section */
.reminder-section {
    padding: 80px 0;
}

.reminder-scroll {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    padding: 45px;
    border-radius: 12px;
    border: 2px solid rgba(239, 68, 68, 0.5);
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.reminder-scroll h3 {
    font-size: 2rem;
    color: #fca5a5;
    margin-bottom: 25px;
}

.reminder-scroll p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Text Section */
.text-section {
    padding: 80px 0;
}

.text-content h2 {
    font-size: 2.2rem;
    color: #c084fc;
    margin-top: 45px;
    margin-bottom: 20px;
}

.text-content p {
    font-size: 1.08rem;
    line-height: 1.9;
    margin-bottom: 22px;
}

/* Footer */
.realm-footer {
    background: rgba(48, 43, 99, 0.6);
    padding: 70px 0 30px;
    border-top: 2px solid rgba(167, 139, 250, 0.3);
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 45px;
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 40px;
}

.footer-section h4 {
    font-size: 1.4rem;
    color: #c084fc;
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #ddd6fe;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #e8e4f3;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #c084fc;
}

.footer-seal {
    text-align: center;
    padding: 25px 40px 0;
    border-top: 1px solid rgba(167, 139, 250, 0.2);
    color: #a78bfa;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .sidebar {
        left: -280px;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .banner-section h1,
    .page-banner h1 {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .intro-section h2,
    .pillars-section h2,
    .game-realm h2,
    .essence-section h2,
    .guidance-section h2 {
        font-size: 2.3rem;
    }

    .pillars-grid,
    .essence-grid,
    .guidance-grid {
        grid-template-columns: 1fr;
    }

    .game-frame-container {
        aspect-ratio: 4 / 3;
    }

    .game-chamber {
        height: 60vh;
        min-height: 400px;
    }

    .mystical-border {
        padding: 35px 25px;
    }

    .mystical-border h2 {
        font-size: 2rem;
    }

    .age-buttons {
        flex-direction: column;
    }

    .wisdom-scroll,
    .reminder-scroll {
        padding: 35px 25px;
    }
}
