@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
  
  --bg-color: #100a06;
  --accent-color: #f59e0b;
  --accent-rgb: 245, 158, 11;
    
  --text-color: #e2e8f0;
  --panel-bg: rgba(15, 23, 42, 0.45);
  --border-light: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; }
body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  width: 100vw; height: 100vh;
  overflow: hidden; display: flex; flex-direction: column;
}
#canvas-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
canvas { display: block; width: 100%; height: 100%; }
.overlay-vignette {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.95);
}
.control-dock {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--panel-bg); border: 1px solid var(--border-light); border-radius: 20px;
  backdrop-filter: blur(25px) saturate(180%); -webkit-backdrop-filter: blur(25px) saturate(180%);
  box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.6); padding: 16px 24px; z-index: 10;
  display: flex; gap: 20px; align-items: center; max-width: 95vw;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.control-dock.collapsed { transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none; }
.control-item { display: flex; flex-direction: column; gap: 6px; }
.control-header { display: flex; justify-content: space-between; align-items: center; min-width: 130px; }
.control-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); letter-spacing: 1px; }
.control-value-display { font-size: 0.75rem; font-weight: 500; color: var(--accent-color); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; width: 100%; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; outline: none; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text-color); cursor: pointer; transition: all 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { background: var(--accent-color); transform: scale(1.2); box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5); }
select {
  padding: 8px 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-light); border-radius: 8px;
  color: var(--text-color); font-family: inherit; font-size: 0.85rem; outline: none; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23e2e8f0' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; min-width: 140px;
}
select:hover { background-color: rgba(255, 255, 255, 0.08); border-color: var(--accent-color); }
.dock-toggle-btn {
  position: absolute; bottom: 24px; right: 24px; width: 44px; height: 44px;
  background: var(--panel-bg); border: 1px solid var(--border-light); border-radius: 12px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-color); z-index: 9;
  transition: all 0.3s ease;
}
.dock-toggle-btn:hover { border-color: var(--accent-color); color: var(--accent-color); transform: translateY(-2px); }
.dock-toggle-btn.hidden { opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.8); }
.close-dock-btn {
  background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer;
  display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  transition: all 0.2s ease; margin-left: 10px;
}
.close-dock-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
