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

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

:root {
    --space-black: #050510;
    --cosmic-navy: #0a1628;
    --stellar-indigo: #3730a3;
    --aurora-green: #34d399;
    --plasma-cyan: #22d3ee;
    --light-dust: #e0e7ff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--space-black);
    color: var(--light-dust);
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}

a {
    color: var(--aurora-green);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover { color: var(--plasma-cyan); }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(52, 211, 153, 0.15);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area svg { width: 46px; height: 46px; }

.logo-area span {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--aurora-green);
}

.ham-menu {
    display: none;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.ham-menu span {
    height: 3px;
    background: var(--aurora-green);
    transition: all 0.3s;
}

.ham-menu.active span:first-child { transform: rotate(45deg) translate(6px, 6px); }
.ham-menu.active span:nth-child(2) { opacity: 0; }
.ham-menu.active span:last-child { transform: rotate(-45deg) translate(7px, -7px); }

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

.main-nav a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--light-dust);
}

.main-nav a:hover { color: var(--aurora-green); }

/* Hero */
.space-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 80px;
    background: 
        radial-gradient(circle at 20% 30%, rgba(55, 48, 163, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(52, 211, 153, 0.1) 0%, transparent 35%),
        var(--space-black);
    text-align: center;
}

.hero-box {
    max-width: 850px;
}

.hero-box h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    color: var(--light-dust);
    margin-bottom: 1.5rem;
}

.hero-box h1 .glow {
    color: var(--aurora-green);
    text-shadow: 0 0 30px rgba(52, 211, 153, 0.5);
}

.hero-text {
    font-size: 1.15rem;
    color: rgba(224, 231, 255, 0.8);
    margin-bottom: 2.5rem;
}

.hero-action {
    display: inline-block;
    background: linear-gradient(135deg, var(--aurora-green), var(--stellar-indigo));
    color: var(--space-black);
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: all 0.3s;
}

.hero-action:hover {
    color: var(--space-black);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(52, 211, 153, 0.3);
}

/* Feature Grid */
.feature-grid {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--space-black), var(--cosmic-navy));
}

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

.feature-item {
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-item:hover {
    border-color: var(--aurora-green);
    transform: translateY(-8px);
}

.feat-icon { font-size: 2.8rem; margin-bottom: 1.5rem; }

.feature-item h3 {
    font-size: 1.3rem;
    color: var(--aurora-green);
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: rgba(224, 231, 255, 0.7);
    font-size: 0.95rem;
}

/* Game Sector */
.game-sector {
    padding: 5rem 2rem;
    background: var(--space-black);
}

.sector-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.sector-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.sector-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--light-dust);
}

.sector-heading p { color: var(--plasma-cyan); }

.game-viewport {
    background: var(--cosmic-navy);
    border: 2px solid var(--stellar-indigo);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

/* Description */
.desc-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--space-black), rgba(10, 22, 40, 0.5));
}

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

.desc-inner h2 {
    font-size: 2.5rem;
    color: var(--aurora-green);
    margin-bottom: 2rem;
}

.desc-inner p {
    font-size: 1.1rem;
    color: rgba(224, 231, 255, 0.85);
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background: rgba(5, 5, 16, 0.98);
    border-top: 1px solid rgba(52, 211, 153, 0.15);
    padding: 3rem 2rem;
}

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

.foot-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.foot-nav a { color: var(--light-dust); font-size: 0.9rem; }

.support-area {
    padding-top: 2rem;
    border-top: 1px solid rgba(52, 211, 153, 0.1);
}

.support-area p {
    font-size: 0.85rem;
    color: rgba(224, 231, 255, 0.6);
    margin-bottom: 1rem;
}

.support-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.support-links a { font-size: 0.85rem; }

.copy-text {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(224, 231, 255, 0.4);
}

/* Age Gate */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 16, 0.98);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.gate-dialog {
    background: linear-gradient(145deg, var(--cosmic-navy), var(--space-black));
    border: 2px solid var(--aurora-green);
    border-radius: 20px;
    padding: 3rem;
    max-width: 480px;
    text-align: center;
}

.gate-dialog h2 {
    font-size: 2rem;
    color: var(--aurora-green);
    margin-bottom: 1.5rem;
}

.gate-dialog p {
    color: var(--light-dust);
    margin-bottom: 2rem;
}

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

.gate-btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.gate-btn.yes {
    background: var(--aurora-green);
    color: var(--space-black);
}

.gate-btn.yes:hover { transform: scale(1.05); }

.gate-btn.no {
    background: transparent;
    color: var(--light-dust);
    border: 2px solid var(--stellar-indigo);
}

.gate-btn.no:hover { background: var(--stellar-indigo); }

/* Pages */
.page-content {
    padding: 120px 2rem 4rem;
    max-width: 950px;
    margin: 0 auto;
    min-height: calc(100vh - 250px);
}

.page-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--aurora-green);
    margin-bottom: 2.5rem;
    text-align: center;
}

.page-content h2 {
    font-size: 1.4rem;
    color: var(--plasma-cyan);
    margin: 2.5rem 0 1rem;
}

.page-content p { color: rgba(224, 231, 255, 0.9); margin-bottom: 1.2rem; }

.page-content ul { margin: 1rem 0 1.5rem 1.5rem; }
.page-content li { color: rgba(224, 231, 255, 0.85); margin-bottom: 0.5rem; }

/* Play */
.play-content {
    padding: 120px 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.play-content h1 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--aurora-green);
    margin-bottom: 1rem;
}

.play-content .note {
    text-align: center;
    color: rgba(224, 231, 255, 0.6);
    margin-bottom: 2rem;
}

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

@media (max-width: 768px) {
    .ham-menu { display: flex; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--space-black);
        transition: right 0.35s;
        padding: 100px 2rem;
        border-left: 1px solid rgba(52, 211, 153, 0.2);
    }
    .main-nav.open { right: 0; }
    .main-nav ul { flex-direction: column; gap: 2rem; }
    .game-viewport iframe { height: 480px; }
    .gate-buttons { flex-direction: column; }
    .foot-nav { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
    .logo-area span { font-size: 1.3rem; }
    .game-viewport iframe { height: 380px; }
}
