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

body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow: hidden;
    background: #0f0626;
    color: #ffffff;
}

#scene-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

.ui-panel {
    position: fixed;
    background: rgba(15, 6, 38, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 24px;
    color: #ffffff;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#top-bar {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
}

.title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(125, 211, 252, 0.5);
}

.seed-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #7dd3fc;
}

.btn-primary, .btn-secondary {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #7dd3fc, #c4b5fd);
    color: #1a0b2e;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(125, 211, 252, 0.6);
}

.btn-secondary {
    background: rgba(125, 211, 252, 0.2);
    color: #ffffff;
    border: 1px solid rgba(125, 211, 252, 0.4);
    margin-top: 8px;
    width: 100%;
}

.btn-secondary:hover {
    background: rgba(125, 211, 252, 0.3);
}

#bottom-panel {
    bottom: 20px;
    left: 20px;
    max-width: 350px;
}

.info-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 12px;
    color: #7dd3fc;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.stat-label {
    color: #a0c4ff;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    color: #ffffff;
    font-weight: 500;
}

#app-details {
    padding-top: 12px;
}

.app-name {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 8px;
    color: #ffc6ff;
}

.app-purpose, .app-created {
    font-size: 14px;
    color: #a0c4ff;
    margin-bottom: 4px;
}

#side-controls {
    top: 20px;
    right: 20px;
    width: 220px;
}

.control-group {
    margin-bottom: 16px;
}

.control-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #7dd3fc;
}

.control-group input[type="checkbox"] {
    margin-right: 8px;
}

.control-group input[type="range"] {
    width: 100%;
    margin-bottom: 4px;
}

.control-group select {
    width: 100%;
    padding: 6px;
    border-radius: 6px;
    background: rgba(125, 211, 252, 0.1);
    border: 1px solid rgba(125, 211, 252, 0.3);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

#speed-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #a0c4ff;
}

#achievement-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.achievement-toast {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a0b2e;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    animation: slideIn 0.5s ease;
    opacity: 1;
    transition: opacity 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 12px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 10;
}

#footer:hover {
    opacity: 1;
}

#footer a {
    color: #7dd3fc;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(125, 211, 252, 0.5);
}

#mushroom-indicator {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 107, 107, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    z-index: 10;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .ui-panel {
        padding: 12px 16px;
    }
    
    #top-bar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .title {
        font-size: 20px;
        text-align: center;
    }
    
    #side-controls {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: auto;
        width: auto;
        max-width: 200px;
    }
    
    #bottom-panel {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .control-group {
        margin-bottom: 12px;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 6, 38, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(125, 211, 252, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(125, 211, 252, 0.5);
}