.puzzle-captcha {
    width: 260px;
    height: 100px;
    position: relative;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.puzzle-image {
    width: 100%;
    height: 36px;
    background: #f5f7fa;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

/* Целевая метка теперь динамическая */
.puzzle-target {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: rgba(76, 175, 80, 0.2);
    border: 2px dashed #4CAF50;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 1;
    transition: left 0.3s ease;
}

.puzzle-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    transform: translateY(-50%);
}

/* Градиентные направляющие */
.puzzle-slider-track::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 26px;
    background: linear-gradient(90deg, 
        rgba(33, 150, 243, 0.1) 0%, 
        rgba(76, 175, 80, 0.1) 100%
    );
}

.puzzle-slider {
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 2px solid #2196F3;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    cursor: grab;
    z-index: 2;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.puzzle-slider::before {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2196F3;
    font-size: 16px;
    font-weight: bold;
}

.puzzle-slider:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.puzzle-slider:active {
    cursor: grabbing;
    background: #f5f5f5;
}

.puzzle-captcha.success .puzzle-slider {
    background: #4CAF50;
    border-color: #4CAF50;
    width: 32px;
    height: 32px;
}

.puzzle-captcha.success .puzzle-slider::before {
    content: '✓';
    color: #ffffff;
    font-size: 14px;
}

.puzzle-text {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-top: 12px;
    font-weight: 500;
}

.puzzle-captcha.success .puzzle-text {
    color: #4CAF50;
    font-weight: bold;
}

.puzzle-progress {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(33, 150, 243, 0.15) 0%, 
        rgba(76, 175, 80, 0.15) 100%
    );
    pointer-events: none;
    transition: width 0.1s ease;
}
