@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --cosmic-purple: #7c3aed;
    --deep-space: #0f0a1f;
    --nebula-cyan: #22d3ee;
    --star-white: #f0f9ff;
    --galaxy-violet: #a78bfa;
    --dark-matter: #1e1b3f;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--deep-space) 0%, #1a1035 50%, var(--dark-matter) 100%);
    color: var(--star-white);
    line-height: 1.8;
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    background: rgba(15, 10, 31, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--nebula-cyan);
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 4px 30px rgba(34, 211, 238, 0.2);
}

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

.brand-name h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--nebula-cyan) 0%, var(--cosmic-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.brand-name h1::before {
    content: '✦ ';
    -webkit-text-fill-color: var(--nebula-cyan);
}

.menu-items {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.menu-items a {
    color: var(--star-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.menu-items a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--nebula-cyan);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-items a:hover::before,
.menu-items a.active::before {
    width: 100%;
}

.menu-items a:hover,
.menu-items a.active {
    color: var(--nebula-cyan);
}

.mobile-toggle {
    display: none;
    background: linear-gradient(135deg, var(--cosmic-purple) 0%, var(--nebula-cyan) 100%);
    border: none;
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: white;
    margin: 5px 0;
}

/* Main Content */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2.5rem;
}

.intro-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(34, 211, 238, 0.2) 100%);
    padding: 5rem 3.5rem;
    border-radius: 20px;
    margin-bottom: 4rem;
    border: 2px solid var(--cosmic-purple);
    box-shadow: 0 15px 50px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
}

.intro-section h2 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--nebula-cyan) 0%, var(--galaxy-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.intro-section p {
    font-size: 1.2rem;
    max-width: 900px;
    color: rgba(240, 249, 255, 0.9);
    position: relative;
    z-index: 1;
}

.section-box {
    background: rgba(30, 27, 63, 0.7);
    backdrop-filter: blur(10px);
    padding: 3.5rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border: 1px solid var(--cosmic-purple);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.section-box h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--nebula-cyan);
    margin-bottom: 1.5rem;
}

.section-box p {
    margin-bottom: 1.2rem;
    color: rgba(240, 249, 255, 0.85);
    font-size: 1.05rem;
}

.warning-box {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(153, 27, 27, 0.2) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    border-left: 5px solid #ef4444;
}

.warning-box h4 {
    color: #fca5a5;
    font-size: 1.7rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.warning-box ul {
    margin-left: 2rem;
    color: rgba(240, 249, 255, 0.9);
}

.warning-box li {
    margin: 1rem 0;
}

.game-wrapper {
    background: rgba(15, 10, 31, 0.9);
    padding: 3.5rem;
    border-radius: 15px;
    text-align: center;
    margin: 3.5rem 0;
    border: 2px solid var(--nebula-cyan);
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.4);
}

.game-wrapper iframe {
    max-width: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(124, 58, 237, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

.feature-item {
    background: rgba(30, 27, 63, 0.7);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--cosmic-purple);
    transition: all 0.3s ease;
    position: relative;
}

.feature-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, var(--nebula-cyan), var(--cosmic-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(34, 211, 238, 0.3);
}

.feature-item h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--nebula-cyan);
    margin-bottom: 1rem;
}

.feature-item p {
    color: rgba(240, 249, 255, 0.8);
    font-size: 1rem;
}

.site-footer {
    background: rgba(15, 10, 31, 0.95);
    border-top: 2px solid var(--cosmic-purple);
    padding: 4rem 2.5rem;
    margin-top: 5rem;
}

.footer-wrap {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.footer-menu a {
    color: var(--nebula-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--galaxy-violet);
}

/* Age Verification */
.age-overlay {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 10, 31, 0.97);
}

.age-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-box {
    background: linear-gradient(135deg, var(--dark-matter) 0%, var(--deep-space) 100%);
    padding: 4.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    border: 3px solid var(--nebula-cyan);
    box-shadow: 0 25px 90px rgba(34, 211, 238, 0.5);
}

.age-box h2 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--nebula-cyan) 0%, var(--cosmic-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.age-box p {
    color: rgba(240, 249, 255, 0.9);
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

.age-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.age-buttons button {
    padding: 1.3rem 4rem;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-enter {
    background: linear-gradient(135deg, var(--cosmic-purple) 0%, var(--nebula-cyan) 100%);
    color: white;
}

.btn-enter:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 40px rgba(34, 211, 238, 0.5);
}

.btn-leave {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
    color: white;
}

.btn-leave:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.5);
}

/* Responsive */
@media (max-width: 968px) {
    .mobile-toggle {
        display: block;
    }

    .menu-items {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        background: rgba(15, 10, 31, 0.98);
        flex-direction: column;
        padding: 6rem 2.5rem;
        gap: 2rem;
        transition: right 0.3s ease;
        backdrop-filter: blur(20px);
        border-left: 2px solid var(--nebula-cyan);
    }

    .menu-items.open {
        right: 0;
    }

    .intro-section {
        padding: 3.5rem 2rem;
    }

    .intro-section h2 {
        font-size: 2.5rem;
    }

    .content-wrapper {
        padding: 3rem 1.5rem;
    }

    .section-box {
        padding: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .age-box {
        margin: 1.5rem;
        padding: 3rem;
    }

    .age-box h2 {
        font-size: 2rem;
    }

    .age-buttons {
        flex-direction: column;
    }
}
