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

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

:root {
    --eclipse-black: #0f0f14;
    --cosmic-purple: #2a1f4e;
    --nebula-pink: #ff6b9d;
    --starlight-blue: #64b5f6;
    --lunar-silver: #c9d1d9;
    --white-glow: #ffffff;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--eclipse-black);
    color: var(--lunar-silver);
    line-height: 1.75;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
}

a {
    color: var(--nebula-pink);
    text-decoration: none;
    transition: color 0.25s;
}

a:hover {
    color: var(--starlight-blue);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 20, 0.92);
    backdrop-filter: blur(12px);
    z-index: 999;
    border-bottom: 1px solid rgba(255, 107, 157, 0.15);
}

.nav-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo svg {
    width: 44px;
    height: 44px;
}

.site-logo span {
    font-family: 'DM Serif Display', serif;
    font-size: 1.7rem;
    background: linear-gradient(90deg, var(--nebula-pink), var(--starlight-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-toggle {
    display: none;
    width: 32px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    height: 3px;
    background: var(--nebula-pink);
    border-radius: 3px;
    transition: all 0.3s;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--lunar-silver);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--nebula-pink), var(--starlight-blue));
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--white-glow);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 100px 2rem 60px;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(42, 31, 78, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 107, 157, 0.15) 0%, transparent 40%),
        var(--eclipse-black);
    text-align: center;
}

.hero-content {
    max-width: 850px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--white-glow);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 .accent {
    background: linear-gradient(90deg, var(--nebula-pink), var(--starlight-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--lunar-silver);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--nebula-pink), var(--cosmic-purple));
    color: var(--white-glow);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.hero-cta:hover {
    color: var(--white-glow);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.3);
}

/* Features */
.features {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--eclipse-black), var(--cosmic-purple), var(--eclipse-black));
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-8px);
    border-color: var(--nebula-pink);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--white-glow);
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(201, 209, 217, 0.8);
}

/* Game Display */
.game-display {
    padding: 5rem 2rem;
    background: var(--eclipse-black);
}

.game-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white-glow);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--lunar-silver);
    font-size: 1.1rem;
}

.game-frame {
    background: var(--cosmic-purple);
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.game-frame iframe {
    width: 100%;
    height: 620px;
    border: none;
    border-radius: 18px;
    display: block;
}

/* About */
.about {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--eclipse-black), rgba(42, 31, 78, 0.4));
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.8rem;
    color: var(--white-glow);
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(201, 209, 217, 0.9);
}

/* Footer */
.footer {
    background: rgba(15, 15, 20, 0.95);
    border-top: 1px solid rgba(255, 107, 157, 0.15);
    padding: 3rem 2rem;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--lunar-silver);
    font-size: 0.9rem;
}

.support-section {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 107, 157, 0.1);
}

.support-section p {
    font-size: 0.85rem;
    color: rgba(201, 209, 217, 0.7);
    margin-bottom: 1rem;
}

.support-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.support-links a {
    font-size: 0.85rem;
}

.footer-copy {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(201, 209, 217, 0.5);
}

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

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

.age-dialog {
    background: linear-gradient(145deg, var(--cosmic-purple), var(--eclipse-black));
    border: 2px solid var(--nebula-pink);
    border-radius: 24px;
    padding: 3rem;
    max-width: 460px;
    text-align: center;
}

.age-dialog h2 {
    font-size: 2rem;
    color: var(--white-glow);
    margin-bottom: 1.5rem;
}

.age-dialog p {
    color: var(--lunar-silver);
    margin-bottom: 2rem;
}

.age-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-age {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-yes {
    background: linear-gradient(135deg, var(--nebula-pink), var(--cosmic-purple));
    color: var(--white-glow);
}

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

.btn-no {
    background: transparent;
    color: var(--lunar-silver);
    border: 2px solid var(--cosmic-purple);
}

.btn-no:hover {
    background: var(--cosmic-purple);
}

/* Page Styles */
.page-main {
    padding: 110px 2rem 4rem;
    max-width: 950px;
    margin: 0 auto;
    min-height: calc(100vh - 250px);
}

.page-main h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--white-glow);
    margin-bottom: 2.5rem;
    text-align: center;
}

.page-main h2 {
    font-size: 1.5rem;
    color: var(--nebula-pink);
    margin: 2.5rem 0 1rem;
}

.page-main p {
    color: rgba(201, 209, 217, 0.9);
    margin-bottom: 1.2rem;
}

.page-main ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.page-main li {
    color: rgba(201, 209, 217, 0.85);
    margin-bottom: 0.5rem;
}

/* Play Page */
.play-section {
    padding: 110px 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.play-section h1 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--white-glow);
    margin-bottom: 1rem;
}

.play-section .game-info {
    text-align: center;
    color: var(--lunar-silver);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--eclipse-black);
        flex-direction: column;
        padding: 100px 2rem;
        gap: 2rem;
        transition: right 0.35s;
        border-left: 1px solid rgba(255, 107, 157, 0.2);
    }

    .nav-links.show {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .hero {
        padding: 90px 1.5rem 50px;
    }

    .game-frame iframe {
        height: 480px;
    }

    .age-btns {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .site-logo span {
        font-size: 1.3rem;
    }

    .game-frame iframe {
        height: 380px;
    }
}
