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

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');


body {
    background: #000;
    color: #fff;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
    position: relative;
    cursor: default;
    background-image: 
        radial-gradient(ellipse at top, #1a0033 0%, #000 50%),
        radial-gradient(ellipse at bottom, #330019 0%, #000 50%);
}

/* Global link styles */
a {
    cursor: pointer;
    color: #FFFFFF;
    text-decoration: none;
}

button {
    cursor: pointer;
}

/* Space Background */
.space-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
}

#stars-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
    pointer-events: none;
}

/* Navigation Panel */
.navigation-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(10, 10, 10, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.visitor-counter {
    font-size: 13px;
    color: #FFFFFF;
    margin-bottom: 5px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: lowercase;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.coordinates {
    font-size: 11px;
    color: #FFFFFF;
    opacity: 0.6;
    letter-spacing: 0.5px;
    font-weight: 400;
    text-transform: lowercase;
}

/* Constellation Map */
.constellation-map {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Central Hub */
.central-hub {
    position: absolute;
    z-index: 50;
    background: transparent;
}

.logo-ship {
    text-align: center;
    animation: float 4s ease-in-out infinite;
    position: relative;
    background: transparent;
}

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

.sun-info {
    position: absolute;
    top: 50%;
    left: calc(100% + 20px);
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 220px;
    z-index: 3000;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    text-align: left;
}

/* Removed hover effect - users can click team button instead */

.sun-info h4 {
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.sun-info p {
    font-size: 13px;
    color: #FFFFFF;
    margin-bottom: 12px;
    line-height: 1.5;
    opacity: 0.8;
}

.mothership {
    filter: drop-shadow(0 0 30px rgba(255, 165, 0, 0.7)) drop-shadow(0 0 60px rgba(255, 69, 0, 0.5));
    width: 300px;
    height: 300px;
    animation: sunPulse 4s ease-in-out infinite;
    background: transparent;
    overflow: visible;
}

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


/* Solar animations */
.sun-glow-1 {
    animation: glowPulse1 3s ease-in-out infinite;
    transform-origin: center;
}

.sun-glow-2 {
    animation: glowPulse2 4s ease-in-out infinite;
    transform-origin: center;
}

.sun-glow-3 {
    animation: glowPulse3 5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes glowPulse1 {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.7; }
}

@keyframes glowPulse2 {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

@keyframes glowPulse3 {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* Removed sun rotation animation */






.glow-effect {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.mothership-label {
    font-size: 48px;
    color: #FFFFFF;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.5),
        0 0 60px rgba(255, 255, 255, 0.3);
    margin-top: 20px;
    letter-spacing: 4px;
    font-weight: 300;
    text-transform: lowercase;
    animation: titleGlow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
    font-family: 'Roboto', sans-serif;
}

@keyframes titleGlow {
    0% { 
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(255, 255, 255, 0.5),
            0 0 60px rgba(255, 255, 255, 0.3);
    }
    100% { 
        text-shadow: 
            0 0 30px rgba(255, 255, 255, 0.9),
            0 0 60px rgba(255, 255, 255, 0.6),
            0 0 90px rgba(255, 255, 255, 0.4);
    }
}

.tagline {
    color: #FFFFFF;
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.7;
    letter-spacing: 8px;
    font-weight: 300;
    text-transform: lowercase;
}

/* Orbiting Companies */
.company-orbit {
    position: absolute;
    transform: rotate(var(--angle)) translateX(var(--distance)) rotate(calc(-1 * var(--angle)));
    animation: orbit 60s linear infinite;
    z-index: 10;
}

.company-orbit:hover {
    z-index: 200;
}

.company-orbit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--distance) * 2);
    height: calc(var(--distance) * 2);
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 69, 0, 0.1);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-orbit:hover::before {
    opacity: 1;
    animation: orbitPulse 2s ease-in-out infinite;
}

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

@keyframes orbit {
    from { transform: rotate(var(--angle)) translateX(var(--distance)) rotate(calc(-1 * var(--angle))); }
    to { transform: rotate(calc(var(--angle) + 360deg)) translateX(var(--distance)) rotate(calc(-1 * var(--angle) - 360deg)); }
}

/* Planets */
.planet {
    position: relative;
    width: 65px;
    height: 65px;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: brightness(1) contrast(1);
}

/* Different planet sizes */
.planet-status {
    width: 60px;
    height: 60px;
}

.planet-protocol {
    width: 75px;
    height: 75px;
}

.planet-autophage {
    width: 70px;
    height: 70px;
}

.planet-0x42r {
    width: 55px;
    height: 55px;
}

.planet-attest {
    width: 65px;
    height: 65px;
}

.planet-patent {
    width: 60px;
    height: 60px;
}

.planet:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
    z-index: 100;
    position: relative;
}


.planet:hover .planet-info {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.planet-atmosphere {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0.2;
    pointer-events: none;
}

.planet-surface {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        inset -20px -20px 40px rgba(0, 0, 0, 0.8),
        inset 10px 10px 20px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(248, 187, 208, 0.8),
        0 0 60px rgba(248, 187, 208, 0.4);
    background-blend-mode: multiply;
}

.planet-surface::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at 30% 30%,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 40%
    );
    animation: planetShine 15s ease-in-out infinite;
}

@keyframes planetShine {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-30%, -30%) rotate(180deg); }
}

