html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
html, body {
    height: 100%;
    /* Prevent mobile viewport issues */
    overflow-x: hidden;
    position: relative;
}
canvas {
    display: block;
}
body {
    margin: 0;
}
#unity-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    /* Lock container size */
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

/* Unity Canvas Visibility */
#unity-canvas {
    position: absolute;
    inset: 0;
    background: #000000;
    /* Lock canvas size */
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    /* Prevent any unwanted scaling */
    transform: none !important;
    /* Ensure proper pixel ratio handling */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Top Navigation Bar */
.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 25;
    background: #000000;
    pointer-events: auto; /* Enable navigation interactions */
}

/* Ensure all navbar elements are clickable */
.nav-content,
.nav-left,
.nav-right,
.menu-btn,
.brand-container,
.connect-wallet-btn,
.profile-btn,
.profile-dropdown {
    pointer-events: auto;
}

.nav-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 1rem 0rem;
    max-width: 99%;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0rem;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding-right: 0;
}

/* ESC Key Hint */
.esc-hint {
    position: absolute;
    top: 80px; /* Below the navbar */
    left: 20px; /* Left-aligned */
    z-index: 20;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    pointer-events: none; /* Don't interfere with clicks */
}

.esc-hint-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Hide ESC hint on mobile */
@media (max-width: 768px) {
    .esc-hint {
        display: none !important;
    }
}

/* Take Me Back Button */
.take-me-back-btn {
    position: absolute;
    top: 80px; /* Below the navbar - same as ESC hint */
    left: 20px; /* Left-aligned - same as ESC hint */
    z-index: 20;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.take-me-back-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateY(-1px);
}

.back-arrow-icon {
    width: 14px;
    height: 14px;
    color: rgba(255, 107, 53, 0.9);
}

.take-me-back-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Menu Button */
.menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.4rem;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2; /* Ensure it's above the brand */
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.menu-btn:hover {
    color: #00D4FF;
}

.menu-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.menu-text {
    font-weight: 700;
}

/* Back Button */
.back-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.back-btn:hover {
    color: #00D4FF;
    transform: translateX(-2px);
}

.back-btn svg {
    width: 1rem;
    height: 1rem;
}

.back-text {
    font-weight: 700;
}

/* Back button animation for mobile gesture feedback */
.back-btn.gesture-feedback {
    animation: backButtonPulse 0.3s ease;
}

@keyframes backButtonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobile Back Button - Only visible on mobile, positioned in navbar */
.mobile-back-btn {
    display: none; /* Hidden by default, shown only on mobile */
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid #FF6B35; /* Orange border - thinner */
    border-radius: 0; /* Sharp square corners */
    color: #FF6B35; /* Orange color for the arrow */
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px; /* Reduced spacing */
    z-index: 2; /* Ensure it's above the brand */
}

.mobile-back-btn:hover {
    background: rgba(255, 107, 53, 0.05); /* Very light orange background on hover */
    border-color: #FF6B35; /* Keep orange border */
    transform: scale(1.02); /* Subtle scale effect */
    box-shadow: 0 1px 4px rgba(255, 107, 53, 0.2);
}

.mobile-back-btn svg {
    width: 16px;
    height: 16px;
    stroke: #FF6B35; /* Orange stroke color */
    stroke-width: 2;
}

/* Mobile back button animation for gesture feedback */
.mobile-back-btn.gesture-feedback {
    animation: mobileBackButtonPulse 0.3s ease;
}

@keyframes mobileBackButtonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mobile back button styling - visibility controlled by JavaScript */
@media (max-width: 768px) {
    .mobile-back-btn {
        /* Visibility is controlled by JavaScript based on view state */
        /* display: flex is set by JavaScript when needed */
        margin-left: 1%; /* 1% padding from left in mobile view */
    }
}

/* Hide mobile back button on desktop */
@media (min-width: 769px) {
    .mobile-back-btn {
        display: none !important;
    }
}

/* ===== FOOTER STYLES ===== */

.page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4); /* 40% transparent background */
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 12px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-left {
    flex: 1;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.footer-text-mobile {
    display: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
}

.footer-right {
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-link svg {
    width: 16px;
    height: 16px;
}

/* Social link specific colors on hover */
.social-link.discord:hover {
    background: rgba(114, 137, 218, 0.2);
    color: #7289DA;
}

.social-link.instagram:hover {
    background: rgba(225, 48, 108, 0.2);
    color: #E1306C;
}

.social-link.facebook:hover {
    background: rgba(24, 119, 242, 0.2);
    color: #1877F2;
}

.social-link.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    color: #1DA1F2;
}

/* Mobile responsive footer */
@media (max-width: 768px) {
    .page-footer {
        padding: 8px 15px;
    }
    
    .footer-content {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        justify-content: space-between;
    }
    
    .footer-text {
        display: none; /* Hide desktop text on mobile */
    }
    
    .footer-text-mobile {
        display: block; /* Show mobile text on mobile */
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }
    
    .social-links {
        gap: 8px;
        flex-shrink: 0;
    }
    
    .social-link {
        width: 24px;
        height: 24px;
    }
    
    .social-link svg {
        width: 12px;
        height: 12px;
    }
}

/* Mobile search and settings button dimensions */
@media (max-width: 480px) {
    .search-button {
        width: 40px;
        height: 40px;
    }
    
    .graphics-settings-button {
        width: 40px;
        height: 40px;
    }
}

/* Mobile title - ensure single line with full text */
@media (max-width: 768px) {
    .main-title {
        white-space: nowrap;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .main-title {
        font-size: 0.9rem;
    }
    
    .top-section {
        padding: 0.75rem 0.25rem 0.75rem 0.25rem;
    }
}

/* Center Section - Brand */
.nav-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    position: relative;
}

.brand-container:hover {
    color: #00D4FF;
}

.brand-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0.25rem;
}

.brand-icon svg {
    width: 100%;
    height: 100%;
}

.brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}



/* Right Section - Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 30;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    z-index: 30;
}

.search-container:focus-within {
    border-color: #ff6b35;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.search-input {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.85rem;
    min-width: 180px;
    outline: none;
    font-family: 'Courier New', monospace;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    padding: 0.5rem;
    background: #ff6b35;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #f7931e;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.search-btn svg {
    width: 1rem;
    height: 1rem;
}

.connect-wallet-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #FF6B35;
    border: none;
    border-radius: 0;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.connect-wallet-btn:hover {
    background: #E55A2B;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

.connect-wallet-btn svg {
    width: 1rem;
    height: 1rem;
}

/* About Button */
.about-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 0;
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-btn:hover {
    background: #ff6b35;
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.about-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Controls Button */
.controls-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 0;
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.controls-btn:hover {
    background: #00d4ff;
    color: white;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.controls-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Settings Button */
.settings-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.settings-btn svg {
    width: 1rem;
    height: 1rem;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #FF6B35;
    border: 1px solid #FF6B35;
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.profile-btn:hover {
    background: #E55A2B;
    border-color: #E55A2B;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

.profile-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Desktop Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #000000;
    z-index: 1000;
    transition: left 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-title {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1002;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.sidebar-close svg {
    width: 1rem;
    height: 1rem;
}

.sidebar-content {
    padding: 1rem 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00D4FF;
}

.sidebar-item svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Sidebar Profile Section */
.sidebar-profile-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    padding-top: 1rem;
}

.sidebar-profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-profile-photo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-wallet-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.sidebar-wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.sidebar-connection-status {
    font-size: 0.75rem;
    color: #00D4FF;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
    animation: mobileMenuFadeIn 0.4s ease-out;
}

@keyframes mobileMenuFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.mobile-menu-content {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    transform: translateY(20px);
    opacity: 0;
    animation: mobileContentSlideUp 0.5s ease-out 0.1s forwards;
}

@keyframes mobileContentSlideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes mobileContentSlideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

@keyframes mobileMenuFadeOut {
    from {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.mobile-menu-title {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.mobile-menu-close:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
    color: #FF6B35;
    transform: scale(1.1);
}

.mobile-menu-close svg {
    width: 1rem;
    height: 1rem;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    border-radius: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-20px);
    animation: mobileMenuItemSlideIn 0.4s ease-out forwards;
}

.mobile-menu-item:nth-child(1) { animation-delay: 0.2s; }
.mobile-menu-item:nth-child(2) { animation-delay: 0.3s; }
.mobile-menu-item:nth-child(3) { animation-delay: 0.4s; }
.mobile-menu-item:nth-child(4) { animation-delay: 0.5s; }

/* Staggered animations for mobile menu profile section */
.mobile-menu-profile-section .mobile-menu-item:nth-child(1) { animation-delay: 0.6s; }
.mobile-menu-profile-section .mobile-menu-item:nth-child(2) { animation-delay: 0.7s; }

@keyframes mobileMenuItemSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-menu-item:hover::before {
    left: 100%;
}

.mobile-menu-item:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: #FF6B35;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.mobile-menu-item:active {
    transform: translateX(5px) scale(0.98);
}

.mobile-menu-item svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.mobile-menu-item:hover svg {
    transform: scale(1.1);
}

/* Mobile Menu Profile Section */
.mobile-menu-profile-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.mobile-menu-profile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
}

.mobile-menu-profile-photo {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 53, 0.3);
    object-fit: cover;
    background: rgba(255, 107, 53, 0.1);
}

.mobile-menu-wallet-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.mobile-menu-wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.mobile-menu-connection-status {
    font-size: 0.7rem;
    color: #FF6B35;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Profile Overlay */
.mobile-profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-profile-overlay.active {
    display: flex;
    opacity: 1;
    animation: mobileProfileFadeIn 0.4s ease-out;
}

@keyframes mobileProfileFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.mobile-profile-content {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    transform: translateY(20px);
    opacity: 0;
    animation: mobileProfileContentSlideUp 0.5s ease-out 0.1s forwards;
}

@keyframes mobileProfileContentSlideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.mobile-profile-title {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-profile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-profile-close:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
    color: #FF6B35;
    transform: scale(1.1);
}

.mobile-profile-close svg {
    width: 1rem;
    height: 1rem;
}

.mobile-profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    border-radius: 0;
}

.mobile-profile-photo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 53, 0.3);
    object-fit: cover;
    background: rgba(255, 107, 53, 0.1);
}

.mobile-wallet-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-wallet-address {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.mobile-connection-status {
    color: #FF6B35;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-profile-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.mobile-profile-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-profile-action:hover::before {
    left: 100%;
}

.mobile-profile-action:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: #FF6B35;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.mobile-profile-action:active {
    transform: translateX(5px) scale(0.98);
}

.mobile-profile-action svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.mobile-profile-action:hover svg {
    transform: scale(1.1);
}

/* Utility Classes */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: auto; /* Enable modal interactions */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #000000;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh; /* fallback */
    max-height: 80svh; /* prefer stable small viewport height on mobile */
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    background: rgba(255, 107, 53, 0.05);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
    color: #FF6B35;
}

.modal-close svg {
    width: 1rem;
    height: 1rem;
}

.modal-body {
    padding: 1.5rem;
    color: #FFFFFF;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #FF6B35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
}

.settings-buttons {
    display: flex;
    gap: 0.5rem;
}

.setting-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 0;
    color: #FF6B35;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
    color: #FFFFFF;
}

/* About Modal Content */
#about-modal .modal-content {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.about-modal .modal-title {
    color: #FF6B35;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.about-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-section {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.section-header:hover {
    background: rgba(255, 107, 53, 0.1);
}

.section-header.expanded {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 107, 53, 0.05);
}

.section-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    color: #FF6B35;
    flex-shrink: 0;
}

.section-icon svg {
    width: 100%;
    height: 100%;
}

.section-title {
    color: #FF6B35;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-toggle {
    width: 20px;
    height: 20px;
    color: #FF6B35;
    transition: transform 0.3s ease;
}

.section-toggle.expanded {
    transform: rotate(180deg);
}

.toggle-icon {
    width: 100%;
    height: 100%;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1rem;
}

