/* -------------------------------------------------------------------------- */
/* KINETIC STUDIO STYLES 3.5 */
/* -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600&display=swap');

body {
    margin: 0;
    overflow: hidden;
    background-color: #050505;
    font-family: 'Rajdhani', sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

#artCanvas { z-index: 1; } 
#mechCanvas { z-index: 2; pointer-events: none; }

/* --- UI CONTAINER (The Hover Zone) --- */
#ui-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 40px; /* Larger invisible catch-zone */
    opacity: 0; /* Default: Hidden */
    transition: opacity 0.4s ease;
}

/* DESKTOP HOVER TRIGGER */
#ui-container:hover {
    opacity: 1;
}

/* --- GLASS PANEL --- */
.glass-panel {
    /* REDUCED OPACITY: Lowered alpha from 0.6 to 0.45 for ~70% visibility feel */
    background: rgba(10, 10, 10, 0.45); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
}

/* --- CONTROLS --- */
.header-row {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.header-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

button, select {
    background: rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ddd;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

/* DROPDOWN FIXES */
select {
    text-align: left; /* Left Justify */
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); 
    background-repeat: no-repeat;
    background-position: right 10px center;
}

select option {
    background-color: #111;
    color: #fff;
}

button:hover, select:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.magic-btn {
    background: linear-gradient(135deg, #00e5ff 0%, #2979ff 100%);
    border: none;
    color: #000;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.magic-btn:hover {
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.7);
    transform: scale(1.02);
}

.slider-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.slider-row label {
    color: #aaa;
    font-size: 0.8rem;
    margin-left: 5px;
}

input[type=range] {
    width: 100%;
    accent-color: #00e5ff;
    cursor: pointer;
}

.status {
    text-align: center;
    color: #666;
    font-size: 0.75rem;
    margin-top: 5px;
    letter-spacing: 1px;
}