.captcha-dialog {
  width: min(92vw, 420px);
  box-sizing: border-box;
  padding: 24px;
  color: #262626;
}

.captcha-dialog h2 {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
}

.captcha-description {
  margin: 8px 0 16px;
  color: #888;
  text-align: center;
  font-size: 14px;
}

.captcha-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #f2f2f2;
}

.captcha-original {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.captcha-piece {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: fill;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px #0005);
}

.captcha-track {
  position: relative;
  height: 44px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 24px;
  background: #f7f7f7;
}

.captcha-track-text {
  display: block;
  color: #999;
  text-align: center;
  line-height: 44px;
  font-size: 13px;
  user-select: none;
}

.captcha-handle {
  position: absolute;
  top: 2px;
  left: 0;
  z-index: 1;
  width: 40px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #70bf28;
  color: #fff;
  cursor: grab;
  font-size: 26px;
  line-height: 38px;
  touch-action: none;
  user-select: none;
}

.captcha-handle:active {
  cursor: grabbing;
}

.captcha-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: #e44;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 480px) {
  .captcha-dialog {
    padding: 20px;
  }
}
