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

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

:root {
    --stel-night: #0b1628;
    --stel-deep: #152238;
    --stel-blue: #4a90d9;
    --stel-star: #a8d8ff;
    --stel-white: #f8fafc;
    --stel-silver: #94a3b8;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--stel-night);
    color: var(--stel-white);
    line-height: 1.7;
}

.stellar-header {
    background: linear-gradient(180deg, var(--stel-deep), transparent);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.stellar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-star {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, var(--stel-star) 0%, var(--stel-blue) 70%);
    border-radius: 50%;
    position: relative;
    animation: starGlow 3s ease-in-out infinite;
}

.logo-star::before,
.logo-star::after {
    content: '';
    position: absolute;
    background: var(--stel-star);
}

.logo-star::before {
    width: 3px;
    height: 60px;
    top: -7px;
    left: 21px;
}

.logo-star::after {
    width: 60px;
    height: 3px;
    top: 21px;
    left: -7px;
}

@keyframes starGlow {
    0%, 100% { box-shadow: 0 0 20px var(--stel-blue); }
    50% { box-shadow: 0 0 40px var(--stel-star); }
}

.logo-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--stel-star);
    letter-spacing: 3px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--stel-blue);
    color: var(--stel-star);
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 8px;
}

.stellar-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.stellar-nav a {
    color: var(--stel-silver);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.stellar-nav a:hover {
    color: var(--stel-star);
}

.hero-cosmos {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: radial-gradient(ellipse at top, var(--stel-deep) 0%, var(--stel-night) 60%);
    position: relative;
    overflow: hidden;
}

.stars-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--stel-star), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--stel-silver), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--stel-white), transparent),
        radial-gradient(2px 2px at 160px 120px, var(--stel-star), transparent),
        radial-gradient(1px 1px at 230px 80px, var(--stel-silver), transparent);
    background-size: 250px 150px;
    animation: twinkle 8s linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.hero-cosmos h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 3rem;
    color: var(--stel-white);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-cosmos p {
    font-size: 1.1rem;
    color: var(--stel-silver);
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.stellar-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--stel-blue), var(--stel-star));
    color: var(--stel-night);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stellar-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(74, 144, 217, 0.4);
}

.notice-constellation {
    background: var(--stel-deep);
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(168, 216, 255, 0.2);
    border-bottom: 1px solid rgba(168, 216, 255, 0.2);
}

.notice-point {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--stel-silver);
}

.notice-point span:first-child {
    font-size: 1.2rem;
}

.cosmos-game {
    padding: 4rem 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

.cosmos-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    text-align: center;
    color: var(--stel-star);
    margin-bottom: 2rem;
}

.game-orbit {
    background: var(--stel-deep);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(74, 144, 217, 0.2);
    border: 1px solid rgba(168, 216, 255, 0.2);
}

.orbit-frame {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.constellation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 4rem 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

.star-card {
    background: var(--stel-deep);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(168, 216, 255, 0.1);
    transition: border-color 0.3s, transform 0.3s;
}

.star-card:hover {
    border-color: var(--stel-blue);
    transform: translateY(-5px);
}

.star-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.star-card h3 {
    font-family: 'Josefin Sans', sans-serif;
    color: var(--stel-star);
    margin-bottom: 0.5rem;
}

.star-card p {
    color: var(--stel-silver);
    font-size: 0.9rem;
}

.nebula-content {
    padding: 3rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.nebula-content h2 {
    font-family: 'Josefin Sans', sans-serif;
    color: var(--stel-star);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.nebula-content p {
    color: var(--stel-silver);
    margin-bottom: 1rem;
}

.nebula-content ul {
    color: var(--stel-silver);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.nebula-content li {
    margin-bottom: 0.4rem;
}

.stellar-footer {
    background: var(--stel-deep);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid rgba(168, 216, 255, 0.2);
}

.footer-constellation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-constellation a {
    color: var(--stel-silver);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-constellation a:hover {
    color: var(--stel-star);
}

.footer-note {
    color: var(--stel-silver);
    font-size: 0.85rem;
}

.age-cosmos {
    position: fixed;
    inset: 0;
    background: rgba(11, 22, 40, 0.98);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.age-star-box {
    background: var(--stel-deep);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 440px;
    border: 1px solid var(--stel-blue);
    box-shadow: 0 0 50px rgba(74, 144, 217, 0.3);
}

.age-star-box h2 {
    font-family: 'Josefin Sans', sans-serif;
    color: var(--stel-star);
    margin-bottom: 1rem;
}

.age-star-box p {
    color: var(--stel-silver);
    margin-bottom: 2rem;
}

.age-star-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-enter {
    background: linear-gradient(135deg, var(--stel-blue), var(--stel-star));
    color: var(--stel-night);
    border: none;
    padding: 0.9rem 2rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 25px;
}

.btn-leave {
    background: transparent;
    border: 1px solid var(--stel-silver);
    color: var(--stel-silver);
    padding: 0.9rem 2rem;
    cursor: pointer;
    border-radius: 25px;
}

.denied-cosmos {
    text-align: center;
    padding: 8rem 2rem;
}

.denied-cosmos h1 {
    font-family: 'Josefin Sans', sans-serif;
    color: var(--stel-star);
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }

    .stellar-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--stel-deep);
        padding: 1rem;
        display: none;
    }

    .stellar-nav.shown {
        display: block;
    }

    .stellar-nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-cosmos {
        padding: 7rem 1rem 3rem;
    }

    .hero-cosmos h1 {
        font-size: 2rem;
    }

    .constellation-grid {
        grid-template-columns: 1fr 1fr;
    }

    .orbit-frame {
        height: 400px;
    }

    .age-star-box {
        margin: 1rem;
    }

    .age-star-btns {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .constellation-grid {
        grid-template-columns: 1fr;
    }

    .notice-constellation {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
}
