body { margin: 0; overflow: hidden; background-color: #010101; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
#canvas-container { width: 100vw; height: 100vh; display: block; touch-action: none; }

.panel {
    position: absolute;
    color: #eee;
    background: rgba(10, 10, 10, 0.9);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    user-select: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    z-index: 10;
    transition: opacity 0.3s, transform 0.3s;
}

#stats-panel { top: 20px; left: 20px; min-width: 180px; pointer-events: none; }
#controls-panel { top: 20px; right: 20px; width: 260px; max-height: 90vh; overflow-y: auto; }

.hidden { opacity: 0 !important; pointer-events: none !important; transform: translateY(-10px); }

h1 { margin: 0 0 10px 0; font-size: 0.85rem; color: #fff; text-transform: uppercase; border-bottom: 1px solid #333; padding-bottom: 5px; opacity: 0.7; letter-spacing: 1px; }
.row { margin-bottom: 14px; }
label { display: flex; justify-content: space-between; font-size: 0.7rem; color: #999; margin-bottom: 4px; }
.label-val { color: #4db8ff; font-weight: bold; }
input[type="range"] { width: 100%; cursor: pointer; accent-color: #4db8ff; margin: 0; }

.checkbox-group, .radio-group { display: flex; gap: 10px; margin-top: 5px; }
.checkbox-group label, .radio-group label { display: flex; align-items: center; gap: 5px; cursor: pointer; color: #eee; font-size: 0.75rem; }
.checkbox-group input, .radio-group input { cursor: pointer; width: 16px; height: 16px; accent-color: #4db8ff; }

.stat-row { display: flex; justify-content: space-between; font-size: 0.8rem; margin-top: 4px; }
.stat-val { color: #4db8ff; font-weight: bold; font-family: 'Courier New', monospace; }

button {
    background: #0055aa;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    text-transform: uppercase;
    transition: background 0.2s;
}
button:hover { background: #0077ee; }

#btn-reset {
    width: 100%;
    background: #0055aa;
    color: white;
}
#btn-reset:hover { background: #0077ee; }

#toggle-ui {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(40, 40, 40, 0.8);
    color: white;
    border: 1px solid #555;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 100;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.instruction {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #444;
    font-size: 0.65rem;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}