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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #0d0d1a 100%);
    overflow: hidden;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#control-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 280px;
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    z-index: 100;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.3) transparent;
}

#control-panel::-webkit-scrollbar {
    width: 4px;
}

#control-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 2px;
}

.panel-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.panel-header .accent {
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.panel-header .subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.gesture-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.gesture-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #00ffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ffff;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.gesture-inner {
    width: 12px;
    height: 12px;
    background: #00ffff;
    border-radius: 50%;
    opacity: 0.6;
}

.gesture-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.param-section {
    margin-bottom: 16px;
}

.param-section label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.param-section input[type="range"] {
    width: calc(100% - 50px);
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    vertical-align: middle;
}

.param-section input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transition: transform 0.2s;
}

.param-section input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.param-value {
    display: inline-block;
    width: 45px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #00ffff;
}

.model-section, .color-section, .theme-section {
    margin-bottom: 20px;
}

.model-section label, .color-section label, .theme-section label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.model-btn {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
}

.model-btn.active {
    background: rgba(0, 255, 255, 0.15);
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.model-btn.strawberry {
    font-size: 1.4rem;
}

.color-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-btn:hover {
    transform: scale(1.15);
}

.color-btn.active {
    border-color: #fff;
    box-shadow: 0 0 15px currentColor;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.theme-btn {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: rgba(0, 255, 255, 0.1);
}

.theme-btn.active {
    background: rgba(0, 255, 255, 0.15);
    border-color: #00ffff;
    color: #fff;
}

.controls-section {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn {
    flex: 1;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.3);
    color: #fff;
}

#status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#status-bar a {
    color: #00ffff;
    text-decoration: none;
    transition: opacity 0.3s;
}

#status-bar a:hover {
    opacity: 0.7;
}

#mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
    display: none;
    align-items: center;
    justify-content: center;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}

/* Mobile styles */
@media (max-width: 768px) {
    #control-panel {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        max-height: 100vh;
        border-radius: 20px 0 0 20px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    #control-panel.open {
        right: 0;
    }
    
    #mobile-toggle {
        display: flex;
    }
    
    #status-bar {
        font-size: 0.55rem;
        padding: 10px 16px;
    }
    
    .status-left {
        display: none;
    }
}

@media (max-width: 400px) {
    #control-panel {
        width: 100%;
        right: -100%;
        border-radius: 0;
    }
}