/* 解压彩泥 — 柔和解压风格 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f5f0e8;
  font-family: 'Segoe UI', system-ui, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  user-select: none;
}

#app {
  text-align: center;
  padding: 24px;
}

h1 {
  font-size: 28px;
  color: #5a4a3a;
  font-weight: 500;
  margin-bottom: 6px;
}

.hint {
  color: #9a8a7a;
  font-size: 14px;
  margin-bottom: 20px;
}

#canvas-wrapper {
  display: inline-block;
  border-radius: 24px;
  background: #efe8dd;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
  padding: 8px;
}

canvas {
  display: block;
  border-radius: 18px;
  background: #faf6ef;
  cursor: grab;
  touch-action: none;
}

canvas:active {
  cursor: grabbing;
}

#controls {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

#color-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctrl-label {
  font-size: 14px;
  color: #5a4a3a;
}

#color-picker {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 2px;
  background: none;
}

#color-presets {
  display: flex;
  gap: 6px;
}

.color-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.15s, transform 0.15s;
}

.color-btn:hover {
  border-color: #5a4a3a;
  transform: scale(1.2);
}

#reset-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 30px;
  background: #d4c9b8;
  color: #5a4a3a;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

#reset-btn:hover {
  background: #c4b9a8;
}
