@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple: #9333ea;
    --blue: #2563eb;
    --pink: #ec4899;
    --galaxy-dark: #0a0014;
    --galaxy-mid: #150025;
    --star: #f5f5f5;
    --nebula: #c4b5fd;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--galaxy-dark);
    color: var(--star);
    line-height: 1.7;
}

.galaxy-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 0, 20, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--purple);
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.galaxy-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-star {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, var(--pink), var(--purple), var(--blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px var(--purple); }
    50% { box-shadow: 0 0 25px var(--purple); }
}

.brand-word {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.star-nav {
    display: flex;
    gap: 2.5rem;
}

.star-nav a {
    color: var(--star);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.star-nav a:hover {
    color: var(--nebula);
}

.cosmos-btn {
    display: none;
    cursor: pointer;
    padding: 8px;
}

.cosmos-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--purple);
    margin: 5px 0;
}

.nebula-menu {
    display: none;
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--galaxy-mid);
    padding: 1rem;
    border-bottom: 2px solid var(--purple);
}

.nebula-menu.open {
    display: block;
}

.nebula-menu a {
    display: block;
    color: var(--star);
    text-decoration: none;
    padding: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
}

.universe {
    padding-top: 90px;
}

.cosmos-hero {
    background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 50%, var(--pink) 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cosmos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
}

.hero-zone {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.cosmos-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(147, 51, 234, 0.5);
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.star-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.star-tag {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
}

.sector {
    padding: 4rem 2rem;
}

.sector-label {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--nebula);
    margin-bottom: 1.5rem;
}

.roulette-viewport {
    background: var(--galaxy-mid);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 2px solid var(--purple);
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.2);
}

.roulette-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 12px;
}

.constellation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.star-card {
    background: var(--galaxy-mid);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(147, 51, 234, 0.3);
    transition: border-color 0.3s, transform 0.3s;
}

.star-card:hover {
    border-color: var(--purple);
    transform: translateY(-5px);
}

.star-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.star-card h3 {
    color: var(--pink);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.star-card p {
    color: var(--nebula);
}

.cosmic-alert {
    background: linear-gradient(90deg, rgba(147, 51, 234, 0.15), rgba(37, 99, 235, 0.1));
    border: 2px solid var(--purple);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.cosmic-alert h2 {
    color: var(--nebula);
    margin-bottom: 1rem;
    font-weight: 700;
}

.cosmic-alert p {
    color: var(--star);
    opacity: 0.9;
}

.orbit-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.orbit-item {
    background: var(--galaxy-mid);
    padding: 1.25rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.orbit-icon {
    color: var(--purple);
    font-size: 1.3rem;
}

.cosmos-footer {
    background: var(--galaxy-mid);
    padding: 3rem 2rem;
    border-top: 3px solid var(--purple);
}

.footer-center {
    text-align: center;
}

.guidance-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.guidance-links a {
    color: var(--nebula);
    text-decoration: none;
    font-weight: 600;
}

.guidance-links a:hover {
    text-decoration: underline;
}

.cosmos-text {
    color: var(--nebula);
    font-size: 0.9rem;
    opacity: 0.8;
}

.dimension-gate {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gate-panel {
    background: var(--galaxy-mid);
    border: 3px solid var(--purple);
    border-radius: 20px;
    padding: 3rem;
    max-width: 480px;
    margin: 1rem;
    text-align: center;
    box-shadow: 0 0 60px rgba(147, 51, 234, 0.4);
}

.gate-symbol {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.gate-panel h2 {
    color: var(--nebula);
    margin-bottom: 1rem;
    font-weight: 800;
}

.gate-panel p {
    color: var(--star);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.gate-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.gate-btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gate-btn:hover {
    transform: scale(1.05);
}

.gate-btn.enter {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white;
    box-shadow: 0 5px 25px rgba(147, 51, 234, 0.4);
}

.gate-btn.exit {
    background: transparent;
    border: 2px solid var(--purple);
    color: var(--purple);
}

.page-hero {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    padding: 4rem 2rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

.content-zone {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.info-block {
    background: var(--galaxy-mid);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--purple);
}

.info-block h2 {
    color: var(--pink);
    margin-bottom: 1rem;
    font-weight: 700;
}

.info-block p {
    color: var(--nebula);
    margin-bottom: 0.75rem;
}

.info-block ul {
    color: var(--nebula);
    margin: 1rem 0 1rem 1.5rem;
}

.info-block li {
    margin-bottom: 0.4rem;
}

@media (max-width: 1024px) {
    .constellation-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .orbit-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .star-nav {
        display: none;
    }

    .cosmos-btn {
        display: block;
    }

    .cosmos-hero h1 {
        font-size: 2rem;
    }

    .constellation-grid {
        grid-template-columns: 1fr;
    }

    .orbit-list {
        grid-template-columns: 1fr;
    }

    .roulette-frame {
        height: 450px;
    }

    .gate-controls {
        flex-direction: column;
    }
}