.planet-texture {
    width: 100%;
    height: 100%;
    position: absolute;
    animation: planetTexture 30s linear infinite;
}

@keyframes planetTexture {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50px); }
}

/* Moons */
.moon {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #F5F5F5, #C0C0C0);
    border-radius: 50%;
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.4),
        0 0 5px rgba(255, 255, 255, 0.3);
    animation: moonOrbit 20s linear infinite;
}

/* Earth moon for status.health */
.moon-earth {
    width: 16px;
    height: 16px;
    background: 
        radial-gradient(circle at 30% 30%, #87CEEB, #4682B4),
        linear-gradient(to bottom, #228B22 0%, #006400 50%, #4682B4 50%, #00008B 100%);
    background-size: 100% 100%, 100% 100%;
    background-blend-mode: overlay;
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(135, 206, 235, 0.5),
        0 0 20px rgba(135, 206, 235, 0.3);
    animation-duration: 30s;
    position: relative;
    overflow: hidden;
}

.moon-earth::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 15%;
    width: 30%;
    height: 40%;
    background: #228B22;
    border-radius: 30% 60% 40% 70%;
    opacity: 0.6;
    animation: continentDrift 60s linear infinite;
}

.moon-earth::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20%;
    width: 25%;
    height: 30%;
    background: #8B4513;
    border-radius: 50% 30% 60% 40%;
    opacity: 0.5;
    animation: continentDrift 60s linear infinite reverse;
}

@keyframes continentDrift {
    0% { transform: translateX(0) rotate(0deg); }
    100% { transform: translateX(-10px) rotate(360deg); }
}

/* Research moons for 0x42r */
.moon-research {
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #9370DB, #4B0082);
    animation-duration: 25s;
    box-shadow: 
        inset -1px -1px 2px rgba(0, 0, 0, 0.4),
        0 0 8px rgba(147, 112, 219, 0.6);
}

.moon-data {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle at 30% 30%, #00CED1, #008B8B);
    animation-duration: 40s;
    animation-delay: 10s;
    box-shadow: 
        inset -1px -1px 2px rgba(0, 0, 0, 0.4),
        0 0 6px rgba(0, 206, 209, 0.5);
}

/* Verification moon for attest */
.moon-verify {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #90EE90, #228B22);
    animation-duration: 35s;
    box-shadow: 
        inset -1px -1px 3px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(144, 238, 144, 0.5);
    position: relative;
}

.moon-verify::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6px;
    color: rgba(255, 255, 255, 0.8);
}

.moon-1 {
    width: 12px;
    height: 12px;
    animation-duration: 15s;
    animation-delay: 0s;
}

.moon-2 {
    width: 8px;
    height: 8px;
    animation-duration: 25s;
    animation-delay: 5s;
}

.moon-3 {
    width: 6px;
    height: 6px;
    animation-duration: 35s;
    animation-delay: 10s;
}

