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

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

:root {
    --space-blue: #1e3a8a;
    --nebula: #7c3aed;
    --star: #fde047;
    --cosmos: #030712;
    --deep-space: #111827;
    --stardust: #e0e7ff;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--cosmos);
    color: var(--stardust);
    line-height: 1.75;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.galaxy-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}

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

.galaxy-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.galaxy-brand svg {
    width: 45px;
    height: 45px;
}

.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--star), var(--nebula));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.galaxy-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.galaxy-nav a {
    font-weight: 500;
    transition: color 0.3s;
}

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

.space-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.space-menu span {
    width: 26px;
    height: 2px;
    background: var(--star);
}

/* Hero */
.space-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 30px 80px;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(30, 58, 138, 0.2) 0%, transparent 50%),
        var(--cosmos);
    position: relative;
    overflow: hidden;
}

.space-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='%23fde04720'/%3E%3Ccircle cx='20' cy='30' r='0.5' fill='%23fde04715'/%3E%3Ccircle cx='80' cy='70' r='0.8' fill='%23fde04718'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--star), var(--nebula));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .tagline {
    font-size: 1.15rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.galaxy-btn {
    display: inline-block;
    padding: 16px 45px;
    background: linear-gradient(135deg, var(--space-blue), var(--nebula));
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    border: 1px solid rgba(253, 224, 71, 0.3);
}

.galaxy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
}

/* Notice Section */
.notice-section {
    padding: 80px 30px;
    background: var(--deep-space);
}

.notice-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.notice-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(30, 58, 138, 0.1));
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.3s;
}

.notice-box:hover {
    border-color: var(--star);
    transform: translateY(-5px);
}

.notice-box .icon {
    font-size: 3rem;
    margin-bottom: 18px;
}

.notice-box h3 {
    color: var(--star);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* Game Section */
.game-section {
    padding: 100px 30px;
    background: var(--cosmos);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title h2 span {
    color: var(--star);
}

.game-frame {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--deep-space);
    border-radius: 25px;
    padding: 20px;
    border: 2px solid var(--nebula);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.3);
}

.game-frame iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 15px;
}

/* Features */
.features-section {
    padding: 100px 30px;
    background: linear-gradient(180deg, var(--deep-space), var(--cosmos));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-box {
    background: rgba(253, 224, 71, 0.05);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(253, 224, 71, 0.1);
    transition: all 0.3s;
}

.feature-box:hover {
    background: rgba(253, 224, 71, 0.1);
    border-color: rgba(253, 224, 71, 0.3);
}

.feature-box .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-box h4 {
    color: var(--nebula);
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
}

/* Footer */
.galaxy-footer {
    background: var(--cosmos);
    padding: 60px 30px 30px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.support-area h4 {
    color: var(--star);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.support-area a {
    color: var(--nebula);
    margin: 0 18px;
    transition: opacity 0.3s;
}

.support-area a:hover {
    opacity: 0.7;
}

.footer-text {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(224, 231, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Age Gate */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.age-gate.hidden {
    display: none;
}

.gate-content {
    background: linear-gradient(135deg, var(--deep-space), var(--cosmos));
    border: 2px solid var(--nebula);
    border-radius: 25px;
    padding: 50px 45px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 0 80px rgba(124, 58, 237, 0.3);
}

.gate-content h2 {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(90deg, var(--star), var(--nebula));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.gate-content p {
    margin-bottom: 30px;
}

.gate-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.gate-btns button {
    padding: 14px 40px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-enter {
    background: linear-gradient(135deg, var(--space-blue), var(--nebula));
    color: white;
    border: none;
}

.btn-enter:hover {
    transform: scale(1.05);
}

.btn-leave {
    background: transparent;
    border: 1px solid var(--stardust);
    color: var(--stardust);
}

.btn-leave:hover {
    background: rgba(224, 231, 255, 0.1);
}

/* Page Header */
.page-header {
    padding: 150px 30px 80px;
    text-align: center;
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
        var(--cosmos);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.page-header h1 span {
    color: var(--star);
}

/* Content Section */
.content-section {
    padding: 70px 30px;
    max-width: 900px;
    margin: 0 auto;
}

.content-section h2 {
    color: var(--star);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin: 35px 0 18px;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section p {
    margin-bottom: 16px;
    opacity: 0.9;
}

.content-section ul {
    margin: 18px 0 18px 28px;
}

.content-section li {
    margin-bottom: 10px;
}

/* Play Header */
.play-header {
    padding: 140px 30px 50px;
    text-align: center;
    background: var(--cosmos);
}

.play-header h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
}

.play-header h1 span {
    color: var(--star);
}

.play-header .desc {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
    .notice-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .space-menu {
        display: flex;
    }
    
    .galaxy-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cosmos);
        padding: 25px;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.4s;
        border-bottom: 1px solid var(--nebula);
    }
    
    .galaxy-nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .galaxy-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .notice-row {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .game-frame iframe {
        height: 400px;
    }
    
    .gate-content {
        margin: 20px;
        padding: 35px 25px;
    }
    
    .gate-btns {
        flex-direction: column;
    }
}
