/* Stelliris - Celestial & Stars Theme */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;500;700;900&family=Poiret+One&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-space: #0b0c1e;
    --cosmic-blue: #1e2a4a;
    --nebula-purple: #5a3d7a;
    --star-silver: #c0c0c0;
    --celestial-white: #f0f0f5;
    --aurora-blue: #4a90e2;
    --galaxy-pink: #e94b9f;
}

body {
    font-family: 'Raleway', sans-serif;
    background: radial-gradient(ellipse at center, var(--cosmic-blue) 0%, var(--deep-space) 70%);
    color: var(--celestial-white);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated starfield */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

body::before {
    content: '';
    position: fixed;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, white, transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(1px 1px at 160px 120px, white, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

/* Top Navigation Bar */
header {
    background: linear-gradient(90deg, rgba(11, 12, 30, 0.95), rgba(30, 42, 74, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--aurora-blue);
    padding: 1.5rem 3rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(74, 144, 226, 0.3);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    font-family: 'Poiret One', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--star-silver);
    text-decoration: none;
    text-shadow: 0 0 20px rgba(192, 192, 192, 0.8);
    letter-spacing: 5px;
}

.nav-toggle {
    display: none;
    background: var(--aurora-blue);
    border: none;
    color: var(--celestial-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav a {
    color: var(--star-silver);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--galaxy-pink);
    text-shadow: 0 0 15px var(--galaxy-pink);
}

/* Main Content */
main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem;
    position: relative;
    z-index: 1;
}

.stellar-intro {
    text-align: center;
    padding: 5rem 3rem;
    background: linear-gradient(135deg, rgba(90, 61, 122, 0.3), rgba(30, 42, 74, 0.5));
    backdrop-filter: blur(15px);
    border-radius: 25px;
    margin-bottom: 4rem;
    border: 2px solid var(--aurora-blue);
    box-shadow: 0 0 50px rgba(74, 144, 226, 0.2);
}

.stellar-intro h1 {
    font-family: 'Poiret One', cursive;
    font-size: 4rem;
    color: var(--star-silver);
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(192, 192, 192, 0.6);
    letter-spacing: 3px;
}

.stellar-intro p {
    font-size: 1.3rem;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 2;
    color: var(--celestial-white);
    font-weight: 300;
}

/* Wide Grid Layout */
.cosmos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

.constellation-box {
    background: linear-gradient(135deg, rgba(30, 42, 74, 0.5), rgba(90, 61, 122, 0.3));
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--aurora-blue);
    transition: all 0.4s ease;
}

.constellation-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(74, 144, 226, 0.4);
    border-color: var(--galaxy-pink);
}

.constellation-box h2 {
    font-family: 'Poiret One', cursive;
    color: var(--aurora-blue);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    letter-spacing: 2px;
}

.constellation-box p {
    color: var(--celestial-white);
    line-height: 1.9;
    font-weight: 300;
}

.celestial-alert {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(233, 75, 159, 0.2));
    border: 3px solid var(--galaxy-pink);
    padding: 2.5rem;
    margin: 4rem 0;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.celestial-alert h3 {
    color: var(--galaxy-pink);
    margin-bottom: 2rem;
    font-family: 'Poiret One', cursive;
    font-size: 2rem;
    letter-spacing: 2px;
}

.celestial-alert ul {
    list-style: none;
    padding-left: 0;
}

.celestial-alert li {
    margin: 1.2rem 0;
    padding-left: 2.5rem;
    position: relative;
    line-height: 1.9;
}

.celestial-alert li:before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--aurora-blue);
    font-size: 1.5rem;
}