@keyframes moonOrbit {
    0% { transform: rotate(0deg) translateX(50px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}

/* Planet Logos */
.planet-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.planet:hover .planet-logo {
    opacity: 1;
}

.planet-logo img {
    filter: contrast(1.2) saturate(1.3);
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #880E4F;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.planet-status .planet-logo {
    background: rgba(255, 224, 236, 0.9);
}

.planet-protocol .planet-logo {
    background: rgba(232, 180, 243, 0.9);
}

.planet-autophage .planet-logo {
    background: rgba(180, 231, 243, 0.9);
}

.planet-0x42r .planet-logo {
    background: rgba(243, 232, 180, 0.9);
}

.planet-attest .planet-logo {
    background: rgba(200, 180, 243, 0.9);
}

.planet-patent .planet-logo {
    background: rgba(243, 180, 200, 0.9);
}

/* Unique planet styles with enhanced graphics */
.planet-status .planet-atmosphere {
    background: radial-gradient(circle at 30% 30%, rgba(255, 224, 236, 0.6), transparent);
}

/* Status.health - Earth-like */
.planet-status .planet-surface {
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.8) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, #4169E1 0%, #228B22 30%, #1E90FF 60%, #4682B4 100%);
    box-shadow: 
        inset -20px -20px 40px rgba(0, 0, 0, 0.6),
        inset 10px 10px 20px rgba(255, 255, 255, 0.3);
}

.planet-status .planet-texture {
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 30%),
        radial-gradient(ellipse at 70% 60%, rgba(34, 139, 34, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at 40% 80%, rgba(30, 144, 255, 0.3) 0%, transparent 35%);
}

.planet-protocol .planet-atmosphere {
    background: radial-gradient(circle, #E8B4F3, transparent);
}

/* Healthprotocol - Jupiter-like gas giant */
.planet-protocol .planet-surface {
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7) 0%, transparent 20%),
        linear-gradient(0deg, #CD853F 0%, #DEB887 20%, #F5DEB3 40%, #FFE4B5 60%, #D2691E 80%, #8B4513 100%);
    box-shadow: 
        inset -20px -20px 40px rgba(0, 0, 0, 0.5),
        inset 10px 10px 20px rgba(255, 255, 255, 0.3);
}

.planet-protocol .planet-texture {
    background: 
        repeating-linear-gradient(0deg, transparent 0px, rgba(139, 69, 19, 0.1) 2px, transparent 4px, rgba(205, 133, 63, 0.1) 6px, transparent 8px),
        radial-gradient(ellipse at 70% 40%, rgba(255, 140, 0, 0.3) 0%, transparent 20%);
}

.planet-autophage .planet-atmosphere {
    background: radial-gradient(circle, #B4E7F3, transparent);
}

/* Autophage - Saturn-like with rings */
.planet-autophage .planet-surface {
    background: 
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.8) 0%, transparent 20%),
        linear-gradient(0deg, #F0E68C 0%, #FFE4B5 25%, #FAFAD2 50%, #F5DEB3 75%, #DEB887 100%);
    box-shadow: 
        inset -20px -20px 40px rgba(0, 0, 0, 0.4),
        inset 10px 10px 20px rgba(255, 255, 255, 0.4);
}

.planet-autophage .planet-rings {
    position: absolute;
    width: 140%;
    height: 30%;
    border: 3px solid rgba(180, 231, 243, 0.3);
    border-radius: 50%;
    top: 35%;
    left: -20%;
    transform: rotateX(60deg);
    z-index: -1;
}

.planet-0x42r .planet-atmosphere {
    background: radial-gradient(circle, #F3E8B4, transparent);
}

/* 0x42r - Mars-like */
.planet-0x42r .planet-surface {
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, #CD5C5C 0%, #B22222 40%, #8B0000 70%, #800000 100%);
    box-shadow: 
        inset -20px -20px 40px rgba(0, 0, 0, 0.6),
        inset 10px 10px 20px rgba(255, 255, 255, 0.2);
}

.planet-0x42r .planet-texture {
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(139, 0, 0, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 20%, rgba(205, 92, 92, 0.2) 0%, transparent 30%),
        radial-gradient(ellipse at 50% 70%, rgba(178, 34, 34, 0.15) 0%, transparent 35%);
}

.planet-attest .planet-atmosphere {
    background: radial-gradient(circle, #C8B4F3, transparent);
}

/* Attest - Neptune-like */
.planet-attest .planet-surface {
    background: 
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.7) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, #4169E1 0%, #1E90FF 40%, #00BFFF 70%, #191970 100%);
    box-shadow: 
        inset -20px -20px 40px rgba(0, 0, 0, 0.5),
        inset 10px 10px 20px rgba(255, 255, 255, 0.3);
}

.planet-attest .planet-texture {
    background: 
        radial-gradient(ellipse at 60% 30%, rgba(0, 191, 255, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 70%, rgba(30, 144, 255, 0.15) 0%, transparent 35%);
}

.planet-patent .planet-atmosphere {
    background: radial-gradient(circle, #F3B4C8, transparent);
}

/* Patent - Mercury-like */
.planet-patent .planet-surface {
    background: 
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.6) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, #C0C0C0 0%, #808080 40%, #696969 70%, #2F4F4F 100%);
    box-shadow: 
        inset -20px -20px 40px rgba(0, 0, 0, 0.7),
        inset 10px 10px 20px rgba(255, 255, 255, 0.2);
}

@keyframes atmospherePulse {
    0%, 100% { transform: scale(1.2); opacity: 0.3; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.ownership-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #880E4F;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
}

.planet-name {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 5px rgba(255, 255, 255, 0.5);
    text-transform: lowercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.planet:hover .planet-name {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.planet-info {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 220px;
    z-index: 5000;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    pointer-events: auto;
}


.planet-info h4 {
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.planet-info p {
    font-size: 13px;
    color: #FFFFFF;
    margin-bottom: 12px;
    line-height: 1.5;
    opacity: 0.8;
}

.visit-link, .resource-link {
    display: block;
    color: #FFFFFF;
    font-size: 12px;
    text-decoration: none;
    margin-top: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    opacity: 0.8;
}

.visit-link:hover, .resource-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Team link button styling */
.team-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    text-align: left;
}

.team-link:hover {
    text-decoration: underline;
}

/* Control Panel */
.control-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.space-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    backdrop-filter: blur(20px) saturate(1.5);
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.space-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.4) 0%, transparent 70%);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.space-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(255, 255, 255, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.space-button:hover::before {
    width: 300px;
    height: 300px;
}

.mobile-text {
    display: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    text-align: left;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Warp Modal Styles */
.warp-modal-content {
    background: rgba(0, 0, 0, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    max-width: 300px;
    text-align: center;
    box-shadow: 
        0 0 50px rgba(255, 255, 255, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
}

.warp-title {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: lowercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.warp-text {
    color: #FFFFFF;
    font-size: 14px;
    margin-bottom: 30px;
    opacity: 0.7;
}

.warp-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.warp-button {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
    letter-spacing: 2px;
}

.warp-yes {
    background: #FFFFFF;
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.warp-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
    filter: brightness(0.9);
}

.warp-no {
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.warp-no:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.modal-content h2 {
    color: #FFFFFF;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: left;
}

.modal-content p {
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: left;
    opacity: 0.8;
}

.close-modal {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Instructions */
.instructions {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 100;
    font-size: 11px;
    color: #FFFFFF;
    opacity: 0.4;
}

.mobile-hint {
    display: none;
}

/* Sun container and logo styles */
.sun-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.sun-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    opacity: 1;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Removed hover effect - users can click team button instead */

/* Mobile-specific container */
/* Mobile planet container - hidden by default */
.mobile-planet-container {
    display: none;
}

/* Ensure desktop text is shown by default */
.desktop-text {
    display: inline;
}

.mobile-text {
    display: none;
}

/* Mobile moon styles */
@media screen and (max-width: 768px) {
    .moon:not(.mobile-moon) {
        display: none !important;
    }
    
    .mobile-moon {
        display: block !important;
        position: absolute !important;
        animation: mobileMoonOrbit 15s linear infinite !important;
        transform-origin: -30px center !important;
        left: 50% !important;
        top: 50% !important;
        width: 6px !important;
        height: 6px !important;
    }
    
    .mobile-moon.moon-earth {
        width: 10px !important;
        height: 10px !important;
        animation-duration: 20s !important;
    }
    
    .mobile-moon.moon-1 {
        animation-duration: 12s !important;
        animation-delay: 0s !important;
    }
    
    .mobile-moon.moon-2 {
        animation-duration: 18s !important;
        animation-delay: 4s !important;
        transform-origin: -25px center !important;
    }
    
    .mobile-moon.moon-3 {
        animation-duration: 25s !important;
        animation-delay: 8s !important;
        transform-origin: -35px center !important;
    }
    
    @keyframes mobileMoonOrbit {
        from { transform: translate(-50%, -50%) rotate(0deg) translateX(30px); }
        to { transform: translate(-50%, -50%) rotate(360deg) translateX(30px); }
    }
}

/* Mobile Styles */
@media only screen and (max-width: 768px) {
    body {
        overflow: auto !important;
        overflow-x: hidden !important;
        position: relative !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    
    .space-container {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }
    
    body > .space-container > .constellation-map {
        display: none !important;
    }
    
    .navigation-panel {
        display: none !important;
    }
    
    
    .mobile-visitor-info-extended {
        font-size: 9px;
        color: #FFE0EC;
        margin-top: 8px;
        line-height: 1.3;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-navigation-panel.expanded .mobile-visitor-info-extended {
        opacity: 0.8;
        max-height: 200px;
    }
    
    .mobile-navigation-panel.expanded .mobile-tap-hint {
        display: none;
    }
    
    .instructions {
        display: none !important;
    }
    
    /* Fix star canvas for mobile */
    #stars-canvas {
        position: fixed !important;
        width: 100vw !important;
        height: 100vh !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .mobile-planet-container {
        display: block !important;
        position: relative !important;
        width: 100vw !important;
        min-height: 100vh !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        padding: 10px 15px 100px !important;
        z-index: 10 !important;
        background: transparent !important;
        margin: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .mobile-sun-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-bottom: 30px !important;
        width: 100% !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .mobile-sun {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto 20px !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10 !important;
    }
    
    .mobile-sun svg {
        width: 100% !important;
        height: 100% !important;
        filter: drop-shadow(0 0 20px #FFA500) !important;
    }
    
    .mobile-sun-title {
        font-size: 24px !important;
        color: #FFFFFF !important;
        text-align: center !important;
        font-weight: 300 !important;
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(255, 255, 255, 0.5),
            0 0 60px rgba(255, 255, 255, 0.3) !important;
        margin: 0 !important;
        font-family: 'Roboto', sans-serif !important;
        text-transform: lowercase !important;
        letter-spacing: 2px !important;
        animation: titleGlow 2s ease-in-out infinite alternate !important;
    }
    
    .mobile-planets {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 0 5px !important;
    }
    
    .mobile-planet-row {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        background: rgba(0, 0, 0, 0.85) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 12px !important;
        padding: 15px !important;
        backdrop-filter: blur(10px) !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .mobile-planet-row:active {
        transform: scale(0.98);
        background: rgba(10, 10, 10, 0.95);
    }
    
    .mobile-planet {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
        margin-right: 15px !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mobile-planet .planet {
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
    }
    
    .mobile-planet-info {
        flex: 1;
    }
    
    .mobile-planet-header {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 5px !important;
    }
    
    .mobile-planet-logo-icon {
        width: 20px !important;
        height: 20px !important;
        object-fit: contain !important;
    }
    
    .mobile-planet-logo-icon.patent-logo {
        width: 20px !important;
        height: 20px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 165, 0, 0.2) !important;
        border-radius: 50% !important;
        color: #FFA500 !important;
        font-size: 14px !important;
        font-weight: bold !important;
    }
    
    .mobile-planet-info .mobile-planet-name {
        font-size: 16px !important;
        color: #FFFFFF !important;
        font-weight: 500 !important;
        margin: 0 !important;
        text-transform: lowercase !important;
        letter-spacing: 0.5px !important;
    }
    
    .mobile-planet-desc {
        font-size: 13px !important;
        color: #FFFFFF !important;
        line-height: 1.4 !important;
        opacity: 0.7 !important;
        margin: 0 !important;
    }
    
    .mobile-sun-wrapper {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .mobile-sun-title {
        font-size: 20px;
        color: #FFFFFF;
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.5),
            0 0 40px rgba(255, 255, 255, 0.3);
        margin-top: 5px;
        letter-spacing: 2px;
        font-weight: 300;
        text-transform: lowercase;
        font-family: 'Roboto', sans-serif;
    }
    
    /* Mobile planet header */
    .mobile-planet-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 5px;
    }
    
    .mobile-planet-logo-icon {
        width: 20px;
        height: 20px;
        object-fit: contain;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        padding: 4px;
    }
    
    .mobile-planet-logo-icon.patent-logo {
        background: rgba(255, 255, 255, 0.9);
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: bold;
        color: #880E4F;
    }
    
    .mobile-planet .planet {
        width: 100%;
        height: 100%;
    }
    
    .mobile-ownership {
        position: absolute !important;
        top: -8px !important;
        right: -8px !important;
        background: #FF4500 !important;
        color: #fff !important;
        padding: 2px 8px !important;
        border-radius: 12px !important;
        font-size: 10px !important;
        font-weight: bold !important;
        z-index: 10 !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
    }
    .navigation-panel {
        top: 10px;
        left: 10px;
        right: 10px;
        padding: 8px 12px;
        background: rgba(10, 10, 10, 0.95);
    }
    
    .visitor-counter {
        font-size: 11px;
    }
    
    .coordinates {
        font-size: 9px;
    }
    
    .mothership {
        width: 100px;
        height: 100px;
    }
    
    .mothership-label {
        font-size: 24px;
    }
    
    .company-orbit {
        --distance: var(--mobile-distance) !important;
        animation-duration: 40s;
    }
    
    .planet {
        width: 60px;
        height: 60px;
    }
    
    /* Reset planet sizes for mobile */
    .planet-status,
    .planet-protocol,
    .planet-autophage,
    .planet-0x42r,
    .planet-attest,
    .planet-patent {
        width: 40px;
        height: 40px;
    }
    
    .planet-name {
        font-size: 9px;
        bottom: -20px;
    }
    
    .ownership-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .planet-info {
        width: 160px;
        padding: 12px;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .planet-info h4 {
        font-size: 13px;
    }
    
    .planet-info p {
        font-size: 11px;
    }
    
    .control-panel {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        gap: 10px !important;
        width: 100% !important;
        transform: none !important;
        justify-content: space-around !important;
        padding: 15px 10px !important;
        background: rgba(0, 0, 0, 0.95) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        flex-wrap: nowrap !important;
        z-index: 1000 !important;
        backdrop-filter: blur(20px) !important;
    }
    
    
    .space-button {
        padding: 12px 16px !important;
        font-size: 14px !important;
        letter-spacing: 0.5px !important;
        min-width: auto !important;
        text-align: center !important;
        flex: 1 !important;
        max-width: 120px !important;
        border-radius: 20px !important;
    }
    
    .desktop-text {
        display: none !important;
    }
    
    .mobile-text {
        display: inline !important;
    }
    
    .instructions {
        display: none !important;
    }
    
    .mobile-hint {
        display: none !important;
    }
    
    /* Mobile View Toggle Button */
    .mobile-view-toggle {
        position: fixed !important;
        bottom: 100px;
        right: 20px;
        background: rgba(0, 0, 0, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 25px;
        padding: 10px 16px;
        display: flex !important;
        align-items: center;
        gap: 6px;
        color: #FFFFFF;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        z-index: 999;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-view-toggle:active {
        transform: scale(0.95);
    }
    
    .toggle-icon {
        font-size: 14px;
        transition: transform 0.3s ease;
    }
    
    .toggle-text {
        text-transform: lowercase;
        letter-spacing: 0.5px;
    }
    
    /* Mobile Galaxy View Styles */
    .mobile-galaxy-view {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        z-index: 50;
        background: transparent;
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    .mobile-galaxy-view.active {
        display: block;
    }
    
    /* Mobile Galaxy Container */
    .mobile-galaxy-container {
        position: relative;
        width: 100%;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 120px;
        transition: transform 0.5s ease-in-out;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Mobile Galaxy Sun */
    .mobile-galaxy-sun {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 10;
    }
    
    .mobile-galaxy-sun svg {
        filter: drop-shadow(0 0 20px #FFA500);
        overflow: visible !important;
    }
    
    /* Mobile galaxy solar flares */
    .mobile-galaxy-sun .solar-flares {
        opacity: 0.8 !important;
    }
    
    .mobile-galaxy-sun .solar-flares path {
        stroke-width: 3 !important;
        filter: blur(1px);
    }
    
    .mobile-galaxy-sun .coronal-ejections circle {
        filter: blur(2px);
    }
    
    .mobile-galaxy-sun-title {
        font-size: 18px;
        color: #FFFFFF;
        margin-top: 10px;
        font-weight: 300;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        text-transform: lowercase;
        letter-spacing: 2px;
    }
    
    /* Mobile Galaxy Orbits */
    .mobile-galaxy-orbit {
        position: absolute;
        top: 50%;
        left: 50%;
        width: auto;
        height: auto;
        transform-origin: center;
        cursor: default;
        -webkit-tap-highlight-color: transparent;
        z-index: 1;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: none;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Position planets at fixed angles in a circle */
    .mobile-galaxy-orbit:nth-child(2) {
        transform: translate(-50%, -50%) rotate(0deg) translateX(120px) rotate(0deg);
    }
    
    .mobile-galaxy-orbit:nth-child(3) {
        transform: translate(-50%, -50%) rotate(60deg) translateX(120px) rotate(-60deg);
    }
    
    .mobile-galaxy-orbit:nth-child(4) {
        transform: translate(-50%, -50%) rotate(120deg) translateX(120px) rotate(-120deg);
    }
    
    .mobile-galaxy-orbit:nth-child(5) {
        transform: translate(-50%, -50%) rotate(180deg) translateX(120px) rotate(-180deg);
    }
    
    .mobile-galaxy-orbit:nth-child(6) {
        transform: translate(-50%, -50%) rotate(240deg) translateX(120px) rotate(-240deg);
    }
    
    .mobile-galaxy-orbit:nth-child(7) {
        transform: translate(-50%, -50%) rotate(300deg) translateX(120px) rotate(-300deg);
    }
    
    /* Mobile Galaxy Orbit Animation */
    .mobile-galaxy-orbit {
        animation: mobileGalaxyOrbit 45s linear infinite;
        background: transparent !important;
        -webkit-background-clip: padding-box;
        background-clip: padding-box;
    }
    
    @keyframes mobileGalaxyOrbit {
        from { transform: translate(-50%, -50%) rotate(var(--start-angle, 0deg)) translateX(120px) rotate(calc(-1 * var(--start-angle, 0deg))); }
        to { transform: translate(-50%, -50%) rotate(calc(var(--start-angle, 0deg) + 360deg)) translateX(120px) rotate(calc(-1 * var(--start-angle, 0deg) - 360deg)); }
    }
    
    /* Mobile Galaxy Planets */
    .mobile-galaxy-planet {
        position: relative;
        cursor: default;
        overflow: visible;
        transition: none;
        background: none !important;
        border: none !important;
        display: inline-block;
        pointer-events: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Removed hover effects for mobile galaxy planets */
    
    /* Remove any background from mobile galaxy planet container */
    .mobile-galaxy-planet {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .mobile-galaxy-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #FF4500;
        color: white;
        font-size: 9px;
        padding: 2px 4px;
        border-radius: 8px;
        font-weight: bold;
    }
    
    /* Mobile Planet Logos */
    .mobile-planet-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        object-fit: contain;
        opacity: 0.8;
        z-index: 2;
    }
    
    .mobile-planet-patent-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 20px;
        color: #FFA500;
        font-weight: bold;
        z-index: 2;
    }
    
    /* Mobile Galaxy Info Panel */
    .mobile-galaxy-info-panel {
        position: fixed;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
        max-width: 320px;
        background: rgba(10, 10, 10, 0.7);
        border: 1px solid rgba(255, 165, 0, 0.15);
        border-radius: 14px;
        padding: 10px 12px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 60;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
    
    .mobile-galaxy-info-panel.active {
        opacity: 1;
    }
    
    .mobile-galaxy-info-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 8px;
        gap: 10px;
    }
    
    .mobile-galaxy-nav-prev,
    .mobile-galaxy-nav-next {
        width: 32px;
        height: 32px;
        background: rgba(255, 165, 0, 0.1);
        border: 1px solid rgba(255, 165, 0, 0.2);
        border-radius: 50%;
        color: rgba(255, 165, 0, 0.8);
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }
    
    .mobile-galaxy-nav-prev:active,
    .mobile-galaxy-nav-next:active {
        background: rgba(255, 165, 0, 0.4);
        transform: scale(0.95);
    }
    
    .mobile-galaxy-info-content {
        text-align: left;
    }
    
    /* Planet preview in upper right of info panel */
    .mobile-galaxy-planet-preview {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        z-index: 62;
        padding: 2px;
        background: rgba(255, 165, 0, 0.05);
        border: 1px solid rgba(255, 165, 0, 0.3);
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(255, 165, 0, 0.2);
    }
    
    .preview-planet {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        position: relative;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent);
    }
    
    /* Preview planet styles matching desktop exactly */
    .preview-planet.planet-status {
        background: 
            radial-gradient(circle at 30% 30%, #FFB6C1, #FF6B6B),
            radial-gradient(circle at 70% 70%, #FF6B6B, #C44569);
        background-blend-mode: multiply;
    }
    
    .preview-planet.planet-protocol {
        background: 
            radial-gradient(circle at 30% 30%, #9370DB, #667eea),
            radial-gradient(circle at 70% 70%, #667eea, #764ba2);
        background-blend-mode: multiply;
    }
    
    .preview-planet.planet-autophage {
        background: 
            radial-gradient(circle at 30% 30%, #FFB6C1, #f093fb),
            radial-gradient(circle at 70% 70%, #f093fb, #f5576c);
        background-blend-mode: multiply;
    }
    
    .preview-planet.planet-0x42r {
        background: 
            radial-gradient(circle at 30% 30%, #87CEEB, #4facfe),
            radial-gradient(circle at 70% 70%, #4facfe, #00f2fe);
        background-blend-mode: multiply;
    }
    
    .preview-planet.planet-attest {
        background: 
            radial-gradient(circle at 30% 30%, #90EE90, #43e97b),
            radial-gradient(circle at 70% 70%, #43e97b, #38f9d7);
        background-blend-mode: multiply;
    }
    
    .preview-planet.planet-patent {
        background: 
            radial-gradient(circle at 30% 30%, #FFB6C1, #FF69B4),
            radial-gradient(circle at 70% 70%, #FF69B4, #FF1493);
        background-blend-mode: multiply;
    }
    
    /* Preview planet details */
    .preview-planet .planet-atmosphere {
        position: absolute;
        top: -20%;
        left: -20%;
        right: -20%;
        bottom: -20%;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 60%);
        opacity: 0.6;
    }
    
    .preview-planet .planet-surface {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 50%;
        overflow: hidden;
    }
    
    .preview-planet .planet-texture {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 70% 70%, transparent 30%, rgba(0, 0, 0, 0.3) 80%);
        border-radius: 50%;
    }
    
    .preview-planet.planet-autophage .planet-rings {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 150%;
        height: 25%;
        transform: translate(-50%, -50%) rotateX(60deg);
        border: 1px solid rgba(243, 147, 251, 0.4);
        border-radius: 50%;
        box-shadow: 0 0 5px rgba(243, 147, 251, 0.3);
    }
    
    
    .mobile-galaxy-info-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 4px;
    }
    
    .mobile-galaxy-info-logo img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }
    
    .mobile-galaxy-info-logo .patent-symbol {
        font-size: 24px;
        color: #FFA500;
        font-weight: bold;
    }
    
    .mobile-galaxy-info-name {
        font-size: 16px;
        color: #FFFFFF;
        margin: 0;
        font-weight: 300;
    }
    
    .mobile-galaxy-info-desc {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.7);
        margin: 4px 0 8px;
        line-height: 1.2;
    }
    
    .mobile-galaxy-info-title {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .mobile-galaxy-info-badge {
        background: #FF4500;
        color: white;
        font-size: 10px;
        padding: 3px 6px;
        border-radius: 10px;
        font-weight: bold;
    }
    
    .mobile-galaxy-info-visit {
        color: #FFA500;
        text-decoration: none;
        font-size: 12px;
        transition: color 0.3s ease;
    }
    
    .mobile-galaxy-info-visit:active {
        transform: scale(0.98);
    }
    
    .mobile-galaxy-info-litepaper {
        color: #FFA500;
        text-decoration: none;
        font-size: 12px;
        transition: color 0.3s ease;
    }
    
    .mobile-galaxy-info-actions {
        display: flex;
        gap: 15px;
        margin-top: 8px;
    }
    
    .mobile-galaxy-nav-dots {
        display: flex;
        gap: 6px;
        align-items: center;
        justify-content: center;
        flex: 1;
    }
    
    .nav-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255, 165, 0, 0.3);
        transition: all 0.3s ease;
    }
    
    .nav-dot.active {
        background: #FFA500;
        width: 8px;
        height: 8px;
    }
    
    /* Mobile planet layers - use fixed sizes */
    .mobile-galaxy-planet .planet-atmosphere {
        position: absolute;
        top: -9px;
        left: -9px;
        width: 63px;
        height: 63px;
        border-radius: 50%;
        opacity: 0.6;
        z-index: 1;
    }
    
    .mobile-galaxy-planet .planet-surface {
        position: absolute;
        top: 0;
        left: 0;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        z-index: 2;
        overflow: hidden;
    }
    
    .mobile-galaxy-planet .planet-texture {
        position: absolute;
        top: 0;
        left: 0;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        z-index: 3;
        mix-blend-mode: overlay;
    }
    
    
    /* Autophage rings */
    .mobile-galaxy-planet.planet-autophage .planet-rings {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 150%;
        height: 30%;
        transform: translate(-50%, -50%) rotateX(60deg);
        border: 2px solid rgba(243, 147, 251, 0.4);
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(243, 147, 251, 0.3);
    }
    
    /* Mobile galaxy planet names (for orbiting planets) */
    .mobile-galaxy-planet .mobile-planet-name {
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 9px;
        color: rgba(255, 255, 255, 0.6);
        white-space: nowrap;
        text-transform: lowercase;
        letter-spacing: 0.5px;
        font-weight: 300;
    }
    
    /* Mobile visitor info */
    .mobile-visitor-info {
        position: absolute;
        top: 10px;
        left: 10px;
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        padding: 8px 12px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 5;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.8);
        text-transform: lowercase;
        letter-spacing: 0.5px;
        display: none;
    }
    
    .mobile-planet-container:has(.mobile-planets:not(.hidden)) .mobile-visitor-info {
        display: block;
    }
    
    .mobile-visitor-info .visitor-counter {
        font-size: 11px;
        margin-bottom: 3px;
    }
    
    .mobile-visitor-info .coordinates {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.6);
    }
    
    #mobile-visitor-info-extended {
        margin-top: 6px;
        font-size: 10px;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.7);
    }
    
    #mobile-visitor-info-extended > div {
        margin-bottom: 2px;
    }
    
    /* Mobile galaxy title */
    .mobile-galaxy-title {
        position: absolute;
        bottom: 120px;
        left: 35%;
        transform: translateX(-50%);
        font-size: 24px;
        font-weight: 300;
        color: #FFFFFF;
        text-transform: lowercase;
        letter-spacing: 3px;
        text-align: center;
        white-space: nowrap;
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(255, 255, 255, 0.5),
            0 0 60px rgba(255, 255, 255, 0.3);
        animation: 
            titleGlow 2s ease-in-out infinite alternate,
            titleFloat 20s ease-in-out infinite;
        z-index: 999;
        pointer-events: none;
    }
    
    @keyframes titleFloat {
        0%, 100% {
            transform: translateX(-50%) translateY(0);
        }
        25% {
            transform: translateX(-45%) translateY(-15px);
        }
        50% {
            transform: translateX(-55%) translateY(5px);
        }
        75% {
            transform: translateX(-48%) translateY(-10px);
        }
    }
    
    /* Mobile moons */
    .mobile-galaxy-planet .moon {
        position: absolute;
        border-radius: 50%;
        width: 8px;
        height: 8px;
        background: radial-gradient(circle at 30% 30%, #FFFFFF, #D3D3D3);
        animation: mobileMoonOrbit 20s linear infinite;
        z-index: 15;
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
        top: 50%;
        left: 50%;
        transform-origin: 0 0;
    }
    
    .mobile-galaxy-planet .moon-earth {
        background: radial-gradient(circle at 30% 30%, #87CEEB, #4682B4);
        width: 10px;
        height: 10px;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .mobile-galaxy-planet .moon-1 {
        animation: mobileMoonOrbit 15s linear infinite;
    }
    
    .mobile-galaxy-planet .moon-2 {
        animation: mobileMoonOrbit 25s linear infinite;
        animation-delay: -5s;
    }
    
    .mobile-galaxy-planet .moon-3 {
        animation: mobileMoonOrbit 35s linear infinite;
        animation-delay: -10s;
    }
    
    .mobile-galaxy-planet .moon-research {
        background: radial-gradient(circle at 30% 30%, #FFE4E1, #FFC0CB);
        animation: mobileMoonOrbit 18s linear infinite;
    }
    
    .mobile-galaxy-planet .moon-data {
        background: radial-gradient(circle at 30% 30%, #E0FFFF, #00CED1);
        animation: mobileMoonOrbit 28s linear infinite;
        animation-delay: -8s;
    }
    
    .mobile-galaxy-planet .moon-verify {
        background: radial-gradient(circle at 30% 30%, #F0E68C, #FFD700);
        animation: mobileMoonOrbit 22s linear infinite;
    }
    
    @keyframes mobileMoonOrbit {
        from { transform: rotate(0deg) translateX(25px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(25px) rotate(-360deg); }
    }
    
    
    .mobile-planets {
        transition: all 0.3s ease;
    }
    
    /* Mobile warp/teleport animation */
    @keyframes mobileWarpPulse {
        0% { 
            transform: scale(1);
            filter: brightness(1);
        }
        50% { 
            transform: scale(1.2);
            filter: brightness(1.5) saturate(1.5);
        }
        100% { 
            transform: scale(1);
            filter: brightness(1);
        }
    }
    
    .mobile-galaxy-view.warping .mobile-sun {
        animation: mobileWarpPulse 0.5s ease-in-out 6;
    }
    
    .mobile-galaxy-orbit {
        transition: animation-duration 0.5s ease-in-out;
    }
    
    /* Hide info panel during warp */
    .mobile-galaxy-view.warping .mobile-galaxy-info {
        transform: translateY(-200px);
        opacity: 0;
        transition: all 0.5s ease-out;
    }
    
    .mobile-planets.hidden {
        display: none !important;
    }
    
    .mobile-sun-wrapper {
        transition: all 0.3s ease;
    }
    
    .mobile-sun-wrapper.hidden {
        display: none !important;
    }
    
    /* Navigation panel as small circle in top left */
    .mobile-navigation-panel {
        position: fixed;
        top: 15px;
        left: 15px;
        background: rgba(10, 10, 10, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 12px;
        border-radius: 50%;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        z-index: 100;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        transition: all 0.3s ease;
        width: 50px;
        height: 50px;
        overflow: hidden;
    }
    
    /* Hide navigation panel in galaxy view */
    .mobile-galaxy-view.active ~ .mobile-planet-container .mobile-navigation-panel {
        display: none !important;
    }
    
    
    
    .mobile-visitor-counter {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #FFFFFF !important;
    }
    
    .mobile-coordinates {
        display: none;
    }
    
    
    
    .mobile-coordinates {
        font-size: 8px !important;
        margin-top: 5px;
        opacity: 0.6;
    }
    
    .mobile-visitor-info-extended {
        display: none !important;
    }
}
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-content h2 {
        font-size: 24px;
    }
    
    .planet-rings {
        display: none;
    }

/* Warm animation */
@keyframes warmAnimation {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(5deg); }
    50% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.05) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.warm-animation {
    animation: warmAnimation 2s ease-in-out;
}

/* Warp and flash animations */
@keyframes warpDrive {
    0% { 
        transform: rotate(0deg);
    }
    100% { 
        transform: rotate(720deg);
    }
}

@keyframes vortexSpin {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(0); }
}

@keyframes flash {
    0% { opacity: 0; }
    50% { opacity: 0.8; }
    100% { opacity: 0; }
}

@keyframes speedLine {
    0% { 
        transform: rotate(var(--rotation)) translateX(0) scaleY(1);
        opacity: 1;
    }
    100% { 
        transform: rotate(var(--rotation)) translateX(100vw) scaleY(0.1);
        opacity: 0;
    }
}

.vortex-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vw;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2000;
}

.vortex-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #FFA500, transparent);
    transform-origin: center;
    animation: vortexSpin 1s ease-in forwards;
}

.modal-content {
    position: relative; /* This makes absolute positioning work for children */
}

/* Top-right badge: */
.custom-ai-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgb(136, 136, 136);
    text-decoration: none;
    font-size: 10px;
    opacity: 0.6;
    transition: opacity 0.2s;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
    z-index: 10; /* keep above modal content just in case */
}

/* Responsive tweak: slightly tighter on small screens */
@media (max-width: 500px) {
    .custom-ai-badge {
        top: 8px;
        right: 8px;
        font-size: 11px;
    }
}

