/* Lunacrest.xyz - Cosmic Space Theme with Stars */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cosmic-purple: #a78bfa;
    --deep-purple: #7c3aed;
    --space-blue: #60a5fa;
    --moon-silver: #e0e7ff;
    --dark-space: #0f0820;
    --darker-space: #070312;
    --nebula-pink: #f472b6;
    --star-white: #ffffff;
    --text-dim: #c4b5fd;
}

body {
    font-family: 'Inter', sans-serif;
    background: #070312;
    color: var(--moon-silver);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Starfield Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 75%, white, transparent),
        radial-gradient(1px 1px at 15% 80%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0.4;
    animation: twinkle 100s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(96, 165, 250, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Header Navigation */
.top-header {
    position: sticky;
    top: 0;
    background: rgba(7, 3, 18, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(167, 139, 250, 0.3);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(124, 58, 237, 0.3);
}

.header-wrap {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    position: relative;
    z-index: 1;
}

.site-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cosmic-purple), var(--space-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    gap: 1rem;
}

.primary-nav a {
    color: var(--moon-silver);
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.primary-nav a:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: var(--cosmic-purple);
    transform: translateY(-2px);
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--cosmic-purple);
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--cosmic-purple);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Wrapper */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.cosmic-hero {
    padding: 6rem 2rem;
    text-align: center;
    margin: 3rem 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(96, 165, 250, 0.2));
    border-radius: 20px;
    border: 2px solid rgba(167, 139, 250, 0.4);
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.3);
}

.cosmic-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--cosmic-purple), var(--space-blue), var(--nebula-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 4px;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(96, 165, 250, 0.7));
    }
}

.cosmic-hero p {
    font-size: 1.4rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.9;
}

/* Section Title */
.space-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin: 4rem 0 2.5rem;
    background: linear-gradient(135deg, var(--cosmic-purple), var(--nebula-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Warning Panel */
.warning-panel {
    background: rgba(124, 58, 237, 0.15);
    border: 3px solid var(--cosmic-purple);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.warning-panel h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    color: var(--cosmic-purple);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.warning-panel ul {
    list-style: none;
    padding: 0;
}

.warning-panel li {
    padding: 0.8rem;
    font-size: 1.15rem;
    font-weight: 500;
}

/* Stellar Grid */
.stellar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 3rem 0;
}

.stellar-box {
    background: rgba(15, 8, 32, 0.8);
    border: 2px solid rgba(167, 139, 250, 0.3);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stellar-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
    transform: rotate(0deg);
    transition: transform 0.6s ease;
}

.stellar-box:hover::before {
    transform: rotate(180deg);
}

.stellar-box:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--cosmic-purple);
    box-shadow: 0 15px 50px rgba(124, 58, 237, 0.4);
}

.stellar-box h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    color: var(--space-blue);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.stellar-box p {
    color: var(--text-dim);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Info Panel */
.info-panel {
    background: rgba(15, 8, 32, 0.8);
    border: 2px solid rgba(167, 139, 250, 0.3);
    border-radius: 15px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
}

.info-panel p {
    color: var(--text-dim);
    font-size: 1.15rem;
    line-height: 1.9;
    max-width: 900px;
    margin: 0 auto;
}

/* Game Area */
.game-area {
    margin: 4rem 0;
    background: rgba(15, 8, 32, 0.9);
    border: 3px solid var(--cosmic-purple);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.3);
}

.game-embed {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.game-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer Area */
.space-footer {
    background: rgba(7, 3, 18, 0.9);
    border-top: 2px solid rgba(167, 139, 250, 0.3);
    padding: 3rem 2rem;
    margin-top: 5rem;
    position: relative;
    z-index: 1;
}

.footer-wrap {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-menu a {
    color: var(--cosmic-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: var(--space-blue);
}

.footer-note {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* Age Gate */
.age-gate {
    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-gate.active {
    display: flex;
}

.age-content {
    background: linear-gradient(135deg, var(--dark-space), var(--darker-space));
    padding: 3.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 550px;
    border: 4px solid var(--cosmic-purple);
    box-shadow: 0 0 80px rgba(124, 58, 237, 0.6);
}

.age-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--cosmic-purple);
    font-weight: 700;
    text-transform: uppercase;
}

.age-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--moon-silver);
}

.age-options {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.age-choice {
    padding: 1.2rem 3.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.age-choice.accept {
    background: linear-gradient(135deg, var(--cosmic-purple), var(--space-blue));
    color: white;
}

.age-choice.accept:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(167, 139, 250, 0.8);
}

.age-choice.reject {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.age-choice.reject:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.8);
}

/* Legal Pages */
.legal-content {
    background: rgba(15, 8, 32, 0.9);
    border: 2px solid rgba(167, 139, 250, 0.3);
    border-radius: 15px;
    padding: 3.5rem;
    margin: 3rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.legal-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--cosmic-purple);
    font-size: 2.2rem;
    margin: 2.5rem 0 1rem;
    font-weight: 700;
}

.legal-content p {
    color: var(--text-dim);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.legal-content ul {
    margin: 1rem 0 1.5rem 2rem;
    color: var(--text-dim);
}

.legal-content li {
    margin-bottom: 0.8rem;
}

.legal-content a {
    color: var(--space-blue);
    text-decoration: none;
    font-weight: 600;
}

.legal-content a:hover {
    text-decoration: underline;
    color: var(--cosmic-purple);
}

.highlight-panel {
    background: rgba(124, 58, 237, 0.15);
    border: 2px solid var(--cosmic-purple);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.highlight-panel strong {
    color: var(--cosmic-purple);
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stellar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(7, 3, 18, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 0.5rem;
        border-top: 2px solid rgba(167, 139, 250, 0.3);
    }
    
    .primary-nav.active {
        display: flex;
    }
    
    .cosmic-hero h1 {
        font-size: 2.5rem;
    }
    
    .cosmic-hero p {
        font-size: 1.1rem;
    }
    
    .space-title {
        font-size: 2rem;
    }
    
    .stellar-grid {
        grid-template-columns: 1fr;
    }
    
    .age-content {
        margin: 20px;
        padding: 2.5rem;
    }
    
    .age-options {
        flex-direction: column;
    }
}
