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

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

:root {
    --void: #0c0c1e;
    --nebula: #1a1a3e;
    --cosmic: #7c3aed;
    --stellar: #06b6d4;
    --aurora: #22d3ee;
    --stardust: #f0f9ff;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--void);
    color: var(--stardust);
    line-height: 1.75;
}

header {
    background: linear-gradient(90deg, var(--void) 0%, var(--nebula) 50%, var(--void) 100%);
    padding: 1rem 2.5rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(124, 58, 237, 0.4);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.site-logo svg {
    width: 52px;
    height: 52px;
}

.site-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cosmic), var(--stellar));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-nav {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.site-nav a {
    color: var(--stardust);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.site-nav a:hover {
    color: var(--aurora);
    text-shadow: 0 0 20px var(--aurora);
}

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

.burger span {
    width: 28px;
    height: 2px;
    background: var(--cosmic);
}

main {
    margin-top: 80px;
}

.void-hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        var(--void);
    position: relative;
}

.void-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.void-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.void-hero h1 span {
    background: linear-gradient(90deg, var(--stellar), var(--cosmic), var(--aurora));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.void-hero > p {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 3rem;
    color: rgba(240, 249, 255, 0.8);
    position: relative;
    z-index: 1;
}

.void-badges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.void-badge {
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid var(--cosmic);
    border-radius: 12px;
    padding: 1.2rem 2rem;
    backdrop-filter: blur(10px);
}

.void-badge h5 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--aurora);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.void-badge p {
    color: var(--stardust);
    font-size: 0.95rem;
}

.game-portal {
    background: var(--nebula);
    padding: 5rem 2rem;
}

.game-portal h2 {
    font-family: 'Space Grotesk', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--stellar);
}

.portal-frame {
    max-width: 1300px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--cosmic);
    box-shadow: 
        0 0 50px rgba(124, 58, 237, 0.3),
        0 0 100px rgba(6, 182, 212, 0.1);
}

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

.void-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1400px;
    margin: 0 auto;
}

.void-cell {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.void-cell:nth-child(1) { background: var(--void); }
.void-cell:nth-child(2) { background: var(--nebula); }
.void-cell:nth-child(3) { background: var(--nebula); }
.void-cell:nth-child(4) { background: var(--void); }

.void-cell .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.void-cell h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    color: var(--stellar);
    margin-bottom: 1rem;
}

.void-cell p {
    color: rgba(240, 249, 255, 0.8);
    font-size: 1.05rem;
}

.content-block {
    padding: 5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.content-block h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    color: var(--cosmic);
    margin-bottom: 2rem;
    text-align: center;
}

.content-block h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.7rem;
    color: var(--stellar);
    margin: 2.5rem 0 1rem;
}

.content-block p {
    color: rgba(240, 249, 255, 0.85);
    margin-bottom: 1.5rem;
    font-size: 1.08rem;
}

.content-block ul {
    margin: 1rem 0 1.5rem 2rem;
}

.content-block li {
    color: rgba(240, 249, 255, 0.85);
    margin-bottom: 0.7rem;
}

.narrative {
    background: var(--nebula);
    padding: 5rem 2rem;
    text-align: center;
}

.narrative h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    color: var(--aurora);
    margin-bottom: 2rem;
}

.narrative p {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
    color: rgba(240, 249, 255, 0.85);
}

footer {
    background: var(--void);
    border-top: 1px solid var(--cosmic);
    padding: 3rem 2rem;
    text-align: center;
}

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

.footer-links a {
    color: var(--stellar);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--aurora);
}

footer > p {
    color: rgba(240, 249, 255, 0.5);
    font-size: 0.9rem;
}

.age-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 30, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.age-overlay.hidden {
    display: none;
}

.age-panel {
    background: linear-gradient(145deg, var(--nebula), var(--void));
    border: 2px solid var(--cosmic);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 480px;
    margin: 1rem;
    box-shadow: 0 0 80px rgba(124, 58, 237, 0.4);
}

.age-panel h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    color: var(--stellar);
    margin-bottom: 1.5rem;
}

.age-panel p {
    color: rgba(240, 249, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.age-controls {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.age-button {
    padding: 1rem 2.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.age-button.enter {
    background: linear-gradient(135deg, var(--cosmic), var(--stellar));
    color: white;
}

.age-button.enter:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.5);
}

.age-button.exit {
    background: transparent;
    border: 2px solid var(--aurora);
    color: var(--aurora);
}

.age-button.exit:hover {
    background: var(--aurora);
    color: var(--void);
}

.play-page {
    padding: 3rem 2rem;
    background: var(--void);
}

.play-page h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--aurora);
    margin-bottom: 1rem;
}

.play-desc {
    text-align: center;
    color: rgba(240, 249, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

@media (max-width: 900px) {
    .void-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }
    
    .site-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--void);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--cosmic);
        transform: translateY(-200%);
        transition: transform 0.4s;
    }
    
    .site-nav.visible {
        transform: translateY(0);
    }
    
    .void-hero h1 {
        font-size: 2.2rem;
    }
    
    .void-hero > p {
        font-size: 1.05rem;
    }
    
    .void-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .portal-frame iframe {
        height: 420px;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .age-controls {
        flex-direction: column;
    }
}
