html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Courier New", Courier, monospace;
  background: #1a1a1a;
}

main {
  display: flex;
  width: 100vw;
  height: 100vh;
}

#canvas-container {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
}

canvas {
  display: block;
}

#control-panel {
  flex: 0 0 320px;
  width: 320px;
  height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
  background: #111;
  color: #e8e8e8;
  padding: 24px 20px;
  border-left: 1px solid #2a2a2a;
}

.panel-title {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 26px;
}

.control-section {
  margin-bottom: 26px;
}

.section-title {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #2a2a2a;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.control-label {
  flex: 0 0 84px;
  font-size: 12px;
  color: #ccc;
}

.control-row input[type="range"] {
  flex: 1;
  accent-color: #999;
}

.control-row select {
  flex: 1;
  background: #1d1d1d;
  color: #e8e8e8;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 5px 6px;
  font-family: inherit;
  font-size: 12px;
}

.control-row.checkbox-row {
  gap: 8px;
}

.control-row.checkbox-row label {
  font-size: 12px;
  color: #ccc;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.action-button {
  flex: 1;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.action-button:hover {
  background: #383838;
  border-color: #4a4a4a;
}

.action-button.primary {
  background: #6b6b6b;
  border-color: #6b6b6b;
}

.action-button.primary:hover {
  background: #828282;
  border-color: #828282;
}