.section-content.expanded {
    max-height: 500px;
    padding: 1rem;
}

.section-content p {
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.guide-item {
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    border-left: 3px solid #FF6B35;
}

.guide-item:last-child {
    margin-bottom: 0;
}

.guide-item strong {
    color: #FF6B35;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Controls Modal Styles */
.controls-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.controls-section {
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.control-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    transition: background-color 0.2s ease;
}

.control-item:last-child {
    border-bottom: none;
}

.control-item:hover {
    background: rgba(255, 107, 53, 0.05);
}

.control-key {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #00d4ff;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.control-description {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
}

.tip-item {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border-left: 3px solid #00d4ff;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item strong {
    color: #00d4ff;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* Settings Modal Styles */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-section {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.setting-label {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    flex-grow: 1;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.setting-value {
    color: #00d4ff;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Range Input Styling */
.setting-control input[type="range"] {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.setting-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.setting-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Select Styling */
.setting-control select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #e0e0e0;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.setting-control select:focus {
    border-color: #00d4ff;
}

.setting-control select option {
    background: rgba(0, 0, 0, 0.9);
    color: #e0e0e0;
}

/* Toggle Switch Styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #00d4ff;
    border-color: #00d4ff;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Clear Data Button */
.clear-data-btn {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 4px;
    color: #ff6b35;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
}

.clear-data-btn:hover {
    background: #ff6b35;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .nav-content {
        padding: 0.75rem 0rem;
    }
    
    .nav-left {
        gap: 0rem;
    }
    
    .nav-right {
        gap: 0rem;
        padding-right: 2%;
    }
    
    .menu-text {
        display: none;
    }
    
    .menu-btn svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .brand-text {
        font-size: 0.9rem;
    }
    
    .brand-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .connect-wallet-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .connect-wallet-btn span {
        display: none;
    }
    
    .connect-wallet-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .profile-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .profile-photo {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    #about-modal .modal-content {
        max-width: 95vw;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .about-modal .modal-title {
        font-size: 1.2rem;
    }
    
    .section-header {
        padding: 0.75rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .section-content.expanded {
        padding: 0.75rem;
    }
    
    .guide-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Mars Landing Screen Styles */
.landing-screen {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 20;
    display: none;
    flex-direction: column;
    background: transparent;
    pointer-events: none; /* Allow Unity interactions to pass through */
}

/* Top Section - Title Only */
.top-section {
    position: absolute;
    top: 113px;
    left: 0;
    right: 0;
    padding: 2rem 1rem 2rem 1rem;
    z-index: 2;
    pointer-events: auto;
}

/* Middle Section - Clear for Mars Globe */
.middle-section {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 50vh; /* fallback */
    height: 50svh; /* prefer stable small viewport height on mobile */
    pointer-events: none;
}

/* Bottom Section - Content Below Mars */
.bottom-content {
    position: absolute;
    bottom: 4rem;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    pointer-events: auto; /* Enable button interactions */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Digital Readout Section */
.digital-readout {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    animation: readoutFadeIn 2s ease-out 0.5s forwards;
    opacity: 0;
}

.readout-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.readout-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    animation: readoutScan 3s linear infinite;
}

.readout-label {
    font-size: 0.7rem;
    color: #ff6b35;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
}

.readout-value {
    font-size: 0.9rem;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: valueGlow 2s ease-in-out infinite alternate;
}

/* Title Section - Centered */
.title-section {
    margin-bottom: 1rem;
    text-align: center;
    animation: titleSlideIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.main-title {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.title-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    display: inline;
    position: relative;
    font-weight: 400;
}

.title-primary::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #dc2626);
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.title-secondary {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em;
    display: inline;
    font-weight: 200;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}



/* Description Section - Centered */
.description-section {
    margin-bottom: 2rem;
    text-align: center;
    animation: descriptionFadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.description {
    font-size: 1rem;
    color: #d1d5db;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.description::before {
    content: '🌳';
    position: absolute;
    left: -30px;
    top: 0;
    font-size: 1.2em;
    opacity: 0.7;
    animation: treeSway 3s ease-in-out infinite;
}

.description::after {
    content: '🌳';
    position: absolute;
    right: -30px;
    top: 0;
    font-size: 1.2em;
    opacity: 0.7;
    animation: treeSway 3s ease-in-out infinite reverse;
}

/* Action Buttons - Side by Side */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    animation: buttonsSlideUp 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.3s ease;
}

/* When hero connect wallet button is hidden, center the begin journey button */
.action-buttons.centered {
    justify-content: center;
}

.primary-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    background: #ff6b35;
    border: 2px solid #ff6b35;
    border-radius: 0;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.3s ease;
}

.primary-btn:hover:not(:disabled) {
    background: #f7931e;
    border-color: #f7931e;
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.5);
}

.primary-btn:hover:not(:disabled)::before {
    left: 100%;
}

.primary-btn:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    background: #666;
    border-color: #666;
}

.btn-icon {
    font-size: 1.2rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.loading-spinner .spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Tree Loading Message Styles */
.tree-loading-message {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    animation: buttonsSlideUp 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
    opacity: 0;
    transform: translateY(40px);
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #FFFFFF;
    font-family: 'Courier New', monospace;
}

.loading-content .loading-spinner {
    display: flex;
    justify-content: center;
}

.loading-content .loading-spinner .spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.secondary-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: transparent;
    border: 2px solid #ff6b35;
    border-radius: 0;
    color: #ff6b35;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.3s ease;
}

.secondary-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.secondary-btn:hover::before {
    left: 100%;
}

/* Mars Controls */
.mars-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: buttonsSlideUp 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
    opacity: 0;
    transform: translateY(40px);
}

.controls-title {
    font-size: 0.75rem;
    color: rgba(255, 107, 53, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.controls-buttons {
    display: flex;
    gap: 0.75rem;
}

.control-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 1rem;
    color: rgba(255, 107, 53, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    backdrop-filter: blur(4px);
}

.control-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.4);
    color: white;
    transform: translateY(-1px);
}

/* Right Section - Mars Graphic */
.right-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.mars-graphic {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mars-planet {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #dc2626, #991b1b);
    box-shadow: 
        0 0 50px rgba(249, 115, 22, 0.3),
        0 0 100px rgba(220, 38, 38, 0.2),
        inset 0 0 50px rgba(0, 0, 0, 0.3);
    animation: rotate 20s linear infinite;
}

.mars-surface {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
}

.mars-atmosphere {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.mars-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 80%);
    animation: glow 3s ease-in-out infinite alternate;
}

.mars-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Bottom Section - Informational Cards */
.bottom-section {
    padding: 2rem;
    z-index: 2;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.info-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    flex: 1;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #f97316;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f97316;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.card-label {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
}
#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#unity-logo {
    text-align: center;
}
#unity-logo img {
    max-width: 80%;
}
#unity-progress-bar-empty {
    width: 80%;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid white;
    padding: 2px;
}
#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: white;
}
.light #unity-progress-bar-empty {
    border-color: black;
}
.light #unity-progress-bar-full {
    background: black;
}

#unity-fullscreen-button {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center;
    background-size: contain;
}

/* Modern Constellation Loading Screen Styles */
#loading-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0a0a0a 100%);
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
}

/* Background stars */
.background-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.background-stars .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.background-stars .star:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.background-stars .star:nth-child(2) { top: 20%; left: 85%; animation-delay: 0.5s; }
.background-stars .star:nth-child(3) { top: 30%; left: 25%; animation-delay: 1s; }
.background-stars .star:nth-child(4) { top: 40%; left: 75%; animation-delay: 1.5s; }
.background-stars .star:nth-child(5) { top: 50%; left: 10%; animation-delay: 2s; }
.background-stars .star:nth-child(6) { top: 60%; left: 90%; animation-delay: 2.5s; }
.background-stars .star:nth-child(7) { top: 70%; left: 20%; animation-delay: 0.3s; }
.background-stars .star:nth-child(8) { top: 80%; left: 80%; animation-delay: 0.8s; }
.background-stars .star:nth-child(9) { top: 15%; left: 50%; animation-delay: 1.3s; }
.background-stars .star:nth-child(10) { top: 25%; left: 60%; animation-delay: 1.8s; }
.background-stars .star:nth-child(11) { top: 35%; left: 40%; animation-delay: 2.3s; }
.background-stars .star:nth-child(12) { top: 45%; left: 70%; animation-delay: 0.7s; }
.background-stars .star:nth-child(13) { top: 55%; left: 30%; animation-delay: 1.2s; }
.background-stars .star:nth-child(14) { top: 65%; left: 60%; animation-delay: 1.7s; }
.background-stars .star:nth-child(15) { top: 75%; left: 40%; animation-delay: 2.2s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Constellation container */
.constellation-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 2;
}

/* Constellation stars - clean and minimal */
.constellation-star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ff6b35;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.8);
    animation: star-pulse 4s ease-in-out infinite;
}

/* Star positions to create Aquarius-like pattern */
.constellation-star.star-1 { top: 150px; left: 200px; animation-delay: 0s; }
.constellation-star.star-2 { top: 120px; left: 220px; animation-delay: 0.3s; }
.constellation-star.star-3 { top: 140px; left: 240px; animation-delay: 0.6s; }
.constellation-star.star-4 { top: 130px; left: 260px; animation-delay: 0.9s; }
.constellation-star.star-5 { top: 150px; left: 280px; animation-delay: 1.2s; }
.constellation-star.star-6 { top: 140px; left: 300px; animation-delay: 1.5s; }
.constellation-star.star-7 { top: 160px; left: 320px; animation-delay: 1.8s; }
.constellation-star.star-8 { top: 170px; left: 180px; animation-delay: 2.1s; }
.constellation-star.star-9 { top: 190px; left: 160px; animation-delay: 2.4s; }
.constellation-star.star-10 { top: 210px; left: 140px; animation-delay: 2.7s; }
.constellation-star.star-11 { top: 230px; left: 120px; animation-delay: 3.0s; }
.constellation-star.star-12 { top: 180px; left: 220px; animation-delay: 3.3s; }

@keyframes star-pulse {
    0%, 100% { 
        opacity: 0.7; 
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 107, 53, 0.8);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.3);
        box-shadow: 0 0 15px rgba(255, 107, 53, 1);
    }
}

/* Clean constellation lines */
.constellation-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.connection-line {
    stroke: #ff6b35;
    stroke-width: 1.5;
    stroke-opacity: 0.8;
    fill: none;
    animation: line-glow 6s ease-in-out infinite;
}

.connection-line.line-1 { animation-delay: 0s; }
.connection-line.line-2 { animation-delay: 0.5s; }
.connection-line.line-3 { animation-delay: 1s; }
.connection-line.line-4 { animation-delay: 1.5s; }
.connection-line.line-5 { animation-delay: 2s; }
.connection-line.line-6 { animation-delay: 2.5s; }
.connection-line.line-7 { animation-delay: 3s; }
.connection-line.line-8 { animation-delay: 3.5s; }
.connection-line.line-9 { animation-delay: 4s; }
.connection-line.line-10 { animation-delay: 4.5s; }
.connection-line.line-11 { animation-delay: 5s; }
.connection-line.line-12 { animation-delay: 5.5s; }

@keyframes line-glow {
    0%, 100% { 
        stroke-opacity: 0.6;
        stroke-width: 1.5;
    }
    50% { 
        stroke-opacity: 1;
        stroke-width: 2;
    }
}

/* Progress center - clean and minimal */
.progress-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.progress-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    line-height: 1;
    letter-spacing: -0.02em;
}

.progress-percent {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-left: 5px;
}

