@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Quicksand:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(180deg, #0a0a20 0%, #050510 100%);
    color: #e0e8ff;
    min-height: 100vh;
    line-height: 1.75;
}

.space-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 2px solid #7c3aed;
}

.header-row {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
}

.space-logo {
    font-family: 'Audiowide', cursive;
    font-size: 1.8rem;
    color: #a78bfa;
    text-decoration: none;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

.space-nav ul {
    display: flex;
    gap: 35px;
    list-style: none;
}

.space-nav a {
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
}

.space-nav a:hover {
    color: #a78bfa;
    text-shadow: 0 0 15px rgba(167, 139, 250, 0.6);
}

.cosmic-toggle {
    display: none;
    cursor: pointer;
    padding: 5px;
}

.cosmic-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #a78bfa;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.cosmic-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.cosmic-toggle.active span:nth-child(2) {
    opacity: 0;
}

.cosmic-toggle.active span:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
}

.main-zone {
    padding-top: 85px;
}

.cosmos-intro {
    padding: 100px 28px;
    text-align: center;
    background: 
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.cosmos-intro h1 {
    font-family: 'Audiowide', cursive;
    font-size: 3.6rem;
    color: #a78bfa;
    margin-bottom: 28px;
    letter-spacing: 5px;
    text-shadow: 0 0 40px rgba(167, 139, 250, 0.4);
}

.cosmos-desc {
    font-size: 1.2rem;
    color: #c4b5fd;
    max-width: 800px;
    margin: 0 auto 48px;
}

.warning-strip {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.warning-pill {
    background: rgba(124, 58, 237, 0.2);
    border: 2px solid #7c3aed;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

.warning-pill span {
    margin-right: 10px;
}

.game-station {
    padding: 75px 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.station-title {
    font-family: 'Audiowide', cursive;
    font-size: 2.2rem;
    text-align: center;
    color: #a78bfa;
    margin-bottom: 45px;
    letter-spacing: 3px;
}

.station-container {
    background: linear-gradient(145deg, #12122e, #0a0a20);
    border-radius: 25px;
    padding: 28px;
    border: 2px solid rgba(124, 58, 237, 0.4);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.2);
}

.station-frame {
    width: 100%;
    height: 560px;
    border: none;
    border-radius: 15px;
}

.features-orbit {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 75px 28px;
}

.orbit-card {
    background: rgba(18, 18, 46, 0.8);
    padding: 38px 25px;
    border-radius: 20px;
    text-align: center;
    border-top: 3px solid #7c3aed;
    transition: transform 0.3s, box-shadow 0.3s;
}

.orbit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.25);
}

.orbit-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.orbit-card h3 {
    font-family: 'Audiowide', cursive;
    color: #a78bfa;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.orbit-card p {
    color: #a5b4fc;
    font-size: 0.95rem;
}

.info-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 38px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 28px;
}

.info-panel {
    background: rgba(10, 10, 32, 0.9);
    padding: 42px;
    border-radius: 18px;
    border-left: 5px solid #7c3aed;
}

.info-panel h3 {
    font-family: 'Audiowide', cursive;
    color: #a78bfa;
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.info-panel p {
    color: #a5b4fc;
    line-height: 1.9;
}

.cosmic-footer {
    background: #030308;
    padding: 60px 28px 32px;
    margin-top: 85px;
}

.footer-hub {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.help-zone {
    margin-bottom: 38px;
}

.help-zone h4 {
    font-family: 'Audiowide', cursive;
    color: #a78bfa;
    font-size: 1rem;
    margin-bottom: 18px;
}

.help-zone a {
    color: #a5b4fc;
    margin: 0 20px;
    text-decoration: none;
    transition: color 0.3s;
}

.help-zone a:hover {
    color: #a78bfa;
}

.footer-links {
    margin-bottom: 28px;
}

.footer-links a {
    color: #6366f1;
    text-decoration: none;
    margin: 0 16px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #a78bfa;
}

.copyright-line {
    color: #3730a3;
    font-size: 0.85rem;
}

.age-portal {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 8, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.age-portal.warped {
    display: none;
}

.portal-box {
    background: linear-gradient(145deg, #12122e, #0a0a20);
    padding: 52px;
    border-radius: 25px;
    text-align: center;
    max-width: 520px;
    border: 2px solid #7c3aed;
    box-shadow: 0 0 80px rgba(124, 58, 237, 0.4);
}

.portal-box h2 {
    font-family: 'Audiowide', cursive;
    color: #a78bfa;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.portal-box p {
    color: #a5b4fc;
    margin-bottom: 16px;
    line-height: 1.8;
}

.portal-box .glow {
    color: #a78bfa;
    font-weight: 700;
}

.portal-buttons {
    margin-top: 35px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.portal-btn {
    padding: 15px 45px;
    border-radius: 30px;
    font-family: 'Audiowide', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.portal-btn.launch {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #e0e8ff;
}

.portal-btn.abort {
    background: transparent;
    border: 2px solid #6366f1;
    color: #a5b4fc;
}

.portal-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.page-banner {
    padding: 125px 28px 58px;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
}

.page-banner h1 {
    font-family: 'Audiowide', cursive;
    font-size: 2.6rem;
    color: #a78bfa;
    letter-spacing: 4px;
}

.page-text {
    max-width: 900px;
    margin: 0 auto;
    padding: 52px 28px;
}

.page-text h2 {
    font-family: 'Audiowide', cursive;
    color: #a78bfa;
    font-size: 1.4rem;
    margin: 45px 0 18px;
}

.page-text h2:first-of-type {
    margin-top: 0;
}

.page-text p {
    color: #a5b4fc;
    margin-bottom: 16px;
}

.page-text ul {
    color: #a5b4fc;
    margin: 18px 0;
    padding-left: 28px;
}

.page-text li {
    margin-bottom: 12px;
}

.mission-brief {
    background: rgba(124, 58, 237, 0.15);
    border-left: 4px solid #7c3aed;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .features-orbit {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cosmic-toggle {
        display: block;
    }

    .space-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0a0a20;
        padding: 25px;
        display: none;
        border-bottom: 2px solid #7c3aed;
    }

    .space-nav.visible {
        display: block;
    }

    .space-nav ul {
        flex-direction: column;
        gap: 18px;
    }

    .cosmos-intro h1 {
        font-size: 2.2rem;
    }

    .warning-strip {
        flex-direction: column;
        align-items: center;
    }

    .station-frame {
        height: 390px;
    }

    .features-orbit {
        grid-template-columns: 1fr;
    }

    .portal-box {
        margin: 20px;
        padding: 38px 25px;
    }

    .portal-buttons {
        flex-direction: column;
    }
}
