/* ──────────────────────────────────────────────────────────
   기본 레이아웃 & 중앙 정렬
────────────────────────────────────────────────────────── */
body {
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: sans-serif;
  background-color: #f9f9f9;
}

/* ──────────────────────────────────────────────────────────
   캔버스 스타일
────────────────────────────────────────────────────────── */
canvas {
  display: block;          /* inline-block 대신 block으로 */
  border: 1px solid #ccc;
  background-color: #fff;
}

/* ──────────────────────────────────────────────────────────
   컨트롤 패널: 캔버스 아래에 배치
────────────────────────────────────────────────────────── */
.controls {
  margin-top: 12px;        /* 캔버스와 간격 */
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ──────────────────────────────────────────────────────────
   버튼 스타일
────────────────────────────────────────────────────────── */
button {
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid #888;
  background-color: #eee;
  border-radius: 4px;
  transition: background-color 0.2s, box-shadow 0.2s;
}
button:hover {
  background-color: #ddd;
}

/* ──────────────────────────────────────────────────────────
   슬라이더 스타일
────────────────────────────────────────────────────────── */
input[type="range"] {
  width: 200px;
  cursor: pointer;
}

/* ──────────────────────────────────────────────────────────
   속도 표시 텍스트
────────────────────────────────────────────────────────── */
#speedDisplay {
  font-weight: bold;
  min-width: 2em;
  text-align: right;
}
```
