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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    color: #fff;
    min-height: 100vh;
}

/* Prevent scrolling only on homepage with universe container */
body:has(.universe-container) {
    overflow: hidden;
    height: 100vh;
}

/* Animated Star Background */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.stars {
    background: #000 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAE0lEQVQIW2NkYGD4z8DAwMgABAAAfgABAXLGvAAAAABJRU5ErkJggg==) repeat;
    z-index: 0;
}

.twinkling {
    background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAE0lEQVQIW2NkYGD4z8DAwMgABAAAfgABAXLGvAAAAABJRU5ErkJggg==) repeat;
    z-index: 1;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

.universe-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    z-index: 2;
}

/* Central Spark Sun */
.spark-sun {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    z-index: 10;
}

.sun-core {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #FFD700, #FFA500, #FF6B00);
    border-radius: 50%;
    animation: pulse-sun 4s ease-in-out infinite;
    box-shadow: 0 0 60px #FFD700, 0 0 120px #FFA500, inset 0 0 40px #FF8C00;
}

.sun-glow {
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    background: radial-gradient(circle, rgba(255,215,0,0.3), transparent 70%);
    border-radius: 50%;
    animation: rotate-glow 20s linear infinite;
}

@keyframes pulse-sun {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sun-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 11;
}

.sun-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 0 20px #fff, 0 0 40px #FFD700;
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.sun-text p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.join-free-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.join-free-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Constellations */
.constellation {
    position: absolute;
    transition: all 0.3s ease;
}

.constellation-1 {
    top: 15%;
    right: 20%;
}

.constellation-2 {
    bottom: 20%;
    left: 15%;
}

.constellation-3 {
    top: 20%;
    left: 10%;
}

.constellation-4 {
    bottom: 15%;
    right: 15%;
}

.constellation-5 {
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
}

.constellation-6 {
    bottom: 35%;
    left: 25%;
}

.constellation-7 {
    top: 35%;
    left: 5%;
}

.constellation-8 {
    bottom: 45%;
    right: 25%;
}

.constellation-9 {
    top: 60%;
    right: 5%;
}

.constellation-node {
    position: relative;
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
    /* Button reset styles for accessibility */
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    outline: none;
}

.constellation-node:focus-visible {
    outline: 3px solid #FFD700;
    outline-offset: 5px;
    border-radius: 50%;
}

.constellation-node:hover {
    transform: scale(1.1);
}

.node-core {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
}

.node-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent 60%);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.investor-core {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 0 30px rgba(245, 87, 108, 0.6);
}

.investor-glow {
    background: radial-gradient(circle, rgba(245, 87, 108, 0.3), transparent 60%);
}

.tools-core {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
}

.tools-glow {
    background: radial-gradient(circle, rgba(0, 242, 254, 0.3), transparent 60%);
}

.playground-core {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    box-shadow: 0 0 30px rgba(168, 237, 234, 0.6);
}

.playground-glow {
    background: radial-gradient(circle, rgba(168, 237, 234, 0.3), transparent 60%);
}

.graffiti-core {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.6);
}

.graffiti-glow {
    background: radial-gradient(circle, rgba(255, 107, 107, 0.3), transparent 60%);
}

.oracle-core {
    background: linear-gradient(135deg, #9d4edd 0%, #c77dff 100%);
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.6);
}

.oracle-glow {
    background: radial-gradient(circle, rgba(199, 125, 255, 0.3), transparent 60%);
}

.void-core {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.void-glow {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 60%);
}

.consciousness-core {
    background: linear-gradient(135deg, #00d4ff 0%, #00ffff 100%);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.consciousness-glow {
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3), transparent 60%);
}