/* Loading text */
.loading-text {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.loading-text h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.loading-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Responsive design for constellation loading screen */
@media (max-width: 768px) {
    .constellation-container {
        width: 300px;
        height: 300px;
    }
    
    .constellation-star {
        width: 5px;
        height: 5px;
    }
    
    /* Adjust star positions for mobile */
    .constellation-star.star-1 { top: 112px; left: 150px; }
    .constellation-star.star-2 { top: 90px; left: 165px; }
    .constellation-star.star-3 { top: 105px; left: 180px; }
    .constellation-star.star-4 { top: 97px; left: 195px; }
    .constellation-star.star-5 { top: 112px; left: 210px; }
    .constellation-star.star-6 { top: 105px; left: 225px; }
    .constellation-star.star-7 { top: 120px; left: 240px; }
    .constellation-star.star-8 { top: 127px; left: 135px; }
    .constellation-star.star-9 { top: 142px; left: 120px; }
    .constellation-star.star-10 { top: 157px; left: 105px; }
    .constellation-star.star-11 { top: 172px; left: 90px; }
    .constellation-star.star-12 { top: 135px; left: 165px; }
    
    .progress-number {
        font-size: 2rem;
    }
    
    .progress-percent {
        font-size: 2rem;
    }
    
    .loading-text h2 {
        font-size: 1.5rem;
    }
    
    .loading-text p {
        font-size: 0.9rem;
    }
}

/* Low performance mode for constellation */
.low-performance .constellation-star {
    animation-duration: 6s !important;
}

.low-performance .connection-line {
    animation-duration: 8s !important;
}

#unity-loading-bar {
    text-align: center;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

#unity-logo {
    margin-bottom: 20px;
}

#unity-logo img {
    max-width: 200px;
    height: auto;
}

#unity-progress-bar-empty {
    width: 300px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
}

#unity-progress-bar-full {
    height: 100%;
    background: linear-gradient(135deg, #f97316, #dc2626);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.spinner,
.spinner:after {
  border-radius: 50%;
  width: 5em;
  height: 5em;
}
.spinner {
  margin: 10px;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 1.1em solid rgba(255, 255, 255, 0.2);
  border-right: 1.1em solid rgba(255, 255, 255, 0.2);
  border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
  border-left: 1.1em solid #ffffff;
  transform: translateZ(0);
  animation: spinner-spin 1.1s infinite linear;
}
@keyframes spinner-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}



/* Responsive design */
@media (max-width: 1024px) {
    .nav-content {
        padding: 0.5rem 0rem;
    }
    
    .nav-version {
        display: none;
    }
    
    .nav-center {
        gap: 1rem;
    }
    
    .fps-display {
        display: none;
    }
    
    .modal-content {
        max-width: 500px;
        width: 95%;
    }
    
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* Prevent mobile viewport height issues */
    html, body {
        height: 100%;
        overflow: hidden;
    }
    
    #unity-container {
        height: 100%;
    }
    
    /* Navigation - Mobile */
    .nav-content {
        padding: 0.75rem 0rem;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }
    
    .nav-brand {
        flex: 1;
    }
    
    .brand-container {
        padding: 0.5rem 1rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    .hamburger-btn {
        display: flex !important;
    }
    
    /* Modal - Mobile */
    .modal-content {
        max-width: 95%;
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.75rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-content {
        font-size: 0.9rem;
    }
    
    /* Top Section - Mobile */
    .top-section {
        top: 80px;
        padding: 1rem 0.5rem 1rem 0.5rem;
    }
    
    .main-title {
        font-size: 1.2rem;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    .title-secondary {
        font-size: 0.7em;
    }
    
    /* Middle Section - Mobile */
    .middle-section {
        height: 50vh; /* fallback */
        height: 50svh;
    }
    
    /* Bottom Section - Mobile */
    .bottom-content {
        bottom: 2rem;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .description {
        font-size: 0.875rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Action Buttons - Mobile */
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 300px;
    }
    
    .primary-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .secondary-btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .btn-icon {
        font-size: 1rem;
    }
    
    /* Mars Controls - Mobile */
    .controls-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .control-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.7rem;
    }
    
    /* Loading Spinner - Mobile */
    .loading-spinner .spinner {
        width: 1rem;
        height: 1rem;
    }
    
    /* Unity Loading - Mobile */
    #unity-progress-bar-empty {
        width: 90%;
        max-width: 280px;
    }
    
    #unity-logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile */
    .nav-content {
        padding: 0.5rem 0rem;
        gap: 0%;
    }
    
    .brand-container {
        padding: 0.25rem 0.5rem;
    }
    
    .brand-text {
        font-size: 0.875rem;
    }
    

    
    .search-input {
        min-width: 120px;
        font-size: 0.75rem;
    }
    
    .connect-wallet-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .profile-btn {
        width: 2rem;
        height: 2rem;
    }
    
    .top-section {
        top: 70px;
        padding: 0.75rem;
    }
    
    .main-title {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .title-secondary {
        font-size: 0.65em;
    }
    
    .bottom-content {
        bottom: 1.5rem;
        padding: 0.75rem;
        gap: 1rem;
    }
    
    .description {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .action-buttons {
        max-width: 280px;
        gap: 0.5rem;
    }
    
    .primary-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .secondary-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.75rem;
    }
    
    .btn-icon {
        font-size: 0.875rem;
    }
    
    .controls-buttons {
        gap: 0.375rem;
    }
    
    .control-btn {
        padding: 0.25rem 0.625rem;
        font-size: 0.65rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .top-section {
        padding: 0.5rem;
    }
    
    .main-title {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .middle-section {
        height: 40vh; /* fallback */
        height: 40svh;
    }
    
    .bottom-content {
        bottom: 1rem;
        padding: 0.5rem;
        gap: 0.75rem;
    }
    
    .description {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: row;
        gap: 0.5rem;
        max-width: 400px;
    }
    
    .primary-btn,
    .secondary-btn {
        width: auto;
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .primary-btn,
    .secondary-btn,
    .control-btn,
    .nav-btn {
        min-height: 44px; /* iOS recommended touch target size */
    }
    
    .primary-btn:hover,
    .secondary-btn:hover,
    .control-btn:hover,
    .nav-btn:hover {
        transform: none; /* Disable hover effects on touch devices */
    }
    
    .primary-btn:active,
    .secondary-btn:active,
    .control-btn:active,
    .nav-btn:active {
        transform: scale(0.98);
    }
}

/* iOS Safe Area Support */
@supports (padding: max(0px)) {
    .landing-screen {
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .top-nav {
        padding-top: max(0px, env(safe-area-inset-top));
    }
    
    .top-section {
        padding-top: max(2rem, env(safe-area-inset-top) + 1rem);
    }
    
    .bottom-content {
        padding-bottom: max(2rem, env(safe-area-inset-bottom) + 1rem);
    }
}

/* Prevent zoom on input focus (iOS) */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .primary-btn,
    .secondary-btn,
    .control-btn {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .particle {
        transform: scale(0.5);
    }
}

/* Particle Effects Container */
.particle-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat 6s linear infinite;
}

.large-particle {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    animation: particleGlow 3s ease-in-out infinite alternate;
    opacity: 0.8;
}

.medium-particle {
    width: 4px;
    height: 4px;
    background: #ff6b35;
    animation: particleFloat 8s ease-in-out infinite;
    opacity: 0.6;
}

.small-particle {
    width: 2px;
    height: 2px;
    background: #f7931e;
    animation: particleShimmer 2s ease-in-out infinite alternate;
    opacity: 0.5;
}

.dust-particle {
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    animation: particleFloat 10s ease-in-out infinite;
    opacity: 0.4;
}

.micro-particle {
    width: 0.5px;
    height: 0.5px;
    background: rgba(255, 107, 53, 0.3);
    animation: particlePulse 1.5s ease-in-out infinite;
    opacity: 0.3;
}

/* Circuit Board Patterns */
.circuit-pattern {
    position: absolute;
    width: 100px;
    height: 60px;
    background: 
        linear-gradient(90deg, transparent 49%, #ff6b35 49%, #ff6b35 51%, transparent 51%),
        linear-gradient(0deg, transparent 49%, #ff6b35 49%, #ff6b35 51%, transparent 51%);
    background-size: 20px 20px;
    opacity: 0.1;
    animation: circuitPulse 4s ease-in-out infinite;
}

.circuit-pattern.top-left {
    top: 2rem;
    left: 2rem;
    transform: rotate(45deg);
}

.circuit-pattern.top-right {
    top: 2rem;
    right: 2rem;
    transform: rotate(-45deg);
}

.circuit-pattern.bottom-left {
    bottom: 2rem;
    left: 2rem;
    transform: rotate(-45deg);
}

.circuit-pattern.bottom-right {
    bottom: 2rem;
    right: 2rem;
    transform: rotate(45deg);
}

/* Modern Animations */

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 107, 53, 0.3));
    }
    100% {
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 107, 53, 0.6));
    }
}

@keyframes subtitlePulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes descriptionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes treeSway {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@keyframes buttonsSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes scanLine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes readoutFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes readoutScan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes valueGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 107, 53, 0.5);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

@keyframes particleGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
        opacity: 0.6;
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.8), 0 0 25px rgba(255, 107, 53, 0.4);
        opacity: 1;
    }
}

@keyframes particleShimmer {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes particlePulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes circuitPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 0.7; 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Profile Dropdown Styles */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    min-width: 280px;
    z-index: 1002;
    margin-top: 8px;
    overflow: hidden;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.wallet-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.connection-status {
    font-size: 12px;
    color: #00D4FF;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-actions {
    padding: 8px;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00D4FF;
}

/* Mobile Profile Dropdown Adjustments */
@media (max-width: 768px) {
    .profile-dropdown {
        position: fixed;
        top: 80px;
        right: 16px;
        left: 16px;
        min-width: auto;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .dropdown-header {
        padding: 12px;
    }
    
    .dropdown-photo {
        width: 36px;
        height: 36px;
    }
    
    .wallet-address {
        font-size: 13px;
    }
    
    .connection-status {
        font-size: 11px;
    }
    
    .dropdown-actions {
        padding: 6px;
    }
    
    .dropdown-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Mobile Profile Button Styles */
.mobile-profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    border-radius: 0;
}

.mobile-profile-photo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 53, 0.3);
    object-fit: cover;
    background: rgba(255, 107, 53, 0.1);
}

.mobile-wallet-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-wallet-address {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.mobile-connection-status {
    color: #FF6B35;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-profile-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.mobile-profile-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-profile-action:hover::before {
    left: 100%;
}

.mobile-profile-action:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: #FF6B35;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.mobile-profile-action:active {
    transform: translateX(5px) scale(0.98);
}

.mobile-profile-action svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.mobile-profile-action:hover svg {
    transform: scale(1.1);
}

.mobile-search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    z-index: 30;
}

.mobile-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    outline: none;
    font-family: 'Courier New', monospace;
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mobile-search-btn {
    padding: 0.75rem;
    background: #ff6b35;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-search-btn:hover {
    background: #f7931e;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.mobile-search-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.mobile-connect-wallet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #00d4ff;
    border: 1px solid #00d4ff;
    border-radius: 0;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-connect-wallet-btn:hover {
    background: #0099cc;
    border-color: #0099cc;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.mobile-connect-wallet-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Mobile About Button */
.mobile-about-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 0;
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-about-btn:hover {
    background: #ff6b35;
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.mobile-about-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Mobile Controls Button */
.mobile-controls-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 0;
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-controls-btn:hover {
    background: #00d4ff;
    color: white;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.mobile-controls-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Mobile Settings Button */
.mobile-settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.mobile-settings-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.mobile-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #ff6b35;
    border: 1px solid #ff6b35;
    border-radius: 0;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-profile-btn:hover {
    background: #f7931e;
    border-color: #f7931e;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.mobile-profile-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Utility Classes */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: auto; /* Enable modal interactions */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #000000;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh; /* fallback */
    max-height: 80svh; /* prefer stable small viewport height on mobile */
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    background: rgba(255, 107, 53, 0.05);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
    color: #FF6B35;
}

.modal-close svg {
    width: 1rem;
    height: 1rem;
}

.modal-body {
    padding: 1.5rem;
    color: #FFFFFF;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #FF6B35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
}

.settings-buttons {
    display: flex;
    gap: 0.5rem;
}

.setting-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 0;
    color: #FF6B35;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
    color: #FFFFFF;
}

/* About Modal Content */
#about-modal .modal-content {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.about-modal .modal-title {
    color: #FF6B35;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.about-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-section {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.section-header:hover {
    background: rgba(255, 107, 53, 0.1);
}

.section-header.expanded {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 107, 53, 0.05);
}

.section-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    color: #FF6B35;
    flex-shrink: 0;
}

