@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nebula-blue: #3b82f6;
    --nebula-violet: #8b5cf6;
    --nebula-teal: #14b8a6;
    --space-black: #030712;
    --space-deep: #0f172a;
    --panel-bg: #1e293b;
    --text-bright: #f1f5f9;
    --text-dim: #94a3b8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--space-black);
    color: var(--text-bright);
    line-height: 1.75;
}

a {
    color: var(--nebula-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--nebula-violet);
}

/* Animated Background */
.nebula-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(20, 184, 166, 0.08) 0%, transparent 60%);
    z-index: 0;
    animation: nebulaPulse 15s ease-in-out infinite alternate;
}

@keyframes nebulaPulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Navigation */
.space-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding: 1rem 0;
}

.nav-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nebula-brand {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--nebula-blue);
    letter-spacing: 1px;
}

.nebula-brand span {
    color: var(--nebula-violet);
}

.space-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.space-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.space-links a:hover {
    color: var(--nebula-teal);
}

.toggle-nav {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.toggle-nav span {
    width: 26px;
    height: 3px;
    background: var(--nebula-blue);
    border-radius: 2px;
}

/* Hero */
.hero-space {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 5rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content h1 .blue { color: var(--nebula-blue); }
.hero-content h1 .violet { color: var(--nebula-violet); }
.hero-content h1 .teal { color: var(--nebula-teal); }

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.space-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--nebula-blue), var(--nebula-violet));
    color: var(--text-bright);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.space-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    color: var(--text-bright);
}

/* Warnings */
.warnings-section {
    padding: 4rem 2rem;
    background: rgba(15, 23, 42, 0.8);
    position: relative;
    z-index: 1;
}

.warnings-row {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.warning-tile {
    background: var(--panel-bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.warning-tile .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.warning-tile h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nebula-teal);
    margin-bottom: 0.5rem;
}

.warning-tile p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Game Display */
.game-display {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.display-header {
    text-align: center;
    margin-bottom: 3rem;
}

.display-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-bright);
}

.display-header h2 span {
    color: var(--nebula-violet);
}

.display-header p {
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.game-frame {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--panel-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--nebula-blue);
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.2);
}

.game-frame iframe {
    width: 100%;
    height: 640px;
    border: none;
    display: block;
}

/* Info Panels */
.info-panels {
    padding: 5rem 2rem;
    background: rgba(15, 23, 42, 0.6);
    position: relative;
    z-index: 1;
}

.panels-grid {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.panel {
    background: var(--panel-bg);
    border-radius: 12px;
    padding: 2.5rem;
    border-top: 4px solid var(--nebula-blue);
}

.panel h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nebula-teal);
    margin-bottom: 1rem;
}

.panel p {
    color: var(--text-dim);
    line-height: 1.8;
}

.panel ul {
    list-style: none;
    margin-top: 1rem;
}

.panel li {
    padding: 0.5rem 0;
    color: var(--text-dim);
    padding-left: 1.5rem;
    position: relative;
}

.panel li::before {
    content: '»';
    position: absolute;
    left: 0;
    color: var(--nebula-violet);
    font-weight: 700;
}

/* Footer */
.space-footer {
    background: var(--space-deep);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1500px;
    margin: 0 auto;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.help-resources {
    padding-top: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
}

.help-resources h4 {
    font-size: 0.85rem;
    color: var(--nebula-violet);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.help-resources a {
    margin: 0 1rem;
    font-size: 0.9rem;
}

.footer-copy {
    margin-top: 2rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Age Check */
.age-check {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}

.age-box {
    background: var(--panel-bg);
    border: 2px solid var(--nebula-blue);
    border-radius: 16px;
    padding: 3rem;
    max-width: 450px;
    text-align: center;
}

.age-box h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--nebula-teal);
    margin-bottom: 1rem;
}

.age-box p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-button {
    padding: 0.9rem 2rem;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.age-button.allow {
    background: linear-gradient(135deg, var(--nebula-blue), var(--nebula-violet));
    color: var(--text-bright);
}

.age-button.deny {
    background: transparent;
    border: 2px solid var(--nebula-blue);
    color: var(--nebula-blue);
}

.age-button:hover {
    transform: scale(1.05);
}

/* Page Content */
.page-content {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--nebula-teal);
}

.page-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--nebula-blue);
    margin: 2rem 0 1rem;
}

.page-content p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.page-content ul, .page-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dim);
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Mobile */
@media (max-width: 900px) {
    .warnings-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .toggle-nav {
        display: flex;
    }

    .space-links {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: rgba(3, 7, 18, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--nebula-blue);
    }

    .space-links.open {
        transform: translateY(0);
    }

    .hero-space {
        padding: 7rem 1.5rem 4rem;
    }

    .game-frame iframe {
        height: 400px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .age-buttons {
        flex-direction: column;
    }
}