.wall-core {
    background: linear-gradient(135deg, #ff00ff 0%, #ff1493 100%);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
}

.wall-glow {
    background: radial-gradient(circle, rgba(255, 20, 147, 0.3), transparent 60%);
}

.node-label {
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.label-title {
    display: block;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.label-price, .label-subtitle {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Sub Nodes */
.sub-nodes {
    position: absolute;
    top: -40px;
    left: 140px;
    display: flex;
    gap: 15px;
}

.sub-node {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.8), rgba(240, 147, 251, 0.8));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* Link reset styles for accessibility */
    text-decoration: none;
    color: inherit;
    font-size: 0.7rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(245, 87, 108, 0.4);
}

.sub-node:hover {
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(245, 87, 108, 0.8);
}

.sub-node:focus-visible {
    outline: 3px solid #FFD700;
    outline-offset: 3px;
}

/* Tool Orbits */
.tool-orbits {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 320px;
    height: 320px;
    pointer-events: none;
    z-index: 1;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.orbit-1 { width: 180px; height: 180px; animation: rotate-orbit 10s linear infinite; }
.orbit-2 { width: 220px; height: 220px; animation: rotate-orbit 15s linear infinite reverse; }
.orbit-3 { width: 260px; height: 260px; animation: rotate-orbit 20s linear infinite; }
.orbit-4 { width: 300px; height: 300px; animation: rotate-orbit 25s linear infinite reverse; }

@keyframes rotate-orbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.tool-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.tool-dot:hover {
    transform: translateX(-50%) scale(1.5);
}

.free-tool { background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.player-tool { background: #667eea; box-shadow: 0 0 10px #667eea; }
.og-tool { background: #f5576c; box-shadow: 0 0 10px #f5576c; }
.shop-tool { background: #fbbf24; box-shadow: 0 0 10px #fbbf24; }

/* Navigation Help */
.nav-help {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.help-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    /* Button reset styles for accessibility */
    border: none;
    padding: 0;
    color: inherit;
}

.help-icon:hover {
    transform: scale(1.1);
}

.help-icon:focus-visible {
    outline: 3px solid #FFD700;
    outline-offset: 3px;
}

.help-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: rgba(20, 20, 40, 0.95);
    padding: 20px;
    border-radius: 10px;
    min-width: 200px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.help-panel.active {
    opacity: 1;
    pointer-events: all;
}

.help-panel h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.help-panel p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.help-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
}

.help-dot.free { background: #4ade80; }
.help-dot.player { background: #667eea; }
.help-dot.og { background: #f5576c; }
.help-dot.investor { background: #f093fb; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 1100px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    /* Button reset styles for accessibility */
    background: none;
    border: none;
    padding: 5px 10px;
    font-family: inherit;
}

.close-modal:hover {
    color: #fff;
}

.close-modal:focus-visible {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
    border-radius: 4px;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.membership-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.membership-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.membership-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.membership-card.featured {
    border-color: #667eea;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.membership-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.membership-card .price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 20px 0;
    color: #667eea;
}

.membership-card .price span {
    font-size: 1rem;
    opacity: 0.7;
}

.membership-card ul {
    list-style: none;
    margin: 20px 0;
}

.membership-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.membership-card li:before {
    content: "✓ ";
    color: #4ade80;
    font-weight: bold;
    margin-right: 10px;
}

.membership-card button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.membership-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

@media (max-width: 768px) {
    .membership-options {
        flex-direction: column;
        align-items: center;
    }

    .constellation {
        transform: scale(0.8);
    }

    .sun-text h1 {
        font-size: 1.8rem;
    }
}


/* ============================================
   MOBILE RESPONSIVE ENHANCEMENTS
   ============================================ */

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #FFD700;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    padding: 15px 40px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 30px;
    transition: all 0.3s ease;
    min-width: 250px;
    text-align: center;
}

.mobile-nav a:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    color: #FFD700;
}

.mobile-nav a:focus-visible {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

.mobile-nav a.free-link {
    border-color: rgba(74, 222, 128, 0.4);
}

.mobile-nav a.free-link:hover {
    border-color: #4ade80;
    color: #4ade80;
}

.mobile-nav a.player-link {
    border-color: rgba(102, 126, 234, 0.4);
}

.mobile-nav a.og-link {
    border-color: rgba(245, 87, 108, 0.4);
}

.mobile-nav .nav-btn {
    /* Button styled as link for mobile nav */
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    padding: 15px 40px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 30px;
    transition: all 0.3s ease;
    min-width: 250px;
    text-align: center;
    background: none;
    font-family: inherit;
    cursor: pointer;
    display: block;
}

.mobile-nav .nav-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    color: #FFD700;
}

.mobile-nav .nav-btn:focus-visible {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

.mobile-nav .nav-divider {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3), transparent);
    margin: 10px 0;
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
    .constellation {
        transform: scale(0.75);
    }
    
    .spark-sun {
        width: 250px;
        height: 250px;
    }
    
    .sun-text h1 {
        font-size: 2rem;
    }
    
    .constellation-node {
        width: 100px;
        height: 100px;
    }
    
    .node-label {
        font-size: 0.8rem;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    /* Hide constellations on mobile - use menu instead */
    .constellation {
        display: none;
    }
    
    .constellation-lines {
        display: none !important;
    }
    
    .nav-help {
        display: none;
    }
    
    .spark-sun {
        width: 280px;
        height: 280px;
    }
    
    .sun-text h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .sun-text p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .join-free-btn {
        padding: 14px 35px;
        font-size: 1.1rem;
    }
    
    /* Modal adjustments */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 25px 15px;
    }
    
    .membership-options {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .membership-card {
        width: 100%;
        max-width: 320px;
    }
    
    .membership-card h3 {
        font-size: 1.3rem;
    }
    
    .membership-card .price {
        font-size: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .spark-sun {
        width: 240px;
        height: 240px;
    }
    
    .sun-text h1 {
        font-size: 1.8rem;
    }
    
    .sun-text p {
        font-size: 0.85rem;
        padding: 0 10px;
    }
    
    .join-free-btn {
        padding: 12px 28px;
        font-size: 1rem;
    }
    
    .mobile-nav a {
        font-size: 1.1rem;
        padding: 12px 30px;
        min-width: 220px;
    }
    
    .modal-content {
        padding: 20px 10px;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .membership-card {
        padding: 20px 15px;
    }
}

/* Landscape mobile fix */
@media (max-height: 500px) and (orientation: landscape) {
    .spark-sun {
        width: 180px;
        height: 180px;
    }
    
    .sun-text h1 {
        font-size: 1.5rem;
    }
    
    .sun-text p {
        display: none;
    }
    
    .mobile-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 60px 20px;
    }
    
    .mobile-nav a {
        font-size: 0.9rem;
        padding: 10px 20px;
        min-width: auto;
    }
    
    .mobile-nav .nav-divider {
        display: none;
    }
}
