/* 旋转拼图人机验证：把上游那张拼图取回来在本站页面里展示，由用户拖动转正。 */
.rotate-captcha {
  margin: 4px 0 14px;
  padding: 12px;
  border: 1px solid var(--line, #dce5eb);
  border-radius: 14px;
  background: #f8fbfc;
}
.rotate-captcha[hidden] { display: none; }

.rotate-captcha__tip {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted, #667584);
}

.rotate-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 360;
  border-radius: 10px;
  overflow: hidden;
  background: #0b0e12;
  user-select: none;
  touch-action: none;
}

.rotate-stage__bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 拼图块水平居中、高度铺满，旋转中心正好落在底图那个圆洞的圆心上。 */
.rotate-stage__piece {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  height: 100%;
  width: auto;
  transform-origin: center center;
  transform: translateX(-50%) rotate(0deg);
  pointer-events: none;
}

.rotate-slider {
  display: block;
  width: 100%;
  height: 34px;
  margin: 14px 0 10px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

/* 轨道：加高、圆角，让滑块看起来是一条明显的滑道 */
.rotate-slider::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  background: #d7e2ea;
}
.rotate-slider::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  background: #d7e2ea;
}

/* 手柄：大圆钮，醒目，方便手指/鼠标拖动 */
.rotate-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 34px;
  height: 34px;
  margin-top: -11px; /* 让手柄中心对齐轨道中心：-(34-12)/2 */
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--mint-dark, #0f8f71);
  box-shadow: 0 2px 8px rgba(15, 143, 113, 0.45);
  cursor: grab;
}
.rotate-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  box-shadow: 0 2px 12px rgba(15, 143, 113, 0.65);
}
.rotate-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--mint-dark, #0f8f71);
  box-shadow: 0 2px 8px rgba(15, 143, 113, 0.45);
  cursor: grab;
}
.rotate-slider:focus-visible {
  outline: 2px solid var(--mint-dark, #0f8f71);
  outline-offset: 4px;
  border-radius: 999px;
}

.rotate-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.rotate-actions .primary-button,
.rotate-actions .outline-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 92px;
}

.rotate-status {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted, #667584);
}
.rotate-status[hidden] { display: none; }