.section-icon svg {
    width: 100%;
    height: 100%;
}

.section-title {
    color: #FF6B35;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-toggle {
    width: 20px;
    height: 20px;
    color: #FF6B35;
    transition: transform 0.3s ease;
}

.section-toggle.expanded {
    transform: rotate(180deg);
}

.toggle-icon {
    width: 100%;
    height: 100%;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1rem;
}

.section-content.expanded {
    max-height: 500px;
    padding: 1rem;
}

.section-content p {
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.guide-item {
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    border-left: 3px solid #FF6B35;
}

.guide-item:last-child {
    margin-bottom: 0;
}

.guide-item strong {
    color: #FF6B35;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Controls Modal Styles */
.controls-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.controls-section {
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.control-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    transition: background-color 0.2s ease;
}

.control-item:last-child {
    border-bottom: none;
}

.control-item:hover {
    background: rgba(255, 107, 53, 0.05);
}

.control-key {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #00d4ff;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.control-description {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
}

.tip-item {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border-left: 3px solid #00d4ff;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item strong {
    color: #00d4ff;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* Settings Modal Styles */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-section {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.setting-label {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    flex-grow: 1;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.setting-value {
    color: #00d4ff;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Range Input Styling */
.setting-control input[type="range"] {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.setting-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.setting-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Select Styling */
.setting-control select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #e0e0e0;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.setting-control select:focus {
    border-color: #00d4ff;
}

.setting-control select option {
    background: rgba(0, 0, 0, 0.9);
    color: #e0e0e0;
}

/* Toggle Switch Styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #00d4ff;
    border-color: #00d4ff;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Clear Data Button */
.clear-data-btn {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 4px;
    color: #ff6b35;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
}

.clear-data-btn:hover {
    background: #ff6b35;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .nav-content {
        padding: 0.75rem 0rem;
    }
    
    .nav-left {
        gap: 0rem;
    }
    
    .nav-right {
        gap: 0rem;
        padding-right: 2%;
    }
    
    .menu-text {
        display: none;
    }
    
    .menu-btn svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .brand-text {
        font-size: 0.9rem;
    }
    
    .brand-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .connect-wallet-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .connect-wallet-btn span {
        display: none;
    }
    
    .connect-wallet-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .profile-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .profile-photo {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    #about-modal .modal-content {
        max-width: 95vw;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .about-modal .modal-title {
        font-size: 1.2rem;
    }
    
    .section-header {
        padding: 0.75rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .section-content.expanded {
        padding: 0.75rem;
    }
    
    .guide-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Mars Landing Screen Styles */
.landing-screen {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 20;
    display: none;
    flex-direction: column;
    background: transparent;
    pointer-events: none; /* Allow Unity interactions to pass through */
}

/* Top Section - Title Only */
.top-section {
    position: absolute;
    top: 113px;
    left: 0;
    right: 0;
    padding: 2rem 1rem 2rem 1rem;
    z-index: 2;
    pointer-events: auto;
}

/* Middle Section - Clear for Mars Globe */
.middle-section {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 50vh; /* fallback */
    height: 50svh; /* prefer stable small viewport height on mobile */
    pointer-events: none;
}

/* Bottom Section - Content Below Mars */
.bottom-content {
    position: absolute;
    bottom: 4rem;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    pointer-events: auto; /* Enable button interactions */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Digital Readout Section */
.digital-readout {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    animation: readoutFadeIn 2s ease-out 0.5s forwards;
    opacity: 0;
}

.readout-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.readout-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    animation: readoutScan 3s linear infinite;
}

.readout-label {
    font-size: 0.7rem;
    color: #ff6b35;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
}

.readout-value {
    font-size: 0.9rem;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: valueGlow 2s ease-in-out infinite alternate;
}

/* Title Section - Centered */
.title-section {
    margin-bottom: 1rem;
    text-align: center;
    animation: titleSlideIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.main-title {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.title-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    display: inline;
    position: relative;
    font-weight: 400;
}

.title-primary::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #dc2626);
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.title-secondary {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em;
    display: inline;
    font-weight: 200;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}



/* Description Section - Centered */
.description-section {
    margin-bottom: 2rem;
    text-align: center;
    animation: descriptionFadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.description {
    font-size: 1rem;
    color: #d1d5db;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.description::before {
    content: '🌳';
    position: absolute;
    left: -30px;
    top: 0;
    font-size: 1.2em;
    opacity: 0.7;
    animation: treeSway 3s ease-in-out infinite;
}

.description::after {
    content: '🌳';
    position: absolute;
    right: -30px;
    top: 0;
    font-size: 1.2em;
    opacity: 0.7;
    animation: treeSway 3s ease-in-out infinite reverse;
}

/* Action Buttons - Side by Side */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    animation: buttonsSlideUp 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.3s ease;
}

/* When hero connect wallet button is hidden, center the begin journey button */
.action-buttons.centered {
    justify-content: center;
}

.primary-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    background: #ff6b35;
    border: 2px solid #ff6b35;
    border-radius: 0;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.3s ease;
}

.primary-btn:hover:not(:disabled) {
    background: #f7931e;
    border-color: #f7931e;
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.5);
}

.primary-btn:hover:not(:disabled)::before {
    left: 100%;
}

.primary-btn:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    background: #666;
    border-color: #666;
}

.btn-icon {
    font-size: 1.2rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.loading-spinner .spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.secondary-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: transparent;
    border: 2px solid #ff6b35;
    border-radius: 0;
    color: #ff6b35;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.3s ease;
}

.secondary-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.secondary-btn:hover::before {
    left: 100%;
}

/* Mars Controls */
.mars-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: buttonsSlideUp 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
    opacity: 0;
    transform: translateY(40px);
}

.controls-title {
    font-size: 0.75rem;
    color: rgba(255, 107, 53, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.controls-buttons {
    display: flex;
    gap: 0.75rem;
}

.control-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 1rem;
    color: rgba(255, 107, 53, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    backdrop-filter: blur(4px);
}

.control-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.4);
    color: white;
    transform: translateY(-1px);
}

/* Right Section - Mars Graphic */
.right-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.mars-graphic {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mars-planet {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #dc2626, #991b1b);
    box-shadow: 
        0 0 50px rgba(249, 115, 22, 0.3),
        0 0 100px rgba(220, 38, 38, 0.2),
        inset 0 0 50px rgba(0, 0, 0, 0.3);
    animation: rotate 20s linear infinite;
}

.mars-surface {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
}

.mars-atmosphere {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.mars-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 80%);
    animation: glow 3s ease-in-out infinite alternate;
}

.mars-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Bottom Section - Informational Cards */
.bottom-section {
    padding: 2rem;
    z-index: 2;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.info-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    flex: 1;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #f97316;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f97316;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.card-label {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
}
#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#unity-logo {
    text-align: center;
}
#unity-logo img {
    max-width: 80%;
}
#unity-progress-bar-empty {
    width: 80%;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid white;
    padding: 2px;
}
#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: white;
}
.light #unity-progress-bar-empty {
    border-color: black;
}
.light #unity-progress-bar-full {
    background: black;
}

#unity-fullscreen-button {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center;
    background-size: contain;
}

/* Unity Loading Screen Styles */
#loading-cover {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-loading-bar {
    text-align: center;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

#unity-logo {
    margin-bottom: 20px;
}

#unity-logo img {
    max-width: 200px;
    height: auto;
}

#unity-progress-bar-empty {
    width: 300px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
}

#unity-progress-bar-full {
    height: 100%;
    background: linear-gradient(135deg, #f97316, #dc2626);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.spinner,
.spinner:after {
  border-radius: 50%;
  width: 5em;
  height: 5em;
}
.spinner {
  margin: 10px;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 1.1em solid rgba(255, 255, 255, 0.2);
  border-right: 1.1em solid rgba(255, 255, 255, 0.2);
  border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
  border-left: 1.1em solid #ffffff;
  transform: translateZ(0);
  animation: spinner-spin 1.1s infinite linear;
}
@keyframes spinner-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}



/* Responsive design */
@media (max-width: 1024px) {
    .nav-content {
        padding: 0.5rem 0rem;
    }
    
    .nav-version {
        display: none;
    }
    
    .nav-center {
        gap: 1rem;
    }
    
    .fps-display {
        display: none;
    }
    
    .modal-content {
        max-width: 500px;
        width: 95%;
    }
    
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* Prevent mobile viewport height issues */
    html, body {
        height: 100%;
        overflow: hidden;
    }
    
    #unity-container {
        height: 100%;
    }
    
    /* Navigation - Mobile */
    .nav-content {
        padding: 0.75rem 0rem;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }
    
    .nav-brand {
        flex: 1;
    }
    
    .brand-container {
        padding: 0.5rem 1rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    .hamburger-btn {
        display: flex !important;
    }
    
    /* Modal - Mobile */
    .modal-content {
        max-width: 95%;
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.75rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-content {
        font-size: 0.9rem;
    }
    
    /* Top Section - Mobile */
    .top-section {
        top: 80px;
        padding: 1rem 0.5rem 1rem 0.5rem;
    }
    
    .main-title {
        font-size: 1.2rem;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    .title-secondary {
        font-size: 0.7em;
    }
    
    /* Middle Section - Mobile */
    .middle-section {
        height: 50vh; /* fallback */
        height: 50svh;
    }
    
    /* Bottom Section - Mobile */
    .bottom-content {
        bottom: 2rem;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .description {
        font-size: 0.875rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Action Buttons - Mobile */
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 300px;
    }
    
    .primary-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .secondary-btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .btn-icon {
        font-size: 1rem;
    }
    
    /* Mars Controls - Mobile */
    .controls-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .control-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.7rem;
    }
    
    /* Loading Spinner - Mobile */
    .loading-spinner .spinner {
        width: 1rem;
        height: 1rem;
    }
    
    /* Unity Loading - Mobile */
    #unity-progress-bar-empty {
        width: 90%;
        max-width: 280px;
    }
    
    #unity-logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile */
    .nav-content {
        padding: 0.5rem 0rem;
        gap: 0%;
    }
    
    .brand-container {
        padding: 0.25rem 0.5rem;
    }
    
    .brand-text {
        font-size: 0.875rem;
    }
    

    
    .search-input {
        min-width: 120px;
        font-size: 0.75rem;
    }
    
    .connect-wallet-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .profile-btn {
        width: 2rem;
        height: 2rem;
    }
    
    .top-section {
        top: 70px;
        padding: 0.75rem;
    }
    
    .main-title {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .title-secondary {
        font-size: 0.65em;
    }
    
    .bottom-content {
        bottom: 1.5rem;
        padding: 0.75rem;
        gap: 1rem;
    }
    
    .description {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .action-buttons {
        max-width: 280px;
        gap: 0.5rem;
    }
    
    .primary-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .secondary-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.75rem;
    }
    
    .btn-icon {
        font-size: 0.875rem;
    }
    
    .controls-buttons {
        gap: 0.375rem;
    }
    
    .control-btn {
        padding: 0.25rem 0.625rem;
        font-size: 0.65rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .top-section {
        padding: 0.5rem;
    }
    
    .main-title {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .middle-section {
        height: 40vh; /* fallback */
        height: 40svh;
    }
    
    .bottom-content {
        bottom: 1rem;
        padding: 0.5rem;
        gap: 0.75rem;
    }
    
    .description {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: row;
        gap: 0.5rem;
        max-width: 400px;
    }
    
    .primary-btn,
    .secondary-btn {
        width: auto;
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .primary-btn,
    .secondary-btn,
    .control-btn,
    .nav-btn {
        min-height: 44px; /* iOS recommended touch target size */
    }
    
    .primary-btn:hover,
    .secondary-btn:hover,
    .control-btn:hover,
    .nav-btn:hover {
        transform: none; /* Disable hover effects on touch devices */
    }
    
    .primary-btn:active,
    .secondary-btn:active,
    .control-btn:active,
    .nav-btn:active {
        transform: scale(0.98);
    }
}

/* iOS Safe Area Support */
@supports (padding: max(0px)) {
    .landing-screen {
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .top-nav {
        padding-top: max(0px, env(safe-area-inset-top));
    }
    
    .top-section {
        padding-top: max(2rem, env(safe-area-inset-top) + 1rem);
    }
    
    .bottom-content {
        padding-bottom: max(2rem, env(safe-area-inset-bottom) + 1rem);
    }
}

/* Prevent zoom on input focus (iOS) */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .primary-btn,
    .secondary-btn,
    .control-btn {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .particle {
        transform: scale(0.5);
    }
}

/* Particle Effects Container */
.particle-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat 6s linear infinite;
}

.large-particle {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    animation: particleGlow 3s ease-in-out infinite alternate;
    opacity: 0.8;
}

.medium-particle {
    width: 4px;
    height: 4px;
    background: #ff6b35;
    animation: particleFloat 8s ease-in-out infinite;
    opacity: 0.6;
}

.small-particle {
    width: 2px;
    height: 2px;
    background: #f7931e;
    animation: particleShimmer 2s ease-in-out infinite alternate;
    opacity: 0.5;
}

.dust-particle {
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    animation: particleFloat 10s ease-in-out infinite;
    opacity: 0.4;
}

.micro-particle {
    width: 0.5px;
    height: 0.5px;
    background: rgba(255, 107, 53, 0.3);
    animation: particlePulse 1.5s ease-in-out infinite;
    opacity: 0.3;
}

/* Circuit Board Patterns */
.circuit-pattern {
    position: absolute;
    width: 100px;
    height: 60px;
    background: 
        linear-gradient(90deg, transparent 49%, #ff6b35 49%, #ff6b35 51%, transparent 51%),
        linear-gradient(0deg, transparent 49%, #ff6b35 49%, #ff6b35 51%, transparent 51%);
    background-size: 20px 20px;
    opacity: 0.1;
    animation: circuitPulse 4s ease-in-out infinite;
}

.circuit-pattern.top-left {
    top: 2rem;
    left: 2rem;
    transform: rotate(45deg);
}

.circuit-pattern.top-right {
    top: 2rem;
    right: 2rem;
    transform: rotate(-45deg);
}

.circuit-pattern.bottom-left {
    bottom: 2rem;
    left: 2rem;
    transform: rotate(-45deg);
}

.circuit-pattern.bottom-right {
    bottom: 2rem;
    right: 2rem;
    transform: rotate(45deg);
}

/* Modern Animations */

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 107, 53, 0.3));
    }
    100% {
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 107, 53, 0.6));
    }
}

@keyframes subtitlePulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes descriptionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes treeSway {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@keyframes buttonsSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes scanLine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes readoutFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes readoutScan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes valueGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 107, 53, 0.5);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

@keyframes particleGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
        opacity: 0.6;
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.8), 0 0 25px rgba(255, 107, 53, 0.4);
        opacity: 1;
    }
}

