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

:root {
    --cosmic-purple: #7b2cbf;
    --nebula-pink: #e040fb;
    --starlight: #f3e5f5;
    --void: #120024;
    --deep-space: #1a0033;
    --comet: #ba68c8;
    --stardust: #9c9c9c;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--void);
    color: var(--starlight);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(123, 44, 191, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(224, 64, 251, 0.15) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Header */
.cosmic-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 0, 36, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(224, 64, 251, 0.3);
}

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

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--cosmic-purple), var(--nebula-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 1px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    width: 28px;
    height: 3px;
    background: var(--nebula-pink);
    border-radius: 3px;
    transition: 0.3s;
}

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

.cosmic-nav a {
    color: var(--starlight);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.cosmic-nav a:hover {
    color: var(--nebula-pink);
}

@media (max-width: 880px) {
    .burger {
        display: flex;
        z-index: 1001;
    }
    
    .cosmic-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--deep-space);
        flex-direction: column;
        padding: 100px 40px;
        gap: 25px;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(224, 64, 251, 0.3);
    }
    
    .cosmic-nav.visible {
        right: 0;
    }
    
    .cosmic-nav a {
        font-size: 1.2rem;
    }
}

/* Main Content */
main {
    padding-top: 80px;
}

/* Hero Section */
.hero-cosmos {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 30px;
}

.hero-cosmos h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.15;
}

.hero-cosmos h1 .gradient {
    background: linear-gradient(90deg, var(--cosmic-purple), var(--nebula-pink), var(--comet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-cosmos p {
    max-width: 750px;
    color: var(--stardust);
    font-size: 1.15rem;
    margin-bottom: 45px;
}

/* Notice Cards */
.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.notice-card {
    background: rgba(123, 44, 191, 0.2);
    border: 1px solid rgba(224, 64, 251, 0.3);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.notice-card:hover {
    transform: translateY(-5px);
    background: rgba(123, 44, 191, 0.3);
}

.notice-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.notice-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Game Display */
.game-cosmos {
    padding: 50px 30px;
}

.game-frame-wrap {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(26, 0, 51, 0.8);
    border-radius: 25px;
    padding: 20px;
    border: 2px solid rgba(224, 64, 251, 0.3);
    box-shadow: 0 30px 80px rgba(123, 44, 191, 0.25);
}

.game-display {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 15px;
    background: #000;
}

@media (max-width: 880px) {
    .game-display {
        height: 400px;
    }
}

/* Sections */
.cosmos-section {
    padding: 90px 30px;
}

.cosmos-section.alt {
    background: linear-gradient(180deg, var(--deep-space) 0%, var(--void) 100%);
}

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

.section-center h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 18px;
}

.section-center p {
    color: var(--stardust);
    max-width: 650px;
    margin: 0 auto;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-box {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.15), rgba(224, 64, 251, 0.1));
    border: 1px solid rgba(224, 64, 251, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(224, 64, 251, 0.2);
}

.feature-symbol {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: var(--nebula-pink);
}

.feature-box p {
    color: var(--stardust);
    font-size: 0.95rem;
}

/* Text Content */
.text-cosmos {
    max-width: 900px;
    margin: 0 auto;
}

.text-cosmos p {
    margin-bottom: 22px;
    color: var(--stardust);
    font-size: 1.05rem;
}

/* Footer */
.cosmos-footer {
    background: #0a0014;
    padding: 55px 30px 30px;
    border-top: 1px solid rgba(224, 64, 251, 0.2);
}

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

.gaming-resources {
    margin-bottom: 35px;
}

.gaming-resources h5 {
    color: var(--nebula-pink);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.resource-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.resource-links a {
    color: var(--stardust);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.resource-links a:hover {
    color: var(--nebula-pink);
}

.footer-text {
    padding-top: 25px;
    border-top: 1px solid rgba(224, 64, 251, 0.1);
    color: var(--stardust);
    font-size: 0.85rem;
}

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

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

.age-dialog {
    background: var(--deep-space);
    padding: 55px 45px;
    border-radius: 25px;
    text-align: center;
    max-width: 480px;
    margin: 20px;
    border: 2px solid var(--nebula-pink);
    box-shadow: 0 0 80px rgba(224, 64, 251, 0.3);
}

.age-dialog h2 {
    font-size: 1.8rem;
    margin-bottom: 22px;
    background: linear-gradient(90deg, var(--cosmic-purple), var(--nebula-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.age-dialog p {
    color: var(--stardust);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.age-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.age-btn {
    padding: 15px 40px;
    border-radius: 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    border: none;
}

.age-btn.enter {
    background: linear-gradient(90deg, var(--cosmic-purple), var(--nebula-pink));
    color: white;
}

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

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

.age-btn.enter:hover {
    box-shadow: 0 10px 30px rgba(224, 64, 251, 0.4);
}

/* Page Header */
.page-cosmos {
    padding: 140px 30px 70px;
    background: linear-gradient(180deg, var(--deep-space) 0%, var(--void) 100%);
    text-align: center;
}

.page-cosmos h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 15px;
}

.page-cosmos p {
    color: var(--stardust);
    max-width: 600px;
    margin: 0 auto;
}

/* Legal Content */
.legal-cosmos {
    max-width: 900px;
    margin: 0 auto;
    padding: 70px 30px;
}

.legal-cosmos h2 {
    font-size: 1.5rem;
    margin: 50px 0 22px;
    color: var(--nebula-pink);
}

.legal-cosmos h3 {
    font-size: 1.2rem;
    margin: 35px 0 15px;
}

.legal-cosmos p {
    margin-bottom: 18px;
    color: var(--stardust);
}

.legal-cosmos ul {
    margin: 18px 0 18px 30px;
    color: var(--stardust);
}

.legal-cosmos li {
    margin-bottom: 10px;
}

/* Play Section */
.play-cosmos {
    padding: 110px 30px 60px;
}

.play-notes {
    max-width: 750px;
    margin: 30px auto 0;
    text-align: center;
    color: var(--stardust);
    font-size: 0.95rem;
}
