@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-indigo: #1a1a3e;
    --cosmic-purple: #2d2d5e;
    --star-gold: #ffd54f;
    --nebula-pink: #e040fb;
    --space-blue: #3f51b5;
    --starlight: #e8eaf6;
    --void-black: #0d0d1f;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--void-black);
    color: var(--starlight);
    line-height: 1.75;
}

h1, h2, h3, h4, h5 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

.top-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 7000;
    background: linear-gradient(180deg, var(--void-black) 0%, rgba(13, 13, 31, 0.9) 100%);
    backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 213, 79, 0.2);
}

.header-wrap {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--star-gold);
    text-decoration: none;
    letter-spacing: 3px;
}

.brand-logo span {
    color: var(--nebula-pink);
}

.menu-trigger {
    display: none;
    background: transparent;
    border: 1px solid var(--star-gold);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
}

.menu-trigger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--star-gold);
    margin: 5px 0;
    transition: 0.3s;
}

.menu-trigger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-trigger.active span:nth-child(2) {
    opacity: 0;
}

.menu-trigger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.header-nav {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.header-nav a {
    color: var(--starlight);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: var(--star-gold);
}

.main-wrap {
    padding-top: 75px;
}

.stellar-hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    background: radial-gradient(ellipse at center top, var(--cosmic-purple) 0%, var(--void-black) 70%);
    position: relative;
    overflow: hidden;
}

.stellar-hero::before {
    content: '✧';
    position: absolute;
    top: 15%;
    left: 20%;
    font-size: 1.5rem;
    color: var(--star-gold);
    animation: twinkle 2s infinite;
}

.stellar-hero::after {
    content: '✦';
    position: absolute;
    top: 30%;
    right: 25%;
    font-size: 1rem;
    color: var(--nebula-pink);
    animation: twinkle 3s infinite 0.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-text {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--star-gold);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 40px rgba(255, 213, 79, 0.3);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--starlight);
    opacity: 0.9;
    font-weight: 300;
}

.notice-section {
    background: var(--deep-indigo);
    padding: 4rem 2rem;
}

.notice-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.notice-item {
    background: rgba(63, 81, 181, 0.15);
    border: 1px solid var(--space-blue);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s;
}

.notice-item:hover {
    border-color: var(--star-gold);
}

.notice-item .star {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.notice-item h3 {
    color: var(--star-gold);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.notice-item p {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.85;
}

.game-galaxy {
    background: linear-gradient(180deg, var(--void-black) 0%, var(--deep-indigo) 100%);
    padding: 5rem 2rem;
}

.game-galaxy h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--star-gold);
    margin-bottom: 3rem;
}

.game-portal {
    max-width: 1150px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--space-blue), var(--cosmic-purple));
    padding: 6px;
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(255, 213, 79, 0.15), 0 0 100px rgba(224, 64, 251, 0.1);
}

.game-portal iframe {
    width: 100%;
    height: 680px;
    border: none;
    border-radius: 16px;
    display: block;
}

.cosmos-features {
    background: var(--cosmic-purple);
    padding: 5rem 2rem;
}

.feature-constellation {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.constellation-point {
    text-align: center;
    padding: 2rem 1rem;
}

.constellation-point .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.constellation-point h3 {
    color: var(--star-gold);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.constellation-point p {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.85;
}

.page-area {
    padding: 5rem 2rem;
    max-width: 950px;
    margin: 0 auto;
}

.page-area h1 {
    color: var(--star-gold);
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 3rem;
}

.page-area h2 {
    color: var(--star-gold);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.page-area p {
    font-weight: 300;
    margin-bottom: 1rem;
}

.page-area ul {
    margin: 1rem 0 1rem 2rem;
    font-weight: 300;
}

.page-area li {
    margin-bottom: 0.5rem;
}

.cosmic-note {
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.3), rgba(224, 64, 251, 0.2));
    border: 1px solid var(--nebula-pink);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.cosmic-note p {
    margin: 0.5rem 0;
}

.bottom-bar {
    background: var(--void-black);
    border-top: 1px solid rgba(255, 213, 79, 0.2);
    padding: 3rem 2rem;
    text-align: center;
}

.responsible-area {
    margin-bottom: 1.5rem;
}

.responsible-area h4 {
    color: var(--star-gold);
    font-family: 'Raleway', sans-serif;
    margin-bottom: 1rem;
}

.responsible-area a {
    color: var(--starlight);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
    opacity: 0.8;
}

.responsible-area a:hover {
    color: var(--star-gold);
    opacity: 1;
}

.bottom-text {
    color: var(--starlight);
    opacity: 0.6;
    font-size: 0.85rem;
}

/* Age Verification */
.age-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 31, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80000;
}

.age-gate-overlay.hidden {
    display: none;
}

.age-gate-modal {
    background: linear-gradient(135deg, var(--cosmic-purple), var(--deep-indigo));
    border: 2px solid var(--star-gold);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    margin: 1rem;
    text-align: center;
}

.age-gate-modal h2 {
    color: var(--star-gold);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.age-gate-modal > p {
    margin-bottom: 2rem;
    font-weight: 300;
}

.gate-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.gate-btn {
    padding: 1rem 2.5rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.gate-btn.enter {
    background: var(--star-gold);
    color: var(--void-black);
}

.gate-btn.enter:hover {
    background: #fff;
    transform: scale(1.05);
}

.gate-btn.leave {
    background: transparent;
    border: 2px solid var(--star-gold);
    color: var(--star-gold);
}

.gate-btn.leave:hover {
    background: rgba(255, 213, 79, 0.1);
}

.leave-msg {
    display: none;
    margin-top: 1.5rem;
    color: var(--nebula-pink);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .feature-constellation {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-trigger {
        display: block;
    }
    
    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--deep-indigo);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        display: none;
    }
    
    .header-nav.active {
        display: flex;
    }
    
    .header-nav li {
        text-align: center;
    }
    
    .header-nav a {
        display: block;
        padding: 1rem;
    }
    
    .stellar-hero h1 {
        font-size: 2.2rem;
    }
    
    .notice-grid {
        grid-template-columns: 1fr;
    }
    
    .game-portal iframe {
        height: 480px;
    }
    
    .feature-constellation {
        grid-template-columns: 1fr;
    }
    
    .gate-actions {
        flex-direction: column;
    }
}