@keyframes particleShimmer {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes particlePulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes circuitPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 0.7; 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Profile Dropdown Styles */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    min-width: 280px;
    z-index: 1002;
    margin-top: 8px;
    overflow: hidden;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.wallet-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.connection-status {
    font-size: 12px;
    color: #00D4FF;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-actions {
    padding: 8px;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00D4FF;
}

/* Mobile Profile Dropdown Adjustments */
@media (max-width: 768px) {
    .profile-dropdown {
        position: fixed;
        top: 80px;
        right: 16px;
        left: 16px;
        min-width: auto;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .dropdown-header {
        padding: 12px;
    }
    
    .dropdown-photo {
        width: 36px;
        height: 36px;
    }
    
    .wallet-address {
        font-size: 13px;
    }
    
    .connection-status {
        font-size: 11px;
    }
    
    .dropdown-actions {
        padding: 6px;
    }
    
    .dropdown-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Mobile Profile Button Styles */
.mobile-profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    border-radius: 0;
}

.mobile-profile-photo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 53, 0.3);
    object-fit: cover;
    background: rgba(255, 107, 53, 0.1);
}

.mobile-wallet-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-wallet-address {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.mobile-connection-status {
    color: #FF6B35;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-profile-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.mobile-profile-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-profile-action:hover::before {
    left: 100%;
}

.mobile-profile-action:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: #FF6B35;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.mobile-profile-action:active {
    transform: translateX(5px) scale(0.98);
}

.mobile-profile-action svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.mobile-profile-action:hover svg {
    transform: scale(1.1);
}

.mobile-search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    z-index: 30;
}

.mobile-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    outline: none;
    font-family: 'Courier New', monospace;
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mobile-search-btn {
    padding: 0.75rem;
    background: #ff6b35;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-search-btn:hover {
    background: #f7931e;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.mobile-search-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.mobile-connect-wallet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #00d4ff;
    border: 1px solid #00d4ff;
    border-radius: 0;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-connect-wallet-btn:hover {
    background: #0099cc;
    border-color: #0099cc;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.mobile-connect-wallet-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Mobile About Button */
.mobile-about-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 0;
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-about-btn:hover {
    background: #ff6b35;
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.mobile-about-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Mobile Controls Button */
.mobile-controls-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 0;
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-controls-btn:hover {
    background: #00d4ff;
    color: white;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.mobile-controls-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Mobile Settings Button */
.mobile-settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.mobile-settings-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.mobile-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #ff6b35;
    border: 1px solid #ff6b35;
    border-radius: 0;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-profile-btn:hover {
    background: #f7931e;
    border-color: #f7931e;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.mobile-profile-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Utility Classes */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: auto; /* Enable modal interactions */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #000000;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh; /* fallback */
    max-height: 80svh; /* prefer stable small viewport height on mobile */
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    background: rgba(255, 107, 53, 0.05);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
    color: #FF6B35;
}

.modal-close svg {
    width: 1rem;
    height: 1rem;
}

.modal-body {
    padding: 1.5rem;
    color: #FFFFFF;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #FF6B35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
}

.settings-buttons {
    display: flex;
    gap: 0.5rem;
}

.setting-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 0;
    color: #FF6B35;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
    color: #FFFFFF;
}

/* About Modal Content */
#about-modal .modal-content {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.about-modal .modal-title {
    color: #FF6B35;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.about-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-section {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.section-header:hover {
    background: rgba(255, 107, 53, 0.1);
}

.section-header.expanded {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 107, 53, 0.05);
}

.section-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    color: #FF6B35;
    flex-shrink: 0;
}

.section-icon svg {
    width: 100%;
    height: 100%;
}

.section-title {
    color: #FF6B35;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-toggle {
    width: 20px;
    height: 20px;
    color: #FF6B35;
    transition: transform 0.3s ease;
}

.section-toggle.expanded {
    transform: rotate(180deg);
}

.toggle-icon {
    width: 100%;
    height: 100%;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1rem;
}

.section-content.expanded {
    max-height: 500px;
    padding: 1rem;
}

.section-content p {
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.guide-item {
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    border-left: 3px solid #FF6B35;
}

.guide-item:last-child {
    margin-bottom: 0;
}

.guide-item strong {
    color: #FF6B35;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Controls Modal Styles */
.controls-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.controls-section {
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.control-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    transition: background-color 0.2s ease;
}

.control-item:last-child {
    border-bottom: none;
}

.control-item:hover {
    background: rgba(255, 107, 53, 0.05);
}

.control-key {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #00d4ff;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.control-description {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
}

.tip-item {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border-left: 3px solid #00d4ff;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item strong {
    color: #00d4ff;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* Settings Modal Styles */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-section {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.setting-label {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    flex-grow: 1;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.setting-value {
    color: #00d4ff;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Range Input Styling */
.setting-control input[type="range"] {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.setting-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.setting-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Select Styling */
.setting-control select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #e0e0e0;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.setting-control select:focus {
    border-color: #00d4ff;
}

.setting-control select option {
    background: rgba(0, 0, 0, 0.9);
    color: #e0e0e0;
}

/* Toggle Switch Styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #00d4ff;
    border-color: #00d4ff;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Clear Data Button */
.clear-data-btn {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 4px;
    color: #ff6b35;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
}

.clear-data-btn:hover {
    background: #ff6b35;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .nav-content {
        padding: 0.75rem 0rem;
    }
    
    .nav-left {
        gap: 0rem;
    }
    
    .nav-right {
        gap: 0rem;
        padding-right: 2%;
    }
    
    .menu-text {
        display: none;
    }
    
    .menu-btn svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .brand-text {
        font-size: 0.9rem;
    }
    
    .brand-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .connect-wallet-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .connect-wallet-btn span {
        display: none;
    }
    
    .connect-wallet-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .profile-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .profile-photo {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    #about-modal .modal-content {
        max-width: 95vw;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .about-modal .modal-title {
        font-size: 1.2rem;
    }
    
    .section-header {
        padding: 0.75rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .section-content.expanded {
        padding: 0.75rem;
    }
    
    .guide-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Mars Landing Screen Styles */
.landing-screen {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 20;
    display: none;
    flex-direction: column;
    background: transparent;
    pointer-events: none; /* Allow Unity interactions to pass through */
}

/* Top Section - Title Only */
.top-section {
    position: absolute;
    top: 113px;
    left: 0;
    right: 0;
    padding: 2rem 1rem 2rem 1rem;
    z-index: 2;
    pointer-events: auto;
}

/* Middle Section - Clear for Mars Globe */
.middle-section {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 50vh; /* fallback */
    height: 50svh; /* prefer stable small viewport height on mobile */
    pointer-events: none;
}

/* Bottom Section - Content Below Mars */
.bottom-content {
    position: absolute;
    bottom: 4rem;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    pointer-events: auto; /* Enable button interactions */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Digital Readout Section */
.digital-readout {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    animation: readoutFadeIn 2s ease-out 0.5s forwards;
    opacity: 0;
}

.readout-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.readout-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    animation: readoutScan 3s linear infinite;
}

.readout-label {
    font-size: 0.7rem;
    color: #ff6b35;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
}

.readout-value {
    font-size: 0.9rem;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: valueGlow 2s ease-in-out infinite alternate;
}

/* Title Section - Centered */
.title-section {
    margin-bottom: 1rem;
    text-align: center;
    animation: titleSlideIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.main-title {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.title-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    display: inline;
    position: relative;
    font-weight: 400;
}

.title-primary::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #dc2626);
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.title-secondary {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em;
    display: inline;
    font-weight: 200;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}



/* Description Section - Centered */
.description-section {
    margin-bottom: 2rem;
    text-align: center;
    animation: descriptionFadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.description {
    font-size: 1rem;
    color: #d1d5db;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.description::before {
    content: '🌳';
    position: absolute;
    left: -30px;
    top: 0;
    font-size: 1.2em;
    opacity: 0.7;
    animation: treeSway 3s ease-in-out infinite;
}

.description::after {
    content: '🌳';
    position: absolute;
    right: -30px;
    top: 0;
    font-size: 1.2em;
    opacity: 0.7;
    animation: treeSway 3s ease-in-out infinite reverse;
}

/* Action Buttons - Side by Side */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    animation: buttonsSlideUp 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.3s ease;
}

/* When hero connect wallet button is hidden, center the begin journey button */
.action-buttons.centered {
    justify-content: center;
}

.primary-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    background: #ff6b35;
    border: 2px solid #ff6b35;
    border-radius: 0;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.3s ease;
}

.primary-btn:hover:not(:disabled) {
    background: #f7931e;
    border-color: #f7931e;
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.5);
}

.primary-btn:hover:not(:disabled)::before {
    left: 100%;
}

.primary-btn:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    background: #666;
    border-color: #666;
}

.btn-icon {
    font-size: 1.2rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.loading-spinner .spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.secondary-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: transparent;
    border: 2px solid #ff6b35;
    border-radius: 0;
    color: #ff6b35;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.3s ease;
}

.secondary-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.secondary-btn:hover::before {
    left: 100%;
}

/* Mars Controls */
.mars-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: buttonsSlideUp 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
    opacity: 0;
    transform: translateY(40px);
}

.controls-title {
    font-size: 0.75rem;
    color: rgba(255, 107, 53, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.controls-buttons {
    display: flex;
    gap: 0.75rem;
}

.control-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 1rem;
    color: rgba(255, 107, 53, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    backdrop-filter: blur(4px);
}

.control-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.4);
    color: white;
    transform: translateY(-1px);
}

/* Right Section - Mars Graphic */
.right-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.mars-graphic {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mars-planet {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #dc2626, #991b1b);
    box-shadow: 
        0 0 50px rgba(249, 115, 22, 0.3),
        0 0 100px rgba(220, 38, 38, 0.2),
        inset 0 0 50px rgba(0, 0, 0, 0.3);
    animation: rotate 20s linear infinite;
}

.mars-surface {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
}

.mars-atmosphere {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.mars-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 80%);
    animation: glow 3s ease-in-out infinite alternate;
}

.mars-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Bottom Section - Informational Cards */
.bottom-section {
    padding: 2rem;
    z-index: 2;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.info-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    flex: 1;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #f97316;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f97316;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.card-label {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
}
#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#unity-logo {
    text-align: center;
}
#unity-logo img {
    max-width: 80%;
}
#unity-progress-bar-empty {
    width: 80%;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid white;
    padding: 2px;
}
#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: white;
}
.light #unity-progress-bar-empty {
    border-color: black;
}
.light #unity-progress-bar-full {
    background: black;
}

