/* 拖动滑块拼图验证 —— 叠在登录卡片上，无全屏遮罩 */
.sc-mask {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 18px 14px;
    box-sizing: border-box;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sc-mask.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sc-dialog {
    width: 100%;
    max-width: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    transform: translateY(8px);
    transition: transform 0.2s ease;
}

.sc-mask.is-open .sc-dialog {
    transform: translateY(0);
}

.sc-title {
    margin: 0 0 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #5b8def;
}

.sc-stage {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f7;
    user-select: none;
    -webkit-user-select: none;
}

.sc-stage canvas {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.sc-tip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px;
    font-size: 13px;
    text-align: center;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.sc-tip.is-show {
    opacity: 1;
    transform: translateY(0);
}

.sc-tip.is-ok {
    background: rgba(34, 197, 94, 0.92);
}

.sc-tip.is-fail {
    background: rgba(239, 68, 68, 0.92);
}

.sc-slider {
    position: relative;
    margin-top: 14px;
    height: 42px;
    border-radius: 21px;
    background: #f1f5f9;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.sc-slider-track {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, rgba(91, 141, 239, 0.18), rgba(91, 141, 239, 0.35));
    border-radius: 21px;
    pointer-events: none;
}

.sc-slider-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #94a3b8;
    pointer-events: none;
}

.sc-slider-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: #fff center / 18px 18px no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b8def' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='1.2' fill='%235b8def'/%3E%3Ccircle cx='12' cy='12' r='1.2' fill='%235b8def'/%3E%3Ccircle cx='18' cy='12' r='1.2' fill='%235b8def'/%3E%3Cpath d='M15 8l4 4-4 4'/%3E%3C/svg%3E");
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.16);
    cursor: grab;
    z-index: 2;
}

.sc-slider-handle:active {
    cursor: grabbing;
}

.sc-slider.is-ok .sc-slider-track {
    background: rgba(34, 197, 94, 0.28);
}

.sc-slider.is-ok .sc-slider-handle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

.sc-slider.is-fail .sc-slider-track {
    background: rgba(239, 68, 68, 0.22);
}

.sc-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.sc-icon-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 0;
    background: transparent center / 18px 18px no-repeat;
    box-shadow: none;
    cursor: pointer;
    opacity: 0.72;
    transition: opacity 0.15s;
}

.sc-icon-btn:hover {
    opacity: 1;
    background-color: transparent;
    border: 0;
}

.sc-icon-refresh {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-2.6-6.3'/%3E%3Cpath d='M21 3v6h-6'/%3E%3C/svg%3E");
}

.sc-icon-close {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
}
