/* 滑动拼图行为验证弹窗。图片按 320×160 原尺寸 1:1 显示，坐标系与后端一致。 */
.sc-mask {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
}
.sc-mask[hidden] {
    display: none;
}
.sc-dialog {
    width: 352px;
    max-width: 100%;
    padding: 0 16px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-user-select: none;
}
.sc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 12px;
    font-size: 15px;
}
.sc-close {
    border: 0;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #6b7785;
    cursor: pointer;
}
.sc-close:hover {
    color: #1f2933;
}
.sc-stage {
    position: relative;
    width: 320px;
    height: 160px;
    overflow: hidden;
    border-radius: 4px;
    background: #eef1f5;
}
.sc-bg {
    display: block;
    width: 320px;
    height: 160px;
    pointer-events: none;
}
.sc-piece {
    position: absolute;
    left: 0;
    width: 56px;
    height: 56px;
    pointer-events: none;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.55));
}
.is-loading .sc-bg,
.is-loading .sc-piece {
    opacity: 0.4;
}
.is-fail .sc-piece {
    animation: sc-shake 0.3s;
}
.sc-refresh {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
}
.sc-refresh:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.55);
}
.sc-refresh:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.sc-tip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 10px;
    font-size: 13px;
    color: #fff;
    background: rgba(198, 40, 40, 0.85);
    transform: translateY(100%);
    transition: transform 0.2s ease;
}
.sc-tip.is-shown {
    transform: translateY(0);
}
.sc-tip.is-ok {
    background: rgba(46, 125, 50, 0.85);
}
.sc-slider {
    position: relative;
    width: 320px;
    height: 40px;
    margin-top: 12px;
    border: 1px solid #dfe3e8;
    border-radius: 4px;
    background: #f6f8fa;
}
.sc-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    border-radius: 4px 0 0 4px;
    background: #e3effc;
}
.is-success .sc-fill {
    background: #e8f5e9;
}
.is-fail .sc-fill {
    background: #fdecea;
}
.sc-hint {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding-left: 56px;
    font-size: 13px;
    color: #8a96a3;
    pointer-events: none;
}
.sc-handle {
    position: absolute;
    left: 0;
    top: -1px;
    width: 56px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    background: #1565c0;
    cursor: grab;
    touch-action: none;
}
.is-dragging .sc-handle {
    cursor: grabbing;
}
.is-success .sc-handle {
    background: #2e7d32;
}
.is-fail .sc-handle {
    background: #c62828;
}
@keyframes sc-shake {
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