#unity-fullscreen-button {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center;
    background-size: contain;
}

/* Unity Loading Screen Styles */
#loading-cover {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-loading-bar {
    text-align: center;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

#unity-logo {
    margin-bottom: 20px;
}

#unity-logo img {
    max-width: 200px;
    height: auto;
}

#unity-progress-bar-empty {
    width: 300px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
}

#unity-progress-bar-full {
    height: 100%;
    background: linear-gradient(135deg, #f97316, #dc2626);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.spinner,
.spinner:after {
  border-radius: 50%;
  width: 5em;
  height: 5em;
}
.spinner {
  margin: 10px;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 1.1em solid rgba(255, 255, 255, 0.2);
  border-right: 1.1em solid rgba(255, 255, 255, 0.2);
  border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
  border-left: 1.1em solid #ffffff;
  transform: translateZ(0);
  animation: spinner-spin 1.1s infinite linear;
}
@keyframes spinner-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}



/* Responsive design */
@media (max-width: 1024px) {
    .nav-content {
        padding: 0.5rem 0rem;
    }
    
    .nav-version {
        display: none;
    }
    
    .nav-center {
        gap: 1rem;
    }
    
    .fps-display {
        display: none;
    }
    
    .modal-content {
        max-width: 500px;
        width: 95%;
    }
    
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* Prevent mobile viewport height issues */
    html, body {
        height: 100%;
        overflow: hidden;
    }
    
    #unity-container {
        height: 100%;
    }
    
    /* Navigation - Mobile */
    .nav-content {
        padding: 0.75rem 0rem;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }
    
    .nav-brand {
        flex: 1;
    }
    
    .brand-container {
        padding: 0.5rem 1rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    .hamburger-btn {
        display: flex !important;
    }
    
    /* Modal - Mobile */
    .modal-content {
        max-width: 95%;
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.75rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-content {
        font-size: 0.9rem;
    }
    
    /* Top Section - Mobile */
    .top-section {
        top: 80px;
        padding: 1rem 0.5rem 1rem 0.5rem;
    }
    
    .main-title {
        font-size: 1.2rem;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    .title-secondary {
        font-size: 0.7em;
    }
    
    /* Middle Section - Mobile */
    .middle-section {
        height: 50vh; /* fallback */
        height: 50svh;
    }
    
    /* Bottom Section - Mobile */
    .bottom-content {
        bottom: 2rem;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .description {
        font-size: 0.875rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Action Buttons - Mobile */
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 300px;
    }
    
    .primary-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .secondary-btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .btn-icon {
        font-size: 1rem;
    }
    
    /* Mars Controls - Mobile */
    .controls-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .control-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.7rem;
    }
    
    /* Loading Spinner - Mobile */
    .loading-spinner .spinner {
        width: 1rem;
        height: 1rem;
    }
    
    /* Unity Loading - Mobile */
    #unity-progress-bar-empty {
        width: 90%;
        max-width: 280px;
    }
    
    #unity-logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile */
    .nav-content {
        padding: 0.5rem 0rem;
        gap: 0%;
    }
    
    .brand-container {
        padding: 0.25rem 0.5rem;
    }
    
    .brand-text {
        font-size: 0.875rem;
    }
    

    
    .search-input {
        min-width: 120px;
        font-size: 0.75rem;
    }
    
    .connect-wallet-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .profile-btn {
        width: 2rem;
        height: 2rem;
    }
    
    .top-section {
        top: 70px;
        padding: 0.75rem;
    }
    
    .main-title {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .title-secondary {
        font-size: 0.65em;
    }
    
    .bottom-content {
        bottom: 1.5rem;
        padding: 0.75rem;
        gap: 1rem;
    }
    
    .description {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .action-buttons {
        max-width: 280px;
        gap: 0.5rem;
    }
    
    .primary-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .secondary-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.75rem;
    }
    
    .btn-icon {
        font-size: 0.875rem;
    }
    
    .controls-buttons {
        gap: 0.375rem;
    }
    
    .control-btn {
        padding: 0.25rem 0.625rem;
        font-size: 0.65rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .top-section {
        padding: 0.5rem;
    }
    
    .main-title {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .middle-section {
        height: 40vh; /* fallback */
        height: 40svh;
    }
    
    .bottom-content {
        bottom: 1rem;
        padding: 0.5rem;
        gap: 0.75rem;
    }
    
    .description {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: row;
        gap: 0.5rem;
        max-width: 400px;
    }
    
    .primary-btn,
    .secondary-btn {
        width: auto;
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .primary-btn,
    .secondary-btn,
    .control-btn,
    .nav-btn {
        min-height: 44px; /* iOS recommended touch target size */
    }
    
    .primary-btn:hover,
    .secondary-btn:hover,
    .control-btn:hover,
    .nav-btn:hover {
        transform: none; /* Disable hover effects on touch devices */
    }
    
    .primary-btn:active,
    .secondary-btn:active,
    .control-btn:active,
    .nav-btn:active {
        transform: scale(0.98);
    }
}

/* iOS Safe Area Support */
@supports (padding: max(0px)) {
    .landing-screen {
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .top-nav {
        padding-top: max(0px, env(safe-area-inset-top));
    }
    
    .top-section {
        padding-top: max(2rem, env(safe-area-inset-top) + 1rem);
    }
    
    .bottom-content {
        padding-bottom: max(2rem, env(safe-area-inset-bottom) + 1rem);
    }
}

/* Prevent zoom on input focus (iOS) */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .primary-btn,
    .secondary-btn,
    .control-btn {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .particle {
        transform: scale(0.5);
    }
}

/* Particle Effects Container */
.particle-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat 6s linear infinite;
}

.large-particle {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    animation: particleGlow 3s ease-in-out infinite alternate;
    opacity: 0.8;
}

.medium-particle {
    width: 4px;
    height: 4px;
    background: #ff6b35;
    animation: particleFloat 8s ease-in-out infinite;
    opacity: 0.6;
}

.small-particle {
    width: 2px;
    height: 2px;
    background: #f7931e;
    animation: particleShimmer 2s ease-in-out infinite alternate;
    opacity: 0.5;
}

.dust-particle {
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    animation: particleFloat 10s ease-in-out infinite;
    opacity: 0.4;
}

.micro-particle {
    width: 0.5px;
    height: 0.5px;
    background: rgba(255, 107, 53, 0.3);
    animation: particlePulse 1.5s ease-in-out infinite;
    opacity: 0.3;
}

/* Circuit Board Patterns */
.circuit-pattern {
    position: absolute;
    width: 100px;
    height: 60px;
    background: 
        linear-gradient(90deg, transparent 49%, #ff6b35 49%, #ff6b35 51%, transparent 51%),
        linear-gradient(0deg, transparent 49%, #ff6b35 49%, #ff6b35 51%, transparent 51%);
    background-size: 20px 20px;
    opacity: 0.1;
    animation: circuitPulse 4s ease-in-out infinite;
}

.circuit-pattern.top-left {
    top: 2rem;
    left: 2rem;
    transform: rotate(45deg);
}

.circuit-pattern.top-right {
    top: 2rem;
    right: 2rem;
    transform: rotate(-45deg);
}

.circuit-pattern.bottom-left {
    bottom: 2rem;
    left: 2rem;
    transform: rotate(-45deg);
}

.circuit-pattern.bottom-right {
    bottom: 2rem;
    right: 2rem;
    transform: rotate(45deg);
}

/* Modern Animations */

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 107, 53, 0.3));
    }
    100% {
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 107, 53, 0.6));
    }
}

@keyframes subtitlePulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes descriptionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes treeSway {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@keyframes buttonsSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes scanLine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes readoutFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes readoutScan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes valueGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 107, 53, 0.5);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

@keyframes particleGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
        opacity: 0.6;
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.8), 0 0 25px rgba(255, 107, 53, 0.4);
        opacity: 1;
    }
}

@keyframes particleShimmer {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes particlePulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes circuitPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 0.7; 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Profile Dropdown Styles */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    min-width: 280px;
    z-index: 1002;
    margin-top: 8px;
    overflow: hidden;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.wallet-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.connection-status {
    font-size: 12px;
    color: #00D4FF;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-actions {
    padding: 8px;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00D4FF;
}

/* Mobile Profile Dropdown Adjustments */
@media (max-width: 768px) {
    .profile-dropdown {
        position: fixed;
        top: 80px;
        right: 16px;
        left: 16px;
        min-width: auto;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .dropdown-header {
        padding: 12px;
    }
    
    .dropdown-photo {
        width: 36px;
        height: 36px;
    }
    
    .wallet-address {
        font-size: 13px;
    }
    
    .connection-status {
        font-size: 11px;
    }
    
    .dropdown-actions {
        padding: 6px;
    }
    
    .dropdown-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Mobile Profile Button Styles */
.mobile-profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    border-radius: 0;
}

.mobile-profile-photo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 53, 0.3);
    object-fit: cover;
    background: rgba(255, 107, 53, 0.1);
}

.mobile-wallet-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-wallet-address {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.mobile-connection-status {
    color: #FF6B35;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-profile-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.mobile-profile-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-profile-action:hover::before {
    left: 100%;
}

.mobile-profile-action:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: #FF6B35;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.mobile-profile-action:active {
    transform: translateX(5px) scale(0.98);
}

.mobile-profile-action svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.mobile-profile-action:hover svg {
    transform: scale(1.1);
}

.mobile-search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    z-index: 30;
}

