@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Titillium+Web:wght@300;400;600;700&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-blue: #00d4ff;
    --neon-purple: #b347ff;
    --neon-pink: #ff47ab;
    --space-dark: #0a0a1f;
    --space-mid: #121233;
    --white: #ffffff;
    --gray: #a0a0b0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Titillium Web', sans-serif;
    background: var(--space-dark);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Audiowide', cursive;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

/* Top Bar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 31, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.topbar-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-mark {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Audiowide', cursive;
    font-size: 22px;
    font-weight: bold;
    color: var(--space-dark);
}

.logo-name {
    font-family: 'Audiowide', cursive;
    font-size: 1.6rem;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.site-nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.site-nav a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transition: all 0.3s;
    transform: translateX(-50%);
}

.site-nav a:hover::before {
    width: 100%;
}

.site-nav a:hover {
    color: var(--neon-blue);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-btn span {
    width: 26px;
    height: 3px;
    background: var(--neon-blue);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Main Hero */
.main-hero {
    min-height: 100vh;
    background: radial-gradient(ellipse at top, var(--space-mid) 0%, var(--space-dark) 60%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 130px 2rem 80px;
    position: relative;
}

.main-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
                      radial-gradient(2px 2px at 40px 70px, rgba(0,212,255,0.2), transparent),
                      radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.2), transparent),
                      radial-gradient(2px 2px at 130px 80px, rgba(179,71,255,0.2), transparent),
                      radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.3), transparent);
    background-size: 200px 200px;
    animation: stars 100s linear infinite;
    pointer-events: none;
}

@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Info Tags */
.info-tags {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--neon-blue);
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-emoji {
    font-size: 1.3rem;
}

/* Game Area */
.game-area {
    padding: 4rem 2rem;
    background: var(--space-mid);
}

.game-area-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.game-box {
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.1), rgba(179, 71, 255, 0.1));
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.15), 0 20px 50px rgba(0, 0, 0, 0.4);
}

.game-iframe {
    width: 100%;
    height: 560px;
    border: none;
    border-radius: 8px;
}

/* Benefits Section */
.benefits {
    padding: 6rem 2rem;
    background: var(--space-dark);
}

.benefits-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 4rem;
}

.section-head h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefits-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-box {
    background: rgba(18, 18, 51, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s;
}

.benefit-box:hover {
    border-color: var(--neon-blue);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.benefit-emoji {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.benefit-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--neon-blue);
}

.benefit-box p {
    color: var(--gray);
    line-height: 1.7;
}

/* Content Blocks */
.content-blocks {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--space-mid) 0%, var(--space-dark) 100%);
}

.content-blocks-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.block {
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--neon-purple);
}

.block h3 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.block p {
    color: var(--gray);
}

/* Bottom Bar */
.bottom-bar {
    background: var(--space-dark);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 3.5rem 2rem;
}

.bottom-bar-inner {
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

.bottom-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.bottom-links a {
    color: var(--white);
    font-weight: 600;
}

.bottom-links a:hover {
    color: var(--neon-blue);
}

.support-section {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
}

.support-section p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.support-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.support-links a {
    color: var(--neon-purple);
    font-size: 0.9rem;
}

.copy-notice {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Age Popup */
.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 31, 0.98);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.age-popup-box {
    background: linear-gradient(145deg, var(--space-mid), var(--space-dark));
    border: 2px solid var(--neon-blue);
    border-radius: 20px;
    padding: 3rem;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 0 80px rgba(0, 212, 255, 0.3);
}

.popup-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.age-popup-box h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--neon-blue);
}

.age-popup-box p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.popup-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.popup-btn {
    padding: 1rem 2.5rem;
    font-family: 'Audiowide', cursive;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-accept {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    color: var(--white);
}

.btn-accept:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-decline {
    background: transparent;
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
}

.btn-decline:hover {
    background: var(--neon-pink);
    color: var(--white);
}

.hidden {
    display: none !important;
}

/* Inner Pages */
.inner-page {
    padding: 130px 2rem 5rem;
    max-width: 1000px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.inner-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.inner-page h2 {
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
    color: var(--neon-blue);
}

.inner-page p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.inner-page ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--gray);
}

.inner-page li {
    margin-bottom: 0.5rem;
}

/* Play Page */
.play-wrap {
    padding: 130px 2rem 5rem;
    background: var(--space-mid);
    min-height: 100vh;
}

.play-container {
    max-width: 1400px;
    margin: 0 auto;
}

.play-top {
    text-align: center;
    margin-bottom: 2rem;
}

.play-top h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.play-top p {
    color: var(--gray);
    font-size: 1.1rem;
}

.play-tips {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.play-tips h3 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.play-tips p {
    color: var(--gray);
}

/* Mobile */
@media (max-width: 992px) {
    .benefits-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-nav {
        position: fixed;
        top: 82px;
        left: 0;
        width: 100%;
        background: var(--space-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s;
        border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    }

    .site-nav.visible {
        transform: translateY(0);
    }

    .menu-btn {
        display: flex;
    }

    .menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .info-tags {
        flex-direction: column;
        align-items: center;
    }

    .benefits-row {
        grid-template-columns: 1fr;
    }

    .game-iframe {
        height: 380px;
    }

    .bottom-links {
        flex-direction: column;
        gap: 1rem;
    }

    .popup-btns {
        flex-direction: column;
    }

    .age-popup-box {
        padding: 2rem;
    }

    .inner-page h1 {
        font-size: 1.8rem;
    }
}
