* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-primary: #7c3aed;
    --purple-light: #c084fc;
    --purple-dark: #5b21b6;
    --bg-darkest: #0a0118;
    --bg-dark: #1a0b2e;
    --bg-medium: #2d1b4e;
    --text-light: #e9d5ff;
    --text-medium: #c4b5fd;
    --accent-glow: rgba(192, 132, 252, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-darkest) 0%, var(--bg-dark) 50%, var(--bg-medium) 100%);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.7;
}

/* Age Gate */
.age-gate {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(45, 27, 78, 0.98), rgba(10, 1, 24, 0.98));
    backdrop-filter: blur(15px);
}

.age-gate.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gate-content {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-medium));
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    margin: 2rem;
    border: 2px solid var(--purple-light);
    box-shadow: 0 0 60px rgba(192, 132, 252, 0.4), inset 0 0 30px rgba(192, 132, 252, 0.1);
}

.gate-symbol {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.gate-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--purple-light);
    font-weight: 900;
}

.gate-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.gate-query {
    font-weight: 600;
    color: var(--text-light);
    margin-top: 2.5rem;
    font-size: 1.4rem;
}

.gate-options {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    justify-content: center;
}

.gate-options button {
    padding: 1.3rem 2.8rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn-enter {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-light));
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
}

.btn-enter:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 35px rgba(124, 58, 237, 0.7);
}

.btn-leave {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-leave:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Site Container */
.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, rgba(26, 11, 46, 0.95), rgba(45, 27, 78, 0.95));
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--purple-light);
    box-shadow: 0 4px 30px rgba(192, 132, 252, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.site-logo {
    width: 55px;
    height: 55px;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--purple-light);
    letter-spacing: 3px;
}

.nav-trigger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: var(--purple-primary);
    border: none;
    padding: 0.9rem;
    border-radius: 10px;
    cursor: pointer;
}

.nav-trigger span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.primary-nav {
    display: flex;
    gap: 2rem;
}

.nav-item {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-light);
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-item.active {
    color: var(--purple-light);
}

/* Main Area */
.main-area {
    flex: 1;
    padding: 3rem 0;
}

/* Welcome Banner */
.welcome-banner {
    text-align: center;
    padding: 6rem 2rem;
    background: radial-gradient(ellipse at center, var(--accent-glow), transparent);
    margin-bottom: 4rem;
}

.welcome-banner.compact {
    padding: 4rem 2rem;
}

.welcome-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--purple-light);
    text-shadow: 0 0 30px rgba(192, 132, 252, 0.5);
}

.welcome-banner p {
    font-size: 1.6rem;
    color: var(--text-medium);
    font-weight: 300;
}

/* Content Block */
.content-block {
    max-width: 1300px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

.content-block h3 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--purple-light);
    text-align: center;
    margin-bottom: 1rem;
}

.block-divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
    margin: 0 auto 3rem;
}

.intro-block p {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    color: var(--text-medium);
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Pillars */
.pillars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.pillar-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(192, 132, 252, 0.05));
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--purple-light);
    box-shadow: 0 10px 40px rgba(192, 132, 252, 0.15);
    transition: all 0.4s ease;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(192, 132, 252, 0.3);
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.pillar-icon {
    font-size: 3rem;
}

.pillar-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--purple-light);
    font-weight: 700;
}

.pillar-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-medium);
}

/* Game Block */
.game-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
}

.game-window {
    background: var(--bg-darkest);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--purple-light);
    box-shadow: 0 0 50px rgba(192, 132, 252, 0.3), inset 0 0 30px rgba(192, 132, 252, 0.1);
    max-width: 1100px;
    margin: 0 auto;
}

.game-window iframe {
    width: 100%;
    height: 700px;
    display: block;
    border: none;
}

/* Features Layout */
.features-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    background: rgba(192, 132, 252, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--purple-light);
}

.feature-item h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--purple-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

/* Guide Grid */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.guide-entry {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(192, 132, 252, 0.03));
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(192, 132, 252, 0.2);
}

.guide-symbol {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.guide-entry h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--purple-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.guide-entry p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
}

.critical-notice {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(192, 132, 252, 0.1));
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--purple-light);
    text-align: center;
}

.critical-notice p {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-light);
}

/* Legal Content */
.legal-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.term-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(192, 132, 252, 0.03));
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(192, 132, 252, 0.3);
    box-shadow: 0 5px 25px rgba(192, 132, 252, 0.1);
}

.term-section.emphasis {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(192, 132, 252, 0.08));
    border: 2px solid var(--purple-light);
}

.term-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--purple-light);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.term-section p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
    color: var(--text-medium);
}

.term-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.term-section li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: var(--text-medium);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darkest));
    border-top: 1px solid var(--purple-light);
    padding: 4rem 2rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-inner h4 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--purple-light);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-inner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-medium);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--purple-light);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    background: rgba(192, 132, 252, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--purple-light);
}

.footer-nav a:hover {
    background: var(--purple-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.4);
}

.copyright {
    font-size: 0.95rem;
    color: rgba(233, 213, 255, 0.6);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-trigger {
        display: flex;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-dark);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--purple-light);
    }

    .primary-nav.active {
        display: flex;
    }

    .nav-item::after {
        display: none;
    }

    .welcome-banner h2 {
        font-size: 2.8rem;
    }

    .welcome-banner p {
        font-size: 1.2rem;
    }

    .content-block h3 {
        font-size: 2rem;
    }

    .pillars-container,
    .features-layout,
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .game-window iframe {
        height: 500px;
    }

    .gate-content {
        padding: 2.5rem;
    }

    .gate-options {
        flex-direction: column;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1.5rem;
    }
}