.mobile-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    outline: none;
    font-family: 'Courier New', monospace;
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mobile-search-btn {
    padding: 0.75rem;
    background: #ff6b35;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-search-btn:hover {
    background: #f7931e;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.mobile-search-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.mobile-connect-wallet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #00d4ff;
    border: 1px solid #00d4ff;
    border-radius: 0;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-connect-wallet-btn:hover {
    background: #0099cc;
    border-color: #0099cc;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.mobile-connect-wallet-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Mobile About Button */
.mobile-about-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 0;
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-about-btn:hover {
    background: #ff6b35;
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.mobile-about-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Mobile Controls Button */
.mobile-controls-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 0;
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-controls-btn:hover {
    background: #00d4ff;
    color: white;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.mobile-controls-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Mobile Settings Button */
.mobile-settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.mobile-settings-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.mobile-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #ff6b35;
    border: 1px solid #ff6b35;
    border-radius: 0;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-profile-btn:hover {
    background: #f7931e;
    border-color: #f7931e;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.mobile-profile-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Utility Classes */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: auto; /* Enable modal interactions */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #000000;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh; /* fallback */
    max-height: 80svh; /* prefer stable small viewport height on mobile */
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    background: rgba(255, 107, 53, 0.05);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
    color: #FF6B35;
}

.modal-close svg {
    width: 1rem;
    height: 1rem;
}

.modal-body {
    padding: 1.5rem;
    color: #FFFFFF;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #FF6B35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
}

.settings-buttons {
    display: flex;
    gap: 0.5rem;
}

.setting-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 0;
    color: #FF6B35;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
    color: #FFFFFF;
}

/* About Modal Content */
#about-modal .modal-content {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.about-modal .modal-title {
    color: #FF6B35;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.about-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-section {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.section-header:hover {
    background: rgba(255, 107, 53, 0.1);
}

.section-header.expanded {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 107, 53, 0.05);
}

.section-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    color: #FF6B35;
    flex-shrink: 0;
}

.section-icon svg {
    width: 100%;
    height: 100%;
}

.section-title {
    color: #FF6B35;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-toggle {
    width: 20px;
    height: 20px;
    color: #FF6B35;
    transition: transform 0.3s ease;
}

.section-toggle.expanded {
    transform: rotate(180deg);
}

.toggle-icon {
    width: 100%;
    height: 100%;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1rem;
}

.section-content.expanded {
    max-height: 500px;
    padding: 1rem;
}

.section-content p {
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.guide-item {
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    border-left: 3px solid #FF6B35;
}

.guide-item:last-child {
    margin-bottom: 0;
}

.guide-item strong {
    color: #FF6B35;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Controls Modal Styles */
.controls-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.controls-section {
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.control-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    transition: background-color 0.2s ease;
}

.control-item:last-child {
    border-bottom: none;
}

.control-item:hover {
    background: rgba(255, 107, 53, 0.05);
}

.control-key {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #00d4ff;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.control-description {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
}

.tip-item {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border-left: 3px solid #00d4ff;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item strong {
    color: #00d4ff;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* Settings Modal Styles */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-section {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.setting-label {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    flex-grow: 1;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.setting-value {
    color: #00d4ff;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Range Input Styling */
.setting-control input[type="range"] {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.setting-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.setting-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Select Styling */
.setting-control select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #e0e0e0;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.setting-control select:focus {
    border-color: #00d4ff;
}

.setting-control select option {
    background: rgba(0, 0, 0, 0.9);
    color: #e0e0e0;
}

/* Toggle Switch Styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #00d4ff;
    border-color: #00d4ff;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Clear Data Button */
.clear-data-btn {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 4px;
    color: #ff6b35;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
}

.clear-data-btn:hover {
    background: #ff6b35;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .nav-content {
        padding: 0.75rem 0rem;
    }
    
    .nav-left {
        gap: 0rem;
    }
    
    .nav-right {
        gap: 0rem;
        padding-right: 2%;
    }
    
    .menu-text {
        display: none;
    }
    
    .menu-btn svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .brand-text {
        font-size: 0.9rem;
    }
    
    .brand-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .connect-wallet-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .connect-wallet-btn span {
        display: none;
    }
    
    .connect-wallet-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .profile-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .profile-photo {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    #about-modal .modal-content {
        max-width: 95vw;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .about-modal .modal-title {
        font-size: 1.2rem;
    }
    
    .section-header {
        padding: 0.75rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .section-content.expanded {
        padding: 0.75rem;
    }
    
    .guide-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Mars Landing Screen Styles */
.landing-screen {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 20;
    display: none;
    flex-direction: column;
    background: transparent;
    pointer-events: none; /* Allow Unity interactions to pass through */
}

/* Top Section - Title Only */
.top-section {
    position: absolute;
    top: 113px;
    left: 0;
    right: 0;
    padding: 2rem 1rem 2rem 1rem;
    z-index: 2;
    pointer-events: auto;
}

/* Middle Section - Clear for Mars Globe */
.middle-section {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 50vh; /* fallback */
    height: 50svh; /* prefer stable small viewport height on mobile */
    pointer-events: none;
}

/* Bottom Section - Content Below Mars */
.bottom-content {
    position: absolute;
    bottom: 4rem;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    pointer-events: auto; /* Enable button interactions */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Digital Readout Section */
.digital-readout {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    animation: readoutFadeIn 2s ease-out 0.5s forwards;
    opacity: 0;
}

.readout-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.readout-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    animation: readoutScan 3s linear infinite;
}

.readout-label {
    font-size: 0.7rem;
    color: #ff6b35;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
}

.readout-value {
    font-size: 0.9rem;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: valueGlow 2s ease-in-out infinite alternate;
}

/* Title Section - Centered */
.title-section {
    margin-bottom: 1rem;
    text-align: center;
    animation: titleSlideIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.main-title {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.title-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    display: inline;
    position: relative;
    font-weight: 400;
}

.title-primary::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #dc2626);
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.title-secondary {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em;
    display: inline;
    font-weight: 200;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}



/* Description Section - Centered */
.description-section {
    margin-bottom: 2rem;
    text-align: center;
    animation: descriptionFadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.description {
    font-size: 1rem;
    color: #d1d5db;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.description::before {
    content: '🌳';
    position: absolute;
    left: -30px;
    top: 0;
    font-size: 1.2em;
    opacity: 0.7;
    animation: treeSway 3s ease-in-out infinite;
}

.description::after {
    content: '🌳';
    position: absolute;
    right: -30px;
    top: 0;
    font-size: 1.2em;
    opacity: 0.7;
    animation: treeSway 3s ease-in-out infinite reverse;
}

/* Action Buttons - Side by Side */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    animation: buttonsSlideUp 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.3s ease;
}

/* When hero connect wallet button is hidden, center the begin journey button */
.action-buttons.centered {
    justify-content: center;
}

.primary-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    background: #ff6b35;
    border: 2px solid #ff6b35;
    border-radius: 0;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.3s ease;
}

.primary-btn:hover:not(:disabled) {
    background: #f7931e;
    border-color: #f7931e;
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.5);
}

.primary-btn:hover:not(:disabled)::before {
    left: 100%;
}

.primary-btn:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    background: #666;
    border-color: #666;
}

.btn-icon {
    font-size: 1.2rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.loading-spinner .spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.secondary-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: transparent;
    border: 2px solid #ff6b35;
    border-radius: 0;
    color: #ff6b35;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.3s ease;
}

.secondary-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.secondary-btn:hover::before {
    left: 100%;
}

/* Mars Controls */
.mars-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: buttonsSlideUp 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
    opacity: 0;
    transform: translateY(40px);
}

.controls-title {
    font-size: 0.75rem;
    color: rgba(255, 107, 53, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.controls-buttons {
    display: flex;
    gap: 0.75rem;
}

.control-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 1rem;
    color: rgba(255, 107, 53, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    backdrop-filter: blur(4px);
}

.control-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.4);
    color: white;
    transform: translateY(-1px);
}

/* Right Section - Mars Graphic */
.right-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.mars-graphic {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mars-planet {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #dc2626, #991b1b);
    box-shadow: 
        0 0 50px rgba(249, 115, 22, 0.3),
        0 0 100px rgba(220, 38, 38, 0.2),
        inset 0 0 50px rgba(0, 0, 0, 0.3);
    animation: rotate 20s linear infinite;
}

.mars-surface {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
}

.mars-atmosphere {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.mars-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 80%);
    animation: glow 3s ease-in-out infinite alternate;
}

.mars-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Bottom Section - Informational Cards */
.bottom-section {
    padding: 2rem;
    z-index: 2;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.info-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    flex: 1;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #f97316;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f97316;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.card-label {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
}
#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#unity-logo {
    text-align: center;
}
#unity-logo img {
    max-width: 80%;
}
#unity-progress-bar-empty {
    width: 80%;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid white;
    padding: 2px;
}
#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: white;
}
.light #unity-progress-bar-empty {
    border-color: black;
}
.light #unity-progress-bar-full {
    background: black;
}

#unity-fullscreen-button {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center;
    background-size: contain;
}

/* Unity Loading Screen Styles */
#loading-cover {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-loading-bar {
    text-align: center;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

#unity-logo {
    margin-bottom: 20px;
}

#unity-logo img {
    max-width: 200px;
    height: auto;
}

#unity-progress-bar-empty {
    width: 300px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
}

#unity-progress-bar-full {
    height: 100%;
    background: linear-gradient(135deg, #f97316, #dc2626);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.spinner,
.spinner:after {
  border-radius: 50%;
  width: 5em;
  height: 5em;
}
.spinner {
  margin: 10px;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 1.1em solid rgba(255, 255, 255, 0.2);
  border-right: 1.1em solid rgba(255, 255, 255, 0.2);
  border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
  border-left: 1.1em solid #ffffff;
  transform: translateZ(0);
  animation: spinner-spin 1.1s infinite linear;
}
@keyframes spinner-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}



