@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Exo+2:wght@300;400;500;600&display=swap');

:root {
    --bg-deep: #0a0e17;
    --bg-mid: #121a2d;
    --accent-cyan: #00d4ff;
    --accent-purple: #8b5cf6;
    --accent-pink: #f472b6;
    --text-white: #ffffff;
    --text-gray: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg-deep);
    color: var(--text-white);
    min-height: 100vh;
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-pink);
    text-shadow: 0 0 20px var(--accent-cyan);
}

/* Starfield Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 230px 80px, white, transparent),
        radial-gradient(2px 2px at 300px 200px, rgba(255,255,255,0.6), transparent);
    background-size: 350px 350px;
    animation: twinkle 10s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand svg {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background: rgba(0, 212, 255, 0.1);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--accent-cyan);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-deep);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.mobile-nav.visible {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

/* Main */
main {
    padding-top: 85px;
}

/* Hero */
.cosmic-hero {
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
}

.cosmic-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    top: 10%;
    right: -200px;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.4rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.glow-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glow-btn:hover {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
    transform: scale(1.05);
    color: white;
}

/* Info Cards */
.info-strip {
    padding: 5rem 2rem;
    background: var(--bg-mid);
}

.info-cards {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.info-card {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
}

.info-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    transform: translateY(-8px);
}

.info-card .symbol {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* Game Zone */
.game-zone {
    padding: 5rem 2rem;
}

.game-zone h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
}

.game-frame {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.3);
}

.game-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink), var(--accent-cyan));
    z-index: -1;
    border-radius: 22px;
    animation: borderGlow 3s linear infinite;
    background-size: 400% 400%;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.game-frame iframe {
    width: 100%;
    height: 650px;
    border: none;
    display: block;
    background: #000;
}

/* Features Grid */
.feature-grid {
    padding: 5rem 2rem;
    background: var(--bg-mid);
}

.feature-grid h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
}

.feature-box .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.feature-box p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Play Page */
.play-header {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
}

.play-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.play-header p {
    color: var(--text-gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.play-area {
    padding: 2rem;
}

.play-area .game-frame {
    max-width: 1300px;
}

.play-area .game-frame iframe {
    height: 750px;
}

.controls-info {
    max-width: 900px;
    margin: 3rem auto 0;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 2rem;
}

.controls-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.controls-info p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

/* Content Pages */
.page-content {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
}

.page-content h2 {
    font-size: 1.6rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.page-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.page-content ul {
    list-style: none;
    margin: 1.5rem 0;
}

.page-content ul li {
    padding: 0.8rem 0 0.8rem 2rem;
    color: var(--text-gray);
    position: relative;
}

.page-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

/* Footer */
.site-footer {
    background: var(--bg-mid);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 4rem 2rem;
    margin-top: 5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-inner h4 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.help-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.help-links a {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--accent-purple);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.help-links a:hover {
    background: var(--accent-purple);
    color: white;
}

.copyright {
    color: var(--text-gray);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Age Verification */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.age-gate.dismissed {
    display: none;
}

.age-modal {
    background: linear-gradient(135deg, var(--bg-mid), var(--bg-deep));
    border: 2px solid var(--accent-cyan);
    border-radius: 24px;
    padding: 3rem;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.3);
}

.age-modal h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.age-modal p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.age-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-actions button {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-cyan);
}

.age-yes {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
}

.age-yes:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.age-no {
    background: transparent;
    color: var(--accent-cyan);
}

.age-no:hover {
    background: rgba(0, 212, 255, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .features-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .cosmic-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .game-frame iframe {
        height: 450px;
    }
    
    .play-area .game-frame iframe {
        height: 500px;
    }
    
    .features-wrap {
        grid-template-columns: 1fr;
    }
    
    .info-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .info-card {
        max-width: 100%;
    }
    
    .page-content h1 {
        font-size: 2rem;
    }
    
    .age-modal {
        margin: 1rem;
        padding: 2rem;
    }
    
    .age-actions {
        flex-direction: column;
    }
    
    .help-links {
        flex-direction: column;
        align-items: center;
    }
}
