.sushi-captcha {
  width: 100%;
  max-width: 360px;
  margin: 12px 0 18px;
  border: 2px solid #b9b9b9;
  border-radius: 8px;
  background: #fff;
  color: #242424;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.sushi-captcha-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #d8d8d8;
  background: #f7f7f7;
  font-weight: 800;
  font-size: 14px;
  color: #111;
}

.sushi-captcha-refresh {
  border: 1px solid #c8c8c8;
  background: #fff;
  color: #333;
  height: 28px;
  min-width: 62px;
  border-radius: 5px;
  line-height: 26px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 0 8px;
}

.sushi-captcha-help {
  padding: 10px 12px 4px;
  font-size: 12px;
  line-height: 1.35;
  color: #555;
}

.sushi-captcha-help div + div {
  margin-top: 3px;
}

.sushi-captcha-board {
  position: relative;
  height: 126px;
  margin: 10px 12px 8px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(242, 2, 2, .05) 0 1px, transparent 1px 24px),
    linear-gradient(0deg, rgba(0, 0, 0, .04) 0 1px, transparent 1px 24px),
    #fafafa;
}

.sushi-captcha-target {
  position: absolute;
  width: 54px;
  height: 54px;
  transform: translate(-1px, -1px);
  border-radius: 50%;
  background: rgba(210, 210, 210, .38);
  border: 2px dashed #9e9e9e;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, .12);
}

.sushi-captcha-target:after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 1px solid rgba(120, 120, 120, .45);
}

.sushi-captcha-piece {
  position: absolute;
  left: 18px;
  top: 42px;
  width: 54px;
  height: 54px;
  border: 2px solid #dedede;
  border-radius: 50%;
  background: #fff url("../image/sushi-captcha-logo.png") center center / cover no-repeat;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .22);
  cursor: grab;
  padding: 0;
  touch-action: none;
}

.sushi-captcha-piece:active {
  cursor: grabbing;
}

.sushi-captcha-text {
  padding: 0 12px 12px;
  font-size: 12px;
  color: #666;
}

.sushi-captcha[data-state="ok"] {
  border-color: #22a447;
}

.sushi-captcha[data-state="ok"] .sushi-captcha-head {
  border-bottom-color: #b8dfc3;
  background: #f4fff6;
}

.sushi-captcha[data-state="ok"] .sushi-captcha-text {
  color: #168239;
  font-weight: 700;
}

.sushi-captcha[data-state="error"] {
  border-color: #f20202;
}

.sushi-captcha[data-state="error"] .sushi-captcha-head {
  border-bottom-color: #ffd0d0;
  background: #fff7f7;
}

.sushi-captcha[data-state="error"] .sushi-captcha-text {
  color: #f20202;
  font-weight: 700;
}

@media (max-width: 420px) {
  .sushi-captcha {
    max-width: 100%;
  }

  .sushi-captcha-board {
    margin-left: 8px;
    margin-right: 8px;
  }
}
