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

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

:root {
    --space-dark: #0b0c1e;
    --space-mid: #151738;
    --nebula-blue: #4a90d9;
    --nebula-purple: #8b5cf6;
    --star-yellow: #fbbf24;
    --white: #f8fafc;
    --light-gray: #cbd5e1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--space-dark);
    color: var(--white);
    line-height: 1.7;
}

a {
    color: var(--nebula-blue);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--star-yellow);
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 12, 30, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(74, 144, 217, 0.2);
}

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

.brand-name {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--nebula-purple);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--light-gray);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--star-yellow);
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-btn span {
    width: 28px;
    height: 3px;
    background: var(--nebula-blue);
    border-radius: 3px;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 12, 30, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.2rem;
    color: var(--star-yellow);
    cursor: pointer;
}

/* Hero */
.hero-section {
    min-height: 100vh;
    padding: 120px 2rem 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(74, 144, 217, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, var(--space-mid) 0%, var(--space-dark) 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--nebula-blue), var(--nebula-purple), var(--star-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--light-gray);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cosmic-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--nebula-purple), var(--nebula-blue));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
    transition: all 0.3s;
}

.cosmic-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.5);
    color: white;
}

/* Info Cards */
.info-row {
    padding: 4rem 2rem;
    background: var(--space-mid);
}

.info-cards {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--space-dark);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(74, 144, 217, 0.2);
    transition: all 0.3s;
}

.info-card:hover {
    border-color: var(--nebula-purple);
    transform: translateY(-5px);
}

.info-card .symbol {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--star-yellow);
}

.info-card p {
    color: var(--light-gray);
    font-size: 0.95rem;
}

/* Game Area */
.game-area {
    padding: 5rem 2rem;
    background: var(--space-dark);
}

.game-area h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--nebula-blue);
}

.game-frame {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.2);
}

.game-frame iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

/* Features Grid */
.features-section {
    padding: 5rem 2rem;
    background: var(--space-mid);
}

.features-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--white);
}

.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-box {
    background: var(--space-dark);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    border: 1px solid rgba(74, 144, 217, 0.1);
}

.feature-box .icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feature-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--nebula-purple);
}

.feature-box p {
    color: var(--light-gray);
    font-size: 0.95rem;
}

/* Page Content */
.page-content {
    min-height: 100vh;
    padding: 100px 2rem 4rem;
    background: var(--space-dark);
}

.content-wrapper {
    max-width: 850px;
    margin: 0 auto;
    background: var(--space-mid);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(74, 144, 217, 0.2);
}

.content-wrapper h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--nebula-purple);
}

.content-wrapper h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--star-yellow);
}

.content-wrapper p {
    color: var(--light-gray);
    margin-bottom: 1rem;
}

.content-wrapper ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--light-gray);
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

/* Play Page */
.play-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.game-note {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1rem 2rem;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
}

.game-note p {
    margin: 0;
    color: var(--white);
}

/* Footer */
.site-footer {
    background: var(--space-mid);
    padding: 4rem 2rem;
    border-top: 1px solid rgba(74, 144, 217, 0.2);
}

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

.footer-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--nebula-purple);
    margin-bottom: 1.5rem;
}

.help-resources {
    margin-bottom: 1.5rem;
}

.help-resources p {
    color: var(--light-gray);
    margin-bottom: 0.75rem;
}

.help-resources a {
    color: var(--white);
    margin: 0 1rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.footer-copy {
    color: var(--light-gray);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Age Verification */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(11, 12, 30, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.age-gate.closed {
    display: none;
}

.age-box {
    background: var(--space-mid);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 450px;
    margin: 1rem;
    border: 2px solid var(--nebula-purple);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.3);
}

.age-box h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--star-yellow);
}

.age-box p {
    color: var(--light-gray);
    margin-bottom: 2rem;
}

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

.age-buttons button {
    padding: 0.9rem 2rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.yes-btn {
    background: linear-gradient(135deg, var(--nebula-purple), var(--nebula-blue));
    color: white;
}

.yes-btn:hover {
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.no-btn {
    background: transparent;
    border: 2px solid var(--light-gray) !important;
    color: var(--light-gray);
}

.no-btn:hover {
    border-color: var(--white) !important;
    color: var(--white);
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .brand-name {
        font-size: 1.4rem;
    }
    
    .hero-section {
        padding: 100px 1rem 40px;
    }
    
    .game-frame iframe {
        height: 400px;
    }
    
    .content-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .age-box {
        padding: 2rem;
    }
    
    .age-buttons {
        flex-direction: column;
    }
    
    .help-resources a {
        display: block;
        margin: 0.5rem 0;
    }
}