/* Responsive design */
@media (max-width: 1024px) {
    .nav-content {
        padding: 0.5rem 0rem;
    }
    
    .nav-version {
        display: none;
    }
    
    .nav-center {
        gap: 1rem;
    }
    
    .fps-display {
        display: none;
    }
    
    .modal-content {
        max-width: 500px;
        width: 95%;
    }
    
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* Prevent mobile viewport height issues */
    html, body {
        height: 100%;
        overflow: hidden;
    }
    
    #unity-container {
        height: 100%;
    }
    
    /* Navigation - Mobile */
    .nav-content {
        padding: 0.75rem 0rem;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }
    
    .nav-brand {
        flex: 1;
    }
    
    .brand-container {
        padding: 0.5rem 1rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    .hamburger-btn {
        display: flex !important;
    }
    
    /* Modal - Mobile */
    .modal-content {
        max-width: 95%;
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.75rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-content {
        font-size: 0.9rem;
    }
    
    /* Top Section - Mobile */
    .top-section {
        top: 80px;
        padding: 1rem 0.5rem 1rem 0.5rem;
    }
    
    .main-title {
        font-size: 1.2rem;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    .title-secondary {
        font-size: 0.7em;
    }
    
    /* Middle Section - Mobile */
    .middle-section {
        height: 50vh; /* fallback */
        height: 50svh;
    }
    
    /* Bottom Section - Mobile */
    .bottom-content {
        bottom: 2rem;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .description {
        font-size: 0.875rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Action Buttons - Mobile */
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 300px;
    }
    
    .primary-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .secondary-btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .btn-icon {
        font-size: 1rem;
    }
    
    /* Mars Controls - Mobile */
    .controls-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .control-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.7rem;
    }
    
    /* Loading Spinner - Mobile */
    .loading-spinner .spinner {
        width: 1rem;
        height: 1rem;
    }
    
    /* Unity Loading - Mobile */
    #unity-progress-bar-empty {
        width: 90%;
        max-width: 280px;
    }
    
    #unity-logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile */
    .nav-content {
        padding: 0.5rem 0rem;
        gap: 0%;
    }
    
    .brand-container {
        padding: 0.25rem 0.5rem;
    }
    
    .brand-text {
        font-size: 0.875rem;
    }
    

    
    .search-input {
        min-width: 120px;
        font-size: 0.75rem;
    }
    
    .connect-wallet-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .profile-btn {
        width: 2rem;
        height: 2rem;
    }
    
    .top-section {
        top: 70px;
        padding: 0.75rem;
    }
    
    .main-title {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .title-secondary {
        font-size: 0.65em;
    }
    
    .bottom-content {
        bottom: 1.5rem;
        padding: 0.75rem;
        gap: 1rem;
    }
    
    .description {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .action-buttons {
        max-width: 280px;
        gap: 0.5rem;
    }
    
    .primary-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .secondary-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.75rem;
    }
    
    .btn-icon {
        font-size: 0.875rem;
    }
    
    .controls-buttons {
        gap: 0.375rem;
    }
    
    .control-btn {
        padding: 0.25rem 0.625rem;
        font-size: 0.65rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .top-section {
        padding: 0.5rem;
    }
    
    .main-title {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .middle-section {
        height: 40vh; /* fallback */
        height: 40svh;
    }
    
    .bottom-content {
        bottom: 1rem;
        padding: 0.5rem;
        gap: 0.75rem;
    }
    
    .description {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: row;
        gap: 0.5rem;
        max-width: 400px;
    }
    
    .primary-btn,
    .secondary-btn {
        width: auto;
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .primary-btn,
    .secondary-btn,
    .control-btn,
    .nav-btn {
        min-height: 44px; /* iOS recommended touch target size */
    }
    
    .primary-btn:hover,
    .secondary-btn:hover,
    .control-btn:hover,
    .nav-btn:hover {
        transform: none; /* Disable hover effects on touch devices */
    }
    
    .primary-btn:active,
    .secondary-btn:active,
    .control-btn:active,
    .nav-btn:active {
        transform: scale(0.98);
    }
}

/* iOS Safe Area Support */
@supports (padding: max(0px)) {
    .landing-screen {
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .top-nav {
        padding-top: max(0px, env(safe-area-inset-top));
    }
    
    .top-section {
        padding-top: max(2rem, env(safe-area-inset-top) + 1rem);
    }
    
    .bottom-content {
        padding-bottom: max(2rem, env(safe-area-inset-bottom) + 1rem);
    }
}

/* Prevent zoom on input focus (iOS) */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .primary-btn,
    .secondary-btn,
    .control-btn {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .particle {
        transform: scale(0.5);
    }
}

/* Particle Effects Container */
.particle-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat 6s linear infinite;
}

.large-particle {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    animation: particleGlow 3s ease-in-out infinite alternate;
    opacity: 0.8;
}

.medium-particle {
    width: 4px;
    height: 4px;
    background: #ff6b35;
    animation: particleFloat 8s ease-in-out infinite;
    opacity: 0.6;
}

.small-particle {
    width: 2px;
    height: 2px;
    background: #f7931e;
    animation: particleShimmer 2s ease-in-out infinite alternate;
    opacity: 0.5;
}

.dust-particle {
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    animation: particleFloat 10s ease-in-out infinite;
    opacity: 0.4;
}

.micro-particle {
    width: 0.5px;
    height: 0.5px;
    background: rgba(255, 107, 53, 0.3);
    animation: particlePulse 1.5s ease-in-out infinite;
    opacity: 0.3;
}

/* Circuit Board Patterns */
.circuit-pattern {
    position: absolute;
    width: 100px;
    height: 60px;
    background: 
        linear-gradient(90deg, transparent 49%, #ff6b35 49%, #ff6b35 51%, transparent 51%),
        linear-gradient(0deg, transparent 49%, #ff6b35 49%, #ff6b35 51%, transparent 51%);
    background-size: 20px 20px;
    opacity: 0.1;
    animation: circuitPulse 4s ease-in-out infinite;
}

.circuit-pattern.top-left {
    top: 2rem;
    left: 2rem;
    transform: rotate(45deg);
}

.circuit-pattern.top-right {
    top: 2rem;
    right: 2rem;
    transform: rotate(-45deg);
}

.circuit-pattern.bottom-left {
    bottom: 2rem;
    left: 2rem;
    transform: rotate(-45deg);
}

.circuit-pattern.bottom-right {
    bottom: 2rem;
    right: 2rem;
    transform: rotate(45deg);
}

/* Modern Animations */

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 107, 53, 0.3));
    }
    100% {
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 107, 53, 0.6));
    }
}

@keyframes subtitlePulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes descriptionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes treeSway {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@keyframes buttonsSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes scanLine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes readoutFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes readoutScan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes valueGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 107, 53, 0.5);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

@keyframes particleGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
        opacity: 0.6;
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.8), 0 0 25px rgba(255, 107, 53, 0.4);
        opacity: 1;
    }
}

@keyframes particleShimmer {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes particlePulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes circuitPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 0.7; 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Profile Dropdown Styles */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    min-width: 280px;
    z-index: 1002;
    margin-top: 8px;
    overflow: hidden;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.wallet-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.connection-status {
    font-size: 12px;
    color: #00D4FF;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-actions {
    padding: 8px;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00D4FF;
}

/* Mobile Profile Dropdown Adjustments */
@media (max-width: 768px) {
    .profile-dropdown {
        position: fixed;
        top: 80px;
        right: 16px;
        left: 16px;
        min-width: auto;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .dropdown-header {
        padding: 12px;
    }
    
    .dropdown-photo {
        width: 36px;
        height: 36px;
    }
    
    .wallet-address {
        font-size: 13px;
    }
    
    .connection-status {
        font-size: 11px;
    }
    
    .dropdown-actions {
        padding: 6px;
    }
    
    .dropdown-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Mobile Profile Button Styles */
.mobile-profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    border-radius: 0;
}

.mobile-profile-photo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 53, 0.3);
    object-fit: cover;
    background: rgba(255, 107, 53, 0.1);
}

.mobile-wallet-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-wallet-address {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.mobile-connection-status {
    color: #FF6B35;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-profile-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.mobile-profile-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-profile-action:hover::before {
    left: 100%;
}

.mobile-profile-action:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: #FF6B35;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.mobile-profile-action:active {
    transform: translateX(5px) scale(0.98);
}

.mobile-profile-action svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.mobile-profile-action:hover svg {
    transform: scale(1.1);
}

.mobile-search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    z-index: 30;
}

.mobile-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    outline: none;
    font-family: 'Courier New', monospace;
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mobile-search-btn {
    padding: 0.75rem;
    background: #ff6b35;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-search-btn:hover {
    background: #f7931e;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.mobile-search-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.mobile-connect-wallet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #00d4ff;
    border: 1px solid #00d4ff;
    border-radius: 0;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-connect-wallet-btn:hover {
    background: #0099cc;
    border-color: #0099cc;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.mobile-connect-wallet-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Mobile About Button */
.mobile-about-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 0;
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-about-btn:hover {
    background: #ff6b35;
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.mobile-about-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Mobile Controls Button */
.mobile-controls-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 0;
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-controls-btn:hover {
    background: #00d4ff;
    color: white;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.mobile-controls-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Mobile Settings Button */
.mobile-settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.mobile-settings-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.mobile-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #ff6b35;
    border: 1px solid #ff6b35;
    border-radius: 0;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-profile-btn:hover {
    background: #f7931e;
    border-color: #f7931e;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.mobile-profile-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Utility Classes */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: auto; /* Enable modal interactions */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #000000;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh; /* fallback */
    max-height: 80svh; /* prefer stable small viewport height on mobile */
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    background: rgba(255, 107, 53, 0.05);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
    color: #FF6B35;
}

.modal-close svg {
    width: 1rem;
    height: 1rem;
}

.modal-body {
    padding: 1.5rem;
    color: #FFFFFF;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #FF6B35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
}

.settings-buttons {
    display: flex;
    gap: 0.5rem;
}

.setting-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 0;
    color: #FF6B35;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
    color: #FFFFFF;
}

/* About Modal Content */
#about-modal .modal-content {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.about-modal .modal-title {
    color: #FF6B35;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.about-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-section {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.section-header:hover {
    background: rgba(255, 107, 53, 0.1);
}

.section-header.expanded {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 107, 53, 0.05);
}

.section-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    color: #FF6B35;
    flex-shrink: 0;
}

.section-icon svg {
    width: 100%;
    height: 100%;
}

.section-title {
    color: #FF6B35;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-toggle {
    width: 20px;
    height: 20px;
    color: #FF6B35;
    transition: transform 0.3s ease;
}

.section-toggle.expanded {
    transform: rotate(180deg);
}

.toggle-icon {
    width: 100%;
    height: 100%;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1rem;
}

.section-content.expanded {
    max-height: 500px;
    padding: 1rem;
}

.section-content p {
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.guide-item {
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    border-left: 3px solid #FF6B35;
}

.guide-item:last-child {
    margin-bottom: 0;
}

.guide-item strong {
    color: #FF6B35;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Controls Modal Styles */
.controls-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.controls-section {
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.control-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    transition: background-color 0.2s ease;
}

.control-item:last-child {
    border-bottom: none;
}

.control-item:hover {
    background: rgba(255, 107, 53, 0.05);
}

.control-key {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #00d4ff;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.control-description {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
}

.tip-item {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border-left: 3px solid #00d4ff;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item strong {
    color: #00d4ff;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* Settings Modal Styles */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-section {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.setting-label {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    flex-grow: 1;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.setting-value {
    color: #00d4ff;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Range Input Styling */
.setting-control input[type="range"] {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.setting-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.setting-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Select Styling */
.setting-control select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #e0e0e0;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.setting-control select:focus {
    border-color: #00d4ff;
}

.setting-control select option {
    background: rgba(0, 0, 0, 0.9);
    color: #e0e0e0;
}

/* Toggle Switch Styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #00d4ff;
    border-color: #00d4ff;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Clear Data Button */
.clear-data-btn {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 4px;
    color: #ff6b35;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
}

.clear-data-btn:hover {
    background: #ff6b35;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .nav-content {
        padding: 0.75rem 0rem;
    }
    
    .nav-left {
        gap: 0rem;
    }
    
    .nav-right {
        gap: 0rem;
        padding-right: 2%;
    }
    
    .menu-text {
        display: none;
    }
    
    .menu-btn svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .brand-text {
        font-size: 0.9rem;
    }
    
    .brand-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .connect-wallet-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .connect-wallet-btn span {
        display: none;
    }
    
    .connect-wallet-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .profile-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .profile-photo {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    #about-modal .modal-content {
        max-width: 95vw;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .about-modal .modal-title {
        font-size: 1.2rem;
    }
    
    .section-header {
        padding: 0.75rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .section-content.expanded {
        padding: 0.75rem;
    }
    
    .guide-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Mars Landing Screen Styles */
.landing-screen {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 20;
    display: none;
    flex-direction: column;
    background: transparent;
    pointer-events: none; /* Allow Unity interactions to pass through */
}

/* Top Section - Title Only */
.top-section {
    position: absolute;
    top: 113px;
    left: 0;
    right: 0;
    padding: 2rem 1rem 2rem 1rem;
    z-index: 2;
    pointer-events: auto;
}

/* Middle Section - Clear for Mars Globe */
.middle-section {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 50vh; /* fallback */
    height: 50svh; /* prefer stable small viewport height on mobile */
    pointer-events: none;
}

/* Bottom Section - Content Below Mars */
.bottom-content {
    position: absolute;
    bottom: 4rem;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    pointer-events: auto; /* Enable button interactions */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Digital Readout Section */
.digital-readout {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    animation: readoutFadeIn 2s ease-out 0.5s forwards;
    opacity: 0;
}

.readout-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.readout-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    animation: readoutScan 3s linear infinite;
}

.readout-label {
    font-size: 0.7rem;
    color: #ff6b35;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
}

.readout-value {
    font-size: 0.9rem;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: valueGlow 2s ease-in-out infinite alternate;
}

/* Title Section - Centered */
.title-section {
    margin-bottom: 1rem;
    text-align: center;
    animation: titleSlideIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.main-title {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.title-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    display: inline;
    position: relative;
    font-weight: 400;
}

.title-primary::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #dc2626);
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.title-secondary {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em;
    display: inline;
    font-weight: 200;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}



/* Description Section - Centered */
.description-section {
    margin-bottom: 2rem;
    text-align: center;
    animation: descriptionFadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.description {
    font-size: 1rem;
    color: #d1d5db;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.description::before {
    content: '🌳';
    position: absolute;
    left: -30px;
    top: 0;
    font-size: 1.2em;
    opacity: 0.7;
    animation: treeSway 3s ease-in-out infinite;
}
