@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Rubik:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-space: #030712;
    --nebula-blue: #1e3a5f;
    --gravity-teal: #14b8a6;
    --star-white: #f1f5f9;
    --void: #0f172a;
    --accent: #06b6d4;
}

body {
    font-family: 'Rubik', sans-serif;
    background: var(--deep-space);
    color: var(--star-white);
    line-height: 1.7;
}

.site-nav {
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(20, 184, 166, 0.3);
}

.nav-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-brand {
    font-family: 'Audiowide', cursive;
    font-size: 1.7rem;
    color: var(--gravity-teal);
    text-decoration: none;
}

.menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--gravity-teal);
    color: var(--gravity-teal);
    font-size: 1.3rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    border-radius: 6px;
}

.nav-items {
    display: flex;
    gap: 0.5rem;
}

.nav-items a {
    color: var(--star-white);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-items a:hover {
    background: rgba(20, 184, 166, 0.2);
    color: var(--gravity-teal);
}

.gravity-hero {
    margin-top: 68px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: radial-gradient(ellipse at center bottom, var(--nebula-blue) 0%, var(--deep-space) 70%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gravity-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gravity-teal) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(60px);
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.gravity-hero h1 {
    font-family: 'Audiowide', cursive;
    font-size: 3.5rem;
    color: var(--star-white);
    margin-bottom: 1.5rem;
}

.gravity-hero h1 span {
    color: var(--gravity-teal);
}

.gravity-hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.gravity-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.g-tag {
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid var(--gravity-teal);
    color: var(--gravity-teal);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
}

.game-orbit {
    padding: 4rem 2rem;
    background: var(--void);
}

.orbit-title {
    font-family: 'Audiowide', cursive;
    font-size: 2rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 2rem;
}

.game-shell {
    max-width: 1300px;
    margin: 0 auto;
    background: var(--deep-space);
    border: 2px solid var(--gravity-teal);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(20, 184, 166, 0.15);
}

.game-shell iframe {
    width: 100%;
    height: 620px;
    border: none;
    display: block;
}

.field-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--void), var(--deep-space));
}

.field-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.field-card {
    background: rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(20, 184, 166, 0.3);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.field-card:hover {
    border-color: var(--gravity-teal);
    transform: translateY(-5px);
}

.field-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.field-card h3 {
    font-family: 'Audiowide', cursive;
    color: var(--gravity-teal);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.field-card p {
    opacity: 0.85;
}

.story-block {
    padding: 5rem 2rem;
    background: var(--nebula-blue);
}

.story-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.story-block h2 {
    font-family: 'Audiowide', cursive;
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.story-block p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.page-area {
    margin-top: 68px;
    min-height: calc(100vh - 240px);
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--nebula-blue), var(--deep-space));
}

.page-body {
    max-width: 900px;
    margin: 0 auto;
    background: var(--void);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.page-body h1 {
    font-family: 'Audiowide', cursive;
    font-size: 2.5rem;
    color: var(--gravity-teal);
    margin-bottom: 2rem;
}

.page-body h2 {
    font-family: 'Audiowide', cursive;
    font-size: 1.3rem;
    color: var(--accent);
    margin: 2rem 0 1rem;
}

.page-body p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.page-body ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.page-body li {
    margin-bottom: 0.6rem;
    opacity: 0.9;
}

.play-note {
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid var(--gravity-teal);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.play-note h3 {
    color: var(--gravity-teal);
    margin-bottom: 0.5rem;
}

.space-footer {
    background: var(--deep-space);
    border-top: 1px solid rgba(20, 184, 166, 0.3);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-menu a {
    color: var(--star-white);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s;
}

.footer-menu a:hover {
    opacity: 1;
    color: var(--gravity-teal);
}

.rg-block {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--void);
}

.rg-block h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-family: 'Audiowide', cursive;
    font-size: 0.9rem;
}

.rg-block a {
    color: var(--star-white);
    text-decoration: none;
    margin: 0 1rem;
    opacity: 0.6;
}

.rg-block a:hover {
    opacity: 1;
}

.foot-copy {
    margin-top: 2rem;
    opacity: 0.4;
    font-size: 0.9rem;
}

.age-screen {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.age-panel {
    background: linear-gradient(135deg, var(--void), var(--nebula-blue));
    border: 2px solid var(--gravity-teal);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    margin: 1rem;
}

.age-panel h2 {
    font-family: 'Audiowide', cursive;
    color: var(--gravity-teal);
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
}

.age-panel p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.age-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-controls button {
    font-family: 'Rubik', sans-serif;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-enter {
    background: var(--gravity-teal);
    color: var(--deep-space);
}

.btn-enter:hover {
    filter: brightness(1.2);
    transform: scale(1.03);
}

.btn-leave {
    background: transparent;
    border: 1px solid var(--star-white) !important;
    color: var(--star-white);
}

.btn-leave:hover {
    background: var(--star-white);
    color: var(--deep-space);
}

.hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .field-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-items {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--deep-space);
        flex-direction: column;
        padding: 1rem;
        display: none;
        border-bottom: 1px solid var(--gravity-teal);
    }

    .nav-items.open {
        display: flex;
    }

    .nav-items a {
        padding: 1rem;
    }

    .gravity-hero h1 {
        font-size: 2.3rem;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .game-shell iframe {
        height: 420px;
    }

    .page-body {
        padding: 2rem;
    }

    .age-controls {
        flex-direction: column;
    }
}
