@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Rubik:wght@300;400;500;600;700&display=swap');

:root {
    --space-dark: #0d0221;
    --space-mid: #190535;
    --space-light: #2d1357;
    --violet: #7c3aed;
    --purple: #a855f7;
    --lavender: #c4b5fd;
    --white: #ffffff;
    --gray: #a1a1aa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Rubik', sans-serif;
    background: var(--space-dark);
    color: var(--white);
    line-height: 1.75;
    min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Audiowide', cursive; color: var(--lavender); }

a { color: var(--purple); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--lavender); }

/* Header */
.top-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(13, 2, 33, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--violet);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-wrap svg { width: 44px; height: 44px; }
.logo-wrap span { font-family: 'Audiowide', cursive; font-size: 1.3rem; color: var(--purple); }

.nav-main { display: flex; gap: 2rem; }
.nav-main a { color: var(--gray); font-weight: 500; font-size: 0.9rem; }
.nav-main a:hover { color: var(--lavender); }

.burger-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger-btn span { width: 26px; height: 2px; background: var(--purple); transition: 0.3s; }
.burger-btn.active span:first-child { transform: rotate(45deg) translate(5px, 5px); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:last-child { transform: rotate(-45deg) translate(5px, -5px); }

.nav-drop { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--space-mid); }
.nav-drop.show { display: block; }
.nav-drop a { display: block; padding: 1rem 2rem; color: var(--gray); border-bottom: 1px solid var(--space-light); }

main { padding-top: 78px; }

/* Hero */
.space-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: radial-gradient(ellipse at top, var(--space-mid) 0%, var(--space-dark) 70%);
}

.hero-content { max-width: 850px; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.2rem; color: var(--gray); margin-bottom: 2.5rem; }

.space-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--violet), var(--purple));
    color: white;
    font-family: 'Audiowide', cursive;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: all 0.3s;
}
.space-btn:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(168, 85, 247, 0.5); color: white; }

/* Cards */
.card-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 4rem 2rem;
    background: var(--space-mid);
}

.info-card {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    background: var(--space-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--violet);
}

.info-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.info-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.info-card p { color: var(--gray); font-size: 0.95rem; }

/* Game */
.game-area { padding: 4rem 2rem; }
.game-area h2 { text-align: center; font-size: 2.2rem; margin-bottom: 2rem; }

.game-box {
    max-width: 1100px;
    margin: 0 auto;
    border: 2px solid var(--violet);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.3);
}
.game-box iframe { width: 100%; height: 600px; border: none; display: block; }

/* Features */
.feat-section { padding: 4rem 2rem; background: var(--space-mid); }
.feat-section h2 { text-align: center; font-size: 2rem; margin-bottom: 2.5rem; }
.feat-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.feat-box { text-align: center; padding: 1.5rem; }
.feat-box .sym { font-size: 2.5rem; margin-bottom: 0.75rem; }
.feat-box h4 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--purple); }
.feat-box p { color: var(--gray); font-size: 0.9rem; }

/* Play Page */
.play-intro { padding: 4rem 2rem 2rem; text-align: center; background: var(--space-mid); }
.play-intro h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.play-intro p { color: var(--gray); max-width: 600px; margin: 0 auto; }

.play-area { padding: 2rem; }
.play-area .game-box { max-width: 1300px; }
.play-area .game-box iframe { height: 680px; }

.guide-box { max-width: 800px; margin: 2rem auto 0; background: var(--space-light); border-radius: 12px; padding: 2rem; border: 1px solid var(--violet); }
.guide-box h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--purple); }
.guide-box p { color: var(--gray); font-size: 0.95rem; margin-bottom: 0.5rem; }

/* Text Pages */
.text-section { padding: 4rem 2rem; max-width: 900px; margin: 0 auto; }
.text-section h1 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }
.text-section h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--purple); }
.text-section p { color: var(--gray); margin-bottom: 1.25rem; }
.text-section ul { list-style: none; margin: 1rem 0 1.5rem; }
.text-section ul li { padding: 0.6rem 0 0.6rem 1.5rem; color: var(--gray); position: relative; }
.text-section ul li::before { content: '★'; position: absolute; left: 0; color: var(--purple); }

/* Footer */
.site-footer { background: var(--space-mid); border-top: 1px solid var(--violet); padding: 3rem 2rem; margin-top: 4rem; }
.footer-wrap { max-width: 1000px; margin: 0 auto; text-align: center; }
.footer-wrap h4 { font-size: 1rem; margin-bottom: 1.5rem; color: var(--gray); }
.support-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.support-links a { padding: 0.6rem 1.25rem; border: 1px solid var(--violet); border-radius: 25px; color: var(--violet); font-size: 0.9rem; }
.support-links a:hover { background: var(--violet); color: white; }
.footer-note { color: var(--gray); font-size: 0.85rem; padding-top: 1.5rem; border-top: 1px solid var(--space-light); }

/* Age Modal */
.age-screen { position: fixed; inset: 0; background: rgba(0,0,0,0.97); display: flex; align-items: center; justify-content: center; z-index: 99999; }
.age-screen.hidden { display: none; }
.age-popup { background: var(--space-light); border: 2px solid var(--violet); border-radius: 20px; padding: 2.5rem; max-width: 440px; text-align: center; }
.age-popup h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.age-popup p { color: var(--gray); margin-bottom: 2rem; }
.age-actions { display: flex; gap: 1rem; justify-content: center; }
.age-actions button { padding: 0.85rem 2rem; border-radius: 25px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-yes { background: var(--violet); color: white; border: none; }
.btn-yes:hover { background: var(--purple); }
.btn-no { background: transparent; color: var(--violet); border: 2px solid var(--violet); }

@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .nav-main { display: none; }
    .burger-btn { display: flex; }
    .space-hero h1 { font-size: 2.2rem; }
    .game-box iframe { height: 420px; }
    .play-area .game-box iframe { height: 480px; }
    .card-row { flex-direction: column; align-items: center; }
    .info-card { max-width: 100%; }
    .age-popup { margin: 1rem; padding: 2rem; }
    .age-actions { flex-direction: column; }
    .support-links { flex-direction: column; align-items: center; }
}
