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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
}

#scene-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Control Panel */
#controls-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    min-width: 200px;
    z-index: 100;
}

#controls-panel h3 {
    margin-bottom: 15px;
    color: #00ffff;
    text-align: center;
    font-size: 16px;
}

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

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #ccc;
}

input[type="range"] {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
}

button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    margin-right: 5px;
    margin-bottom: 5px;
}

button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00ffff;
}

button.active {
    background: #00ffff;
    color: #000;
}

.color-buttons {
    display: flex;
    gap: 5px;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-btn.active {
    box-shadow: 0 0 10px #00ffff;
}

/* Info Panel */
#info-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    max-width: 300px;
    z-index: 100;
}

#info-panel h4 {
    color: #00ffff;
    margin-bottom: 10px;
    font-size: 14px;
}

#info-panel p {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #ccc;
}

/* FPS Counter */
#fps-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #00ffff;
    cursor: pointer;
    z-index: 100;
}

/* Konami Indicator */
#konami-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 255, 0.9);
    color: #fff;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    display: none;
    z-index: 200;
    animation: pulse 1s infinite;
}

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

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

.modal-content {
    background: #1a1a1a;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #333;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    color: #fff;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #fff;
}

.modal-content h2 {
    color: #00ffff;
    margin-bottom: 20px;
}

.modal-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-content li {
    margin-bottom: 8px;
}

.modal-content a {
    color: #00ffff;
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

/* Footer */
#footer {
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

#footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 11px;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: #00ffff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #controls-panel {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        padding: 15px;
    }
    
    #info-panel {
        bottom: 60px;
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 15px;
    }
    
    #fps-counter {
        bottom: 10px;
        right: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .color-buttons {
        justify-content: center;
    }
    
    #controls-panel h3 {
        font-size: 14px;
    }
    
    button {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Special effects */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.5); }
    50% { box-shadow: 0 0 15px rgba(0, 255, 255, 0.8); }
}

#turbo-mode.active {
    animation: glow 0.5s infinite;
}

/* Loading animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading {
    animation: spin 2s linear infinite;
}