@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Nunito:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --violet-600: #7c3aed;
    --violet-500: #8b5cf6;
    --violet-400: #a78bfa;
    --violet-300: #c4b5fd;
    --space-black: #0a0a1a;
    --space-dark: #12122a;
    --space-mid: #1e1e3f;
    --star-white: #f5f3ff;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--space-black);
    color: var(--star-white);
    line-height: 1.7;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 30%);
}

h1, h2, h3, h4 {
    font-family: 'Audiowide', cursive;
}

a {
    color: var(--violet-400);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--violet-300);
}

.masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 800;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.masthead-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-orb {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet-600), var(--violet-400));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.brand-orb span {
    font-family: 'Audiowide', cursive;
    font-size: 1.1rem;
    color: var(--space-black);
}

.brand-text {
    font-family: 'Audiowide', cursive;
    font-size: 1.5rem;
    color: var(--violet-400);
}

.site-nav {
    display: flex;
    gap: 0.5rem;
}

.site-nav a {
    color: var(--star-white);
    padding: 0.5rem 1.125rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.site-nav a:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--violet-400);
}

.hamburger-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger-icon span {
    width: 26px;
    height: 2px;
    background: var(--violet-400);
    transition: 0.3s;
}

.hamburger-icon.expanded span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.expanded span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.expanded span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 26, 0.98);
    z-index: 700;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.nav-overlay.expanded {
    display: flex;
}

.nav-overlay a {
    font-family: 'Audiowide', cursive;
    font-size: 1.25rem;
    color: var(--star-white);
}

.page-body {
    padding-top: 85px;
}

.launch-section {
    padding: 5rem 2rem 4rem;
    text-align: center;
}

.launch-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--star-white);
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.launch-section h1 span {
    color: var(--violet-400);
}

.launch-section > p {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.mission-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.mission-tag {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 0.625rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
}

.game-zone {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.game-portal {
    background: var(--space-mid);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.15);
}

.game-portal iframe {
    width: 100%;
    height: 660px;
    border: none;
    display: block;
}

.perks-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.perks-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.perk-module {
    background: linear-gradient(160deg, var(--space-mid), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.perk-module:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}

.perk-module .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.perk-module h3 {
    color: var(--violet-400);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.perk-module p {
    font-size: 0.95rem;
    opacity: 0.85;
}

.about-area {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-area > h2 {
    text-align: center;
    color: var(--violet-400);
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.about-panel {
    background: var(--space-mid);
    border-left: 4px solid var(--violet-500);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border-radius: 0 14px 14px 0;
}

.about-panel h3 {
    color: var(--violet-300);
    margin-bottom: 0.625rem;
}

.legal-page {
    padding: 6rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-page h1 {
    color: var(--violet-400);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.legal-page h2 {
    color: var(--violet-300);
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
    font-family: 'Audiowide', cursive;
}

.legal-page p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.legal-page ul {
    margin: 0.75rem 0 1.125rem 1.5rem;
}

.legal-page li {
    margin-bottom: 0.4rem;
}

.arcade-page {
    padding: 5.5rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.arcade-page h1 {
    text-align: center;
    color: var(--violet-400);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.arcade-page > p {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
    opacity: 0.88;
}

.base-footer {
    background: var(--space-dark);
    padding: 3rem 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.safety-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.safety-links a {
    color: var(--star-white);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.safety-links a:hover {
    opacity: 1;
    color: var(--violet-400);
}

.small-print {
    font-size: 0.85rem;
    opacity: 0.5;
}

.age-barrier {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 26, 0.98);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.age-barrier.cleared {
    display: none;
}

.age-prompt {
    background: var(--space-mid);
    border: 2px solid var(--violet-500);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    max-width: 440px;
    box-shadow: 0 0 80px rgba(139, 92, 246, 0.3);
}

.age-prompt h2 {
    color: var(--violet-400);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.age-prompt p {
    margin-bottom: 1.75rem;
    opacity: 0.9;
}

.age-choices {
    display: flex;
    gap: 1rem;
}

.choice-enter {
    flex: 1;
    background: linear-gradient(135deg, var(--violet-600), var(--violet-500));
    color: white;
    border: none;
    padding: 0.925rem;
    border-radius: 10px;
    font-family: 'Audiowide', cursive;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.choice-enter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.choice-leave {
    flex: 1;
    background: transparent;
    color: var(--star-white);
    border: 1px solid var(--star-white);
    padding: 0.925rem;
    border-radius: 10px;
    font-family: 'Audiowide', cursive;
    font-size: 0.95rem;
    cursor: pointer;
}

.choice-leave:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .site-nav {
        display: none;
    }

    .hamburger-icon {
        display: flex;
    }

    .masthead-inner {
        padding: 1rem;
    }

    .brand-text {
        font-size: 1.25rem;
    }

    .launch-section {
        padding: 3.5rem 1rem 3rem;
    }

    .game-portal iframe {
        height: 460px;
    }

    .mission-tags {
        flex-direction: column;
        align-items: center;
    }

    .legal-page {
        padding: 5rem 1rem 3rem;
    }

    .age-prompt {
        padding: 2rem;
    }

    .age-choices {
        flex-direction: column;
    }
}
