* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow: hidden; background: #1a1a1a; } #renderCanvas { width: 100%; height: 100vh; display: block; touch-action: none; } .controls { position: absolute; top: 20px; left: 20px; background: rgba(0, 0, 0, 0.8); padding: 20px; border-radius: 10px; color: white; max-width: 350px; max-height: 90vh; overflow-y: auto; } .idle-controls { position: absolute; top: 20px; right: 20px; background: rgba(0, 0, 0, 0.8); padding: 20px; border-radius: 10px; color: white; width: 320px; max-height: 90vh; overflow-y: auto; } .collapsible-panel { z-index: 900; } .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; background: rgba(0, 0, 0, 0.9); padding-bottom: 10px; z-index: 1; } .panel-toggle { width: auto; min-width: 70px; padding: 6px 10px; margin-top: 0; background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; } .panel-toggle:hover { background: rgba(255, 255, 255, 0.2); } .panel-body { transition: max-height 0.3s ease; } .panel-body.collapsed { display: none; } .panel-collapsed { background: rgba(0, 0, 0, 0.7); } .controls h2, .idle-controls h2 { margin: 0; font-size: 18px; } .input-group { margin-bottom: 15px; } .input-group label { display: block; margin-bottom: 5px; font-size: 12px; color: #aaa; } .toggle-group label { display: flex; align-items: center; gap: 8px; margin-bottom: 0; color: #ddd; } .toggle-group input[type="checkbox"] { width: 16px; height: 16px; margin: 0; cursor: pointer; } input[type="text"], textarea { width: 100%; padding: 8px; border: 1px solid #444; border-radius: 4px; background: #2a2a2a; color: white; font-size: 12px; } textarea { resize: vertical; min-height: 60px; } button { width: 100%; padding: 10px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 600; margin-top: 10px; } button:hover { opacity: 0.9; } button:disabled { opacity: 0.5; cursor: not-allowed; } .status { margin-top: 10px; padding: 10px; border-radius: 4px; font-size: 12px; display: none; } .status.show { display: block; } .status.success { background: rgba(76, 175, 80, 0.2); color: #4caf50; } .status.error { background: rgba(244, 67, 54, 0.2); color: #f44336; } .status.info { background: rgba(33, 150, 243, 0.2); color: #2196f3; } .checkbox-group { margin-bottom: 20px; padding: 15px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; } .checkbox-group label { display: flex; align-items: center; cursor: pointer; font-size: 14px; font-weight: 600; margin-bottom: 10px; width: 100%; } .checkbox-group > label { margin-bottom: 0; } .checkbox-group label > span { flex: 1; color: white; display: inline-block; } .checkbox-group input[type="checkbox"] { width: 18px; height: 18px; margin-right: 10px; cursor: pointer; flex-shrink: 0; } .collapse-btn { margin-right: 10px; background: rgba(255, 255, 255, 0.1); border: none; color: #aaa; cursor: pointer; font-size: 14px; padding: 4px 8px; border-radius: 4px; transition: all 0.3s ease; transform-origin: center; user-select: none; flex-shrink: 0; width: 32px; height: 28px; display: flex; align-items: center; justify-content: center; } .collapse-btn:hover { background: rgba(255, 255, 255, 0.2); color: white; } .collapse-btn.collapsed { transform: rotate(-90deg); } .param-group { margin-top: 10px; padding-left: 28px; overflow: hidden; transition: max-height 0.3s ease; } .param-group.collapsed { max-height: 0 !important; margin-top: 0; } .param-item { margin-bottom: 10px; } .param-item label { display: block; font-size: 11px; color: #aaa; margin-bottom: 3px; } .param-item input[type="range"] { width: 100%; cursor: pointer; } .param-value { display: inline-block; min-width: 50px; text-align: right; font-size: 11px; color: #4caf50; } .expression-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; } .expression-item { display: flex; align-items: center; font-size: 12px; gap: 8px; } .expression-item input[type="checkbox"] { width: 14px; height: 14px; margin: 0; flex-shrink: 0; } .expression-item label { flex: 1; margin: 0; cursor: pointer; font-size: 12px; } .expression-item input[type="number"] { width: 50px; padding: 2px 4px; border: 1px solid #444; border-radius: 3px; background: #2a2a2a; color: white; font-size: 11px; text-align: center; } .expression-item .duration-label { font-size: 10px; color: #888; white-space: nowrap; } @media (max-width: 900px) { .controls, .idle-controls { position: fixed; left: 12px; right: 12px; width: auto; max-width: none; padding: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); } .controls { top: 12px; } .idle-controls { top: auto; bottom: 12px; } .panel-header { position: relative; } button { font-size: 13px; } }