html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.cm {
  --c0: rgb(72.2666666667%, 80.5333333333%, 98.8%);
  --c1: rgb(76.1176470588%, 90.9411764706%, 100%);
  --c2: rgb(70.5176470588%, 92.9176470588%, 85.3411764706%);
  --c3: rgb(93.6470588235%, 75.6470588235%, 70%);
  --c4: #b9a0ff;
  --c-line: rgb(32.6745098039%, 31.8039215686%, 33.5450980392%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 424px;
}

.cm__hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.35;
  color: #17141a;
}

.cm__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #17141a;
}

.cm__field {
  position: relative;
  height: 148px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(23, 20, 26, 0.16);
}

.cm__cv {
  display: block;
  width: 100%;
  height: 100%;
}

.cm__legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 10px;
  color: #17141a;
}

.cm__lg {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cm__sw {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(23, 20, 26, 0.18);
}

.cm__unit {
  color: rgba(23, 20, 26, 0.74);
  font-weight: 700;
}

.cm__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cm__dial {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 11px;
  color: #17141a;
}

.cm__dial input {
  width: 64px;
  margin: 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(23, 20, 26, 0.08);
  color: #17141a;
  font-weight: 700;
  font-size: 12px;
  font-family: inherit;
}

.cm__dial input:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.cm__shuffle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.08);
  color: #17141a;
  font-weight: 700;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
}

.cm__shuffle:hover {
  background: rgba(23, 20, 26, 0.16);
}

.cm__shuffle:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.cm__val {
  color: #2f6df6;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 340px) {
  .cm {
    gap: 4px;
  }
  .cm__field {
    height: 92px;
  }
  .cm__hint {
    font-size: 10px;
  }
  .cm__legend {
    gap: 4px;
    font-size: 9px;
  }
  .cm__bar {
    gap: 8px;
  }
  .cm__dial input {
    width: 52px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cm.is-still .cm__field {
    cursor: default !important;
  }
}
