/* 本地高强度人机验证 —— 旋转验证 */
.lc-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 15, 24, .6);
  backdrop-filter: blur(3px);
}
.lc-modal[hidden] { display: none; }
.lc-dialog {
  width: 100%;
  max-width: 320px;
  background: #fff;
  color: #202124;
  color-scheme: light;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
  overflow: hidden;
}
.lc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(30, 35, 45, .08);
}
.lc-title { font-size: .92rem; font-weight: 600; }
.lc-close {
  border: 0;
  background: transparent;
  color: #9aa0a8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 5px;
}
.lc-close:hover { background: rgba(30, 35, 45, .06); color: #202124; }
.lc-body { padding: 16px; }
.lc-tip { text-align: center; color: #6f747c; font-size: .76rem; margin-bottom: 12px; }
.lc-stage {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.lc-stage:active { cursor: grabbing; }
.lc-img-wrap {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(30, 35, 45, .1);
  background: #fff;
}
.lc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
  filter: none !important;
  mix-blend-mode: normal !important;
}
.lc-msg {
  min-height: 18px;
  text-align: center;
  color: #6f747c;
  font-size: .72rem;
  margin-top: 10px;
}
.lc-msg.is-error { color: #f1404b; }
.lc-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.lc-btn {
  flex: 0 1 160px;
  height: 36px;
  border: 1px solid rgba(30, 35, 45, .12);
  border-radius: 7px;
  background: #fff;
  color: #202124;
  font-size: .76rem;
  cursor: pointer;
}
.lc-btn:hover { background: #f5f6f8; }
.lc-btn:disabled { opacity: .55; cursor: not-allowed; }
.lc-btn-primary {
  background: var(--primary, #f1404b);
  border-color: var(--primary, #f1404b);
  color: #fff;
}
.lc-btn-primary:hover { background: #d93641; }
body.lc-lock { overflow: hidden; }

/* 暗色模式 */
html.io-black-mode .lc-dialog,
body.io-black-mode .lc-dialog {
  background: #2c2e2f;
  color: #ececec;
}
html.io-black-mode .lc-head,
body.io-black-mode .lc-head { border-color: rgba(255, 255, 255, .09); }
html.io-black-mode .lc-tip,
html.io-black-mode .lc-msg,
body.io-black-mode .lc-tip,
body.io-black-mode .lc-msg { color: #9a9da2; }
html.io-black-mode .lc-img-wrap,
body.io-black-mode .lc-img-wrap {
  border-color: rgba(255, 255, 255, .1);
  background: #1d1f21;
}
html.io-black-mode .lc-btn,
body.io-black-mode .lc-btn {
  background: #36393b;
  border-color: rgba(255, 255, 255, .09);
  color: #ececec;
}
html.io-black-mode .lc-btn:hover,
body.io-black-mode .lc-btn:hover { background: #3f4245; }
html.io-black-mode .lc-btn-primary,
body.io-black-mode .lc-btn-primary {
  background: var(--primary, #f1404b);
  border-color: var(--primary, #f1404b);
  color: #fff;
}
