@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --astral-night: #0c0a1d;
    --astral-deep: #1a1635;
    --astral-blue: #3730a3;
    --astral-violet: #6366f1;
    --astral-gold: #f59e0b;
    --astral-star: #fbbf24;
    --astral-light: #e0e7ff;
    --astral-muted: #a5b4fc;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    background: var(--astral-night);
    color: var(--astral-light);
    line-height: 1.75;
}

.stellar-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--astral-night) 0%, rgba(12, 10, 29, 0.9) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(12px);
}

.header-container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.astral-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-star {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--astral-gold), var(--astral-star));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--astral-star);
    letter-spacing: 2px;
}

.stellar-nav {
    display: flex;
    gap: 2.5rem;
}

.stellar-nav a {
    font-family: 'Playfair Display', serif;
    color: var(--astral-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
}

.stellar-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--astral-gold);
    transition: width 0.3s;
}

.stellar-nav a:hover::after,
.stellar-nav a.active::after {
    width: 100%;
}

.stellar-nav a:hover,
.stellar-nav a.active {
    color: var(--astral-star);
}

.cosmic-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.cosmic-toggle span {
    width: 26px;
    height: 2px;
    background: var(--astral-gold);
    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(5px, -5px);
}

.cosmic-menu {
    display: none;
    background: var(--astral-deep);
    border-bottom: 1px solid var(--astral-violet);
}

.cosmic-menu.shown {
    display: block;
}

.cosmic-menu a {
    display: block;
    padding: 1rem 2rem;
    color: var(--astral-light);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.cosmic-menu a:hover {
    background: var(--astral-blue);
}

main {
    padding-top: 80px;
}

.celestial-hero {
    min-height: 90vh;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
        var(--astral-night);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.celestial-hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--astral-star), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--astral-muted), transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(2px 2px at 130px 80px, var(--astral-star), transparent),
        radial-gradient(1px 1px at 160px 120px, var(--astral-muted), transparent);
    background-size: 200px 150px;
    animation: twinkle 8s ease-in-out infinite alternate;
    opacity: 0.5;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.hero-box {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-box h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    color: var(--astral-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-box h1 span {
    color: var(--astral-star);
}

.hero-box p {
    font-size: 1.2rem;
    color: var(--astral-muted);
    margin-bottom: 2.5rem;
}

.cosmic-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--astral-gold), var(--astral-star));
    color: var(--astral-night);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 5px;
    transition: 0.3s;
    box-shadow: 0 5px 25px rgba(245, 158, 11, 0.3);
}

.cosmic-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(245, 158, 11, 0.4);
}

.constellation-section {
    padding: 4rem 2rem;
    background: var(--astral-deep);
}

.constellation-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.star-card {
    background: var(--astral-night);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: 0.3s;
}

.star-card:hover {
    border-color: var(--astral-gold);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.star-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.star-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--astral-gold);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.star-card p {
    color: var(--astral-muted);
    font-size: 0.95rem;
}

.game-constellation {
    padding: 5rem 2rem;
    background: var(--astral-night);
}

.game-constellation h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    text-align: center;
    color: var(--astral-light);
    margin-bottom: 2rem;
}

.game-frame {
    max-width: 1350px;
    margin: 0 auto;
    border: 2px solid var(--astral-gold);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.2);
}

.game-frame iframe {
    width: 100%;
    height: 620px;
    border: none;
    display: block;
}

.nebula-features {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--astral-deep), var(--astral-night));
}

.nebula-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.nebula-item {
    background: rgba(26, 22, 53, 0.8);
    border-radius: 10px;
    padding: 2rem;
    border-left: 4px solid var(--astral-violet);
}

.nebula-item h3 {
    font-family: 'Playfair Display', serif;
    color: var(--astral-star);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.nebula-item p {
    color: var(--astral-muted);
}

.starlight-footer {
    background: var(--astral-deep);
    border-top: 1px solid rgba(99, 102, 241, 0.3);
    padding: 3rem 2rem;
    text-align: center;
}

.starlight-footer p {
    color: var(--astral-muted);
    margin-bottom: 1.5rem;
}

.galaxy-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.galaxy-links a {
    color: var(--astral-gold);
    text-decoration: none;
    font-size: 0.9rem;
}

.galaxy-links a:hover {
    color: var(--astral-star);
}

.footer-credit {
    color: var(--astral-muted);
    font-size: 0.85rem;
}

.inner-page-hero {
    padding: 7rem 2rem 3rem;
    background: var(--astral-deep);
    text-align: center;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.inner-page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--astral-light);
}

.content-cosmos {
    padding: 4rem 2rem;
    background: var(--astral-night);
}

.cosmos-inner {
    max-width: 880px;
    margin: 0 auto;
}

.cosmos-inner h2 {
    font-family: 'Playfair Display', serif;
    color: var(--astral-gold);
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
}

.cosmos-inner p {
    color: var(--astral-muted);
    margin-bottom: 1rem;
}

.cosmos-inner ul {
    list-style: none;
    margin: 1rem 0;
}

.cosmos-inner li {
    color: var(--astral-muted);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.cosmos-inner li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--astral-gold);
}

.age-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 10, 29, 0.98);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.age-constellation {
    background: var(--astral-deep);
    border: 2px solid var(--astral-gold);
    border-radius: 15px;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
}

.age-constellation h2 {
    font-family: 'Playfair Display', serif;
    color: var(--astral-star);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.age-constellation p {
    color: var(--astral-muted);
    margin-bottom: 2rem;
}

.age-stars {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.age-stars button {
    padding: 0.9rem 2rem;
    border-radius: 5px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.age-stars .star-yes {
    background: linear-gradient(135deg, var(--astral-gold), var(--astral-star));
    color: var(--astral-night);
}

.age-stars .star-no {
    background: transparent;
    border: 2px solid var(--astral-gold);
    color: var(--astral-gold);
}

.age-stars button:hover {
    transform: scale(1.05);
}

.game-guide {
    background: var(--astral-deep);
    border: 1px solid var(--astral-violet);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1350px;
    margin-left: auto;
    margin-right: auto;
}

.game-guide h3 {
    font-family: 'Playfair Display', serif;
    color: var(--astral-gold);
    margin-bottom: 0.5rem;
}

.game-guide p {
    color: var(--astral-muted);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .constellation-grid {
        grid-template-columns: 1fr;
    }
    
    .nebula-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stellar-nav {
        display: none;
    }
    
    .cosmic-toggle {
        display: flex;
    }
    
    .game-frame iframe {
        height: 400px;
    }
    
    .hero-box h1 {
        font-size: 2rem;
    }
}