/* Game Presentation */
.game-cosmos {
    margin: 5rem auto;
    text-align: center;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(11, 12, 30, 0.9), rgba(30, 42, 74, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 3px solid var(--star-silver);
    box-shadow: 0 0 80px rgba(192, 192, 192, 0.3);
}

.game-cosmos h2 {
    font-family: 'Poiret One', cursive;
    color: var(--star-silver);
    margin-bottom: 3rem;
    font-size: 3.5rem;
    text-shadow: 0 0 40px rgba(192, 192, 192, 0.8);
    letter-spacing: 3px;
}

.game-frame {
    width: 100%;
    max-width: 1000px;
    height: 700px;
    border: 4px solid var(--aurora-blue);
    border-radius: 15px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 10px 50px rgba(74, 144, 226, 0.5);
}

/* Footer */
footer {
    background: linear-gradient(90deg, rgba(11, 12, 30, 0.95), rgba(30, 42, 74, 0.95));
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--aurora-blue);
    padding: 3rem;
    text-align: center;
    margin-top: 6rem;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--aurora-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--galaxy-pink);
    text-shadow: 0 0 15px var(--galaxy-pink);
}

footer p {
    color: var(--star-silver);
    font-size: 1rem;
    margin: 0.7rem 0;
    font-weight: 300;
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.age-modal.active {
    display: flex;
}

.age-modal-content {
    background: linear-gradient(135deg, var(--deep-space), var(--cosmic-blue));
    padding: 4rem;
    border-radius: 25px;
    text-align: center;
    max-width: 600px;
    border: 3px solid var(--star-silver);
    box-shadow: 0 0 100px rgba(192, 192, 192, 0.6);
}

.age-modal-content h2 {
    font-family: 'Poiret One', cursive;
    color: var(--star-silver);
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 0 40px rgba(192, 192, 192, 0.8);
    letter-spacing: 3px;
}

.age-modal-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--celestial-white);
    font-weight: 300;
}

.age-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.age-button {
    padding: 1.3rem 3.5rem;
    font-size: 1.3rem;
    font-family: 'Raleway', sans-serif;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    letter-spacing: 2px;
}

.age-button.yes {
    background: var(--aurora-blue);
    color: var(--celestial-white);
    box-shadow: 0 5px 30px var(--aurora-blue);
}

.age-button.yes:hover {
    background: var(--galaxy-pink);
    box-shadow: 0 5px 30px var(--galaxy-pink);
    transform: scale(1.05);
}

.age-button.no {
    background: var(--nebula-purple);
    color: var(--celestial-white);
}

.age-button.no:hover {
    background: #3a2550;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        background: rgba(11, 12, 30, 0.98);
        backdrop-filter: blur(10px);
        transition: right 0.3s ease;
        padding-top: 6rem;
        border-left: 2px solid var(--aurora-blue);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 2rem;
    }

    nav li {
        border-bottom: 1px solid var(--aurora-blue);
    }

    nav a {
        display: block;
        padding: 2rem;
    }

    .stellar-intro h1 {
        font-size: 2.5rem;
    }

    .stellar-intro {
        padding: 3rem 2rem;
    }

    .game-frame {
        height: 500px;
    }

    .age-modal-content {
        margin: 1rem;
        padding: 3rem;
    }

    .age-buttons {
        flex-direction: column;
    }

    .cosmos-grid {
        grid-template-columns: 1fr;
    }
}

/* Text Pages */
.text-page {
    background: linear-gradient(135deg, rgba(30, 42, 74, 0.6), rgba(90, 61, 122, 0.4));
    backdrop-filter: blur(15px);
    padding: 4rem;
    border-radius: 25px;
    margin: 3rem auto;
    max-width: 1000px;
    border: 2px solid var(--aurora-blue);
}

.text-page h1 {
    font-family: 'Poiret One', cursive;
    color: var(--star-silver);
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-align: center;
    text-shadow: 0 0 30px rgba(192, 192, 192, 0.8);
    letter-spacing: 3px;
}

.text-page h2 {
    font-family: 'Poiret One', cursive;
    color: var(--aurora-blue);
    font-size: 2.2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.text-page p {
    margin-bottom: 1.5rem;
    line-height: 2;
    color: var(--celestial-white);
    font-weight: 300;
}

.text-page ul {
    margin: 1.5rem 0 1.5rem 2rem;
}

.text-page li {
    margin: 1rem 0;
    color: var(--celestial-white);
    font-weight: 300;
}
